daytona_api_client 0.225.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 +270 -1652
- 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/completion_list.rb +263 -0
- 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 -130
- 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/{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/{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 -78
- data/lib/daytona_api_client/models/organization.rb +159 -372
- 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_traces.rb → paginated_sandboxes.rb} +80 -13
- 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/{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 +105 -258
- data/lib/daytona_api_client/models/sandbox_class.rb +6 -7
- 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} +300 -244
- data/lib/daytona_api_client/version.rb +2 -2
- data/lib/daytona_api_client.rb +83 -96
- data/project.json +13 -37
- metadata +88 -105
- data/.gitignore +0 -39
- data/.openapi-generator/FILES +0 -178
- 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/cli_oidc_config.rb +0 -192
- 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/directory_sync_status.rb +0 -42
- data/lib/daytona_api_client/models/fork_sandbox.rb +0 -148
- data/lib/daytona_api_client/models/gpu_type.rb +0 -47
- 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_queue_timeout.rb +0 -151
- 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,7 +14,7 @@ require 'date'
|
|
|
14
14
|
require 'time'
|
|
15
15
|
|
|
16
16
|
module DaytonaApiClient
|
|
17
|
-
class Organization
|
|
17
|
+
class Organization
|
|
18
18
|
# Organization ID
|
|
19
19
|
attr_accessor :id
|
|
20
20
|
|
|
@@ -48,6 +48,15 @@ module DaytonaApiClient
|
|
|
48
48
|
# Suspension cleanup grace period hours
|
|
49
49
|
attr_accessor :suspension_cleanup_grace_period_hours
|
|
50
50
|
|
|
51
|
+
# Total CPU quota
|
|
52
|
+
attr_accessor :total_cpu_quota
|
|
53
|
+
|
|
54
|
+
# Total memory quota
|
|
55
|
+
attr_accessor :total_memory_quota
|
|
56
|
+
|
|
57
|
+
# Total disk quota
|
|
58
|
+
attr_accessor :total_disk_quota
|
|
59
|
+
|
|
51
60
|
# Max CPU per sandbox
|
|
52
61
|
attr_accessor :max_cpu_per_sandbox
|
|
53
62
|
|
|
@@ -57,91 +66,9 @@ module DaytonaApiClient
|
|
|
57
66
|
# Max disk per sandbox
|
|
58
67
|
attr_accessor :max_disk_per_sandbox
|
|
59
68
|
|
|
60
|
-
# Maximum number of secrets
|
|
61
|
-
attr_accessor :secret_quota
|
|
62
|
-
|
|
63
|
-
# Maximum number of secrets that can be mounted to a single sandbox
|
|
64
|
-
attr_accessor :max_secrets_per_sandbox
|
|
65
|
-
|
|
66
|
-
# Time in minutes before an unused snapshot is deactivated
|
|
67
|
-
attr_accessor :snapshot_deactivation_timeout_minutes
|
|
68
|
-
|
|
69
|
-
# Default minutes to wait for runner assignment before cancelling sandbox creation. Applied when sandbox create omits queueTimeout. Null means no default.
|
|
70
|
-
attr_accessor :default_queue_timeout
|
|
71
|
-
|
|
72
69
|
# Sandbox default network block all
|
|
73
70
|
attr_accessor :sandbox_limited_network_egress
|
|
74
71
|
|
|
75
|
-
# Whether the proxy shows the preview URL warning page for this organization
|
|
76
|
-
attr_accessor :preview_warning_enabled
|
|
77
|
-
|
|
78
|
-
# Whether this organization may configure SSO identity providers
|
|
79
|
-
attr_accessor :sso_enabled
|
|
80
|
-
|
|
81
|
-
# Whether this organization may use SCIM directory sync
|
|
82
|
-
attr_accessor :scim_enabled
|
|
83
|
-
|
|
84
|
-
# Default region ID
|
|
85
|
-
attr_accessor :default_region_id
|
|
86
|
-
|
|
87
|
-
# ID of the WorkOS organization mirrored from this organization (absent for personal organizations, which are never mirrored)
|
|
88
|
-
attr_accessor :workos_org_id
|
|
89
|
-
|
|
90
|
-
# Connection state of the WorkOS SCIM directory, as last reported by WorkOS (absent when no directory has ever reported in)
|
|
91
|
-
attr_accessor :directory_sync_status
|
|
92
|
-
|
|
93
|
-
# When the directory sync status last changed
|
|
94
|
-
attr_accessor :directory_sync_status_changed_at
|
|
95
|
-
|
|
96
|
-
# When the directory bearer token was revoked; absent while a valid token exists. A revoked token stops provisioning even if the directory is still active.
|
|
97
|
-
attr_accessor :directory_sync_token_revoked_at
|
|
98
|
-
|
|
99
|
-
# Authenticated rate limit per minute
|
|
100
|
-
attr_accessor :authenticated_rate_limit
|
|
101
|
-
|
|
102
|
-
# Sandbox create rate limit per minute
|
|
103
|
-
attr_accessor :sandbox_create_rate_limit
|
|
104
|
-
|
|
105
|
-
# Sandbox lifecycle rate limit per minute
|
|
106
|
-
attr_accessor :sandbox_lifecycle_rate_limit
|
|
107
|
-
|
|
108
|
-
# Experimental configuration
|
|
109
|
-
attr_accessor :experimental_config
|
|
110
|
-
|
|
111
|
-
# OpenTelemetry collection configuration
|
|
112
|
-
attr_accessor :otel_config
|
|
113
|
-
|
|
114
|
-
# Authenticated rate limit TTL in seconds
|
|
115
|
-
attr_accessor :authenticated_rate_limit_ttl_seconds
|
|
116
|
-
|
|
117
|
-
# Sandbox create rate limit TTL in seconds
|
|
118
|
-
attr_accessor :sandbox_create_rate_limit_ttl_seconds
|
|
119
|
-
|
|
120
|
-
# Sandbox lifecycle rate limit TTL in seconds
|
|
121
|
-
attr_accessor :sandbox_lifecycle_rate_limit_ttl_seconds
|
|
122
|
-
|
|
123
|
-
class EnumAttributeValidator
|
|
124
|
-
attr_reader :datatype
|
|
125
|
-
attr_reader :allowable_values
|
|
126
|
-
|
|
127
|
-
def initialize(datatype, allowable_values)
|
|
128
|
-
@allowable_values = allowable_values.map do |value|
|
|
129
|
-
case datatype.to_s
|
|
130
|
-
when /Integer/i
|
|
131
|
-
value.to_i
|
|
132
|
-
when /Float/i
|
|
133
|
-
value.to_f
|
|
134
|
-
else
|
|
135
|
-
value
|
|
136
|
-
end
|
|
137
|
-
end
|
|
138
|
-
end
|
|
139
|
-
|
|
140
|
-
def valid?(value)
|
|
141
|
-
!value || allowable_values.include?(value)
|
|
142
|
-
end
|
|
143
|
-
end
|
|
144
|
-
|
|
145
72
|
# Attribute mapping from ruby-style variable name to JSON key.
|
|
146
73
|
def self.attribute_map
|
|
147
74
|
{
|
|
@@ -156,30 +83,13 @@ module DaytonaApiClient
|
|
|
156
83
|
:'suspension_reason' => :'suspensionReason',
|
|
157
84
|
:'suspended_until' => :'suspendedUntil',
|
|
158
85
|
:'suspension_cleanup_grace_period_hours' => :'suspensionCleanupGracePeriodHours',
|
|
86
|
+
:'total_cpu_quota' => :'totalCpuQuota',
|
|
87
|
+
:'total_memory_quota' => :'totalMemoryQuota',
|
|
88
|
+
:'total_disk_quota' => :'totalDiskQuota',
|
|
159
89
|
:'max_cpu_per_sandbox' => :'maxCpuPerSandbox',
|
|
160
90
|
:'max_memory_per_sandbox' => :'maxMemoryPerSandbox',
|
|
161
91
|
:'max_disk_per_sandbox' => :'maxDiskPerSandbox',
|
|
162
|
-
:'
|
|
163
|
-
:'max_secrets_per_sandbox' => :'maxSecretsPerSandbox',
|
|
164
|
-
:'snapshot_deactivation_timeout_minutes' => :'snapshotDeactivationTimeoutMinutes',
|
|
165
|
-
:'default_queue_timeout' => :'defaultQueueTimeout',
|
|
166
|
-
:'sandbox_limited_network_egress' => :'sandboxLimitedNetworkEgress',
|
|
167
|
-
:'preview_warning_enabled' => :'previewWarningEnabled',
|
|
168
|
-
:'sso_enabled' => :'ssoEnabled',
|
|
169
|
-
:'scim_enabled' => :'scimEnabled',
|
|
170
|
-
:'default_region_id' => :'defaultRegionId',
|
|
171
|
-
:'workos_org_id' => :'workosOrgId',
|
|
172
|
-
:'directory_sync_status' => :'directorySyncStatus',
|
|
173
|
-
:'directory_sync_status_changed_at' => :'directorySyncStatusChangedAt',
|
|
174
|
-
:'directory_sync_token_revoked_at' => :'directorySyncTokenRevokedAt',
|
|
175
|
-
:'authenticated_rate_limit' => :'authenticatedRateLimit',
|
|
176
|
-
:'sandbox_create_rate_limit' => :'sandboxCreateRateLimit',
|
|
177
|
-
:'sandbox_lifecycle_rate_limit' => :'sandboxLifecycleRateLimit',
|
|
178
|
-
:'experimental_config' => :'experimentalConfig',
|
|
179
|
-
:'otel_config' => :'otelConfig',
|
|
180
|
-
:'authenticated_rate_limit_ttl_seconds' => :'authenticatedRateLimitTtlSeconds',
|
|
181
|
-
:'sandbox_create_rate_limit_ttl_seconds' => :'sandboxCreateRateLimitTtlSeconds',
|
|
182
|
-
:'sandbox_lifecycle_rate_limit_ttl_seconds' => :'sandboxLifecycleRateLimitTtlSeconds'
|
|
92
|
+
:'sandbox_limited_network_egress' => :'sandboxLimitedNetworkEgress'
|
|
183
93
|
}
|
|
184
94
|
end
|
|
185
95
|
|
|
@@ -207,44 +117,19 @@ module DaytonaApiClient
|
|
|
207
117
|
:'suspension_reason' => :'String',
|
|
208
118
|
:'suspended_until' => :'Time',
|
|
209
119
|
:'suspension_cleanup_grace_period_hours' => :'Float',
|
|
120
|
+
:'total_cpu_quota' => :'Float',
|
|
121
|
+
:'total_memory_quota' => :'Float',
|
|
122
|
+
:'total_disk_quota' => :'Float',
|
|
210
123
|
:'max_cpu_per_sandbox' => :'Float',
|
|
211
124
|
:'max_memory_per_sandbox' => :'Float',
|
|
212
125
|
:'max_disk_per_sandbox' => :'Float',
|
|
213
|
-
:'
|
|
214
|
-
:'max_secrets_per_sandbox' => :'Float',
|
|
215
|
-
:'snapshot_deactivation_timeout_minutes' => :'Float',
|
|
216
|
-
:'default_queue_timeout' => :'Integer',
|
|
217
|
-
:'sandbox_limited_network_egress' => :'Boolean',
|
|
218
|
-
:'preview_warning_enabled' => :'Boolean',
|
|
219
|
-
:'sso_enabled' => :'Boolean',
|
|
220
|
-
:'scim_enabled' => :'Boolean',
|
|
221
|
-
:'default_region_id' => :'String',
|
|
222
|
-
:'workos_org_id' => :'String',
|
|
223
|
-
:'directory_sync_status' => :'DirectorySyncStatus',
|
|
224
|
-
:'directory_sync_status_changed_at' => :'Time',
|
|
225
|
-
:'directory_sync_token_revoked_at' => :'Time',
|
|
226
|
-
:'authenticated_rate_limit' => :'Float',
|
|
227
|
-
:'sandbox_create_rate_limit' => :'Float',
|
|
228
|
-
:'sandbox_lifecycle_rate_limit' => :'Float',
|
|
229
|
-
:'experimental_config' => :'Object',
|
|
230
|
-
:'otel_config' => :'OtelConfig',
|
|
231
|
-
:'authenticated_rate_limit_ttl_seconds' => :'Float',
|
|
232
|
-
:'sandbox_create_rate_limit_ttl_seconds' => :'Float',
|
|
233
|
-
:'sandbox_lifecycle_rate_limit_ttl_seconds' => :'Float'
|
|
126
|
+
:'sandbox_limited_network_egress' => :'Boolean'
|
|
234
127
|
}
|
|
235
128
|
end
|
|
236
129
|
|
|
237
130
|
# List of attributes with nullable: true
|
|
238
131
|
def self.openapi_nullable
|
|
239
132
|
Set.new([
|
|
240
|
-
:'default_queue_timeout',
|
|
241
|
-
:'authenticated_rate_limit',
|
|
242
|
-
:'sandbox_create_rate_limit',
|
|
243
|
-
:'sandbox_lifecycle_rate_limit',
|
|
244
|
-
:'otel_config',
|
|
245
|
-
:'authenticated_rate_limit_ttl_seconds',
|
|
246
|
-
:'sandbox_create_rate_limit_ttl_seconds',
|
|
247
|
-
:'sandbox_lifecycle_rate_limit_ttl_seconds'
|
|
248
133
|
])
|
|
249
134
|
end
|
|
250
135
|
|
|
@@ -330,46 +215,40 @@ module DaytonaApiClient
|
|
|
330
215
|
self.suspension_cleanup_grace_period_hours = nil
|
|
331
216
|
end
|
|
332
217
|
|
|
333
|
-
if attributes.key?(:'
|
|
334
|
-
self.
|
|
218
|
+
if attributes.key?(:'total_cpu_quota')
|
|
219
|
+
self.total_cpu_quota = attributes[:'total_cpu_quota']
|
|
335
220
|
else
|
|
336
|
-
self.
|
|
221
|
+
self.total_cpu_quota = nil
|
|
337
222
|
end
|
|
338
223
|
|
|
339
|
-
if attributes.key?(:'
|
|
340
|
-
self.
|
|
224
|
+
if attributes.key?(:'total_memory_quota')
|
|
225
|
+
self.total_memory_quota = attributes[:'total_memory_quota']
|
|
341
226
|
else
|
|
342
|
-
self.
|
|
227
|
+
self.total_memory_quota = nil
|
|
343
228
|
end
|
|
344
229
|
|
|
345
|
-
if attributes.key?(:'
|
|
346
|
-
self.
|
|
230
|
+
if attributes.key?(:'total_disk_quota')
|
|
231
|
+
self.total_disk_quota = attributes[:'total_disk_quota']
|
|
347
232
|
else
|
|
348
|
-
self.
|
|
233
|
+
self.total_disk_quota = nil
|
|
349
234
|
end
|
|
350
235
|
|
|
351
|
-
if attributes.key?(:'
|
|
352
|
-
self.
|
|
353
|
-
else
|
|
354
|
-
self.secret_quota = nil
|
|
355
|
-
end
|
|
356
|
-
|
|
357
|
-
if attributes.key?(:'max_secrets_per_sandbox')
|
|
358
|
-
self.max_secrets_per_sandbox = attributes[:'max_secrets_per_sandbox']
|
|
236
|
+
if attributes.key?(:'max_cpu_per_sandbox')
|
|
237
|
+
self.max_cpu_per_sandbox = attributes[:'max_cpu_per_sandbox']
|
|
359
238
|
else
|
|
360
|
-
self.
|
|
239
|
+
self.max_cpu_per_sandbox = nil
|
|
361
240
|
end
|
|
362
241
|
|
|
363
|
-
if attributes.key?(:'
|
|
364
|
-
self.
|
|
242
|
+
if attributes.key?(:'max_memory_per_sandbox')
|
|
243
|
+
self.max_memory_per_sandbox = attributes[:'max_memory_per_sandbox']
|
|
365
244
|
else
|
|
366
|
-
self.
|
|
245
|
+
self.max_memory_per_sandbox = nil
|
|
367
246
|
end
|
|
368
247
|
|
|
369
|
-
if attributes.key?(:'
|
|
370
|
-
self.
|
|
248
|
+
if attributes.key?(:'max_disk_per_sandbox')
|
|
249
|
+
self.max_disk_per_sandbox = attributes[:'max_disk_per_sandbox']
|
|
371
250
|
else
|
|
372
|
-
self.
|
|
251
|
+
self.max_disk_per_sandbox = nil
|
|
373
252
|
end
|
|
374
253
|
|
|
375
254
|
if attributes.key?(:'sandbox_limited_network_egress')
|
|
@@ -377,92 +256,6 @@ module DaytonaApiClient
|
|
|
377
256
|
else
|
|
378
257
|
self.sandbox_limited_network_egress = nil
|
|
379
258
|
end
|
|
380
|
-
|
|
381
|
-
if attributes.key?(:'preview_warning_enabled')
|
|
382
|
-
self.preview_warning_enabled = attributes[:'preview_warning_enabled']
|
|
383
|
-
else
|
|
384
|
-
self.preview_warning_enabled = nil
|
|
385
|
-
end
|
|
386
|
-
|
|
387
|
-
if attributes.key?(:'sso_enabled')
|
|
388
|
-
self.sso_enabled = attributes[:'sso_enabled']
|
|
389
|
-
else
|
|
390
|
-
self.sso_enabled = nil
|
|
391
|
-
end
|
|
392
|
-
|
|
393
|
-
if attributes.key?(:'scim_enabled')
|
|
394
|
-
self.scim_enabled = attributes[:'scim_enabled']
|
|
395
|
-
else
|
|
396
|
-
self.scim_enabled = nil
|
|
397
|
-
end
|
|
398
|
-
|
|
399
|
-
if attributes.key?(:'default_region_id')
|
|
400
|
-
self.default_region_id = attributes[:'default_region_id']
|
|
401
|
-
end
|
|
402
|
-
|
|
403
|
-
if attributes.key?(:'workos_org_id')
|
|
404
|
-
self.workos_org_id = attributes[:'workos_org_id']
|
|
405
|
-
end
|
|
406
|
-
|
|
407
|
-
if attributes.key?(:'directory_sync_status')
|
|
408
|
-
self.directory_sync_status = attributes[:'directory_sync_status']
|
|
409
|
-
end
|
|
410
|
-
|
|
411
|
-
if attributes.key?(:'directory_sync_status_changed_at')
|
|
412
|
-
self.directory_sync_status_changed_at = attributes[:'directory_sync_status_changed_at']
|
|
413
|
-
end
|
|
414
|
-
|
|
415
|
-
if attributes.key?(:'directory_sync_token_revoked_at')
|
|
416
|
-
self.directory_sync_token_revoked_at = attributes[:'directory_sync_token_revoked_at']
|
|
417
|
-
end
|
|
418
|
-
|
|
419
|
-
if attributes.key?(:'authenticated_rate_limit')
|
|
420
|
-
self.authenticated_rate_limit = attributes[:'authenticated_rate_limit']
|
|
421
|
-
else
|
|
422
|
-
self.authenticated_rate_limit = nil
|
|
423
|
-
end
|
|
424
|
-
|
|
425
|
-
if attributes.key?(:'sandbox_create_rate_limit')
|
|
426
|
-
self.sandbox_create_rate_limit = attributes[:'sandbox_create_rate_limit']
|
|
427
|
-
else
|
|
428
|
-
self.sandbox_create_rate_limit = nil
|
|
429
|
-
end
|
|
430
|
-
|
|
431
|
-
if attributes.key?(:'sandbox_lifecycle_rate_limit')
|
|
432
|
-
self.sandbox_lifecycle_rate_limit = attributes[:'sandbox_lifecycle_rate_limit']
|
|
433
|
-
else
|
|
434
|
-
self.sandbox_lifecycle_rate_limit = nil
|
|
435
|
-
end
|
|
436
|
-
|
|
437
|
-
if attributes.key?(:'experimental_config')
|
|
438
|
-
self.experimental_config = attributes[:'experimental_config']
|
|
439
|
-
else
|
|
440
|
-
self.experimental_config = nil
|
|
441
|
-
end
|
|
442
|
-
|
|
443
|
-
if attributes.key?(:'otel_config')
|
|
444
|
-
self.otel_config = attributes[:'otel_config']
|
|
445
|
-
else
|
|
446
|
-
self.otel_config = nil
|
|
447
|
-
end
|
|
448
|
-
|
|
449
|
-
if attributes.key?(:'authenticated_rate_limit_ttl_seconds')
|
|
450
|
-
self.authenticated_rate_limit_ttl_seconds = attributes[:'authenticated_rate_limit_ttl_seconds']
|
|
451
|
-
else
|
|
452
|
-
self.authenticated_rate_limit_ttl_seconds = nil
|
|
453
|
-
end
|
|
454
|
-
|
|
455
|
-
if attributes.key?(:'sandbox_create_rate_limit_ttl_seconds')
|
|
456
|
-
self.sandbox_create_rate_limit_ttl_seconds = attributes[:'sandbox_create_rate_limit_ttl_seconds']
|
|
457
|
-
else
|
|
458
|
-
self.sandbox_create_rate_limit_ttl_seconds = nil
|
|
459
|
-
end
|
|
460
|
-
|
|
461
|
-
if attributes.key?(:'sandbox_lifecycle_rate_limit_ttl_seconds')
|
|
462
|
-
self.sandbox_lifecycle_rate_limit_ttl_seconds = attributes[:'sandbox_lifecycle_rate_limit_ttl_seconds']
|
|
463
|
-
else
|
|
464
|
-
self.sandbox_lifecycle_rate_limit_ttl_seconds = nil
|
|
465
|
-
end
|
|
466
259
|
end
|
|
467
260
|
|
|
468
261
|
# Show invalid properties with the reasons. Usually used together with valid?
|
|
@@ -514,50 +307,34 @@ module DaytonaApiClient
|
|
|
514
307
|
invalid_properties.push('invalid value for "suspension_cleanup_grace_period_hours", suspension_cleanup_grace_period_hours cannot be nil.')
|
|
515
308
|
end
|
|
516
309
|
|
|
517
|
-
if @
|
|
518
|
-
invalid_properties.push('invalid value for "
|
|
310
|
+
if @total_cpu_quota.nil?
|
|
311
|
+
invalid_properties.push('invalid value for "total_cpu_quota", total_cpu_quota cannot be nil.')
|
|
519
312
|
end
|
|
520
313
|
|
|
521
|
-
if @
|
|
522
|
-
invalid_properties.push('invalid value for "
|
|
314
|
+
if @total_memory_quota.nil?
|
|
315
|
+
invalid_properties.push('invalid value for "total_memory_quota", total_memory_quota cannot be nil.')
|
|
523
316
|
end
|
|
524
317
|
|
|
525
|
-
if @
|
|
526
|
-
invalid_properties.push('invalid value for "
|
|
318
|
+
if @total_disk_quota.nil?
|
|
319
|
+
invalid_properties.push('invalid value for "total_disk_quota", total_disk_quota cannot be nil.')
|
|
527
320
|
end
|
|
528
321
|
|
|
529
|
-
if @
|
|
530
|
-
invalid_properties.push('invalid value for "
|
|
322
|
+
if @max_cpu_per_sandbox.nil?
|
|
323
|
+
invalid_properties.push('invalid value for "max_cpu_per_sandbox", max_cpu_per_sandbox cannot be nil.')
|
|
531
324
|
end
|
|
532
325
|
|
|
533
|
-
if @
|
|
534
|
-
invalid_properties.push('invalid value for "
|
|
326
|
+
if @max_memory_per_sandbox.nil?
|
|
327
|
+
invalid_properties.push('invalid value for "max_memory_per_sandbox", max_memory_per_sandbox cannot be nil.')
|
|
535
328
|
end
|
|
536
329
|
|
|
537
|
-
if @
|
|
538
|
-
invalid_properties.push('invalid value for "
|
|
330
|
+
if @max_disk_per_sandbox.nil?
|
|
331
|
+
invalid_properties.push('invalid value for "max_disk_per_sandbox", max_disk_per_sandbox cannot be nil.')
|
|
539
332
|
end
|
|
540
333
|
|
|
541
334
|
if @sandbox_limited_network_egress.nil?
|
|
542
335
|
invalid_properties.push('invalid value for "sandbox_limited_network_egress", sandbox_limited_network_egress cannot be nil.')
|
|
543
336
|
end
|
|
544
337
|
|
|
545
|
-
if @preview_warning_enabled.nil?
|
|
546
|
-
invalid_properties.push('invalid value for "preview_warning_enabled", preview_warning_enabled cannot be nil.')
|
|
547
|
-
end
|
|
548
|
-
|
|
549
|
-
if @sso_enabled.nil?
|
|
550
|
-
invalid_properties.push('invalid value for "sso_enabled", sso_enabled cannot be nil.')
|
|
551
|
-
end
|
|
552
|
-
|
|
553
|
-
if @scim_enabled.nil?
|
|
554
|
-
invalid_properties.push('invalid value for "scim_enabled", scim_enabled cannot be nil.')
|
|
555
|
-
end
|
|
556
|
-
|
|
557
|
-
if @experimental_config.nil?
|
|
558
|
-
invalid_properties.push('invalid value for "experimental_config", experimental_config cannot be nil.')
|
|
559
|
-
end
|
|
560
|
-
|
|
561
338
|
invalid_properties
|
|
562
339
|
end
|
|
563
340
|
|
|
@@ -576,17 +353,13 @@ module DaytonaApiClient
|
|
|
576
353
|
return false if @suspension_reason.nil?
|
|
577
354
|
return false if @suspended_until.nil?
|
|
578
355
|
return false if @suspension_cleanup_grace_period_hours.nil?
|
|
356
|
+
return false if @total_cpu_quota.nil?
|
|
357
|
+
return false if @total_memory_quota.nil?
|
|
358
|
+
return false if @total_disk_quota.nil?
|
|
579
359
|
return false if @max_cpu_per_sandbox.nil?
|
|
580
360
|
return false if @max_memory_per_sandbox.nil?
|
|
581
361
|
return false if @max_disk_per_sandbox.nil?
|
|
582
|
-
return false if @secret_quota.nil?
|
|
583
|
-
return false if @max_secrets_per_sandbox.nil?
|
|
584
|
-
return false if @snapshot_deactivation_timeout_minutes.nil?
|
|
585
362
|
return false if @sandbox_limited_network_egress.nil?
|
|
586
|
-
return false if @preview_warning_enabled.nil?
|
|
587
|
-
return false if @sso_enabled.nil?
|
|
588
|
-
return false if @scim_enabled.nil?
|
|
589
|
-
return false if @experimental_config.nil?
|
|
590
363
|
true
|
|
591
364
|
end
|
|
592
365
|
|
|
@@ -701,63 +474,63 @@ module DaytonaApiClient
|
|
|
701
474
|
end
|
|
702
475
|
|
|
703
476
|
# Custom attribute writer method with validation
|
|
704
|
-
# @param [Object]
|
|
705
|
-
def
|
|
706
|
-
if
|
|
707
|
-
fail ArgumentError, '
|
|
477
|
+
# @param [Object] total_cpu_quota Value to be assigned
|
|
478
|
+
def total_cpu_quota=(total_cpu_quota)
|
|
479
|
+
if total_cpu_quota.nil?
|
|
480
|
+
fail ArgumentError, 'total_cpu_quota cannot be nil'
|
|
708
481
|
end
|
|
709
482
|
|
|
710
|
-
@
|
|
483
|
+
@total_cpu_quota = total_cpu_quota
|
|
711
484
|
end
|
|
712
485
|
|
|
713
486
|
# Custom attribute writer method with validation
|
|
714
|
-
# @param [Object]
|
|
715
|
-
def
|
|
716
|
-
if
|
|
717
|
-
fail ArgumentError, '
|
|
487
|
+
# @param [Object] total_memory_quota Value to be assigned
|
|
488
|
+
def total_memory_quota=(total_memory_quota)
|
|
489
|
+
if total_memory_quota.nil?
|
|
490
|
+
fail ArgumentError, 'total_memory_quota cannot be nil'
|
|
718
491
|
end
|
|
719
492
|
|
|
720
|
-
@
|
|
493
|
+
@total_memory_quota = total_memory_quota
|
|
721
494
|
end
|
|
722
495
|
|
|
723
496
|
# Custom attribute writer method with validation
|
|
724
|
-
# @param [Object]
|
|
725
|
-
def
|
|
726
|
-
if
|
|
727
|
-
fail ArgumentError, '
|
|
497
|
+
# @param [Object] total_disk_quota Value to be assigned
|
|
498
|
+
def total_disk_quota=(total_disk_quota)
|
|
499
|
+
if total_disk_quota.nil?
|
|
500
|
+
fail ArgumentError, 'total_disk_quota cannot be nil'
|
|
728
501
|
end
|
|
729
502
|
|
|
730
|
-
@
|
|
503
|
+
@total_disk_quota = total_disk_quota
|
|
731
504
|
end
|
|
732
505
|
|
|
733
506
|
# Custom attribute writer method with validation
|
|
734
|
-
# @param [Object]
|
|
735
|
-
def
|
|
736
|
-
if
|
|
737
|
-
fail ArgumentError, '
|
|
507
|
+
# @param [Object] max_cpu_per_sandbox Value to be assigned
|
|
508
|
+
def max_cpu_per_sandbox=(max_cpu_per_sandbox)
|
|
509
|
+
if max_cpu_per_sandbox.nil?
|
|
510
|
+
fail ArgumentError, 'max_cpu_per_sandbox cannot be nil'
|
|
738
511
|
end
|
|
739
512
|
|
|
740
|
-
@
|
|
513
|
+
@max_cpu_per_sandbox = max_cpu_per_sandbox
|
|
741
514
|
end
|
|
742
515
|
|
|
743
516
|
# Custom attribute writer method with validation
|
|
744
|
-
# @param [Object]
|
|
745
|
-
def
|
|
746
|
-
if
|
|
747
|
-
fail ArgumentError, '
|
|
517
|
+
# @param [Object] max_memory_per_sandbox Value to be assigned
|
|
518
|
+
def max_memory_per_sandbox=(max_memory_per_sandbox)
|
|
519
|
+
if max_memory_per_sandbox.nil?
|
|
520
|
+
fail ArgumentError, 'max_memory_per_sandbox cannot be nil'
|
|
748
521
|
end
|
|
749
522
|
|
|
750
|
-
@
|
|
523
|
+
@max_memory_per_sandbox = max_memory_per_sandbox
|
|
751
524
|
end
|
|
752
525
|
|
|
753
526
|
# Custom attribute writer method with validation
|
|
754
|
-
# @param [Object]
|
|
755
|
-
def
|
|
756
|
-
if
|
|
757
|
-
fail ArgumentError, '
|
|
527
|
+
# @param [Object] max_disk_per_sandbox Value to be assigned
|
|
528
|
+
def max_disk_per_sandbox=(max_disk_per_sandbox)
|
|
529
|
+
if max_disk_per_sandbox.nil?
|
|
530
|
+
fail ArgumentError, 'max_disk_per_sandbox cannot be nil'
|
|
758
531
|
end
|
|
759
532
|
|
|
760
|
-
@
|
|
533
|
+
@max_disk_per_sandbox = max_disk_per_sandbox
|
|
761
534
|
end
|
|
762
535
|
|
|
763
536
|
# Custom attribute writer method with validation
|
|
@@ -770,46 +543,6 @@ module DaytonaApiClient
|
|
|
770
543
|
@sandbox_limited_network_egress = sandbox_limited_network_egress
|
|
771
544
|
end
|
|
772
545
|
|
|
773
|
-
# Custom attribute writer method with validation
|
|
774
|
-
# @param [Object] preview_warning_enabled Value to be assigned
|
|
775
|
-
def preview_warning_enabled=(preview_warning_enabled)
|
|
776
|
-
if preview_warning_enabled.nil?
|
|
777
|
-
fail ArgumentError, 'preview_warning_enabled cannot be nil'
|
|
778
|
-
end
|
|
779
|
-
|
|
780
|
-
@preview_warning_enabled = preview_warning_enabled
|
|
781
|
-
end
|
|
782
|
-
|
|
783
|
-
# Custom attribute writer method with validation
|
|
784
|
-
# @param [Object] sso_enabled Value to be assigned
|
|
785
|
-
def sso_enabled=(sso_enabled)
|
|
786
|
-
if sso_enabled.nil?
|
|
787
|
-
fail ArgumentError, 'sso_enabled cannot be nil'
|
|
788
|
-
end
|
|
789
|
-
|
|
790
|
-
@sso_enabled = sso_enabled
|
|
791
|
-
end
|
|
792
|
-
|
|
793
|
-
# Custom attribute writer method with validation
|
|
794
|
-
# @param [Object] scim_enabled Value to be assigned
|
|
795
|
-
def scim_enabled=(scim_enabled)
|
|
796
|
-
if scim_enabled.nil?
|
|
797
|
-
fail ArgumentError, 'scim_enabled cannot be nil'
|
|
798
|
-
end
|
|
799
|
-
|
|
800
|
-
@scim_enabled = scim_enabled
|
|
801
|
-
end
|
|
802
|
-
|
|
803
|
-
# Custom attribute writer method with validation
|
|
804
|
-
# @param [Object] experimental_config Value to be assigned
|
|
805
|
-
def experimental_config=(experimental_config)
|
|
806
|
-
if experimental_config.nil?
|
|
807
|
-
fail ArgumentError, 'experimental_config cannot be nil'
|
|
808
|
-
end
|
|
809
|
-
|
|
810
|
-
@experimental_config = experimental_config
|
|
811
|
-
end
|
|
812
|
-
|
|
813
546
|
# Checks equality by comparing each attribute.
|
|
814
547
|
# @param [Object] Object to be compared
|
|
815
548
|
def ==(o)
|
|
@@ -826,30 +559,13 @@ module DaytonaApiClient
|
|
|
826
559
|
suspension_reason == o.suspension_reason &&
|
|
827
560
|
suspended_until == o.suspended_until &&
|
|
828
561
|
suspension_cleanup_grace_period_hours == o.suspension_cleanup_grace_period_hours &&
|
|
562
|
+
total_cpu_quota == o.total_cpu_quota &&
|
|
563
|
+
total_memory_quota == o.total_memory_quota &&
|
|
564
|
+
total_disk_quota == o.total_disk_quota &&
|
|
829
565
|
max_cpu_per_sandbox == o.max_cpu_per_sandbox &&
|
|
830
566
|
max_memory_per_sandbox == o.max_memory_per_sandbox &&
|
|
831
567
|
max_disk_per_sandbox == o.max_disk_per_sandbox &&
|
|
832
|
-
|
|
833
|
-
max_secrets_per_sandbox == o.max_secrets_per_sandbox &&
|
|
834
|
-
snapshot_deactivation_timeout_minutes == o.snapshot_deactivation_timeout_minutes &&
|
|
835
|
-
default_queue_timeout == o.default_queue_timeout &&
|
|
836
|
-
sandbox_limited_network_egress == o.sandbox_limited_network_egress &&
|
|
837
|
-
preview_warning_enabled == o.preview_warning_enabled &&
|
|
838
|
-
sso_enabled == o.sso_enabled &&
|
|
839
|
-
scim_enabled == o.scim_enabled &&
|
|
840
|
-
default_region_id == o.default_region_id &&
|
|
841
|
-
workos_org_id == o.workos_org_id &&
|
|
842
|
-
directory_sync_status == o.directory_sync_status &&
|
|
843
|
-
directory_sync_status_changed_at == o.directory_sync_status_changed_at &&
|
|
844
|
-
directory_sync_token_revoked_at == o.directory_sync_token_revoked_at &&
|
|
845
|
-
authenticated_rate_limit == o.authenticated_rate_limit &&
|
|
846
|
-
sandbox_create_rate_limit == o.sandbox_create_rate_limit &&
|
|
847
|
-
sandbox_lifecycle_rate_limit == o.sandbox_lifecycle_rate_limit &&
|
|
848
|
-
experimental_config == o.experimental_config &&
|
|
849
|
-
otel_config == o.otel_config &&
|
|
850
|
-
authenticated_rate_limit_ttl_seconds == o.authenticated_rate_limit_ttl_seconds &&
|
|
851
|
-
sandbox_create_rate_limit_ttl_seconds == o.sandbox_create_rate_limit_ttl_seconds &&
|
|
852
|
-
sandbox_lifecycle_rate_limit_ttl_seconds == o.sandbox_lifecycle_rate_limit_ttl_seconds
|
|
568
|
+
sandbox_limited_network_egress == o.sandbox_limited_network_egress
|
|
853
569
|
end
|
|
854
570
|
|
|
855
571
|
# @see the `==` method
|
|
@@ -861,7 +577,7 @@ module DaytonaApiClient
|
|
|
861
577
|
# Calculates hash code according to all attributes.
|
|
862
578
|
# @return [Integer] Hash code
|
|
863
579
|
def hash
|
|
864
|
-
[id, name, created_by, personal, created_at, updated_at, suspended, suspended_at, suspension_reason, suspended_until, suspension_cleanup_grace_period_hours,
|
|
580
|
+
[id, name, created_by, personal, created_at, updated_at, suspended, suspended_at, suspension_reason, suspended_until, suspension_cleanup_grace_period_hours, total_cpu_quota, total_memory_quota, total_disk_quota, max_cpu_per_sandbox, max_memory_per_sandbox, max_disk_per_sandbox, sandbox_limited_network_egress].hash
|
|
865
581
|
end
|
|
866
582
|
|
|
867
583
|
# Builds the object from hash
|
|
@@ -887,6 +603,61 @@ module DaytonaApiClient
|
|
|
887
603
|
new(transformed_hash)
|
|
888
604
|
end
|
|
889
605
|
|
|
606
|
+
# Deserializes the data based on type
|
|
607
|
+
# @param string type Data type
|
|
608
|
+
# @param string value Value to be deserialized
|
|
609
|
+
# @return [Object] Deserialized data
|
|
610
|
+
def self._deserialize(type, value)
|
|
611
|
+
case type.to_sym
|
|
612
|
+
when :Time
|
|
613
|
+
Time.parse(value)
|
|
614
|
+
when :Date
|
|
615
|
+
Date.parse(value)
|
|
616
|
+
when :String
|
|
617
|
+
value.to_s
|
|
618
|
+
when :Integer
|
|
619
|
+
value.to_i
|
|
620
|
+
when :Float
|
|
621
|
+
value.to_f
|
|
622
|
+
when :Boolean
|
|
623
|
+
if value.to_s =~ /\A(true|t|yes|y|1)\z/i
|
|
624
|
+
true
|
|
625
|
+
else
|
|
626
|
+
false
|
|
627
|
+
end
|
|
628
|
+
when :Object
|
|
629
|
+
# generic object (usually a Hash), return directly
|
|
630
|
+
value
|
|
631
|
+
when /\AArray<(?<inner_type>.+)>\z/
|
|
632
|
+
inner_type = Regexp.last_match[:inner_type]
|
|
633
|
+
value.map { |v| _deserialize(inner_type, v) }
|
|
634
|
+
when /\AHash<(?<k_type>.+?), (?<v_type>.+)>\z/
|
|
635
|
+
k_type = Regexp.last_match[:k_type]
|
|
636
|
+
v_type = Regexp.last_match[:v_type]
|
|
637
|
+
{}.tap do |hash|
|
|
638
|
+
value.each do |k, v|
|
|
639
|
+
hash[_deserialize(k_type, k)] = _deserialize(v_type, v)
|
|
640
|
+
end
|
|
641
|
+
end
|
|
642
|
+
else # model
|
|
643
|
+
# models (e.g. Pet) or oneOf
|
|
644
|
+
klass = DaytonaApiClient.const_get(type)
|
|
645
|
+
klass.respond_to?(:openapi_any_of) || klass.respond_to?(:openapi_one_of) ? klass.build(value) : klass.build_from_hash(value)
|
|
646
|
+
end
|
|
647
|
+
end
|
|
648
|
+
|
|
649
|
+
# Returns the string representation of the object
|
|
650
|
+
# @return [String] String presentation of the object
|
|
651
|
+
def to_s
|
|
652
|
+
to_hash.to_s
|
|
653
|
+
end
|
|
654
|
+
|
|
655
|
+
# to_body is an alias to to_hash (backward compatibility)
|
|
656
|
+
# @return [Hash] Returns the object in the form of hash
|
|
657
|
+
def to_body
|
|
658
|
+
to_hash
|
|
659
|
+
end
|
|
660
|
+
|
|
890
661
|
# Returns the object in the form of hash
|
|
891
662
|
# @return [Hash] Returns the object in the form of hash
|
|
892
663
|
def to_hash
|
|
@@ -903,6 +674,22 @@ module DaytonaApiClient
|
|
|
903
674
|
hash
|
|
904
675
|
end
|
|
905
676
|
|
|
677
|
+
# Outputs non-array value in the form of hash
|
|
678
|
+
# For object, use to_hash. Otherwise, just return the value
|
|
679
|
+
# @param [Object] value Any valid value
|
|
680
|
+
# @return [Hash] Returns the value in the form of hash
|
|
681
|
+
def _to_hash(value)
|
|
682
|
+
if value.is_a?(Array)
|
|
683
|
+
value.compact.map { |v| _to_hash(v) }
|
|
684
|
+
elsif value.is_a?(Hash)
|
|
685
|
+
{}.tap do |hash|
|
|
686
|
+
value.each { |k, v| hash[k] = _to_hash(v) }
|
|
687
|
+
end
|
|
688
|
+
elsif value.respond_to? :to_hash
|
|
689
|
+
value.to_hash
|
|
690
|
+
else
|
|
691
|
+
value
|
|
692
|
+
end
|
|
693
|
+
end
|
|
906
694
|
end
|
|
907
|
-
|
|
908
695
|
end
|