daytona_api_client 0.196.0 → 0.198.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/.openapi-generator/FILES +3 -68
- data/lib/daytona_api_client/api/admin_api.rb +70 -0
- data/lib/daytona_api_client/api/organizations_api.rb +131 -0
- data/lib/daytona_api_client/api/preview_api.rb +64 -0
- data/lib/daytona_api_client/api/sandbox_api.rb +70 -0
- data/lib/daytona_api_client/models/{computer_use_status_response.rb → available_sandbox_class.rb} +84 -24
- data/lib/daytona_api_client/models/create_sandbox.rb +11 -1
- data/lib/daytona_api_client/models/organization.rb +28 -1
- data/lib/daytona_api_client/models/{create_session_request.rb → organization_preview_warning.rb} +20 -20
- data/lib/daytona_api_client/models/{download_files.rb → preview_warning.rb} +20 -22
- data/lib/daytona_api_client/models/sandbox.rb +11 -1
- data/lib/daytona_api_client/models/sandbox_list_item.rb +11 -1
- data/lib/daytona_api_client/version.rb +1 -1
- data/lib/daytona_api_client.rb +3 -68
- metadata +4 -69
- data/lib/daytona_api_client/api/toolbox_api.rb +0 -5108
- data/lib/daytona_api_client/models/command.rb +0 -202
- data/lib/daytona_api_client/models/completion_context.rb +0 -173
- data/lib/daytona_api_client/models/completion_item.rb +0 -218
- data/lib/daytona_api_client/models/completion_list.rb +0 -192
- data/lib/daytona_api_client/models/compressed_screenshot_response.rb +0 -185
- data/lib/daytona_api_client/models/computer_use_start_response.rb +0 -192
- data/lib/daytona_api_client/models/computer_use_stop_response.rb +0 -192
- data/lib/daytona_api_client/models/display_info_response.rb +0 -167
- data/lib/daytona_api_client/models/execute_request.rb +0 -184
- data/lib/daytona_api_client/models/execute_response.rb +0 -192
- data/lib/daytona_api_client/models/file_info.rb +0 -346
- data/lib/daytona_api_client/models/file_status.rb +0 -242
- data/lib/daytona_api_client/models/git_add_request.rb +0 -193
- data/lib/daytona_api_client/models/git_branch_request.rb +0 -190
- data/lib/daytona_api_client/models/git_checkout_request.rb +0 -190
- data/lib/daytona_api_client/models/git_clone_request.rb +0 -226
- data/lib/daytona_api_client/models/git_commit_info.rb +0 -268
- data/lib/daytona_api_client/models/git_commit_request.rb +0 -254
- data/lib/daytona_api_client/models/git_commit_response.rb +0 -164
- data/lib/daytona_api_client/models/git_delete_branch_request.rb +0 -190
- data/lib/daytona_api_client/models/git_repo_request.rb +0 -182
- data/lib/daytona_api_client/models/git_status.rb +0 -219
- data/lib/daytona_api_client/models/keyboard_hotkey_request.rb +0 -165
- data/lib/daytona_api_client/models/keyboard_press_request.rb +0 -177
- data/lib/daytona_api_client/models/keyboard_type_request.rb +0 -175
- data/lib/daytona_api_client/models/list_branch_response.rb +0 -166
- data/lib/daytona_api_client/models/lsp_completion_params.rb +0 -254
- data/lib/daytona_api_client/models/lsp_document_request.rb +0 -219
- data/lib/daytona_api_client/models/lsp_location.rb +0 -190
- data/lib/daytona_api_client/models/lsp_server_request.rb +0 -192
- data/lib/daytona_api_client/models/lsp_symbol.rb +0 -216
- data/lib/daytona_api_client/models/match.rb +0 -216
- data/lib/daytona_api_client/models/mouse_click_request.rb +0 -212
- data/lib/daytona_api_client/models/mouse_click_response.rb +0 -192
- data/lib/daytona_api_client/models/mouse_drag_request.rb +0 -256
- data/lib/daytona_api_client/models/mouse_drag_response.rb +0 -192
- data/lib/daytona_api_client/models/mouse_move_request.rb +0 -192
- data/lib/daytona_api_client/models/mouse_move_response.rb +0 -192
- data/lib/daytona_api_client/models/mouse_position.rb +0 -192
- data/lib/daytona_api_client/models/mouse_scroll_request.rb +0 -229
- data/lib/daytona_api_client/models/mouse_scroll_response.rb +0 -165
- data/lib/daytona_api_client/models/position.rb +0 -190
- data/lib/daytona_api_client/models/process_errors_response.rb +0 -192
- data/lib/daytona_api_client/models/process_logs_response.rb +0 -192
- data/lib/daytona_api_client/models/process_restart_response.rb +0 -192
- data/lib/daytona_api_client/models/process_status_response.rb +0 -192
- data/lib/daytona_api_client/models/project_dir_response.rb +0 -147
- data/lib/daytona_api_client/models/pty_create_request.rb +0 -217
- data/lib/daytona_api_client/models/pty_create_response.rb +0 -165
- data/lib/daytona_api_client/models/pty_list_response.rb +0 -167
- data/lib/daytona_api_client/models/pty_resize_request.rb +0 -192
- data/lib/daytona_api_client/models/pty_session_info.rb +0 -354
- data/lib/daytona_api_client/models/range.rb +0 -190
- data/lib/daytona_api_client/models/region_screenshot_response.rb +0 -185
- data/lib/daytona_api_client/models/replace_request.rb +0 -218
- data/lib/daytona_api_client/models/replace_result.rb +0 -165
- data/lib/daytona_api_client/models/screenshot_response.rb +0 -185
- data/lib/daytona_api_client/models/search_files_response.rb +0 -166
- data/lib/daytona_api_client/models/session.rb +0 -180
- data/lib/daytona_api_client/models/session_execute_request.rb +0 -185
- data/lib/daytona_api_client/models/session_execute_response.rb +0 -168
- data/lib/daytona_api_client/models/user_home_dir_response.rb +0 -147
- data/lib/daytona_api_client/models/windows_response.rb +0 -194
- data/lib/daytona_api_client/models/work_dir_response.rb +0 -147
checksums.yaml
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
---
|
|
2
2
|
SHA256:
|
|
3
|
-
metadata.gz:
|
|
4
|
-
data.tar.gz:
|
|
3
|
+
metadata.gz: 9404427e73141989733ffebfe72509e30432a21589633c2448db042450fe619b
|
|
4
|
+
data.tar.gz: f1ed92110958214333728fc779302738df2f20f3c9ab45607518be4bfd3295bc
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: 3dd3e841790fea9dedcfdf0f88446dc1cb310f423f607fa6a41d2fe1f708753e47e28220c18f99229a67d56c70a2e5dd585e4a24786892dc1167abbb99ff3f58
|
|
7
|
+
data.tar.gz: bcefcd5188ee260febeb153f301c413deec49880556c4af35b81c1edd02237768083fb30cf89e85750dfb1f7078a64df837d8ebabcb7361324687c3f4bfd9629
|
data/.openapi-generator/FILES
CHANGED
|
@@ -19,7 +19,6 @@ lib/daytona_api_client/api/runners_api.rb
|
|
|
19
19
|
lib/daytona_api_client/api/sandbox_api.rb
|
|
20
20
|
lib/daytona_api_client/api/secret_api.rb
|
|
21
21
|
lib/daytona_api_client/api/snapshots_api.rb
|
|
22
|
-
lib/daytona_api_client/api/toolbox_api.rb
|
|
23
22
|
lib/daytona_api_client/api/users_api.rb
|
|
24
23
|
lib/daytona_api_client/api/volumes_api.rb
|
|
25
24
|
lib/daytona_api_client/api/webhooks_api.rb
|
|
@@ -35,15 +34,8 @@ lib/daytona_api_client/models/announcement.rb
|
|
|
35
34
|
lib/daytona_api_client/models/api_key_list.rb
|
|
36
35
|
lib/daytona_api_client/models/api_key_response.rb
|
|
37
36
|
lib/daytona_api_client/models/audit_log.rb
|
|
37
|
+
lib/daytona_api_client/models/available_sandbox_class.rb
|
|
38
38
|
lib/daytona_api_client/models/build_info.rb
|
|
39
|
-
lib/daytona_api_client/models/command.rb
|
|
40
|
-
lib/daytona_api_client/models/completion_context.rb
|
|
41
|
-
lib/daytona_api_client/models/completion_item.rb
|
|
42
|
-
lib/daytona_api_client/models/completion_list.rb
|
|
43
|
-
lib/daytona_api_client/models/compressed_screenshot_response.rb
|
|
44
|
-
lib/daytona_api_client/models/computer_use_start_response.rb
|
|
45
|
-
lib/daytona_api_client/models/computer_use_status_response.rb
|
|
46
|
-
lib/daytona_api_client/models/computer_use_stop_response.rb
|
|
47
39
|
lib/daytona_api_client/models/create_api_key.rb
|
|
48
40
|
lib/daytona_api_client/models/create_build_info.rb
|
|
49
41
|
lib/daytona_api_client/models/create_docker_registry.rb
|
|
@@ -60,30 +52,13 @@ lib/daytona_api_client/models/create_runner_response.rb
|
|
|
60
52
|
lib/daytona_api_client/models/create_sandbox.rb
|
|
61
53
|
lib/daytona_api_client/models/create_sandbox_snapshot.rb
|
|
62
54
|
lib/daytona_api_client/models/create_secret.rb
|
|
63
|
-
lib/daytona_api_client/models/create_session_request.rb
|
|
64
55
|
lib/daytona_api_client/models/create_snapshot.rb
|
|
65
56
|
lib/daytona_api_client/models/create_user.rb
|
|
66
57
|
lib/daytona_api_client/models/create_volume.rb
|
|
67
58
|
lib/daytona_api_client/models/date_filter.rb
|
|
68
59
|
lib/daytona_api_client/models/daytona_configuration.rb
|
|
69
|
-
lib/daytona_api_client/models/display_info_response.rb
|
|
70
60
|
lib/daytona_api_client/models/docker_registry.rb
|
|
71
|
-
lib/daytona_api_client/models/download_files.rb
|
|
72
|
-
lib/daytona_api_client/models/execute_request.rb
|
|
73
|
-
lib/daytona_api_client/models/execute_response.rb
|
|
74
|
-
lib/daytona_api_client/models/file_info.rb
|
|
75
|
-
lib/daytona_api_client/models/file_status.rb
|
|
76
61
|
lib/daytona_api_client/models/fork_sandbox.rb
|
|
77
|
-
lib/daytona_api_client/models/git_add_request.rb
|
|
78
|
-
lib/daytona_api_client/models/git_branch_request.rb
|
|
79
|
-
lib/daytona_api_client/models/git_checkout_request.rb
|
|
80
|
-
lib/daytona_api_client/models/git_clone_request.rb
|
|
81
|
-
lib/daytona_api_client/models/git_commit_info.rb
|
|
82
|
-
lib/daytona_api_client/models/git_commit_request.rb
|
|
83
|
-
lib/daytona_api_client/models/git_commit_response.rb
|
|
84
|
-
lib/daytona_api_client/models/git_delete_branch_request.rb
|
|
85
|
-
lib/daytona_api_client/models/git_repo_request.rb
|
|
86
|
-
lib/daytona_api_client/models/git_status.rb
|
|
87
62
|
lib/daytona_api_client/models/gpu_type.rb
|
|
88
63
|
lib/daytona_api_client/models/health_controller_check200_response.rb
|
|
89
64
|
lib/daytona_api_client/models/health_controller_check200_response_info_value.rb
|
|
@@ -92,34 +67,16 @@ lib/daytona_api_client/models/int_filter.rb
|
|
|
92
67
|
lib/daytona_api_client/models/job.rb
|
|
93
68
|
lib/daytona_api_client/models/job_status.rb
|
|
94
69
|
lib/daytona_api_client/models/job_type.rb
|
|
95
|
-
lib/daytona_api_client/models/keyboard_hotkey_request.rb
|
|
96
|
-
lib/daytona_api_client/models/keyboard_press_request.rb
|
|
97
|
-
lib/daytona_api_client/models/keyboard_type_request.rb
|
|
98
|
-
lib/daytona_api_client/models/list_branch_response.rb
|
|
99
70
|
lib/daytona_api_client/models/list_sandboxes_response.rb
|
|
100
71
|
lib/daytona_api_client/models/list_secrets_response.rb
|
|
101
72
|
lib/daytona_api_client/models/log_entry.rb
|
|
102
|
-
lib/daytona_api_client/models/lsp_completion_params.rb
|
|
103
|
-
lib/daytona_api_client/models/lsp_document_request.rb
|
|
104
|
-
lib/daytona_api_client/models/lsp_location.rb
|
|
105
|
-
lib/daytona_api_client/models/lsp_server_request.rb
|
|
106
|
-
lib/daytona_api_client/models/lsp_symbol.rb
|
|
107
|
-
lib/daytona_api_client/models/match.rb
|
|
108
73
|
lib/daytona_api_client/models/metric_data_point.rb
|
|
109
74
|
lib/daytona_api_client/models/metric_series.rb
|
|
110
75
|
lib/daytona_api_client/models/metrics_response.rb
|
|
111
|
-
lib/daytona_api_client/models/mouse_click_request.rb
|
|
112
|
-
lib/daytona_api_client/models/mouse_click_response.rb
|
|
113
|
-
lib/daytona_api_client/models/mouse_drag_request.rb
|
|
114
|
-
lib/daytona_api_client/models/mouse_drag_response.rb
|
|
115
|
-
lib/daytona_api_client/models/mouse_move_request.rb
|
|
116
|
-
lib/daytona_api_client/models/mouse_move_response.rb
|
|
117
|
-
lib/daytona_api_client/models/mouse_position.rb
|
|
118
|
-
lib/daytona_api_client/models/mouse_scroll_request.rb
|
|
119
|
-
lib/daytona_api_client/models/mouse_scroll_response.rb
|
|
120
76
|
lib/daytona_api_client/models/oidc_config.rb
|
|
121
77
|
lib/daytona_api_client/models/organization.rb
|
|
122
78
|
lib/daytona_api_client/models/organization_invitation.rb
|
|
79
|
+
lib/daytona_api_client/models/organization_preview_warning.rb
|
|
123
80
|
lib/daytona_api_client/models/organization_role.rb
|
|
124
81
|
lib/daytona_api_client/models/organization_sandbox_default_limited_network_egress.rb
|
|
125
82
|
lib/daytona_api_client/models/organization_suspension.rb
|
|
@@ -134,30 +91,16 @@ lib/daytona_api_client/models/paginated_snapshots.rb
|
|
|
134
91
|
lib/daytona_api_client/models/paginated_traces.rb
|
|
135
92
|
lib/daytona_api_client/models/poll_jobs_response.rb
|
|
136
93
|
lib/daytona_api_client/models/port_preview_url.rb
|
|
137
|
-
lib/daytona_api_client/models/position.rb
|
|
138
94
|
lib/daytona_api_client/models/posthog_config.rb
|
|
139
|
-
lib/daytona_api_client/models/
|
|
140
|
-
lib/daytona_api_client/models/process_logs_response.rb
|
|
141
|
-
lib/daytona_api_client/models/process_restart_response.rb
|
|
142
|
-
lib/daytona_api_client/models/process_status_response.rb
|
|
143
|
-
lib/daytona_api_client/models/project_dir_response.rb
|
|
144
|
-
lib/daytona_api_client/models/pty_create_request.rb
|
|
145
|
-
lib/daytona_api_client/models/pty_create_response.rb
|
|
146
|
-
lib/daytona_api_client/models/pty_list_response.rb
|
|
147
|
-
lib/daytona_api_client/models/pty_resize_request.rb
|
|
148
|
-
lib/daytona_api_client/models/pty_session_info.rb
|
|
149
|
-
lib/daytona_api_client/models/range.rb
|
|
95
|
+
lib/daytona_api_client/models/preview_warning.rb
|
|
150
96
|
lib/daytona_api_client/models/rate_limit_config.rb
|
|
151
97
|
lib/daytona_api_client/models/rate_limit_entry.rb
|
|
152
98
|
lib/daytona_api_client/models/regenerate_api_key_response.rb
|
|
153
99
|
lib/daytona_api_client/models/region.rb
|
|
154
100
|
lib/daytona_api_client/models/region_quota.rb
|
|
155
|
-
lib/daytona_api_client/models/region_screenshot_response.rb
|
|
156
101
|
lib/daytona_api_client/models/region_type.rb
|
|
157
102
|
lib/daytona_api_client/models/region_usage_overview.rb
|
|
158
103
|
lib/daytona_api_client/models/registry_push_access_dto.rb
|
|
159
|
-
lib/daytona_api_client/models/replace_request.rb
|
|
160
|
-
lib/daytona_api_client/models/replace_result.rb
|
|
161
104
|
lib/daytona_api_client/models/resize_sandbox.rb
|
|
162
105
|
lib/daytona_api_client/models/resolve_sandbox_secrets200_response_inner.rb
|
|
163
106
|
lib/daytona_api_client/models/runner.rb
|
|
@@ -177,13 +120,8 @@ lib/daytona_api_client/models/sandbox_list_sort_direction.rb
|
|
|
177
120
|
lib/daytona_api_client/models/sandbox_list_sort_field.rb
|
|
178
121
|
lib/daytona_api_client/models/sandbox_state.rb
|
|
179
122
|
lib/daytona_api_client/models/sandbox_volume.rb
|
|
180
|
-
lib/daytona_api_client/models/screenshot_response.rb
|
|
181
|
-
lib/daytona_api_client/models/search_files_response.rb
|
|
182
123
|
lib/daytona_api_client/models/secret.rb
|
|
183
124
|
lib/daytona_api_client/models/send_webhook_dto.rb
|
|
184
|
-
lib/daytona_api_client/models/session.rb
|
|
185
|
-
lib/daytona_api_client/models/session_execute_request.rb
|
|
186
|
-
lib/daytona_api_client/models/session_execute_response.rb
|
|
187
125
|
lib/daytona_api_client/models/set_snapshot_general_status_dto.rb
|
|
188
126
|
lib/daytona_api_client/models/signed_port_preview_url.rb
|
|
189
127
|
lib/daytona_api_client/models/snapshot_dto.rb
|
|
@@ -211,13 +149,10 @@ lib/daytona_api_client/models/update_sandbox_state_dto.rb
|
|
|
211
149
|
lib/daytona_api_client/models/update_secret.rb
|
|
212
150
|
lib/daytona_api_client/models/url.rb
|
|
213
151
|
lib/daytona_api_client/models/user.rb
|
|
214
|
-
lib/daytona_api_client/models/user_home_dir_response.rb
|
|
215
152
|
lib/daytona_api_client/models/user_public_key.rb
|
|
216
153
|
lib/daytona_api_client/models/volume_dto.rb
|
|
217
154
|
lib/daytona_api_client/models/volume_state.rb
|
|
218
155
|
lib/daytona_api_client/models/webhook_app_portal_access.rb
|
|
219
156
|
lib/daytona_api_client/models/webhook_event.rb
|
|
220
157
|
lib/daytona_api_client/models/webhook_initialization_status.rb
|
|
221
|
-
lib/daytona_api_client/models/windows_response.rb
|
|
222
|
-
lib/daytona_api_client/models/work_dir_response.rb
|
|
223
158
|
lib/daytona_api_client/version.rb
|
|
@@ -1407,6 +1407,76 @@ module DaytonaApiClient
|
|
|
1407
1407
|
return data, status_code, headers
|
|
1408
1408
|
end
|
|
1409
1409
|
|
|
1410
|
+
# Update organization preview warning
|
|
1411
|
+
# @param organization_id [String] Organization ID
|
|
1412
|
+
# @param organization_preview_warning [OrganizationPreviewWarning]
|
|
1413
|
+
# @param [Hash] opts the optional parameters
|
|
1414
|
+
# @return [nil]
|
|
1415
|
+
def admin_update_organization_preview_warning(organization_id, organization_preview_warning, opts = {})
|
|
1416
|
+
admin_update_organization_preview_warning_with_http_info(organization_id, organization_preview_warning, opts)
|
|
1417
|
+
nil
|
|
1418
|
+
end
|
|
1419
|
+
|
|
1420
|
+
# Update organization preview warning
|
|
1421
|
+
# @param organization_id [String] Organization ID
|
|
1422
|
+
# @param organization_preview_warning [OrganizationPreviewWarning]
|
|
1423
|
+
# @param [Hash] opts the optional parameters
|
|
1424
|
+
# @return [Array<(nil, Integer, Hash)>] nil, response status code and response headers
|
|
1425
|
+
def admin_update_organization_preview_warning_with_http_info(organization_id, organization_preview_warning, opts = {})
|
|
1426
|
+
if @api_client.config.debugging
|
|
1427
|
+
@api_client.config.logger.debug 'Calling API: AdminApi.admin_update_organization_preview_warning ...'
|
|
1428
|
+
end
|
|
1429
|
+
# verify the required parameter 'organization_id' is set
|
|
1430
|
+
if @api_client.config.client_side_validation && organization_id.nil?
|
|
1431
|
+
fail ArgumentError, "Missing the required parameter 'organization_id' when calling AdminApi.admin_update_organization_preview_warning"
|
|
1432
|
+
end
|
|
1433
|
+
# verify the required parameter 'organization_preview_warning' is set
|
|
1434
|
+
if @api_client.config.client_side_validation && organization_preview_warning.nil?
|
|
1435
|
+
fail ArgumentError, "Missing the required parameter 'organization_preview_warning' when calling AdminApi.admin_update_organization_preview_warning"
|
|
1436
|
+
end
|
|
1437
|
+
# resource path
|
|
1438
|
+
local_var_path = '/admin/organizations/{organizationId}/preview-warning'.sub('{' + 'organizationId' + '}', CGI.escape(organization_id.to_s))
|
|
1439
|
+
|
|
1440
|
+
# query parameters
|
|
1441
|
+
query_params = opts[:query_params] || {}
|
|
1442
|
+
|
|
1443
|
+
# header parameters
|
|
1444
|
+
header_params = opts[:header_params] || {}
|
|
1445
|
+
# HTTP header 'Content-Type'
|
|
1446
|
+
content_type = @api_client.select_header_content_type(['application/json'])
|
|
1447
|
+
if !content_type.nil?
|
|
1448
|
+
header_params['Content-Type'] = content_type
|
|
1449
|
+
end
|
|
1450
|
+
|
|
1451
|
+
# form parameters
|
|
1452
|
+
form_params = opts[:form_params] || {}
|
|
1453
|
+
|
|
1454
|
+
# http body (model)
|
|
1455
|
+
post_body = opts[:debug_body] || @api_client.object_to_http_body(organization_preview_warning)
|
|
1456
|
+
|
|
1457
|
+
# return_type
|
|
1458
|
+
return_type = opts[:debug_return_type]
|
|
1459
|
+
|
|
1460
|
+
# auth_names
|
|
1461
|
+
auth_names = opts[:debug_auth_names] || ['bearer', 'oauth2']
|
|
1462
|
+
|
|
1463
|
+
new_options = opts.merge(
|
|
1464
|
+
:operation => :"AdminApi.admin_update_organization_preview_warning",
|
|
1465
|
+
:header_params => header_params,
|
|
1466
|
+
:query_params => query_params,
|
|
1467
|
+
:form_params => form_params,
|
|
1468
|
+
:body => post_body,
|
|
1469
|
+
:auth_names => auth_names,
|
|
1470
|
+
:return_type => return_type
|
|
1471
|
+
)
|
|
1472
|
+
|
|
1473
|
+
data, status_code, headers = @api_client.call_api(:POST, local_var_path, new_options)
|
|
1474
|
+
if @api_client.config.debugging
|
|
1475
|
+
@api_client.config.logger.debug "API called: AdminApi#admin_update_organization_preview_warning\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
|
|
1476
|
+
end
|
|
1477
|
+
return data, status_code, headers
|
|
1478
|
+
end
|
|
1479
|
+
|
|
1410
1480
|
# Update organization region quota
|
|
1411
1481
|
# @param organization_id [String] Organization ID
|
|
1412
1482
|
# @param region_id [String] Region ID
|
|
@@ -1273,6 +1273,67 @@ module DaytonaApiClient
|
|
|
1273
1273
|
return data, status_code, headers
|
|
1274
1274
|
end
|
|
1275
1275
|
|
|
1276
|
+
# List available sandbox classes for organization
|
|
1277
|
+
# @param organization_id [String] Organization ID
|
|
1278
|
+
# @param [Hash] opts the optional parameters
|
|
1279
|
+
# @return [Array<AvailableSandboxClass>]
|
|
1280
|
+
def list_available_sandbox_classes(organization_id, opts = {})
|
|
1281
|
+
data, _status_code, _headers = list_available_sandbox_classes_with_http_info(organization_id, opts)
|
|
1282
|
+
data
|
|
1283
|
+
end
|
|
1284
|
+
|
|
1285
|
+
# List available sandbox classes for organization
|
|
1286
|
+
# @param organization_id [String] Organization ID
|
|
1287
|
+
# @param [Hash] opts the optional parameters
|
|
1288
|
+
# @return [Array<(Array<AvailableSandboxClass>, Integer, Hash)>] Array<AvailableSandboxClass> data, response status code and response headers
|
|
1289
|
+
def list_available_sandbox_classes_with_http_info(organization_id, opts = {})
|
|
1290
|
+
if @api_client.config.debugging
|
|
1291
|
+
@api_client.config.logger.debug 'Calling API: OrganizationsApi.list_available_sandbox_classes ...'
|
|
1292
|
+
end
|
|
1293
|
+
# verify the required parameter 'organization_id' is set
|
|
1294
|
+
if @api_client.config.client_side_validation && organization_id.nil?
|
|
1295
|
+
fail ArgumentError, "Missing the required parameter 'organization_id' when calling OrganizationsApi.list_available_sandbox_classes"
|
|
1296
|
+
end
|
|
1297
|
+
# resource path
|
|
1298
|
+
local_var_path = '/organizations/{organizationId}/available-sandbox-classes'.sub('{' + 'organizationId' + '}', CGI.escape(organization_id.to_s))
|
|
1299
|
+
|
|
1300
|
+
# query parameters
|
|
1301
|
+
query_params = opts[:query_params] || {}
|
|
1302
|
+
|
|
1303
|
+
# header parameters
|
|
1304
|
+
header_params = opts[:header_params] || {}
|
|
1305
|
+
# HTTP header 'Accept' (if needed)
|
|
1306
|
+
header_params['Accept'] = @api_client.select_header_accept(['application/json']) unless header_params['Accept']
|
|
1307
|
+
|
|
1308
|
+
# form parameters
|
|
1309
|
+
form_params = opts[:form_params] || {}
|
|
1310
|
+
|
|
1311
|
+
# http body (model)
|
|
1312
|
+
post_body = opts[:debug_body]
|
|
1313
|
+
|
|
1314
|
+
# return_type
|
|
1315
|
+
return_type = opts[:debug_return_type] || 'Array<AvailableSandboxClass>'
|
|
1316
|
+
|
|
1317
|
+
# auth_names
|
|
1318
|
+
auth_names = opts[:debug_auth_names] || ['bearer', 'oauth2']
|
|
1319
|
+
|
|
1320
|
+
new_options = opts.merge(
|
|
1321
|
+
:operation => :"OrganizationsApi.list_available_sandbox_classes",
|
|
1322
|
+
:header_params => header_params,
|
|
1323
|
+
:query_params => query_params,
|
|
1324
|
+
:form_params => form_params,
|
|
1325
|
+
:body => post_body,
|
|
1326
|
+
:auth_names => auth_names,
|
|
1327
|
+
:return_type => return_type
|
|
1328
|
+
)
|
|
1329
|
+
|
|
1330
|
+
data, status_code, headers = @api_client.call_api(:GET, local_var_path, new_options)
|
|
1331
|
+
if @api_client.config.debugging
|
|
1332
|
+
@api_client.config.logger.debug "API called: OrganizationsApi#list_available_sandbox_classes\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
|
|
1333
|
+
end
|
|
1334
|
+
return data, status_code, headers
|
|
1335
|
+
end
|
|
1336
|
+
|
|
1276
1337
|
# List pending organization invitations
|
|
1277
1338
|
# @param organization_id [String] Organization ID
|
|
1278
1339
|
# @param [Hash] opts the optional parameters
|
|
@@ -2245,6 +2306,76 @@ module DaytonaApiClient
|
|
|
2245
2306
|
return data, status_code, headers
|
|
2246
2307
|
end
|
|
2247
2308
|
|
|
2309
|
+
# Update organization preview warning
|
|
2310
|
+
# @param organization_id [String] Organization ID
|
|
2311
|
+
# @param organization_preview_warning [OrganizationPreviewWarning]
|
|
2312
|
+
# @param [Hash] opts the optional parameters
|
|
2313
|
+
# @return [nil]
|
|
2314
|
+
def update_organization_preview_warning(organization_id, organization_preview_warning, opts = {})
|
|
2315
|
+
update_organization_preview_warning_with_http_info(organization_id, organization_preview_warning, opts)
|
|
2316
|
+
nil
|
|
2317
|
+
end
|
|
2318
|
+
|
|
2319
|
+
# Update organization preview warning
|
|
2320
|
+
# @param organization_id [String] Organization ID
|
|
2321
|
+
# @param organization_preview_warning [OrganizationPreviewWarning]
|
|
2322
|
+
# @param [Hash] opts the optional parameters
|
|
2323
|
+
# @return [Array<(nil, Integer, Hash)>] nil, response status code and response headers
|
|
2324
|
+
def update_organization_preview_warning_with_http_info(organization_id, organization_preview_warning, opts = {})
|
|
2325
|
+
if @api_client.config.debugging
|
|
2326
|
+
@api_client.config.logger.debug 'Calling API: OrganizationsApi.update_organization_preview_warning ...'
|
|
2327
|
+
end
|
|
2328
|
+
# verify the required parameter 'organization_id' is set
|
|
2329
|
+
if @api_client.config.client_side_validation && organization_id.nil?
|
|
2330
|
+
fail ArgumentError, "Missing the required parameter 'organization_id' when calling OrganizationsApi.update_organization_preview_warning"
|
|
2331
|
+
end
|
|
2332
|
+
# verify the required parameter 'organization_preview_warning' is set
|
|
2333
|
+
if @api_client.config.client_side_validation && organization_preview_warning.nil?
|
|
2334
|
+
fail ArgumentError, "Missing the required parameter 'organization_preview_warning' when calling OrganizationsApi.update_organization_preview_warning"
|
|
2335
|
+
end
|
|
2336
|
+
# resource path
|
|
2337
|
+
local_var_path = '/organizations/{organizationId}/preview-warning'.sub('{' + 'organizationId' + '}', CGI.escape(organization_id.to_s))
|
|
2338
|
+
|
|
2339
|
+
# query parameters
|
|
2340
|
+
query_params = opts[:query_params] || {}
|
|
2341
|
+
|
|
2342
|
+
# header parameters
|
|
2343
|
+
header_params = opts[:header_params] || {}
|
|
2344
|
+
# HTTP header 'Content-Type'
|
|
2345
|
+
content_type = @api_client.select_header_content_type(['application/json'])
|
|
2346
|
+
if !content_type.nil?
|
|
2347
|
+
header_params['Content-Type'] = content_type
|
|
2348
|
+
end
|
|
2349
|
+
|
|
2350
|
+
# form parameters
|
|
2351
|
+
form_params = opts[:form_params] || {}
|
|
2352
|
+
|
|
2353
|
+
# http body (model)
|
|
2354
|
+
post_body = opts[:debug_body] || @api_client.object_to_http_body(organization_preview_warning)
|
|
2355
|
+
|
|
2356
|
+
# return_type
|
|
2357
|
+
return_type = opts[:debug_return_type]
|
|
2358
|
+
|
|
2359
|
+
# auth_names
|
|
2360
|
+
auth_names = opts[:debug_auth_names] || ['bearer', 'oauth2']
|
|
2361
|
+
|
|
2362
|
+
new_options = opts.merge(
|
|
2363
|
+
:operation => :"OrganizationsApi.update_organization_preview_warning",
|
|
2364
|
+
:header_params => header_params,
|
|
2365
|
+
:query_params => query_params,
|
|
2366
|
+
:form_params => form_params,
|
|
2367
|
+
:body => post_body,
|
|
2368
|
+
:auth_names => auth_names,
|
|
2369
|
+
:return_type => return_type
|
|
2370
|
+
)
|
|
2371
|
+
|
|
2372
|
+
data, status_code, headers = @api_client.call_api(:POST, local_var_path, new_options)
|
|
2373
|
+
if @api_client.config.debugging
|
|
2374
|
+
@api_client.config.logger.debug "API called: OrganizationsApi#update_organization_preview_warning\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
|
|
2375
|
+
end
|
|
2376
|
+
return data, status_code, headers
|
|
2377
|
+
end
|
|
2378
|
+
|
|
2248
2379
|
# Update organization quota
|
|
2249
2380
|
# @param organization_id [String] Organization ID
|
|
2250
2381
|
# @param update_organization_quota [UpdateOrganizationQuota]
|
|
@@ -147,6 +147,70 @@ module DaytonaApiClient
|
|
|
147
147
|
return data, status_code, headers
|
|
148
148
|
end
|
|
149
149
|
|
|
150
|
+
# Check if the preview warning page is enabled for the sandbox
|
|
151
|
+
# @param sandbox_id [String] ID of the sandbox, or a signed preview URL token (requires the port query param)
|
|
152
|
+
# @param [Hash] opts the optional parameters
|
|
153
|
+
# @option opts [Float] :port Port the signed preview URL token was issued for. Required when sandboxId is a signed token.
|
|
154
|
+
# @return [PreviewWarning]
|
|
155
|
+
def is_preview_warning_enabled(sandbox_id, opts = {})
|
|
156
|
+
data, _status_code, _headers = is_preview_warning_enabled_with_http_info(sandbox_id, opts)
|
|
157
|
+
data
|
|
158
|
+
end
|
|
159
|
+
|
|
160
|
+
# Check if the preview warning page is enabled for the sandbox
|
|
161
|
+
# @param sandbox_id [String] ID of the sandbox, or a signed preview URL token (requires the port query param)
|
|
162
|
+
# @param [Hash] opts the optional parameters
|
|
163
|
+
# @option opts [Float] :port Port the signed preview URL token was issued for. Required when sandboxId is a signed token.
|
|
164
|
+
# @return [Array<(PreviewWarning, Integer, Hash)>] PreviewWarning data, response status code and response headers
|
|
165
|
+
def is_preview_warning_enabled_with_http_info(sandbox_id, opts = {})
|
|
166
|
+
if @api_client.config.debugging
|
|
167
|
+
@api_client.config.logger.debug 'Calling API: PreviewApi.is_preview_warning_enabled ...'
|
|
168
|
+
end
|
|
169
|
+
# verify the required parameter 'sandbox_id' is set
|
|
170
|
+
if @api_client.config.client_side_validation && sandbox_id.nil?
|
|
171
|
+
fail ArgumentError, "Missing the required parameter 'sandbox_id' when calling PreviewApi.is_preview_warning_enabled"
|
|
172
|
+
end
|
|
173
|
+
# resource path
|
|
174
|
+
local_var_path = '/preview/{sandboxId}/preview-warning'.sub('{' + 'sandboxId' + '}', CGI.escape(sandbox_id.to_s))
|
|
175
|
+
|
|
176
|
+
# query parameters
|
|
177
|
+
query_params = opts[:query_params] || {}
|
|
178
|
+
query_params[:'port'] = opts[:'port'] if !opts[:'port'].nil?
|
|
179
|
+
|
|
180
|
+
# header parameters
|
|
181
|
+
header_params = opts[:header_params] || {}
|
|
182
|
+
# HTTP header 'Accept' (if needed)
|
|
183
|
+
header_params['Accept'] = @api_client.select_header_accept(['application/json']) unless header_params['Accept']
|
|
184
|
+
|
|
185
|
+
# form parameters
|
|
186
|
+
form_params = opts[:form_params] || {}
|
|
187
|
+
|
|
188
|
+
# http body (model)
|
|
189
|
+
post_body = opts[:debug_body]
|
|
190
|
+
|
|
191
|
+
# return_type
|
|
192
|
+
return_type = opts[:debug_return_type] || 'PreviewWarning'
|
|
193
|
+
|
|
194
|
+
# auth_names
|
|
195
|
+
auth_names = opts[:debug_auth_names] || ['bearer', 'oauth2']
|
|
196
|
+
|
|
197
|
+
new_options = opts.merge(
|
|
198
|
+
:operation => :"PreviewApi.is_preview_warning_enabled",
|
|
199
|
+
:header_params => header_params,
|
|
200
|
+
:query_params => query_params,
|
|
201
|
+
:form_params => form_params,
|
|
202
|
+
:body => post_body,
|
|
203
|
+
:auth_names => auth_names,
|
|
204
|
+
:return_type => return_type
|
|
205
|
+
)
|
|
206
|
+
|
|
207
|
+
data, status_code, headers = @api_client.call_api(:GET, local_var_path, new_options)
|
|
208
|
+
if @api_client.config.debugging
|
|
209
|
+
@api_client.config.logger.debug "API called: PreviewApi#is_preview_warning_enabled\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
|
|
210
|
+
end
|
|
211
|
+
return data, status_code, headers
|
|
212
|
+
end
|
|
213
|
+
|
|
150
214
|
# Check if sandbox is public
|
|
151
215
|
# @param sandbox_id [String] ID of the sandbox
|
|
152
216
|
# @param [Hash] opts the optional parameters
|
|
@@ -2575,6 +2575,76 @@ module DaytonaApiClient
|
|
|
2575
2575
|
return data, status_code, headers
|
|
2576
2576
|
end
|
|
2577
2577
|
|
|
2578
|
+
# Set sandbox auto-pause interval
|
|
2579
|
+
# @param sandbox_id_or_name [String] ID or name of the sandbox
|
|
2580
|
+
# @param interval [Float] Auto-pause interval in minutes (0 to disable)
|
|
2581
|
+
# @param [Hash] opts the optional parameters
|
|
2582
|
+
# @option opts [String] :x_daytona_organization_id Use with JWT to specify the organization ID
|
|
2583
|
+
# @return [Sandbox]
|
|
2584
|
+
def set_auto_pause_interval(sandbox_id_or_name, interval, opts = {})
|
|
2585
|
+
data, _status_code, _headers = set_auto_pause_interval_with_http_info(sandbox_id_or_name, interval, opts)
|
|
2586
|
+
data
|
|
2587
|
+
end
|
|
2588
|
+
|
|
2589
|
+
# Set sandbox auto-pause interval
|
|
2590
|
+
# @param sandbox_id_or_name [String] ID or name of the sandbox
|
|
2591
|
+
# @param interval [Float] Auto-pause interval in minutes (0 to disable)
|
|
2592
|
+
# @param [Hash] opts the optional parameters
|
|
2593
|
+
# @option opts [String] :x_daytona_organization_id Use with JWT to specify the organization ID
|
|
2594
|
+
# @return [Array<(Sandbox, Integer, Hash)>] Sandbox data, response status code and response headers
|
|
2595
|
+
def set_auto_pause_interval_with_http_info(sandbox_id_or_name, interval, opts = {})
|
|
2596
|
+
if @api_client.config.debugging
|
|
2597
|
+
@api_client.config.logger.debug 'Calling API: SandboxApi.set_auto_pause_interval ...'
|
|
2598
|
+
end
|
|
2599
|
+
# verify the required parameter 'sandbox_id_or_name' is set
|
|
2600
|
+
if @api_client.config.client_side_validation && sandbox_id_or_name.nil?
|
|
2601
|
+
fail ArgumentError, "Missing the required parameter 'sandbox_id_or_name' when calling SandboxApi.set_auto_pause_interval"
|
|
2602
|
+
end
|
|
2603
|
+
# verify the required parameter 'interval' is set
|
|
2604
|
+
if @api_client.config.client_side_validation && interval.nil?
|
|
2605
|
+
fail ArgumentError, "Missing the required parameter 'interval' when calling SandboxApi.set_auto_pause_interval"
|
|
2606
|
+
end
|
|
2607
|
+
# resource path
|
|
2608
|
+
local_var_path = '/sandbox/{sandboxIdOrName}/autopause/{interval}'.sub('{' + 'sandboxIdOrName' + '}', CGI.escape(sandbox_id_or_name.to_s)).sub('{' + 'interval' + '}', CGI.escape(interval.to_s))
|
|
2609
|
+
|
|
2610
|
+
# query parameters
|
|
2611
|
+
query_params = opts[:query_params] || {}
|
|
2612
|
+
|
|
2613
|
+
# header parameters
|
|
2614
|
+
header_params = opts[:header_params] || {}
|
|
2615
|
+
# HTTP header 'Accept' (if needed)
|
|
2616
|
+
header_params['Accept'] = @api_client.select_header_accept(['application/json']) unless header_params['Accept']
|
|
2617
|
+
header_params[:'X-Daytona-Organization-ID'] = opts[:'x_daytona_organization_id'] if !opts[:'x_daytona_organization_id'].nil?
|
|
2618
|
+
|
|
2619
|
+
# form parameters
|
|
2620
|
+
form_params = opts[:form_params] || {}
|
|
2621
|
+
|
|
2622
|
+
# http body (model)
|
|
2623
|
+
post_body = opts[:debug_body]
|
|
2624
|
+
|
|
2625
|
+
# return_type
|
|
2626
|
+
return_type = opts[:debug_return_type] || 'Sandbox'
|
|
2627
|
+
|
|
2628
|
+
# auth_names
|
|
2629
|
+
auth_names = opts[:debug_auth_names] || ['bearer', 'oauth2']
|
|
2630
|
+
|
|
2631
|
+
new_options = opts.merge(
|
|
2632
|
+
:operation => :"SandboxApi.set_auto_pause_interval",
|
|
2633
|
+
:header_params => header_params,
|
|
2634
|
+
:query_params => query_params,
|
|
2635
|
+
:form_params => form_params,
|
|
2636
|
+
:body => post_body,
|
|
2637
|
+
:auth_names => auth_names,
|
|
2638
|
+
:return_type => return_type
|
|
2639
|
+
)
|
|
2640
|
+
|
|
2641
|
+
data, status_code, headers = @api_client.call_api(:POST, local_var_path, new_options)
|
|
2642
|
+
if @api_client.config.debugging
|
|
2643
|
+
@api_client.config.logger.debug "API called: SandboxApi#set_auto_pause_interval\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
|
|
2644
|
+
end
|
|
2645
|
+
return data, status_code, headers
|
|
2646
|
+
end
|
|
2647
|
+
|
|
2578
2648
|
# Set sandbox auto-stop interval
|
|
2579
2649
|
# @param sandbox_id_or_name [String] ID or name of the sandbox
|
|
2580
2650
|
# @param interval [Float] Auto-stop interval in minutes (0 to disable)
|