daytona_api_client 0.184.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 +2 -2
- data/lib/daytona_api_client/api/api_keys_api.rb +2 -2
- data/lib/daytona_api_client/api/audit_api.rb +140 -10
- 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 +307 -1732
- 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 +74 -3
- 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 +121 -38
- 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 -54
- 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 -145
- 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 -127
- data/lib/daytona_api_client/models/sandbox_class.rb +6 -8
- data/lib/daytona_api_client/models/sandbox_desired_state.rb +3 -4
- data/lib/daytona_api_client/models/{create_region.rb → sandbox_info.rb} +113 -38
- data/lib/daytona_api_client/models/sandbox_labels.rb +74 -3
- data/lib/daytona_api_client/models/sandbox_state.rb +3 -7
- data/lib/daytona_api_client/models/sandbox_volume.rb +78 -17
- 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 -93
- 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 -180
- data/lib/daytona_api_client/version.rb +2 -2
- data/lib/daytona_api_client.rb +8 -55
- data/project.json +11 -42
- metadata +11 -62
- data/.gitignore +0 -39
- data/.openapi-generator/FILES +0 -212
- 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 -1449
- 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_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_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 -165
- 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/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 -53
- 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 -178
- 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/runner_class.rb +0 -41
- data/lib/daytona_api_client/models/runner_full.rb +0 -747
- 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/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/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 -158
- 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
|
|
|
@@ -14,7 +14,7 @@ require 'date'
|
|
|
14
14
|
require 'time'
|
|
15
15
|
|
|
16
16
|
module DaytonaApiClient
|
|
17
|
-
class Runner
|
|
17
|
+
class Runner
|
|
18
18
|
# The ID of the runner
|
|
19
19
|
attr_accessor :id
|
|
20
20
|
|
|
@@ -27,6 +27,9 @@ module DaytonaApiClient
|
|
|
27
27
|
# The proxy URL of the runner
|
|
28
28
|
attr_accessor :proxy_url
|
|
29
29
|
|
|
30
|
+
# The API key for the runner
|
|
31
|
+
attr_accessor :api_key
|
|
32
|
+
|
|
30
33
|
# The CPU capacity of the runner
|
|
31
34
|
attr_accessor :cpu
|
|
32
35
|
|
|
@@ -42,8 +45,8 @@ module DaytonaApiClient
|
|
|
42
45
|
# The type of GPU
|
|
43
46
|
attr_accessor :gpu_type
|
|
44
47
|
|
|
45
|
-
# The
|
|
46
|
-
attr_accessor :
|
|
48
|
+
# The class of the runner
|
|
49
|
+
attr_accessor :_class
|
|
47
50
|
|
|
48
51
|
# Current CPU usage percentage
|
|
49
52
|
attr_accessor :current_cpu_usage_percentage
|
|
@@ -66,18 +69,12 @@ module DaytonaApiClient
|
|
|
66
69
|
# Current snapshot count
|
|
67
70
|
attr_accessor :current_snapshot_count
|
|
68
71
|
|
|
69
|
-
# Current number of started sandboxes
|
|
70
|
-
attr_accessor :current_started_sandboxes
|
|
71
|
-
|
|
72
72
|
# Runner availability score
|
|
73
73
|
attr_accessor :availability_score
|
|
74
74
|
|
|
75
75
|
# The region of the runner
|
|
76
76
|
attr_accessor :region
|
|
77
77
|
|
|
78
|
-
# The name of the runner
|
|
79
|
-
attr_accessor :name
|
|
80
|
-
|
|
81
78
|
# The state of the runner
|
|
82
79
|
attr_accessor :state
|
|
83
80
|
|
|
@@ -87,27 +84,15 @@ module DaytonaApiClient
|
|
|
87
84
|
# Whether the runner is unschedulable
|
|
88
85
|
attr_accessor :unschedulable
|
|
89
86
|
|
|
90
|
-
# Tags associated with the runner
|
|
91
|
-
attr_accessor :tags
|
|
92
|
-
|
|
93
87
|
# The creation timestamp of the runner
|
|
94
88
|
attr_accessor :created_at
|
|
95
89
|
|
|
96
90
|
# The last update timestamp of the runner
|
|
97
91
|
attr_accessor :updated_at
|
|
98
92
|
|
|
99
|
-
# The version of the runner
|
|
93
|
+
# The version of the runner
|
|
100
94
|
attr_accessor :version
|
|
101
95
|
|
|
102
|
-
# The api version of the runner
|
|
103
|
-
attr_accessor :api_version
|
|
104
|
-
|
|
105
|
-
# The class of the runner
|
|
106
|
-
attr_accessor :runner_class
|
|
107
|
-
|
|
108
|
-
# The app version of the runner
|
|
109
|
-
attr_accessor :app_version
|
|
110
|
-
|
|
111
96
|
class EnumAttributeValidator
|
|
112
97
|
attr_reader :datatype
|
|
113
98
|
attr_reader :allowable_values
|
|
@@ -137,12 +122,13 @@ module DaytonaApiClient
|
|
|
137
122
|
:'domain' => :'domain',
|
|
138
123
|
:'api_url' => :'apiUrl',
|
|
139
124
|
:'proxy_url' => :'proxyUrl',
|
|
125
|
+
:'api_key' => :'apiKey',
|
|
140
126
|
:'cpu' => :'cpu',
|
|
141
127
|
:'memory' => :'memory',
|
|
142
128
|
:'disk' => :'disk',
|
|
143
129
|
:'gpu' => :'gpu',
|
|
144
130
|
:'gpu_type' => :'gpuType',
|
|
145
|
-
:'
|
|
131
|
+
:'_class' => :'class',
|
|
146
132
|
:'current_cpu_usage_percentage' => :'currentCpuUsagePercentage',
|
|
147
133
|
:'current_memory_usage_percentage' => :'currentMemoryUsagePercentage',
|
|
148
134
|
:'current_disk_usage_percentage' => :'currentDiskUsagePercentage',
|
|
@@ -150,20 +136,14 @@ module DaytonaApiClient
|
|
|
150
136
|
:'current_allocated_memory_gi_b' => :'currentAllocatedMemoryGiB',
|
|
151
137
|
:'current_allocated_disk_gi_b' => :'currentAllocatedDiskGiB',
|
|
152
138
|
:'current_snapshot_count' => :'currentSnapshotCount',
|
|
153
|
-
:'current_started_sandboxes' => :'currentStartedSandboxes',
|
|
154
139
|
:'availability_score' => :'availabilityScore',
|
|
155
140
|
:'region' => :'region',
|
|
156
|
-
:'name' => :'name',
|
|
157
141
|
:'state' => :'state',
|
|
158
142
|
:'last_checked' => :'lastChecked',
|
|
159
143
|
:'unschedulable' => :'unschedulable',
|
|
160
|
-
:'tags' => :'tags',
|
|
161
144
|
:'created_at' => :'createdAt',
|
|
162
145
|
:'updated_at' => :'updatedAt',
|
|
163
|
-
:'version' => :'version'
|
|
164
|
-
:'api_version' => :'apiVersion',
|
|
165
|
-
:'runner_class' => :'runnerClass',
|
|
166
|
-
:'app_version' => :'appVersion'
|
|
146
|
+
:'version' => :'version'
|
|
167
147
|
}
|
|
168
148
|
end
|
|
169
149
|
|
|
@@ -184,12 +164,13 @@ module DaytonaApiClient
|
|
|
184
164
|
:'domain' => :'String',
|
|
185
165
|
:'api_url' => :'String',
|
|
186
166
|
:'proxy_url' => :'String',
|
|
167
|
+
:'api_key' => :'String',
|
|
187
168
|
:'cpu' => :'Float',
|
|
188
169
|
:'memory' => :'Float',
|
|
189
170
|
:'disk' => :'Float',
|
|
190
171
|
:'gpu' => :'Float',
|
|
191
172
|
:'gpu_type' => :'String',
|
|
192
|
-
:'
|
|
173
|
+
:'_class' => :'SandboxClass',
|
|
193
174
|
:'current_cpu_usage_percentage' => :'Float',
|
|
194
175
|
:'current_memory_usage_percentage' => :'Float',
|
|
195
176
|
:'current_disk_usage_percentage' => :'Float',
|
|
@@ -197,20 +178,14 @@ module DaytonaApiClient
|
|
|
197
178
|
:'current_allocated_memory_gi_b' => :'Float',
|
|
198
179
|
:'current_allocated_disk_gi_b' => :'Float',
|
|
199
180
|
:'current_snapshot_count' => :'Float',
|
|
200
|
-
:'current_started_sandboxes' => :'Float',
|
|
201
181
|
:'availability_score' => :'Float',
|
|
202
182
|
:'region' => :'String',
|
|
203
|
-
:'name' => :'String',
|
|
204
183
|
:'state' => :'RunnerState',
|
|
205
184
|
:'last_checked' => :'String',
|
|
206
185
|
:'unschedulable' => :'Boolean',
|
|
207
|
-
:'tags' => :'Array<String>',
|
|
208
186
|
:'created_at' => :'String',
|
|
209
187
|
:'updated_at' => :'String',
|
|
210
|
-
:'version' => :'String'
|
|
211
|
-
:'api_version' => :'String',
|
|
212
|
-
:'runner_class' => :'RunnerClass',
|
|
213
|
-
:'app_version' => :'String'
|
|
188
|
+
:'version' => :'String'
|
|
214
189
|
}
|
|
215
190
|
end
|
|
216
191
|
|
|
@@ -244,14 +219,26 @@ module DaytonaApiClient
|
|
|
244
219
|
|
|
245
220
|
if attributes.key?(:'domain')
|
|
246
221
|
self.domain = attributes[:'domain']
|
|
222
|
+
else
|
|
223
|
+
self.domain = nil
|
|
247
224
|
end
|
|
248
225
|
|
|
249
226
|
if attributes.key?(:'api_url')
|
|
250
227
|
self.api_url = attributes[:'api_url']
|
|
228
|
+
else
|
|
229
|
+
self.api_url = nil
|
|
251
230
|
end
|
|
252
231
|
|
|
253
232
|
if attributes.key?(:'proxy_url')
|
|
254
233
|
self.proxy_url = attributes[:'proxy_url']
|
|
234
|
+
else
|
|
235
|
+
self.proxy_url = nil
|
|
236
|
+
end
|
|
237
|
+
|
|
238
|
+
if attributes.key?(:'api_key')
|
|
239
|
+
self.api_key = attributes[:'api_key']
|
|
240
|
+
else
|
|
241
|
+
self.api_key = nil
|
|
255
242
|
end
|
|
256
243
|
|
|
257
244
|
if attributes.key?(:'cpu')
|
|
@@ -274,14 +261,20 @@ module DaytonaApiClient
|
|
|
274
261
|
|
|
275
262
|
if attributes.key?(:'gpu')
|
|
276
263
|
self.gpu = attributes[:'gpu']
|
|
264
|
+
else
|
|
265
|
+
self.gpu = nil
|
|
277
266
|
end
|
|
278
267
|
|
|
279
268
|
if attributes.key?(:'gpu_type')
|
|
280
269
|
self.gpu_type = attributes[:'gpu_type']
|
|
270
|
+
else
|
|
271
|
+
self.gpu_type = nil
|
|
281
272
|
end
|
|
282
273
|
|
|
283
|
-
if attributes.key?(:'
|
|
284
|
-
self.
|
|
274
|
+
if attributes.key?(:'_class')
|
|
275
|
+
self._class = attributes[:'_class']
|
|
276
|
+
else
|
|
277
|
+
self._class = nil
|
|
285
278
|
end
|
|
286
279
|
|
|
287
280
|
if attributes.key?(:'current_cpu_usage_percentage')
|
|
@@ -312,10 +305,6 @@ module DaytonaApiClient
|
|
|
312
305
|
self.current_snapshot_count = attributes[:'current_snapshot_count']
|
|
313
306
|
end
|
|
314
307
|
|
|
315
|
-
if attributes.key?(:'current_started_sandboxes')
|
|
316
|
-
self.current_started_sandboxes = attributes[:'current_started_sandboxes']
|
|
317
|
-
end
|
|
318
|
-
|
|
319
308
|
if attributes.key?(:'availability_score')
|
|
320
309
|
self.availability_score = attributes[:'availability_score']
|
|
321
310
|
end
|
|
@@ -326,12 +315,6 @@ module DaytonaApiClient
|
|
|
326
315
|
self.region = nil
|
|
327
316
|
end
|
|
328
317
|
|
|
329
|
-
if attributes.key?(:'name')
|
|
330
|
-
self.name = attributes[:'name']
|
|
331
|
-
else
|
|
332
|
-
self.name = nil
|
|
333
|
-
end
|
|
334
|
-
|
|
335
318
|
if attributes.key?(:'state')
|
|
336
319
|
self.state = attributes[:'state']
|
|
337
320
|
else
|
|
@@ -348,14 +331,6 @@ module DaytonaApiClient
|
|
|
348
331
|
self.unschedulable = nil
|
|
349
332
|
end
|
|
350
333
|
|
|
351
|
-
if attributes.key?(:'tags')
|
|
352
|
-
if (value = attributes[:'tags']).is_a?(Array)
|
|
353
|
-
self.tags = value
|
|
354
|
-
end
|
|
355
|
-
else
|
|
356
|
-
self.tags = nil
|
|
357
|
-
end
|
|
358
|
-
|
|
359
334
|
if attributes.key?(:'created_at')
|
|
360
335
|
self.created_at = attributes[:'created_at']
|
|
361
336
|
else
|
|
@@ -373,22 +348,6 @@ module DaytonaApiClient
|
|
|
373
348
|
else
|
|
374
349
|
self.version = nil
|
|
375
350
|
end
|
|
376
|
-
|
|
377
|
-
if attributes.key?(:'api_version')
|
|
378
|
-
self.api_version = attributes[:'api_version']
|
|
379
|
-
else
|
|
380
|
-
self.api_version = nil
|
|
381
|
-
end
|
|
382
|
-
|
|
383
|
-
if attributes.key?(:'runner_class')
|
|
384
|
-
self.runner_class = attributes[:'runner_class']
|
|
385
|
-
else
|
|
386
|
-
self.runner_class = nil
|
|
387
|
-
end
|
|
388
|
-
|
|
389
|
-
if attributes.key?(:'app_version')
|
|
390
|
-
self.app_version = attributes[:'app_version']
|
|
391
|
-
end
|
|
392
351
|
end
|
|
393
352
|
|
|
394
353
|
# Show invalid properties with the reasons. Usually used together with valid?
|
|
@@ -400,6 +359,22 @@ module DaytonaApiClient
|
|
|
400
359
|
invalid_properties.push('invalid value for "id", id cannot be nil.')
|
|
401
360
|
end
|
|
402
361
|
|
|
362
|
+
if @domain.nil?
|
|
363
|
+
invalid_properties.push('invalid value for "domain", domain cannot be nil.')
|
|
364
|
+
end
|
|
365
|
+
|
|
366
|
+
if @api_url.nil?
|
|
367
|
+
invalid_properties.push('invalid value for "api_url", api_url cannot be nil.')
|
|
368
|
+
end
|
|
369
|
+
|
|
370
|
+
if @proxy_url.nil?
|
|
371
|
+
invalid_properties.push('invalid value for "proxy_url", proxy_url cannot be nil.')
|
|
372
|
+
end
|
|
373
|
+
|
|
374
|
+
if @api_key.nil?
|
|
375
|
+
invalid_properties.push('invalid value for "api_key", api_key cannot be nil.')
|
|
376
|
+
end
|
|
377
|
+
|
|
403
378
|
if @cpu.nil?
|
|
404
379
|
invalid_properties.push('invalid value for "cpu", cpu cannot be nil.')
|
|
405
380
|
end
|
|
@@ -412,12 +387,20 @@ module DaytonaApiClient
|
|
|
412
387
|
invalid_properties.push('invalid value for "disk", disk cannot be nil.')
|
|
413
388
|
end
|
|
414
389
|
|
|
415
|
-
if @
|
|
416
|
-
invalid_properties.push('invalid value for "
|
|
390
|
+
if @gpu.nil?
|
|
391
|
+
invalid_properties.push('invalid value for "gpu", gpu cannot be nil.')
|
|
392
|
+
end
|
|
393
|
+
|
|
394
|
+
if @gpu_type.nil?
|
|
395
|
+
invalid_properties.push('invalid value for "gpu_type", gpu_type cannot be nil.')
|
|
396
|
+
end
|
|
397
|
+
|
|
398
|
+
if @_class.nil?
|
|
399
|
+
invalid_properties.push('invalid value for "_class", _class cannot be nil.')
|
|
417
400
|
end
|
|
418
401
|
|
|
419
|
-
if @
|
|
420
|
-
invalid_properties.push('invalid value for "
|
|
402
|
+
if @region.nil?
|
|
403
|
+
invalid_properties.push('invalid value for "region", region cannot be nil.')
|
|
421
404
|
end
|
|
422
405
|
|
|
423
406
|
if @state.nil?
|
|
@@ -428,10 +411,6 @@ module DaytonaApiClient
|
|
|
428
411
|
invalid_properties.push('invalid value for "unschedulable", unschedulable cannot be nil.')
|
|
429
412
|
end
|
|
430
413
|
|
|
431
|
-
if @tags.nil?
|
|
432
|
-
invalid_properties.push('invalid value for "tags", tags cannot be nil.')
|
|
433
|
-
end
|
|
434
|
-
|
|
435
414
|
if @created_at.nil?
|
|
436
415
|
invalid_properties.push('invalid value for "created_at", created_at cannot be nil.')
|
|
437
416
|
end
|
|
@@ -444,14 +423,6 @@ module DaytonaApiClient
|
|
|
444
423
|
invalid_properties.push('invalid value for "version", version cannot be nil.')
|
|
445
424
|
end
|
|
446
425
|
|
|
447
|
-
if @api_version.nil?
|
|
448
|
-
invalid_properties.push('invalid value for "api_version", api_version cannot be nil.')
|
|
449
|
-
end
|
|
450
|
-
|
|
451
|
-
if @runner_class.nil?
|
|
452
|
-
invalid_properties.push('invalid value for "runner_class", runner_class cannot be nil.')
|
|
453
|
-
end
|
|
454
|
-
|
|
455
426
|
invalid_properties
|
|
456
427
|
end
|
|
457
428
|
|
|
@@ -460,19 +431,22 @@ module DaytonaApiClient
|
|
|
460
431
|
def valid?
|
|
461
432
|
warn '[DEPRECATED] the `valid?` method is obsolete'
|
|
462
433
|
return false if @id.nil?
|
|
434
|
+
return false if @domain.nil?
|
|
435
|
+
return false if @api_url.nil?
|
|
436
|
+
return false if @proxy_url.nil?
|
|
437
|
+
return false if @api_key.nil?
|
|
463
438
|
return false if @cpu.nil?
|
|
464
439
|
return false if @memory.nil?
|
|
465
440
|
return false if @disk.nil?
|
|
441
|
+
return false if @gpu.nil?
|
|
442
|
+
return false if @gpu_type.nil?
|
|
443
|
+
return false if @_class.nil?
|
|
466
444
|
return false if @region.nil?
|
|
467
|
-
return false if @name.nil?
|
|
468
445
|
return false if @state.nil?
|
|
469
446
|
return false if @unschedulable.nil?
|
|
470
|
-
return false if @tags.nil?
|
|
471
447
|
return false if @created_at.nil?
|
|
472
448
|
return false if @updated_at.nil?
|
|
473
449
|
return false if @version.nil?
|
|
474
|
-
return false if @api_version.nil?
|
|
475
|
-
return false if @runner_class.nil?
|
|
476
450
|
true
|
|
477
451
|
end
|
|
478
452
|
|
|
@@ -486,6 +460,46 @@ module DaytonaApiClient
|
|
|
486
460
|
@id = id
|
|
487
461
|
end
|
|
488
462
|
|
|
463
|
+
# Custom attribute writer method with validation
|
|
464
|
+
# @param [Object] domain Value to be assigned
|
|
465
|
+
def domain=(domain)
|
|
466
|
+
if domain.nil?
|
|
467
|
+
fail ArgumentError, 'domain cannot be nil'
|
|
468
|
+
end
|
|
469
|
+
|
|
470
|
+
@domain = domain
|
|
471
|
+
end
|
|
472
|
+
|
|
473
|
+
# Custom attribute writer method with validation
|
|
474
|
+
# @param [Object] api_url Value to be assigned
|
|
475
|
+
def api_url=(api_url)
|
|
476
|
+
if api_url.nil?
|
|
477
|
+
fail ArgumentError, 'api_url cannot be nil'
|
|
478
|
+
end
|
|
479
|
+
|
|
480
|
+
@api_url = api_url
|
|
481
|
+
end
|
|
482
|
+
|
|
483
|
+
# Custom attribute writer method with validation
|
|
484
|
+
# @param [Object] proxy_url Value to be assigned
|
|
485
|
+
def proxy_url=(proxy_url)
|
|
486
|
+
if proxy_url.nil?
|
|
487
|
+
fail ArgumentError, 'proxy_url cannot be nil'
|
|
488
|
+
end
|
|
489
|
+
|
|
490
|
+
@proxy_url = proxy_url
|
|
491
|
+
end
|
|
492
|
+
|
|
493
|
+
# Custom attribute writer method with validation
|
|
494
|
+
# @param [Object] api_key Value to be assigned
|
|
495
|
+
def api_key=(api_key)
|
|
496
|
+
if api_key.nil?
|
|
497
|
+
fail ArgumentError, 'api_key cannot be nil'
|
|
498
|
+
end
|
|
499
|
+
|
|
500
|
+
@api_key = api_key
|
|
501
|
+
end
|
|
502
|
+
|
|
489
503
|
# Custom attribute writer method with validation
|
|
490
504
|
# @param [Object] cpu Value to be assigned
|
|
491
505
|
def cpu=(cpu)
|
|
@@ -517,23 +531,43 @@ module DaytonaApiClient
|
|
|
517
531
|
end
|
|
518
532
|
|
|
519
533
|
# Custom attribute writer method with validation
|
|
520
|
-
# @param [Object]
|
|
521
|
-
def
|
|
522
|
-
if
|
|
523
|
-
fail ArgumentError, '
|
|
534
|
+
# @param [Object] gpu Value to be assigned
|
|
535
|
+
def gpu=(gpu)
|
|
536
|
+
if gpu.nil?
|
|
537
|
+
fail ArgumentError, 'gpu cannot be nil'
|
|
524
538
|
end
|
|
525
539
|
|
|
526
|
-
@
|
|
540
|
+
@gpu = gpu
|
|
541
|
+
end
|
|
542
|
+
|
|
543
|
+
# Custom attribute writer method with validation
|
|
544
|
+
# @param [Object] gpu_type Value to be assigned
|
|
545
|
+
def gpu_type=(gpu_type)
|
|
546
|
+
if gpu_type.nil?
|
|
547
|
+
fail ArgumentError, 'gpu_type cannot be nil'
|
|
548
|
+
end
|
|
549
|
+
|
|
550
|
+
@gpu_type = gpu_type
|
|
551
|
+
end
|
|
552
|
+
|
|
553
|
+
# Custom attribute writer method with validation
|
|
554
|
+
# @param [Object] _class Value to be assigned
|
|
555
|
+
def _class=(_class)
|
|
556
|
+
if _class.nil?
|
|
557
|
+
fail ArgumentError, '_class cannot be nil'
|
|
558
|
+
end
|
|
559
|
+
|
|
560
|
+
@_class = _class
|
|
527
561
|
end
|
|
528
562
|
|
|
529
563
|
# Custom attribute writer method with validation
|
|
530
|
-
# @param [Object]
|
|
531
|
-
def
|
|
532
|
-
if
|
|
533
|
-
fail ArgumentError, '
|
|
564
|
+
# @param [Object] region Value to be assigned
|
|
565
|
+
def region=(region)
|
|
566
|
+
if region.nil?
|
|
567
|
+
fail ArgumentError, 'region cannot be nil'
|
|
534
568
|
end
|
|
535
569
|
|
|
536
|
-
@
|
|
570
|
+
@region = region
|
|
537
571
|
end
|
|
538
572
|
|
|
539
573
|
# Custom attribute writer method with validation
|
|
@@ -556,16 +590,6 @@ module DaytonaApiClient
|
|
|
556
590
|
@unschedulable = unschedulable
|
|
557
591
|
end
|
|
558
592
|
|
|
559
|
-
# Custom attribute writer method with validation
|
|
560
|
-
# @param [Object] tags Value to be assigned
|
|
561
|
-
def tags=(tags)
|
|
562
|
-
if tags.nil?
|
|
563
|
-
fail ArgumentError, 'tags cannot be nil'
|
|
564
|
-
end
|
|
565
|
-
|
|
566
|
-
@tags = tags
|
|
567
|
-
end
|
|
568
|
-
|
|
569
593
|
# Custom attribute writer method with validation
|
|
570
594
|
# @param [Object] created_at Value to be assigned
|
|
571
595
|
def created_at=(created_at)
|
|
@@ -596,26 +620,6 @@ module DaytonaApiClient
|
|
|
596
620
|
@version = version
|
|
597
621
|
end
|
|
598
622
|
|
|
599
|
-
# Custom attribute writer method with validation
|
|
600
|
-
# @param [Object] api_version Value to be assigned
|
|
601
|
-
def api_version=(api_version)
|
|
602
|
-
if api_version.nil?
|
|
603
|
-
fail ArgumentError, 'api_version cannot be nil'
|
|
604
|
-
end
|
|
605
|
-
|
|
606
|
-
@api_version = api_version
|
|
607
|
-
end
|
|
608
|
-
|
|
609
|
-
# Custom attribute writer method with validation
|
|
610
|
-
# @param [Object] runner_class Value to be assigned
|
|
611
|
-
def runner_class=(runner_class)
|
|
612
|
-
if runner_class.nil?
|
|
613
|
-
fail ArgumentError, 'runner_class cannot be nil'
|
|
614
|
-
end
|
|
615
|
-
|
|
616
|
-
@runner_class = runner_class
|
|
617
|
-
end
|
|
618
|
-
|
|
619
623
|
# Checks equality by comparing each attribute.
|
|
620
624
|
# @param [Object] Object to be compared
|
|
621
625
|
def ==(o)
|
|
@@ -625,12 +629,13 @@ module DaytonaApiClient
|
|
|
625
629
|
domain == o.domain &&
|
|
626
630
|
api_url == o.api_url &&
|
|
627
631
|
proxy_url == o.proxy_url &&
|
|
632
|
+
api_key == o.api_key &&
|
|
628
633
|
cpu == o.cpu &&
|
|
629
634
|
memory == o.memory &&
|
|
630
635
|
disk == o.disk &&
|
|
631
636
|
gpu == o.gpu &&
|
|
632
637
|
gpu_type == o.gpu_type &&
|
|
633
|
-
|
|
638
|
+
_class == o._class &&
|
|
634
639
|
current_cpu_usage_percentage == o.current_cpu_usage_percentage &&
|
|
635
640
|
current_memory_usage_percentage == o.current_memory_usage_percentage &&
|
|
636
641
|
current_disk_usage_percentage == o.current_disk_usage_percentage &&
|
|
@@ -638,20 +643,14 @@ module DaytonaApiClient
|
|
|
638
643
|
current_allocated_memory_gi_b == o.current_allocated_memory_gi_b &&
|
|
639
644
|
current_allocated_disk_gi_b == o.current_allocated_disk_gi_b &&
|
|
640
645
|
current_snapshot_count == o.current_snapshot_count &&
|
|
641
|
-
current_started_sandboxes == o.current_started_sandboxes &&
|
|
642
646
|
availability_score == o.availability_score &&
|
|
643
647
|
region == o.region &&
|
|
644
|
-
name == o.name &&
|
|
645
648
|
state == o.state &&
|
|
646
649
|
last_checked == o.last_checked &&
|
|
647
650
|
unschedulable == o.unschedulable &&
|
|
648
|
-
tags == o.tags &&
|
|
649
651
|
created_at == o.created_at &&
|
|
650
652
|
updated_at == o.updated_at &&
|
|
651
|
-
version == o.version
|
|
652
|
-
api_version == o.api_version &&
|
|
653
|
-
runner_class == o.runner_class &&
|
|
654
|
-
app_version == o.app_version
|
|
653
|
+
version == o.version
|
|
655
654
|
end
|
|
656
655
|
|
|
657
656
|
# @see the `==` method
|
|
@@ -663,7 +662,7 @@ module DaytonaApiClient
|
|
|
663
662
|
# Calculates hash code according to all attributes.
|
|
664
663
|
# @return [Integer] Hash code
|
|
665
664
|
def hash
|
|
666
|
-
[id, domain, api_url, proxy_url, cpu, memory, disk, gpu, gpu_type,
|
|
665
|
+
[id, domain, api_url, proxy_url, api_key, cpu, memory, disk, gpu, gpu_type, _class, current_cpu_usage_percentage, current_memory_usage_percentage, current_disk_usage_percentage, current_allocated_cpu, current_allocated_memory_gi_b, current_allocated_disk_gi_b, current_snapshot_count, availability_score, region, state, last_checked, unschedulable, created_at, updated_at, version].hash
|
|
667
666
|
end
|
|
668
667
|
|
|
669
668
|
# Builds the object from hash
|
|
@@ -689,6 +688,61 @@ module DaytonaApiClient
|
|
|
689
688
|
new(transformed_hash)
|
|
690
689
|
end
|
|
691
690
|
|
|
691
|
+
# Deserializes the data based on type
|
|
692
|
+
# @param string type Data type
|
|
693
|
+
# @param string value Value to be deserialized
|
|
694
|
+
# @return [Object] Deserialized data
|
|
695
|
+
def self._deserialize(type, value)
|
|
696
|
+
case type.to_sym
|
|
697
|
+
when :Time
|
|
698
|
+
Time.parse(value)
|
|
699
|
+
when :Date
|
|
700
|
+
Date.parse(value)
|
|
701
|
+
when :String
|
|
702
|
+
value.to_s
|
|
703
|
+
when :Integer
|
|
704
|
+
value.to_i
|
|
705
|
+
when :Float
|
|
706
|
+
value.to_f
|
|
707
|
+
when :Boolean
|
|
708
|
+
if value.to_s =~ /\A(true|t|yes|y|1)\z/i
|
|
709
|
+
true
|
|
710
|
+
else
|
|
711
|
+
false
|
|
712
|
+
end
|
|
713
|
+
when :Object
|
|
714
|
+
# generic object (usually a Hash), return directly
|
|
715
|
+
value
|
|
716
|
+
when /\AArray<(?<inner_type>.+)>\z/
|
|
717
|
+
inner_type = Regexp.last_match[:inner_type]
|
|
718
|
+
value.map { |v| _deserialize(inner_type, v) }
|
|
719
|
+
when /\AHash<(?<k_type>.+?), (?<v_type>.+)>\z/
|
|
720
|
+
k_type = Regexp.last_match[:k_type]
|
|
721
|
+
v_type = Regexp.last_match[:v_type]
|
|
722
|
+
{}.tap do |hash|
|
|
723
|
+
value.each do |k, v|
|
|
724
|
+
hash[_deserialize(k_type, k)] = _deserialize(v_type, v)
|
|
725
|
+
end
|
|
726
|
+
end
|
|
727
|
+
else # model
|
|
728
|
+
# models (e.g. Pet) or oneOf
|
|
729
|
+
klass = DaytonaApiClient.const_get(type)
|
|
730
|
+
klass.respond_to?(:openapi_any_of) || klass.respond_to?(:openapi_one_of) ? klass.build(value) : klass.build_from_hash(value)
|
|
731
|
+
end
|
|
732
|
+
end
|
|
733
|
+
|
|
734
|
+
# Returns the string representation of the object
|
|
735
|
+
# @return [String] String presentation of the object
|
|
736
|
+
def to_s
|
|
737
|
+
to_hash.to_s
|
|
738
|
+
end
|
|
739
|
+
|
|
740
|
+
# to_body is an alias to to_hash (backward compatibility)
|
|
741
|
+
# @return [Hash] Returns the object in the form of hash
|
|
742
|
+
def to_body
|
|
743
|
+
to_hash
|
|
744
|
+
end
|
|
745
|
+
|
|
692
746
|
# Returns the object in the form of hash
|
|
693
747
|
# @return [Hash] Returns the object in the form of hash
|
|
694
748
|
def to_hash
|
|
@@ -705,6 +759,22 @@ module DaytonaApiClient
|
|
|
705
759
|
hash
|
|
706
760
|
end
|
|
707
761
|
|
|
762
|
+
# Outputs non-array value in the form of hash
|
|
763
|
+
# For object, use to_hash. Otherwise, just return the value
|
|
764
|
+
# @param [Object] value Any valid value
|
|
765
|
+
# @return [Hash] Returns the value in the form of hash
|
|
766
|
+
def _to_hash(value)
|
|
767
|
+
if value.is_a?(Array)
|
|
768
|
+
value.compact.map { |v| _to_hash(v) }
|
|
769
|
+
elsif value.is_a?(Hash)
|
|
770
|
+
{}.tap do |hash|
|
|
771
|
+
value.each { |k, v| hash[k] = _to_hash(v) }
|
|
772
|
+
end
|
|
773
|
+
elsif value.respond_to? :to_hash
|
|
774
|
+
value.to_hash
|
|
775
|
+
else
|
|
776
|
+
value
|
|
777
|
+
end
|
|
778
|
+
end
|
|
708
779
|
end
|
|
709
|
-
|
|
710
780
|
end
|