daytona_api_client 0.211.2 → 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 +98 -55
- 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 +310 -1846
- 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 +434 -2354
- data/lib/daytona_api_client/api/snapshots_api.rb +113 -42
- data/lib/daytona_api_client/api/toolbox_api.rb +5108 -0
- data/lib/daytona_api_client/api/users_api.rb +153 -89
- 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 +74 -3
- data/lib/daytona_api_client/models/announcement.rb +74 -3
- data/lib/daytona_api_client/models/api_key_list.rb +74 -3
- 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/{available_sandbox_class.rb → computer_use_status_response.rb} +97 -86
- 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 +78 -26
- data/lib/daytona_api_client/models/create_organization_role.rb +74 -3
- data/lib/daytona_api_client/models/create_runner.rb +386 -43
- data/lib/daytona_api_client/models/create_sandbox.rb +117 -108
- 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/create_user.rb +97 -40
- 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 -96
- 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/{paginated_jobs.rb → download_files.rb} +94 -100
- data/lib/daytona_api_client/models/{create_warm_pool.rb → execute_request.rb} +106 -62
- data/lib/daytona_api_client/models/execute_response.rb +263 -0
- data/lib/daytona_api_client/models/file_info.rb +417 -0
- data/lib/daytona_api_client/models/{secret.rb → file_status.rb} +122 -121
- data/lib/daytona_api_client/models/git_add_request.rb +264 -0
- data/lib/daytona_api_client/models/{admin_create_organization.rb → git_branch_request.rb} +95 -53
- 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/{trace_span.rb → git_commit_info.rb} +148 -141
- 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_secret.rb → git_delete_branch_request.rb} +106 -59
- 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/lsp_server_request.rb +263 -0
- data/lib/daytona_api_client/models/{create_sandbox_snapshot.rb → lsp_symbol.rb} +132 -22
- 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/mouse_position.rb +263 -0
- 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 +74 -3
- data/lib/daytona_api_client/models/organization.rb +159 -270
- 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 +74 -3
- data/lib/daytona_api_client/models/organization_suspension.rb +79 -10
- 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 +78 -17
- data/lib/daytona_api_client/models/{paginated_sandboxes_deprecated.rb → paginated_sandboxes.rb} +76 -5
- data/lib/daytona_api_client/models/paginated_snapshots.rb +74 -3
- data/lib/daytona_api_client/models/{paginated_logs.rb → paginated_snapshots_dto.rb} +77 -10
- 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/{metric_data_point.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/{oidc_id_p_config.rb → replace_result.rb} +95 -88
- 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 +101 -206
- 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_region.rb → sandbox_info.rb} +113 -49
- 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/{audit_target_scenario.rb → search_files_response.rb} +95 -66
- data/lib/daytona_api_client/models/send_webhook_dto.rb +75 -26
- 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/{organization_sso_enabled.rb → session_execute_response.rb} +104 -30
- data/lib/daytona_api_client/models/set_snapshot_general_status_dto.rb +74 -3
- 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 +115 -131
- 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 -41
- 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} +299 -222
- data/lib/daytona_api_client/version.rb +2 -2
- data/lib/daytona_api_client.rb +76 -87
- data/project.json +13 -38
- metadata +81 -96
- data/.gitignore +0 -39
- data/.openapi-generator/FILES +0 -176
- 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/admin_api.rb +0 -1618
- 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/admin_create_runner.rb +0 -326
- data/lib/daytona_api_client/models/admin_get_webhook_status200_response.rb +0 -147
- 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_organization_region_quota.rb +0 -386
- 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 -45
- 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/organization_preview_warning.rb +0 -165
- 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_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/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_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_organization_region_quota.rb +0 -313
- 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/warm_pool.rb +0 -490
- data/lib/daytona_api_client/models/webhook_event.rb +0 -46
|
@@ -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,7 +14,7 @@ require 'date'
|
|
|
14
14
|
require 'time'
|
|
15
15
|
|
|
16
16
|
module DaytonaApiClient
|
|
17
|
-
class User
|
|
17
|
+
class User
|
|
18
18
|
# User ID
|
|
19
19
|
attr_accessor :id
|
|
20
20
|
|
|
@@ -24,12 +24,6 @@ module DaytonaApiClient
|
|
|
24
24
|
# User email
|
|
25
25
|
attr_accessor :email
|
|
26
26
|
|
|
27
|
-
# Whether the user email address has been verified
|
|
28
|
-
attr_accessor :email_verified
|
|
29
|
-
|
|
30
|
-
# HMAC of the user email for Pylon support-widget identity verification
|
|
31
|
-
attr_accessor :pylon_email_hash
|
|
32
|
-
|
|
33
27
|
# User public keys
|
|
34
28
|
attr_accessor :public_keys
|
|
35
29
|
|
|
@@ -42,8 +36,6 @@ module DaytonaApiClient
|
|
|
42
36
|
:'id' => :'id',
|
|
43
37
|
:'name' => :'name',
|
|
44
38
|
:'email' => :'email',
|
|
45
|
-
:'email_verified' => :'emailVerified',
|
|
46
|
-
:'pylon_email_hash' => :'pylonEmailHash',
|
|
47
39
|
:'public_keys' => :'publicKeys',
|
|
48
40
|
:'created_at' => :'createdAt'
|
|
49
41
|
}
|
|
@@ -65,8 +57,6 @@ module DaytonaApiClient
|
|
|
65
57
|
:'id' => :'String',
|
|
66
58
|
:'name' => :'String',
|
|
67
59
|
:'email' => :'String',
|
|
68
|
-
:'email_verified' => :'Boolean',
|
|
69
|
-
:'pylon_email_hash' => :'String',
|
|
70
60
|
:'public_keys' => :'Array<UserPublicKey>',
|
|
71
61
|
:'created_at' => :'Time'
|
|
72
62
|
}
|
|
@@ -112,16 +102,6 @@ module DaytonaApiClient
|
|
|
112
102
|
self.email = nil
|
|
113
103
|
end
|
|
114
104
|
|
|
115
|
-
if attributes.key?(:'email_verified')
|
|
116
|
-
self.email_verified = attributes[:'email_verified']
|
|
117
|
-
else
|
|
118
|
-
self.email_verified = nil
|
|
119
|
-
end
|
|
120
|
-
|
|
121
|
-
if attributes.key?(:'pylon_email_hash')
|
|
122
|
-
self.pylon_email_hash = attributes[:'pylon_email_hash']
|
|
123
|
-
end
|
|
124
|
-
|
|
125
105
|
if attributes.key?(:'public_keys')
|
|
126
106
|
if (value = attributes[:'public_keys']).is_a?(Array)
|
|
127
107
|
self.public_keys = value
|
|
@@ -154,10 +134,6 @@ module DaytonaApiClient
|
|
|
154
134
|
invalid_properties.push('invalid value for "email", email cannot be nil.')
|
|
155
135
|
end
|
|
156
136
|
|
|
157
|
-
if @email_verified.nil?
|
|
158
|
-
invalid_properties.push('invalid value for "email_verified", email_verified cannot be nil.')
|
|
159
|
-
end
|
|
160
|
-
|
|
161
137
|
if @public_keys.nil?
|
|
162
138
|
invalid_properties.push('invalid value for "public_keys", public_keys cannot be nil.')
|
|
163
139
|
end
|
|
@@ -176,7 +152,6 @@ module DaytonaApiClient
|
|
|
176
152
|
return false if @id.nil?
|
|
177
153
|
return false if @name.nil?
|
|
178
154
|
return false if @email.nil?
|
|
179
|
-
return false if @email_verified.nil?
|
|
180
155
|
return false if @public_keys.nil?
|
|
181
156
|
return false if @created_at.nil?
|
|
182
157
|
true
|
|
@@ -212,16 +187,6 @@ module DaytonaApiClient
|
|
|
212
187
|
@email = email
|
|
213
188
|
end
|
|
214
189
|
|
|
215
|
-
# Custom attribute writer method with validation
|
|
216
|
-
# @param [Object] email_verified Value to be assigned
|
|
217
|
-
def email_verified=(email_verified)
|
|
218
|
-
if email_verified.nil?
|
|
219
|
-
fail ArgumentError, 'email_verified cannot be nil'
|
|
220
|
-
end
|
|
221
|
-
|
|
222
|
-
@email_verified = email_verified
|
|
223
|
-
end
|
|
224
|
-
|
|
225
190
|
# Custom attribute writer method with validation
|
|
226
191
|
# @param [Object] public_keys Value to be assigned
|
|
227
192
|
def public_keys=(public_keys)
|
|
@@ -250,8 +215,6 @@ module DaytonaApiClient
|
|
|
250
215
|
id == o.id &&
|
|
251
216
|
name == o.name &&
|
|
252
217
|
email == o.email &&
|
|
253
|
-
email_verified == o.email_verified &&
|
|
254
|
-
pylon_email_hash == o.pylon_email_hash &&
|
|
255
218
|
public_keys == o.public_keys &&
|
|
256
219
|
created_at == o.created_at
|
|
257
220
|
end
|
|
@@ -265,7 +228,7 @@ module DaytonaApiClient
|
|
|
265
228
|
# Calculates hash code according to all attributes.
|
|
266
229
|
# @return [Integer] Hash code
|
|
267
230
|
def hash
|
|
268
|
-
[id, name, email,
|
|
231
|
+
[id, name, email, public_keys, created_at].hash
|
|
269
232
|
end
|
|
270
233
|
|
|
271
234
|
# Builds the object from hash
|
|
@@ -291,6 +254,61 @@ module DaytonaApiClient
|
|
|
291
254
|
new(transformed_hash)
|
|
292
255
|
end
|
|
293
256
|
|
|
257
|
+
# Deserializes the data based on type
|
|
258
|
+
# @param string type Data type
|
|
259
|
+
# @param string value Value to be deserialized
|
|
260
|
+
# @return [Object] Deserialized data
|
|
261
|
+
def self._deserialize(type, value)
|
|
262
|
+
case type.to_sym
|
|
263
|
+
when :Time
|
|
264
|
+
Time.parse(value)
|
|
265
|
+
when :Date
|
|
266
|
+
Date.parse(value)
|
|
267
|
+
when :String
|
|
268
|
+
value.to_s
|
|
269
|
+
when :Integer
|
|
270
|
+
value.to_i
|
|
271
|
+
when :Float
|
|
272
|
+
value.to_f
|
|
273
|
+
when :Boolean
|
|
274
|
+
if value.to_s =~ /\A(true|t|yes|y|1)\z/i
|
|
275
|
+
true
|
|
276
|
+
else
|
|
277
|
+
false
|
|
278
|
+
end
|
|
279
|
+
when :Object
|
|
280
|
+
# generic object (usually a Hash), return directly
|
|
281
|
+
value
|
|
282
|
+
when /\AArray<(?<inner_type>.+)>\z/
|
|
283
|
+
inner_type = Regexp.last_match[:inner_type]
|
|
284
|
+
value.map { |v| _deserialize(inner_type, v) }
|
|
285
|
+
when /\AHash<(?<k_type>.+?), (?<v_type>.+)>\z/
|
|
286
|
+
k_type = Regexp.last_match[:k_type]
|
|
287
|
+
v_type = Regexp.last_match[:v_type]
|
|
288
|
+
{}.tap do |hash|
|
|
289
|
+
value.each do |k, v|
|
|
290
|
+
hash[_deserialize(k_type, k)] = _deserialize(v_type, v)
|
|
291
|
+
end
|
|
292
|
+
end
|
|
293
|
+
else # model
|
|
294
|
+
# models (e.g. Pet) or oneOf
|
|
295
|
+
klass = DaytonaApiClient.const_get(type)
|
|
296
|
+
klass.respond_to?(:openapi_any_of) || klass.respond_to?(:openapi_one_of) ? klass.build(value) : klass.build_from_hash(value)
|
|
297
|
+
end
|
|
298
|
+
end
|
|
299
|
+
|
|
300
|
+
# Returns the string representation of the object
|
|
301
|
+
# @return [String] String presentation of the object
|
|
302
|
+
def to_s
|
|
303
|
+
to_hash.to_s
|
|
304
|
+
end
|
|
305
|
+
|
|
306
|
+
# to_body is an alias to to_hash (backward compatibility)
|
|
307
|
+
# @return [Hash] Returns the object in the form of hash
|
|
308
|
+
def to_body
|
|
309
|
+
to_hash
|
|
310
|
+
end
|
|
311
|
+
|
|
294
312
|
# Returns the object in the form of hash
|
|
295
313
|
# @return [Hash] Returns the object in the form of hash
|
|
296
314
|
def to_hash
|
|
@@ -307,6 +325,22 @@ module DaytonaApiClient
|
|
|
307
325
|
hash
|
|
308
326
|
end
|
|
309
327
|
|
|
328
|
+
# Outputs non-array value in the form of hash
|
|
329
|
+
# For object, use to_hash. Otherwise, just return the value
|
|
330
|
+
# @param [Object] value Any valid value
|
|
331
|
+
# @return [Hash] Returns the value in the form of hash
|
|
332
|
+
def _to_hash(value)
|
|
333
|
+
if value.is_a?(Array)
|
|
334
|
+
value.compact.map { |v| _to_hash(v) }
|
|
335
|
+
elsif value.is_a?(Hash)
|
|
336
|
+
{}.tap do |hash|
|
|
337
|
+
value.each { |k, v| hash[k] = _to_hash(v) }
|
|
338
|
+
end
|
|
339
|
+
elsif value.respond_to? :to_hash
|
|
340
|
+
value.to_hash
|
|
341
|
+
else
|
|
342
|
+
value
|
|
343
|
+
end
|
|
344
|
+
end
|
|
310
345
|
end
|
|
311
|
-
|
|
312
346
|
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.12.0
|
|
10
10
|
|
|
11
11
|
=end
|
|
12
12
|
|
|
@@ -14,22 +14,13 @@ require 'date'
|
|
|
14
14
|
require 'time'
|
|
15
15
|
|
|
16
16
|
module DaytonaApiClient
|
|
17
|
-
class
|
|
18
|
-
|
|
19
|
-
attr_accessor :items
|
|
20
|
-
|
|
21
|
-
# Total number of secrets matching the filters
|
|
22
|
-
attr_accessor :total
|
|
23
|
-
|
|
24
|
-
# Cursor for the next page of results
|
|
25
|
-
attr_accessor :next_cursor
|
|
17
|
+
class UserHomeDirResponse
|
|
18
|
+
attr_accessor :dir
|
|
26
19
|
|
|
27
20
|
# Attribute mapping from ruby-style variable name to JSON key.
|
|
28
21
|
def self.attribute_map
|
|
29
22
|
{
|
|
30
|
-
:'
|
|
31
|
-
:'total' => :'total',
|
|
32
|
-
:'next_cursor' => :'nextCursor'
|
|
23
|
+
:'dir' => :'dir'
|
|
33
24
|
}
|
|
34
25
|
end
|
|
35
26
|
|
|
@@ -46,16 +37,13 @@ module DaytonaApiClient
|
|
|
46
37
|
# Attribute type mapping.
|
|
47
38
|
def self.openapi_types
|
|
48
39
|
{
|
|
49
|
-
:'
|
|
50
|
-
:'total' => :'Float',
|
|
51
|
-
:'next_cursor' => :'String'
|
|
40
|
+
:'dir' => :'String'
|
|
52
41
|
}
|
|
53
42
|
end
|
|
54
43
|
|
|
55
44
|
# List of attributes with nullable: true
|
|
56
45
|
def self.openapi_nullable
|
|
57
46
|
Set.new([
|
|
58
|
-
:'next_cursor'
|
|
59
47
|
])
|
|
60
48
|
end
|
|
61
49
|
|
|
@@ -63,36 +51,20 @@ module DaytonaApiClient
|
|
|
63
51
|
# @param [Hash] attributes Model attributes in the form of hash
|
|
64
52
|
def initialize(attributes = {})
|
|
65
53
|
if (!attributes.is_a?(Hash))
|
|
66
|
-
fail ArgumentError, "The input argument (attributes) must be a hash in `DaytonaApiClient::
|
|
54
|
+
fail ArgumentError, "The input argument (attributes) must be a hash in `DaytonaApiClient::UserHomeDirResponse` initialize method"
|
|
67
55
|
end
|
|
68
56
|
|
|
69
57
|
# check to see if the attribute exists and convert string to symbol for hash key
|
|
70
58
|
acceptable_attribute_map = self.class.acceptable_attribute_map
|
|
71
59
|
attributes = attributes.each_with_object({}) { |(k, v), h|
|
|
72
60
|
if (!acceptable_attribute_map.key?(k.to_sym))
|
|
73
|
-
fail ArgumentError, "`#{k}` is not a valid attribute in `DaytonaApiClient::
|
|
61
|
+
fail ArgumentError, "`#{k}` is not a valid attribute in `DaytonaApiClient::UserHomeDirResponse`. Please check the name to make sure it's valid. List of attributes: " + acceptable_attribute_map.keys.inspect
|
|
74
62
|
end
|
|
75
63
|
h[k.to_sym] = v
|
|
76
64
|
}
|
|
77
65
|
|
|
78
|
-
if attributes.key?(:'
|
|
79
|
-
|
|
80
|
-
self.items = value
|
|
81
|
-
end
|
|
82
|
-
else
|
|
83
|
-
self.items = nil
|
|
84
|
-
end
|
|
85
|
-
|
|
86
|
-
if attributes.key?(:'total')
|
|
87
|
-
self.total = attributes[:'total']
|
|
88
|
-
else
|
|
89
|
-
self.total = nil
|
|
90
|
-
end
|
|
91
|
-
|
|
92
|
-
if attributes.key?(:'next_cursor')
|
|
93
|
-
self.next_cursor = attributes[:'next_cursor']
|
|
94
|
-
else
|
|
95
|
-
self.next_cursor = nil
|
|
66
|
+
if attributes.key?(:'dir')
|
|
67
|
+
self.dir = attributes[:'dir']
|
|
96
68
|
end
|
|
97
69
|
end
|
|
98
70
|
|
|
@@ -101,14 +73,6 @@ module DaytonaApiClient
|
|
|
101
73
|
def list_invalid_properties
|
|
102
74
|
warn '[DEPRECATED] the `list_invalid_properties` method is obsolete'
|
|
103
75
|
invalid_properties = Array.new
|
|
104
|
-
if @items.nil?
|
|
105
|
-
invalid_properties.push('invalid value for "items", items cannot be nil.')
|
|
106
|
-
end
|
|
107
|
-
|
|
108
|
-
if @total.nil?
|
|
109
|
-
invalid_properties.push('invalid value for "total", total cannot be nil.')
|
|
110
|
-
end
|
|
111
|
-
|
|
112
76
|
invalid_properties
|
|
113
77
|
end
|
|
114
78
|
|
|
@@ -116,39 +80,15 @@ module DaytonaApiClient
|
|
|
116
80
|
# @return true if the model is valid
|
|
117
81
|
def valid?
|
|
118
82
|
warn '[DEPRECATED] the `valid?` method is obsolete'
|
|
119
|
-
return false if @items.nil?
|
|
120
|
-
return false if @total.nil?
|
|
121
83
|
true
|
|
122
84
|
end
|
|
123
85
|
|
|
124
|
-
# Custom attribute writer method with validation
|
|
125
|
-
# @param [Object] items Value to be assigned
|
|
126
|
-
def items=(items)
|
|
127
|
-
if items.nil?
|
|
128
|
-
fail ArgumentError, 'items cannot be nil'
|
|
129
|
-
end
|
|
130
|
-
|
|
131
|
-
@items = items
|
|
132
|
-
end
|
|
133
|
-
|
|
134
|
-
# Custom attribute writer method with validation
|
|
135
|
-
# @param [Object] total Value to be assigned
|
|
136
|
-
def total=(total)
|
|
137
|
-
if total.nil?
|
|
138
|
-
fail ArgumentError, 'total cannot be nil'
|
|
139
|
-
end
|
|
140
|
-
|
|
141
|
-
@total = total
|
|
142
|
-
end
|
|
143
|
-
|
|
144
86
|
# Checks equality by comparing each attribute.
|
|
145
87
|
# @param [Object] Object to be compared
|
|
146
88
|
def ==(o)
|
|
147
89
|
return true if self.equal?(o)
|
|
148
90
|
self.class == o.class &&
|
|
149
|
-
|
|
150
|
-
total == o.total &&
|
|
151
|
-
next_cursor == o.next_cursor
|
|
91
|
+
dir == o.dir
|
|
152
92
|
end
|
|
153
93
|
|
|
154
94
|
# @see the `==` method
|
|
@@ -160,7 +100,7 @@ module DaytonaApiClient
|
|
|
160
100
|
# Calculates hash code according to all attributes.
|
|
161
101
|
# @return [Integer] Hash code
|
|
162
102
|
def hash
|
|
163
|
-
[
|
|
103
|
+
[dir].hash
|
|
164
104
|
end
|
|
165
105
|
|
|
166
106
|
# Builds the object from hash
|
|
@@ -186,6 +126,61 @@ module DaytonaApiClient
|
|
|
186
126
|
new(transformed_hash)
|
|
187
127
|
end
|
|
188
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 = DaytonaApiClient.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
|
+
|
|
189
184
|
# Returns the object in the form of hash
|
|
190
185
|
# @return [Hash] Returns the object in the form of hash
|
|
191
186
|
def to_hash
|
|
@@ -202,6 +197,22 @@ module DaytonaApiClient
|
|
|
202
197
|
hash
|
|
203
198
|
end
|
|
204
199
|
|
|
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
|
|
205
217
|
end
|
|
206
|
-
|
|
207
218
|
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.12.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 UserPublicKey
|
|
17
|
+
class UserPublicKey
|
|
18
18
|
# Public key
|
|
19
19
|
attr_accessor :key
|
|
20
20
|
|
|
@@ -171,6 +171,61 @@ module DaytonaApiClient
|
|
|
171
171
|
new(transformed_hash)
|
|
172
172
|
end
|
|
173
173
|
|
|
174
|
+
# Deserializes the data based on type
|
|
175
|
+
# @param string type Data type
|
|
176
|
+
# @param string value Value to be deserialized
|
|
177
|
+
# @return [Object] Deserialized data
|
|
178
|
+
def self._deserialize(type, value)
|
|
179
|
+
case type.to_sym
|
|
180
|
+
when :Time
|
|
181
|
+
Time.parse(value)
|
|
182
|
+
when :Date
|
|
183
|
+
Date.parse(value)
|
|
184
|
+
when :String
|
|
185
|
+
value.to_s
|
|
186
|
+
when :Integer
|
|
187
|
+
value.to_i
|
|
188
|
+
when :Float
|
|
189
|
+
value.to_f
|
|
190
|
+
when :Boolean
|
|
191
|
+
if value.to_s =~ /\A(true|t|yes|y|1)\z/i
|
|
192
|
+
true
|
|
193
|
+
else
|
|
194
|
+
false
|
|
195
|
+
end
|
|
196
|
+
when :Object
|
|
197
|
+
# generic object (usually a Hash), return directly
|
|
198
|
+
value
|
|
199
|
+
when /\AArray<(?<inner_type>.+)>\z/
|
|
200
|
+
inner_type = Regexp.last_match[:inner_type]
|
|
201
|
+
value.map { |v| _deserialize(inner_type, v) }
|
|
202
|
+
when /\AHash<(?<k_type>.+?), (?<v_type>.+)>\z/
|
|
203
|
+
k_type = Regexp.last_match[:k_type]
|
|
204
|
+
v_type = Regexp.last_match[:v_type]
|
|
205
|
+
{}.tap do |hash|
|
|
206
|
+
value.each do |k, v|
|
|
207
|
+
hash[_deserialize(k_type, k)] = _deserialize(v_type, v)
|
|
208
|
+
end
|
|
209
|
+
end
|
|
210
|
+
else # model
|
|
211
|
+
# models (e.g. Pet) or oneOf
|
|
212
|
+
klass = DaytonaApiClient.const_get(type)
|
|
213
|
+
klass.respond_to?(:openapi_any_of) || klass.respond_to?(:openapi_one_of) ? klass.build(value) : klass.build_from_hash(value)
|
|
214
|
+
end
|
|
215
|
+
end
|
|
216
|
+
|
|
217
|
+
# Returns the string representation of the object
|
|
218
|
+
# @return [String] String presentation of the object
|
|
219
|
+
def to_s
|
|
220
|
+
to_hash.to_s
|
|
221
|
+
end
|
|
222
|
+
|
|
223
|
+
# to_body is an alias to to_hash (backward compatibility)
|
|
224
|
+
# @return [Hash] Returns the object in the form of hash
|
|
225
|
+
def to_body
|
|
226
|
+
to_hash
|
|
227
|
+
end
|
|
228
|
+
|
|
174
229
|
# Returns the object in the form of hash
|
|
175
230
|
# @return [Hash] Returns the object in the form of hash
|
|
176
231
|
def to_hash
|
|
@@ -187,6 +242,22 @@ module DaytonaApiClient
|
|
|
187
242
|
hash
|
|
188
243
|
end
|
|
189
244
|
|
|
245
|
+
# Outputs non-array value in the form of hash
|
|
246
|
+
# For object, use to_hash. Otherwise, just return the value
|
|
247
|
+
# @param [Object] value Any valid value
|
|
248
|
+
# @return [Hash] Returns the value in the form of hash
|
|
249
|
+
def _to_hash(value)
|
|
250
|
+
if value.is_a?(Array)
|
|
251
|
+
value.compact.map { |v| _to_hash(v) }
|
|
252
|
+
elsif value.is_a?(Hash)
|
|
253
|
+
{}.tap do |hash|
|
|
254
|
+
value.each { |k, v| hash[k] = _to_hash(v) }
|
|
255
|
+
end
|
|
256
|
+
elsif value.respond_to? :to_hash
|
|
257
|
+
value.to_hash
|
|
258
|
+
else
|
|
259
|
+
value
|
|
260
|
+
end
|
|
261
|
+
end
|
|
190
262
|
end
|
|
191
|
-
|
|
192
263
|
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.12.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 VolumeDto
|
|
17
|
+
class VolumeDto
|
|
18
18
|
# Volume ID
|
|
19
19
|
attr_accessor :id
|
|
20
20
|
|
|
@@ -325,6 +325,61 @@ module DaytonaApiClient
|
|
|
325
325
|
new(transformed_hash)
|
|
326
326
|
end
|
|
327
327
|
|
|
328
|
+
# Deserializes the data based on type
|
|
329
|
+
# @param string type Data type
|
|
330
|
+
# @param string value Value to be deserialized
|
|
331
|
+
# @return [Object] Deserialized data
|
|
332
|
+
def self._deserialize(type, value)
|
|
333
|
+
case type.to_sym
|
|
334
|
+
when :Time
|
|
335
|
+
Time.parse(value)
|
|
336
|
+
when :Date
|
|
337
|
+
Date.parse(value)
|
|
338
|
+
when :String
|
|
339
|
+
value.to_s
|
|
340
|
+
when :Integer
|
|
341
|
+
value.to_i
|
|
342
|
+
when :Float
|
|
343
|
+
value.to_f
|
|
344
|
+
when :Boolean
|
|
345
|
+
if value.to_s =~ /\A(true|t|yes|y|1)\z/i
|
|
346
|
+
true
|
|
347
|
+
else
|
|
348
|
+
false
|
|
349
|
+
end
|
|
350
|
+
when :Object
|
|
351
|
+
# generic object (usually a Hash), return directly
|
|
352
|
+
value
|
|
353
|
+
when /\AArray<(?<inner_type>.+)>\z/
|
|
354
|
+
inner_type = Regexp.last_match[:inner_type]
|
|
355
|
+
value.map { |v| _deserialize(inner_type, v) }
|
|
356
|
+
when /\AHash<(?<k_type>.+?), (?<v_type>.+)>\z/
|
|
357
|
+
k_type = Regexp.last_match[:k_type]
|
|
358
|
+
v_type = Regexp.last_match[:v_type]
|
|
359
|
+
{}.tap do |hash|
|
|
360
|
+
value.each do |k, v|
|
|
361
|
+
hash[_deserialize(k_type, k)] = _deserialize(v_type, v)
|
|
362
|
+
end
|
|
363
|
+
end
|
|
364
|
+
else # model
|
|
365
|
+
# models (e.g. Pet) or oneOf
|
|
366
|
+
klass = DaytonaApiClient.const_get(type)
|
|
367
|
+
klass.respond_to?(:openapi_any_of) || klass.respond_to?(:openapi_one_of) ? klass.build(value) : klass.build_from_hash(value)
|
|
368
|
+
end
|
|
369
|
+
end
|
|
370
|
+
|
|
371
|
+
# Returns the string representation of the object
|
|
372
|
+
# @return [String] String presentation of the object
|
|
373
|
+
def to_s
|
|
374
|
+
to_hash.to_s
|
|
375
|
+
end
|
|
376
|
+
|
|
377
|
+
# to_body is an alias to to_hash (backward compatibility)
|
|
378
|
+
# @return [Hash] Returns the object in the form of hash
|
|
379
|
+
def to_body
|
|
380
|
+
to_hash
|
|
381
|
+
end
|
|
382
|
+
|
|
328
383
|
# Returns the object in the form of hash
|
|
329
384
|
# @return [Hash] Returns the object in the form of hash
|
|
330
385
|
def to_hash
|
|
@@ -341,6 +396,22 @@ module DaytonaApiClient
|
|
|
341
396
|
hash
|
|
342
397
|
end
|
|
343
398
|
|
|
399
|
+
# Outputs non-array value in the form of hash
|
|
400
|
+
# For object, use to_hash. Otherwise, just return the value
|
|
401
|
+
# @param [Object] value Any valid value
|
|
402
|
+
# @return [Hash] Returns the value in the form of hash
|
|
403
|
+
def _to_hash(value)
|
|
404
|
+
if value.is_a?(Array)
|
|
405
|
+
value.compact.map { |v| _to_hash(v) }
|
|
406
|
+
elsif value.is_a?(Hash)
|
|
407
|
+
{}.tap do |hash|
|
|
408
|
+
value.each { |k, v| hash[k] = _to_hash(v) }
|
|
409
|
+
end
|
|
410
|
+
elsif value.respond_to? :to_hash
|
|
411
|
+
value.to_hash
|
|
412
|
+
else
|
|
413
|
+
value
|
|
414
|
+
end
|
|
415
|
+
end
|
|
344
416
|
end
|
|
345
|
-
|
|
346
417
|
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.12.0
|
|
10
10
|
|
|
11
11
|
=end
|
|
12
12
|
|
|
@@ -22,10 +22,9 @@ module DaytonaApiClient
|
|
|
22
22
|
DELETING = "deleting".freeze
|
|
23
23
|
DELETED = "deleted".freeze
|
|
24
24
|
ERROR = "error".freeze
|
|
25
|
-
UNKNOWN_DEFAULT_OPEN_API = "unknown_default_open_api".freeze
|
|
26
25
|
|
|
27
26
|
def self.all_vars
|
|
28
|
-
@all_vars ||= [CREATING, READY, PENDING_CREATE, PENDING_DELETE, DELETING, DELETED, ERROR
|
|
27
|
+
@all_vars ||= [CREATING, READY, PENDING_CREATE, PENDING_DELETE, DELETING, DELETED, ERROR].freeze
|
|
29
28
|
end
|
|
30
29
|
|
|
31
30
|
# Builds the enum from string
|
|
@@ -40,7 +39,7 @@ module DaytonaApiClient
|
|
|
40
39
|
# @return [String] The enum value
|
|
41
40
|
def build_from_hash(value)
|
|
42
41
|
return value if VolumeState.all_vars.include?(value)
|
|
43
|
-
|
|
42
|
+
raise "Invalid ENUM value #{value} for class #VolumeState"
|
|
44
43
|
end
|
|
45
44
|
end
|
|
46
45
|
end
|