daytona_api_client 0.178.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 +292 -1620
- 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 +217 -16
- data/lib/daytona_api_client/api/workspace_api.rb +6 -6
- 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 +77 -16
- data/lib/daytona_api_client/models/create_session_request.rb +74 -3
- data/lib/daytona_api_client/models/create_snapshot.rb +88 -17
- 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 +78 -7
- 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.rb +74 -3
- data/lib/daytona_api_client/models/paginated_snapshots.rb +74 -3
- data/lib/daytona_api_client/models/{paginated_logs.rb → paginated_snapshots_dto.rb} +77 -10
- data/lib/daytona_api_client/models/port_preview_url.rb +88 -34
- data/lib/daytona_api_client/models/position.rb +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 +191 -138
- 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 +92 -95
- data/lib/daytona_api_client/models/sandbox_class.rb +3 -4
- data/lib/daytona_api_client/models/sandbox_desired_state.rb +3 -4
- data/lib/daytona_api_client/models/sandbox_info.rb +74 -3
- 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 -39
- 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/workspace.rb +107 -83
- data/lib/daytona_api_client/version.rb +2 -2
- data/lib/daytona_api_client.rb +3 -49
- data/project.json +11 -42
- metadata +6 -56
- data/.gitignore +0 -39
- data/.openapi-generator/FILES +0 -211
- 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 -1151
- 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_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 -165
- data/lib/daytona_api_client/models/fork_sandbox.rb +0 -148
- 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/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_jobs.rb +0 -244
- 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 -316
- data/lib/daytona_api_client/models/region_type.rb +0 -42
- data/lib/daytona_api_client/models/region_usage_overview.rb +0 -368
- 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 -764
- data/lib/daytona_api_client/models/runner_health_metrics.rb +0 -462
- 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/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 -214
- 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
- data/lib/daytona_api_client/models/workspace_port_preview_url.rb +0 -192
|
@@ -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
|
|
|
@@ -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,6 +122,7 @@ 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',
|
|
@@ -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,6 +164,7 @@ 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',
|
|
@@ -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,10 +261,14 @@ 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
274
|
if attributes.key?(:'_class')
|
|
@@ -314,10 +305,6 @@ module DaytonaApiClient
|
|
|
314
305
|
self.current_snapshot_count = attributes[:'current_snapshot_count']
|
|
315
306
|
end
|
|
316
307
|
|
|
317
|
-
if attributes.key?(:'current_started_sandboxes')
|
|
318
|
-
self.current_started_sandboxes = attributes[:'current_started_sandboxes']
|
|
319
|
-
end
|
|
320
|
-
|
|
321
308
|
if attributes.key?(:'availability_score')
|
|
322
309
|
self.availability_score = attributes[:'availability_score']
|
|
323
310
|
end
|
|
@@ -328,12 +315,6 @@ module DaytonaApiClient
|
|
|
328
315
|
self.region = nil
|
|
329
316
|
end
|
|
330
317
|
|
|
331
|
-
if attributes.key?(:'name')
|
|
332
|
-
self.name = attributes[:'name']
|
|
333
|
-
else
|
|
334
|
-
self.name = nil
|
|
335
|
-
end
|
|
336
|
-
|
|
337
318
|
if attributes.key?(:'state')
|
|
338
319
|
self.state = attributes[:'state']
|
|
339
320
|
else
|
|
@@ -350,14 +331,6 @@ module DaytonaApiClient
|
|
|
350
331
|
self.unschedulable = nil
|
|
351
332
|
end
|
|
352
333
|
|
|
353
|
-
if attributes.key?(:'tags')
|
|
354
|
-
if (value = attributes[:'tags']).is_a?(Array)
|
|
355
|
-
self.tags = value
|
|
356
|
-
end
|
|
357
|
-
else
|
|
358
|
-
self.tags = nil
|
|
359
|
-
end
|
|
360
|
-
|
|
361
334
|
if attributes.key?(:'created_at')
|
|
362
335
|
self.created_at = attributes[:'created_at']
|
|
363
336
|
else
|
|
@@ -375,22 +348,6 @@ module DaytonaApiClient
|
|
|
375
348
|
else
|
|
376
349
|
self.version = nil
|
|
377
350
|
end
|
|
378
|
-
|
|
379
|
-
if attributes.key?(:'api_version')
|
|
380
|
-
self.api_version = attributes[:'api_version']
|
|
381
|
-
else
|
|
382
|
-
self.api_version = nil
|
|
383
|
-
end
|
|
384
|
-
|
|
385
|
-
if attributes.key?(:'runner_class')
|
|
386
|
-
self.runner_class = attributes[:'runner_class']
|
|
387
|
-
else
|
|
388
|
-
self.runner_class = nil
|
|
389
|
-
end
|
|
390
|
-
|
|
391
|
-
if attributes.key?(:'app_version')
|
|
392
|
-
self.app_version = attributes[:'app_version']
|
|
393
|
-
end
|
|
394
351
|
end
|
|
395
352
|
|
|
396
353
|
# Show invalid properties with the reasons. Usually used together with valid?
|
|
@@ -402,6 +359,22 @@ module DaytonaApiClient
|
|
|
402
359
|
invalid_properties.push('invalid value for "id", id cannot be nil.')
|
|
403
360
|
end
|
|
404
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
|
+
|
|
405
378
|
if @cpu.nil?
|
|
406
379
|
invalid_properties.push('invalid value for "cpu", cpu cannot be nil.')
|
|
407
380
|
end
|
|
@@ -414,6 +387,14 @@ module DaytonaApiClient
|
|
|
414
387
|
invalid_properties.push('invalid value for "disk", disk cannot be nil.')
|
|
415
388
|
end
|
|
416
389
|
|
|
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
|
+
|
|
417
398
|
if @_class.nil?
|
|
418
399
|
invalid_properties.push('invalid value for "_class", _class cannot be nil.')
|
|
419
400
|
end
|
|
@@ -422,10 +403,6 @@ module DaytonaApiClient
|
|
|
422
403
|
invalid_properties.push('invalid value for "region", region cannot be nil.')
|
|
423
404
|
end
|
|
424
405
|
|
|
425
|
-
if @name.nil?
|
|
426
|
-
invalid_properties.push('invalid value for "name", name cannot be nil.')
|
|
427
|
-
end
|
|
428
|
-
|
|
429
406
|
if @state.nil?
|
|
430
407
|
invalid_properties.push('invalid value for "state", state cannot be nil.')
|
|
431
408
|
end
|
|
@@ -434,10 +411,6 @@ module DaytonaApiClient
|
|
|
434
411
|
invalid_properties.push('invalid value for "unschedulable", unschedulable cannot be nil.')
|
|
435
412
|
end
|
|
436
413
|
|
|
437
|
-
if @tags.nil?
|
|
438
|
-
invalid_properties.push('invalid value for "tags", tags cannot be nil.')
|
|
439
|
-
end
|
|
440
|
-
|
|
441
414
|
if @created_at.nil?
|
|
442
415
|
invalid_properties.push('invalid value for "created_at", created_at cannot be nil.')
|
|
443
416
|
end
|
|
@@ -450,14 +423,6 @@ module DaytonaApiClient
|
|
|
450
423
|
invalid_properties.push('invalid value for "version", version cannot be nil.')
|
|
451
424
|
end
|
|
452
425
|
|
|
453
|
-
if @api_version.nil?
|
|
454
|
-
invalid_properties.push('invalid value for "api_version", api_version cannot be nil.')
|
|
455
|
-
end
|
|
456
|
-
|
|
457
|
-
if @runner_class.nil?
|
|
458
|
-
invalid_properties.push('invalid value for "runner_class", runner_class cannot be nil.')
|
|
459
|
-
end
|
|
460
|
-
|
|
461
426
|
invalid_properties
|
|
462
427
|
end
|
|
463
428
|
|
|
@@ -466,20 +431,22 @@ module DaytonaApiClient
|
|
|
466
431
|
def valid?
|
|
467
432
|
warn '[DEPRECATED] the `valid?` method is obsolete'
|
|
468
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?
|
|
469
438
|
return false if @cpu.nil?
|
|
470
439
|
return false if @memory.nil?
|
|
471
440
|
return false if @disk.nil?
|
|
441
|
+
return false if @gpu.nil?
|
|
442
|
+
return false if @gpu_type.nil?
|
|
472
443
|
return false if @_class.nil?
|
|
473
444
|
return false if @region.nil?
|
|
474
|
-
return false if @name.nil?
|
|
475
445
|
return false if @state.nil?
|
|
476
446
|
return false if @unschedulable.nil?
|
|
477
|
-
return false if @tags.nil?
|
|
478
447
|
return false if @created_at.nil?
|
|
479
448
|
return false if @updated_at.nil?
|
|
480
449
|
return false if @version.nil?
|
|
481
|
-
return false if @api_version.nil?
|
|
482
|
-
return false if @runner_class.nil?
|
|
483
450
|
true
|
|
484
451
|
end
|
|
485
452
|
|
|
@@ -493,6 +460,46 @@ module DaytonaApiClient
|
|
|
493
460
|
@id = id
|
|
494
461
|
end
|
|
495
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
|
+
|
|
496
503
|
# Custom attribute writer method with validation
|
|
497
504
|
# @param [Object] cpu Value to be assigned
|
|
498
505
|
def cpu=(cpu)
|
|
@@ -523,6 +530,26 @@ module DaytonaApiClient
|
|
|
523
530
|
@disk = disk
|
|
524
531
|
end
|
|
525
532
|
|
|
533
|
+
# Custom attribute writer method with validation
|
|
534
|
+
# @param [Object] gpu Value to be assigned
|
|
535
|
+
def gpu=(gpu)
|
|
536
|
+
if gpu.nil?
|
|
537
|
+
fail ArgumentError, 'gpu cannot be nil'
|
|
538
|
+
end
|
|
539
|
+
|
|
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
|
+
|
|
526
553
|
# Custom attribute writer method with validation
|
|
527
554
|
# @param [Object] _class Value to be assigned
|
|
528
555
|
def _class=(_class)
|
|
@@ -543,16 +570,6 @@ module DaytonaApiClient
|
|
|
543
570
|
@region = region
|
|
544
571
|
end
|
|
545
572
|
|
|
546
|
-
# Custom attribute writer method with validation
|
|
547
|
-
# @param [Object] name Value to be assigned
|
|
548
|
-
def name=(name)
|
|
549
|
-
if name.nil?
|
|
550
|
-
fail ArgumentError, 'name cannot be nil'
|
|
551
|
-
end
|
|
552
|
-
|
|
553
|
-
@name = name
|
|
554
|
-
end
|
|
555
|
-
|
|
556
573
|
# Custom attribute writer method with validation
|
|
557
574
|
# @param [Object] state Value to be assigned
|
|
558
575
|
def state=(state)
|
|
@@ -573,16 +590,6 @@ module DaytonaApiClient
|
|
|
573
590
|
@unschedulable = unschedulable
|
|
574
591
|
end
|
|
575
592
|
|
|
576
|
-
# Custom attribute writer method with validation
|
|
577
|
-
# @param [Object] tags Value to be assigned
|
|
578
|
-
def tags=(tags)
|
|
579
|
-
if tags.nil?
|
|
580
|
-
fail ArgumentError, 'tags cannot be nil'
|
|
581
|
-
end
|
|
582
|
-
|
|
583
|
-
@tags = tags
|
|
584
|
-
end
|
|
585
|
-
|
|
586
593
|
# Custom attribute writer method with validation
|
|
587
594
|
# @param [Object] created_at Value to be assigned
|
|
588
595
|
def created_at=(created_at)
|
|
@@ -613,26 +620,6 @@ module DaytonaApiClient
|
|
|
613
620
|
@version = version
|
|
614
621
|
end
|
|
615
622
|
|
|
616
|
-
# Custom attribute writer method with validation
|
|
617
|
-
# @param [Object] api_version Value to be assigned
|
|
618
|
-
def api_version=(api_version)
|
|
619
|
-
if api_version.nil?
|
|
620
|
-
fail ArgumentError, 'api_version cannot be nil'
|
|
621
|
-
end
|
|
622
|
-
|
|
623
|
-
@api_version = api_version
|
|
624
|
-
end
|
|
625
|
-
|
|
626
|
-
# Custom attribute writer method with validation
|
|
627
|
-
# @param [Object] runner_class Value to be assigned
|
|
628
|
-
def runner_class=(runner_class)
|
|
629
|
-
if runner_class.nil?
|
|
630
|
-
fail ArgumentError, 'runner_class cannot be nil'
|
|
631
|
-
end
|
|
632
|
-
|
|
633
|
-
@runner_class = runner_class
|
|
634
|
-
end
|
|
635
|
-
|
|
636
623
|
# Checks equality by comparing each attribute.
|
|
637
624
|
# @param [Object] Object to be compared
|
|
638
625
|
def ==(o)
|
|
@@ -642,6 +629,7 @@ module DaytonaApiClient
|
|
|
642
629
|
domain == o.domain &&
|
|
643
630
|
api_url == o.api_url &&
|
|
644
631
|
proxy_url == o.proxy_url &&
|
|
632
|
+
api_key == o.api_key &&
|
|
645
633
|
cpu == o.cpu &&
|
|
646
634
|
memory == o.memory &&
|
|
647
635
|
disk == o.disk &&
|
|
@@ -655,20 +643,14 @@ module DaytonaApiClient
|
|
|
655
643
|
current_allocated_memory_gi_b == o.current_allocated_memory_gi_b &&
|
|
656
644
|
current_allocated_disk_gi_b == o.current_allocated_disk_gi_b &&
|
|
657
645
|
current_snapshot_count == o.current_snapshot_count &&
|
|
658
|
-
current_started_sandboxes == o.current_started_sandboxes &&
|
|
659
646
|
availability_score == o.availability_score &&
|
|
660
647
|
region == o.region &&
|
|
661
|
-
name == o.name &&
|
|
662
648
|
state == o.state &&
|
|
663
649
|
last_checked == o.last_checked &&
|
|
664
650
|
unschedulable == o.unschedulable &&
|
|
665
|
-
tags == o.tags &&
|
|
666
651
|
created_at == o.created_at &&
|
|
667
652
|
updated_at == o.updated_at &&
|
|
668
|
-
version == o.version
|
|
669
|
-
api_version == o.api_version &&
|
|
670
|
-
runner_class == o.runner_class &&
|
|
671
|
-
app_version == o.app_version
|
|
653
|
+
version == o.version
|
|
672
654
|
end
|
|
673
655
|
|
|
674
656
|
# @see the `==` method
|
|
@@ -680,7 +662,7 @@ module DaytonaApiClient
|
|
|
680
662
|
# Calculates hash code according to all attributes.
|
|
681
663
|
# @return [Integer] Hash code
|
|
682
664
|
def hash
|
|
683
|
-
[id, domain, api_url, proxy_url, 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,
|
|
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
|
|
684
666
|
end
|
|
685
667
|
|
|
686
668
|
# Builds the object from hash
|
|
@@ -706,6 +688,61 @@ module DaytonaApiClient
|
|
|
706
688
|
new(transformed_hash)
|
|
707
689
|
end
|
|
708
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
|
+
|
|
709
746
|
# Returns the object in the form of hash
|
|
710
747
|
# @return [Hash] Returns the object in the form of hash
|
|
711
748
|
def to_hash
|
|
@@ -722,6 +759,22 @@ module DaytonaApiClient
|
|
|
722
759
|
hash
|
|
723
760
|
end
|
|
724
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
|
|
725
779
|
end
|
|
726
|
-
|
|
727
780
|
end
|