daytona_api_client 0.192.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 +140 -40
- 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 +155 -1075
- data/lib/daytona_api_client/api/preview_api.rb +8 -77
- data/lib/daytona_api_client/api/runners_api.rb +22 -412
- data/lib/daytona_api_client/api/sandbox_api.rb +346 -1901
- data/lib/daytona_api_client/api/snapshots_api.rb +113 -39
- data/lib/daytona_api_client/api/toolbox_api.rb +741 -741
- data/lib/daytona_api_client/api/users_api.rb +239 -2
- 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/command.rb +74 -3
- data/lib/daytona_api_client/models/completion_context.rb +74 -3
- data/lib/daytona_api_client/models/completion_item.rb +74 -3
- data/lib/daytona_api_client/models/completion_list.rb +74 -3
- data/lib/daytona_api_client/models/compressed_screenshot_response.rb +74 -3
- data/lib/daytona_api_client/models/computer_use_start_response.rb +74 -3
- data/lib/daytona_api_client/models/computer_use_status_response.rb +76 -5
- data/lib/daytona_api_client/models/computer_use_stop_response.rb +74 -3
- 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 -17
- 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 -56
- data/lib/daytona_api_client/models/create_session_request.rb +74 -3
- data/lib/daytona_api_client/models/create_snapshot.rb +88 -61
- data/lib/daytona_api_client/models/create_user.rb +77 -15
- 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 -64
- data/lib/daytona_api_client/models/display_info_response.rb +74 -3
- data/lib/daytona_api_client/models/docker_registry.rb +76 -5
- data/lib/daytona_api_client/models/download_files.rb +74 -3
- data/lib/daytona_api_client/models/execute_request.rb +74 -3
- data/lib/daytona_api_client/models/execute_response.rb +74 -3
- data/lib/daytona_api_client/models/file_info.rb +74 -3
- data/lib/daytona_api_client/models/file_status.rb +74 -3
- data/lib/daytona_api_client/models/git_add_request.rb +74 -3
- data/lib/daytona_api_client/models/git_branch_request.rb +74 -3
- data/lib/daytona_api_client/models/git_checkout_request.rb +74 -3
- data/lib/daytona_api_client/models/git_clone_request.rb +74 -3
- data/lib/daytona_api_client/models/git_commit_info.rb +74 -3
- data/lib/daytona_api_client/models/git_commit_request.rb +74 -3
- data/lib/daytona_api_client/models/git_commit_response.rb +74 -3
- data/lib/daytona_api_client/models/git_delete_branch_request.rb +74 -3
- data/lib/daytona_api_client/models/git_repo_request.rb +74 -3
- data/lib/daytona_api_client/models/git_status.rb +74 -3
- 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/keyboard_hotkey_request.rb +74 -3
- data/lib/daytona_api_client/models/keyboard_press_request.rb +74 -3
- data/lib/daytona_api_client/models/keyboard_type_request.rb +74 -3
- data/lib/daytona_api_client/models/list_branch_response.rb +74 -3
- data/lib/daytona_api_client/models/lsp_completion_params.rb +74 -3
- data/lib/daytona_api_client/models/lsp_document_request.rb +74 -3
- data/lib/daytona_api_client/models/lsp_location.rb +74 -3
- data/lib/daytona_api_client/models/lsp_server_request.rb +74 -3
- data/lib/daytona_api_client/models/lsp_symbol.rb +74 -3
- data/lib/daytona_api_client/models/match.rb +74 -3
- data/lib/daytona_api_client/models/mouse_click_request.rb +74 -3
- data/lib/daytona_api_client/models/mouse_click_response.rb +74 -3
- data/lib/daytona_api_client/models/mouse_drag_request.rb +74 -3
- data/lib/daytona_api_client/models/mouse_drag_response.rb +74 -3
- data/lib/daytona_api_client/models/mouse_move_request.rb +74 -3
- data/lib/daytona_api_client/models/mouse_move_response.rb +74 -3
- data/lib/daytona_api_client/models/mouse_position.rb +74 -3
- data/lib/daytona_api_client/models/mouse_scroll_request.rb +74 -3
- data/lib/daytona_api_client/models/mouse_scroll_response.rb +74 -3
- data/lib/daytona_api_client/models/oidc_config.rb +74 -3
- data/lib/daytona_api_client/models/organization.rb +159 -162
- 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_jobs.rb → paginated_snapshots_dto.rb} +77 -6
- data/lib/daytona_api_client/models/port_preview_url.rb +88 -34
- data/lib/daytona_api_client/models/position.rb +74 -3
- data/lib/daytona_api_client/models/posthog_config.rb +74 -3
- data/lib/daytona_api_client/models/process_errors_response.rb +74 -3
- data/lib/daytona_api_client/models/process_logs_response.rb +74 -3
- data/lib/daytona_api_client/models/process_restart_response.rb +74 -3
- data/lib/daytona_api_client/models/process_status_response.rb +74 -3
- data/lib/daytona_api_client/models/project_dir_response.rb +74 -3
- data/lib/daytona_api_client/models/pty_create_request.rb +74 -3
- data/lib/daytona_api_client/models/pty_create_response.rb +74 -3
- data/lib/daytona_api_client/models/pty_list_response.rb +74 -3
- data/lib/daytona_api_client/models/pty_resize_request.rb +74 -3
- data/lib/daytona_api_client/models/pty_session_info.rb +74 -3
- data/lib/daytona_api_client/models/range.rb +74 -3
- data/lib/daytona_api_client/models/region.rb +78 -181
- data/lib/daytona_api_client/models/region_screenshot_response.rb +74 -3
- data/lib/daytona_api_client/models/registry_push_access_dto.rb +74 -3
- data/lib/daytona_api_client/models/replace_request.rb +74 -3
- data/lib/daytona_api_client/models/replace_result.rb +74 -3
- 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 +104 -137
- 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_secret.rb → sandbox_info.rb} +112 -53
- 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 +74 -3
- data/lib/daytona_api_client/models/search_files_response.rb +74 -3
- data/lib/daytona_api_client/models/send_webhook_dto.rb +75 -26
- data/lib/daytona_api_client/models/session.rb +74 -3
- data/lib/daytona_api_client/models/session_execute_request.rb +74 -3
- data/lib/daytona_api_client/models/session_execute_response.rb +74 -3
- data/lib/daytona_api_client/models/set_snapshot_general_status_dto.rb +74 -3
- data/lib/daytona_api_client/models/snapshot_dto.rb +78 -71
- data/lib/daytona_api_client/models/snapshot_state.rb +6 -4
- 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 +74 -3
- 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 -106
- 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 +74 -3
- data/lib/daytona_api_client/models/user_home_dir_response.rb +74 -3
- 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/{admin_get_webhook_status200_response.rb → webhook_controller_get_status200_response.rb} +76 -5
- data/lib/daytona_api_client/models/webhook_initialization_status.rb +74 -3
- data/lib/daytona_api_client/models/windows_response.rb +74 -3
- data/lib/daytona_api_client/models/work_dir_response.rb +74 -3
- data/lib/daytona_api_client/models/{sandbox_list_item.rb → workspace.rb} +344 -168
- data/lib/daytona_api_client/version.rb +2 -2
- data/lib/daytona_api_client.rb +8 -63
- data/project.json +13 -38
- metadata +13 -72
- data/.gitignore +0 -39
- data/.openapi-generator/FILES +0 -220
- 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 -1479
- 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 -350
- 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/create_organization_region_quota.rb +0 -372
- data/lib/daytona_api_client/models/create_region.rb +0 -198
- data/lib/daytona_api_client/models/create_region_response.rb +0 -209
- data/lib/daytona_api_client/models/create_runner_response.rb +0 -192
- data/lib/daytona_api_client/models/create_sandbox_snapshot.rb +0 -177
- 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 -41
- 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 -54
- data/lib/daytona_api_client/models/list_sandboxes_response.rb +0 -180
- data/lib/daytona_api_client/models/log_entry.rb +0 -334
- data/lib/daytona_api_client/models/metric_data_point.rb +0 -192
- 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 -178
- data/lib/daytona_api_client/models/paginated_logs.rb +0 -248
- data/lib/daytona_api_client/models/paginated_traces.rb +0 -248
- 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/regenerate_api_key_response.rb +0 -165
- data/lib/daytona_api_client/models/region_quota.rb +0 -437
- data/lib/daytona_api_client/models/region_type.rb +0 -42
- data/lib/daytona_api_client/models/region_usage_overview.rb +0 -515
- 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/runner_healthcheck.rb +0 -217
- data/lib/daytona_api_client/models/runner_service_health.rb +0 -202
- 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/secret.rb +0 -312
- data/lib/daytona_api_client/models/signed_port_preview_url.rb +0 -246
- data/lib/daytona_api_client/models/snapshot_manager_credentials.rb +0 -192
- data/lib/daytona_api_client/models/string_filter.rb +0 -182
- data/lib/daytona_api_client/models/toolbox_proxy_url.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_job_status.rb +0 -207
- 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 -299
- data/lib/daytona_api_client/models/update_region.rb +0 -171
- data/lib/daytona_api_client/models/update_sandbox_network_settings.rb +0 -168
- data/lib/daytona_api_client/models/update_secret.rb +0 -170
- data/lib/daytona_api_client/models/url.rb +0 -165
- 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
|
|
|
@@ -15,14 +15,12 @@ require 'time'
|
|
|
15
15
|
|
|
16
16
|
module DaytonaApiClient
|
|
17
17
|
class SandboxClass
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
WINDOWS = "windows".freeze
|
|
22
|
-
UNKNOWN_DEFAULT_OPEN_API = "unknown_default_open_api".freeze
|
|
18
|
+
SMALL = "small".freeze
|
|
19
|
+
MEDIUM = "medium".freeze
|
|
20
|
+
LARGE = "large".freeze
|
|
23
21
|
|
|
24
22
|
def self.all_vars
|
|
25
|
-
@all_vars ||= [
|
|
23
|
+
@all_vars ||= [SMALL, MEDIUM, LARGE].freeze
|
|
26
24
|
end
|
|
27
25
|
|
|
28
26
|
# Builds the enum from string
|
|
@@ -37,7 +35,7 @@ module DaytonaApiClient
|
|
|
37
35
|
# @return [String] The enum value
|
|
38
36
|
def build_from_hash(value)
|
|
39
37
|
return value if SandboxClass.all_vars.include?(value)
|
|
40
|
-
|
|
38
|
+
raise "Invalid ENUM value #{value} for class #SandboxClass"
|
|
41
39
|
end
|
|
42
40
|
end
|
|
43
41
|
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
|
|
|
@@ -20,11 +20,9 @@ module DaytonaApiClient
|
|
|
20
20
|
STOPPED = "stopped".freeze
|
|
21
21
|
RESIZED = "resized".freeze
|
|
22
22
|
ARCHIVED = "archived".freeze
|
|
23
|
-
PAUSED = "paused".freeze
|
|
24
|
-
UNKNOWN_DEFAULT_OPEN_API = "unknown_default_open_api".freeze
|
|
25
23
|
|
|
26
24
|
def self.all_vars
|
|
27
|
-
@all_vars ||= [DESTROYED, STARTED, STOPPED, RESIZED, ARCHIVED
|
|
25
|
+
@all_vars ||= [DESTROYED, STARTED, STOPPED, RESIZED, ARCHIVED].freeze
|
|
28
26
|
end
|
|
29
27
|
|
|
30
28
|
# Builds the enum from string
|
|
@@ -39,7 +37,7 @@ module DaytonaApiClient
|
|
|
39
37
|
# @return [String] The enum value
|
|
40
38
|
def build_from_hash(value)
|
|
41
39
|
return value if SandboxDesiredState.all_vars.include?(value)
|
|
42
|
-
|
|
40
|
+
raise "Invalid ENUM value #{value} for class #SandboxDesiredState"
|
|
43
41
|
end
|
|
44
42
|
end
|
|
45
43
|
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,26 +14,22 @@ require 'date'
|
|
|
14
14
|
require 'time'
|
|
15
15
|
|
|
16
16
|
module DaytonaApiClient
|
|
17
|
-
class
|
|
18
|
-
#
|
|
19
|
-
attr_accessor :
|
|
20
|
-
|
|
21
|
-
# Secret value
|
|
22
|
-
attr_accessor :value
|
|
17
|
+
class SandboxInfo
|
|
18
|
+
# The creation timestamp of the project
|
|
19
|
+
attr_accessor :created
|
|
23
20
|
|
|
24
|
-
#
|
|
25
|
-
attr_accessor :
|
|
21
|
+
# Deprecated: The name of the sandbox
|
|
22
|
+
attr_accessor :name
|
|
26
23
|
|
|
27
|
-
#
|
|
28
|
-
attr_accessor :
|
|
24
|
+
# Additional metadata provided by the provider
|
|
25
|
+
attr_accessor :provider_metadata
|
|
29
26
|
|
|
30
27
|
# Attribute mapping from ruby-style variable name to JSON key.
|
|
31
28
|
def self.attribute_map
|
|
32
29
|
{
|
|
30
|
+
:'created' => :'created',
|
|
33
31
|
:'name' => :'name',
|
|
34
|
-
:'
|
|
35
|
-
:'description' => :'description',
|
|
36
|
-
:'hosts' => :'hosts'
|
|
32
|
+
:'provider_metadata' => :'providerMetadata'
|
|
37
33
|
}
|
|
38
34
|
end
|
|
39
35
|
|
|
@@ -50,10 +46,9 @@ module DaytonaApiClient
|
|
|
50
46
|
# Attribute type mapping.
|
|
51
47
|
def self.openapi_types
|
|
52
48
|
{
|
|
49
|
+
:'created' => :'String',
|
|
53
50
|
:'name' => :'String',
|
|
54
|
-
:'
|
|
55
|
-
:'description' => :'String',
|
|
56
|
-
:'hosts' => :'Array<String>'
|
|
51
|
+
:'provider_metadata' => :'String'
|
|
57
52
|
}
|
|
58
53
|
end
|
|
59
54
|
|
|
@@ -67,38 +62,32 @@ module DaytonaApiClient
|
|
|
67
62
|
# @param [Hash] attributes Model attributes in the form of hash
|
|
68
63
|
def initialize(attributes = {})
|
|
69
64
|
if (!attributes.is_a?(Hash))
|
|
70
|
-
fail ArgumentError, "The input argument (attributes) must be a hash in `DaytonaApiClient::
|
|
65
|
+
fail ArgumentError, "The input argument (attributes) must be a hash in `DaytonaApiClient::SandboxInfo` initialize method"
|
|
71
66
|
end
|
|
72
67
|
|
|
73
68
|
# check to see if the attribute exists and convert string to symbol for hash key
|
|
74
69
|
acceptable_attribute_map = self.class.acceptable_attribute_map
|
|
75
70
|
attributes = attributes.each_with_object({}) { |(k, v), h|
|
|
76
71
|
if (!acceptable_attribute_map.key?(k.to_sym))
|
|
77
|
-
fail ArgumentError, "`#{k}` is not a valid attribute in `DaytonaApiClient::
|
|
72
|
+
fail ArgumentError, "`#{k}` is not a valid attribute in `DaytonaApiClient::SandboxInfo`. Please check the name to make sure it's valid. List of attributes: " + acceptable_attribute_map.keys.inspect
|
|
78
73
|
end
|
|
79
74
|
h[k.to_sym] = v
|
|
80
75
|
}
|
|
81
76
|
|
|
82
|
-
if attributes.key?(:'
|
|
83
|
-
self.
|
|
77
|
+
if attributes.key?(:'created')
|
|
78
|
+
self.created = attributes[:'created']
|
|
84
79
|
else
|
|
85
|
-
self.
|
|
80
|
+
self.created = nil
|
|
86
81
|
end
|
|
87
82
|
|
|
88
|
-
if attributes.key?(:'
|
|
89
|
-
self.
|
|
83
|
+
if attributes.key?(:'name')
|
|
84
|
+
self.name = attributes[:'name']
|
|
90
85
|
else
|
|
91
|
-
self.
|
|
86
|
+
self.name = ''
|
|
92
87
|
end
|
|
93
88
|
|
|
94
|
-
if attributes.key?(:'
|
|
95
|
-
self.
|
|
96
|
-
end
|
|
97
|
-
|
|
98
|
-
if attributes.key?(:'hosts')
|
|
99
|
-
if (value = attributes[:'hosts']).is_a?(Array)
|
|
100
|
-
self.hosts = value
|
|
101
|
-
end
|
|
89
|
+
if attributes.key?(:'provider_metadata')
|
|
90
|
+
self.provider_metadata = attributes[:'provider_metadata']
|
|
102
91
|
end
|
|
103
92
|
end
|
|
104
93
|
|
|
@@ -107,12 +96,12 @@ module DaytonaApiClient
|
|
|
107
96
|
def list_invalid_properties
|
|
108
97
|
warn '[DEPRECATED] the `list_invalid_properties` method is obsolete'
|
|
109
98
|
invalid_properties = Array.new
|
|
110
|
-
if @
|
|
111
|
-
invalid_properties.push('invalid value for "
|
|
99
|
+
if @created.nil?
|
|
100
|
+
invalid_properties.push('invalid value for "created", created cannot be nil.')
|
|
112
101
|
end
|
|
113
102
|
|
|
114
|
-
if @
|
|
115
|
-
invalid_properties.push('invalid value for "
|
|
103
|
+
if @name.nil?
|
|
104
|
+
invalid_properties.push('invalid value for "name", name cannot be nil.')
|
|
116
105
|
end
|
|
117
106
|
|
|
118
107
|
invalid_properties
|
|
@@ -122,29 +111,29 @@ module DaytonaApiClient
|
|
|
122
111
|
# @return true if the model is valid
|
|
123
112
|
def valid?
|
|
124
113
|
warn '[DEPRECATED] the `valid?` method is obsolete'
|
|
114
|
+
return false if @created.nil?
|
|
125
115
|
return false if @name.nil?
|
|
126
|
-
return false if @value.nil?
|
|
127
116
|
true
|
|
128
117
|
end
|
|
129
118
|
|
|
130
119
|
# Custom attribute writer method with validation
|
|
131
|
-
# @param [Object]
|
|
132
|
-
def
|
|
133
|
-
if
|
|
134
|
-
fail ArgumentError, '
|
|
120
|
+
# @param [Object] created Value to be assigned
|
|
121
|
+
def created=(created)
|
|
122
|
+
if created.nil?
|
|
123
|
+
fail ArgumentError, 'created cannot be nil'
|
|
135
124
|
end
|
|
136
125
|
|
|
137
|
-
@
|
|
126
|
+
@created = created
|
|
138
127
|
end
|
|
139
128
|
|
|
140
129
|
# Custom attribute writer method with validation
|
|
141
|
-
# @param [Object]
|
|
142
|
-
def
|
|
143
|
-
if
|
|
144
|
-
fail ArgumentError, '
|
|
130
|
+
# @param [Object] name Value to be assigned
|
|
131
|
+
def name=(name)
|
|
132
|
+
if name.nil?
|
|
133
|
+
fail ArgumentError, 'name cannot be nil'
|
|
145
134
|
end
|
|
146
135
|
|
|
147
|
-
@
|
|
136
|
+
@name = name
|
|
148
137
|
end
|
|
149
138
|
|
|
150
139
|
# Checks equality by comparing each attribute.
|
|
@@ -152,10 +141,9 @@ module DaytonaApiClient
|
|
|
152
141
|
def ==(o)
|
|
153
142
|
return true if self.equal?(o)
|
|
154
143
|
self.class == o.class &&
|
|
144
|
+
created == o.created &&
|
|
155
145
|
name == o.name &&
|
|
156
|
-
|
|
157
|
-
description == o.description &&
|
|
158
|
-
hosts == o.hosts
|
|
146
|
+
provider_metadata == o.provider_metadata
|
|
159
147
|
end
|
|
160
148
|
|
|
161
149
|
# @see the `==` method
|
|
@@ -167,7 +155,7 @@ module DaytonaApiClient
|
|
|
167
155
|
# Calculates hash code according to all attributes.
|
|
168
156
|
# @return [Integer] Hash code
|
|
169
157
|
def hash
|
|
170
|
-
[
|
|
158
|
+
[created, name, provider_metadata].hash
|
|
171
159
|
end
|
|
172
160
|
|
|
173
161
|
# Builds the object from hash
|
|
@@ -193,6 +181,61 @@ module DaytonaApiClient
|
|
|
193
181
|
new(transformed_hash)
|
|
194
182
|
end
|
|
195
183
|
|
|
184
|
+
# Deserializes the data based on type
|
|
185
|
+
# @param string type Data type
|
|
186
|
+
# @param string value Value to be deserialized
|
|
187
|
+
# @return [Object] Deserialized data
|
|
188
|
+
def self._deserialize(type, value)
|
|
189
|
+
case type.to_sym
|
|
190
|
+
when :Time
|
|
191
|
+
Time.parse(value)
|
|
192
|
+
when :Date
|
|
193
|
+
Date.parse(value)
|
|
194
|
+
when :String
|
|
195
|
+
value.to_s
|
|
196
|
+
when :Integer
|
|
197
|
+
value.to_i
|
|
198
|
+
when :Float
|
|
199
|
+
value.to_f
|
|
200
|
+
when :Boolean
|
|
201
|
+
if value.to_s =~ /\A(true|t|yes|y|1)\z/i
|
|
202
|
+
true
|
|
203
|
+
else
|
|
204
|
+
false
|
|
205
|
+
end
|
|
206
|
+
when :Object
|
|
207
|
+
# generic object (usually a Hash), return directly
|
|
208
|
+
value
|
|
209
|
+
when /\AArray<(?<inner_type>.+)>\z/
|
|
210
|
+
inner_type = Regexp.last_match[:inner_type]
|
|
211
|
+
value.map { |v| _deserialize(inner_type, v) }
|
|
212
|
+
when /\AHash<(?<k_type>.+?), (?<v_type>.+)>\z/
|
|
213
|
+
k_type = Regexp.last_match[:k_type]
|
|
214
|
+
v_type = Regexp.last_match[:v_type]
|
|
215
|
+
{}.tap do |hash|
|
|
216
|
+
value.each do |k, v|
|
|
217
|
+
hash[_deserialize(k_type, k)] = _deserialize(v_type, v)
|
|
218
|
+
end
|
|
219
|
+
end
|
|
220
|
+
else # model
|
|
221
|
+
# models (e.g. Pet) or oneOf
|
|
222
|
+
klass = DaytonaApiClient.const_get(type)
|
|
223
|
+
klass.respond_to?(:openapi_any_of) || klass.respond_to?(:openapi_one_of) ? klass.build(value) : klass.build_from_hash(value)
|
|
224
|
+
end
|
|
225
|
+
end
|
|
226
|
+
|
|
227
|
+
# Returns the string representation of the object
|
|
228
|
+
# @return [String] String presentation of the object
|
|
229
|
+
def to_s
|
|
230
|
+
to_hash.to_s
|
|
231
|
+
end
|
|
232
|
+
|
|
233
|
+
# to_body is an alias to to_hash (backward compatibility)
|
|
234
|
+
# @return [Hash] Returns the object in the form of hash
|
|
235
|
+
def to_body
|
|
236
|
+
to_hash
|
|
237
|
+
end
|
|
238
|
+
|
|
196
239
|
# Returns the object in the form of hash
|
|
197
240
|
# @return [Hash] Returns the object in the form of hash
|
|
198
241
|
def to_hash
|
|
@@ -209,6 +252,22 @@ module DaytonaApiClient
|
|
|
209
252
|
hash
|
|
210
253
|
end
|
|
211
254
|
|
|
255
|
+
# Outputs non-array value in the form of hash
|
|
256
|
+
# For object, use to_hash. Otherwise, just return the value
|
|
257
|
+
# @param [Object] value Any valid value
|
|
258
|
+
# @return [Hash] Returns the value in the form of hash
|
|
259
|
+
def _to_hash(value)
|
|
260
|
+
if value.is_a?(Array)
|
|
261
|
+
value.compact.map { |v| _to_hash(v) }
|
|
262
|
+
elsif value.is_a?(Hash)
|
|
263
|
+
{}.tap do |hash|
|
|
264
|
+
value.each { |k, v| hash[k] = _to_hash(v) }
|
|
265
|
+
end
|
|
266
|
+
elsif value.respond_to? :to_hash
|
|
267
|
+
value.to_hash
|
|
268
|
+
else
|
|
269
|
+
value
|
|
270
|
+
end
|
|
271
|
+
end
|
|
212
272
|
end
|
|
213
|
-
|
|
214
273
|
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 SandboxLabels
|
|
17
|
+
class SandboxLabels
|
|
18
18
|
# Key-value pairs of labels
|
|
19
19
|
attr_accessor :labels
|
|
20
20
|
|
|
@@ -146,6 +146,61 @@ 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
|
+
|
|
149
204
|
# Returns the object in the form of hash
|
|
150
205
|
# @return [Hash] Returns the object in the form of hash
|
|
151
206
|
def to_hash
|
|
@@ -162,6 +217,22 @@ module DaytonaApiClient
|
|
|
162
217
|
hash
|
|
163
218
|
end
|
|
164
219
|
|
|
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
|
|
165
237
|
end
|
|
166
|
-
|
|
167
238
|
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
|
|
|
@@ -31,16 +31,9 @@ module DaytonaApiClient
|
|
|
31
31
|
PULLING_SNAPSHOT = "pulling_snapshot".freeze
|
|
32
32
|
ARCHIVED = "archived".freeze
|
|
33
33
|
ARCHIVING = "archiving".freeze
|
|
34
|
-
RESIZING = "resizing".freeze
|
|
35
|
-
SNAPSHOTTING = "snapshotting".freeze
|
|
36
|
-
FORKING = "forking".freeze
|
|
37
|
-
PAUSING = "pausing".freeze
|
|
38
|
-
PAUSED = "paused".freeze
|
|
39
|
-
RESUMING = "resuming".freeze
|
|
40
|
-
UNKNOWN_DEFAULT_OPEN_API = "unknown_default_open_api".freeze
|
|
41
34
|
|
|
42
35
|
def self.all_vars
|
|
43
|
-
@all_vars ||= [CREATING, RESTORING, DESTROYED, DESTROYING, STARTED, STOPPED, STARTING, STOPPING, ERROR, BUILD_FAILED, PENDING_BUILD, BUILDING_SNAPSHOT, UNKNOWN, PULLING_SNAPSHOT, ARCHIVED, ARCHIVING
|
|
36
|
+
@all_vars ||= [CREATING, RESTORING, DESTROYED, DESTROYING, STARTED, STOPPED, STARTING, STOPPING, ERROR, BUILD_FAILED, PENDING_BUILD, BUILDING_SNAPSHOT, UNKNOWN, PULLING_SNAPSHOT, ARCHIVED, ARCHIVING].freeze
|
|
44
37
|
end
|
|
45
38
|
|
|
46
39
|
# Builds the enum from string
|
|
@@ -55,7 +48,7 @@ module DaytonaApiClient
|
|
|
55
48
|
# @return [String] The enum value
|
|
56
49
|
def build_from_hash(value)
|
|
57
50
|
return value if SandboxState.all_vars.include?(value)
|
|
58
|
-
|
|
51
|
+
raise "Invalid ENUM value #{value} for class #SandboxState"
|
|
59
52
|
end
|
|
60
53
|
end
|
|
61
54
|
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,18 @@ require 'date'
|
|
|
14
14
|
require 'time'
|
|
15
15
|
|
|
16
16
|
module DaytonaApiClient
|
|
17
|
-
class SandboxVolume
|
|
18
|
-
# The ID
|
|
17
|
+
class SandboxVolume
|
|
18
|
+
# The ID of the volume
|
|
19
19
|
attr_accessor :volume_id
|
|
20
20
|
|
|
21
21
|
# The mount path for the volume
|
|
22
22
|
attr_accessor :mount_path
|
|
23
23
|
|
|
24
|
-
# Optional subpath within the volume to mount. When specified, only this S3 prefix will be accessible. When omitted, the entire volume is mounted.
|
|
25
|
-
attr_accessor :subpath
|
|
26
|
-
|
|
27
24
|
# Attribute mapping from ruby-style variable name to JSON key.
|
|
28
25
|
def self.attribute_map
|
|
29
26
|
{
|
|
30
27
|
:'volume_id' => :'volumeId',
|
|
31
|
-
:'mount_path' => :'mountPath'
|
|
32
|
-
:'subpath' => :'subpath'
|
|
28
|
+
:'mount_path' => :'mountPath'
|
|
33
29
|
}
|
|
34
30
|
end
|
|
35
31
|
|
|
@@ -47,8 +43,7 @@ module DaytonaApiClient
|
|
|
47
43
|
def self.openapi_types
|
|
48
44
|
{
|
|
49
45
|
:'volume_id' => :'String',
|
|
50
|
-
:'mount_path' => :'String'
|
|
51
|
-
:'subpath' => :'String'
|
|
46
|
+
:'mount_path' => :'String'
|
|
52
47
|
}
|
|
53
48
|
end
|
|
54
49
|
|
|
@@ -85,10 +80,6 @@ module DaytonaApiClient
|
|
|
85
80
|
else
|
|
86
81
|
self.mount_path = nil
|
|
87
82
|
end
|
|
88
|
-
|
|
89
|
-
if attributes.key?(:'subpath')
|
|
90
|
-
self.subpath = attributes[:'subpath']
|
|
91
|
-
end
|
|
92
83
|
end
|
|
93
84
|
|
|
94
85
|
# Show invalid properties with the reasons. Usually used together with valid?
|
|
@@ -142,8 +133,7 @@ module DaytonaApiClient
|
|
|
142
133
|
return true if self.equal?(o)
|
|
143
134
|
self.class == o.class &&
|
|
144
135
|
volume_id == o.volume_id &&
|
|
145
|
-
mount_path == o.mount_path
|
|
146
|
-
subpath == o.subpath
|
|
136
|
+
mount_path == o.mount_path
|
|
147
137
|
end
|
|
148
138
|
|
|
149
139
|
# @see the `==` method
|
|
@@ -155,7 +145,7 @@ module DaytonaApiClient
|
|
|
155
145
|
# Calculates hash code according to all attributes.
|
|
156
146
|
# @return [Integer] Hash code
|
|
157
147
|
def hash
|
|
158
|
-
[volume_id, mount_path
|
|
148
|
+
[volume_id, mount_path].hash
|
|
159
149
|
end
|
|
160
150
|
|
|
161
151
|
# Builds the object from hash
|
|
@@ -181,6 +171,61 @@ module DaytonaApiClient
|
|
|
181
171
|
new(transformed_hash)
|
|
182
172
|
end
|
|
183
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
|
+
|
|
184
229
|
# Returns the object in the form of hash
|
|
185
230
|
# @return [Hash] Returns the object in the form of hash
|
|
186
231
|
def to_hash
|
|
@@ -197,6 +242,22 @@ module DaytonaApiClient
|
|
|
197
242
|
hash
|
|
198
243
|
end
|
|
199
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
|
|
200
262
|
end
|
|
201
|
-
|
|
202
263
|
end
|