voidrun 0.0.7__tar.gz → 0.2.0__tar.gz
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.
- {voidrun-0.0.7 → voidrun-0.2.0}/PKG-INFO +19 -8
- {voidrun-0.0.7 → voidrun-0.2.0}/README.md +18 -7
- {voidrun-0.0.7 → voidrun-0.2.0}/pyproject.toml +1 -1
- {voidrun-0.0.7 → voidrun-0.2.0}/voidrun/__init__.py +2 -1
- {voidrun-0.0.7 → voidrun-0.2.0}/voidrun/api_client/api/execution_api.py +4 -5
- {voidrun-0.0.7 → voidrun-0.2.0}/voidrun/api_client/api/file_system_api.py +9 -10
- {voidrun-0.0.7 → voidrun-0.2.0}/voidrun/api_client/api/images_api.py +4 -5
- {voidrun-0.0.7 → voidrun-0.2.0}/voidrun/api_client/api/organizations_api.py +1 -2
- {voidrun-0.0.7 → voidrun-0.2.0}/voidrun/api_client/api/sandboxes_api.py +55 -303
- {voidrun-0.0.7 → voidrun-0.2.0}/voidrun/api_client/api/system_api.py +1 -2
- {voidrun-0.0.7 → voidrun-0.2.0}/voidrun/api_client/api/users_api.py +1 -2
- {voidrun-0.0.7 → voidrun-0.2.0}/voidrun/api_client/api_client.py +32 -23
- {voidrun-0.0.7 → voidrun-0.2.0}/voidrun/api_client/configuration.py +60 -25
- {voidrun-0.0.7 → voidrun-0.2.0}/voidrun/api_client/exceptions.py +1 -2
- {voidrun-0.0.7 → voidrun-0.2.0}/voidrun/api_client/models/activate_api_key_request.py +5 -4
- {voidrun-0.0.7 → voidrun-0.2.0}/voidrun/api_client/models/api_key_response.py +10 -9
- {voidrun-0.0.7 → voidrun-0.2.0}/voidrun/api_client/models/api_response_sandbox.py +7 -6
- {voidrun-0.0.7 → voidrun-0.2.0}/voidrun/api_client/models/api_response_sandboxes_list.py +7 -6
- {voidrun-0.0.7 → voidrun-0.2.0}/voidrun/api_client/models/api_response_sandboxes_list_meta.py +8 -7
- {voidrun-0.0.7 → voidrun-0.2.0}/voidrun/api_client/models/command_kill_response.py +7 -6
- {voidrun-0.0.7 → voidrun-0.2.0}/voidrun/api_client/models/command_list_response.py +6 -5
- {voidrun-0.0.7 → voidrun-0.2.0}/voidrun/api_client/models/command_run_response.py +8 -7
- {voidrun-0.0.7 → voidrun-0.2.0}/voidrun/api_client/models/command_wait_response.py +6 -5
- {voidrun-0.0.7 → voidrun-0.2.0}/voidrun/api_client/models/compress_request.py +7 -6
- {voidrun-0.0.7 → voidrun-0.2.0}/voidrun/api_client/models/create_file_request.py +6 -5
- {voidrun-0.0.7 → voidrun-0.2.0}/voidrun/api_client/models/create_image_request.py +8 -7
- {voidrun-0.0.7 → voidrun-0.2.0}/voidrun/api_client/models/create_pty_session200_response.py +7 -6
- {voidrun-0.0.7 → voidrun-0.2.0}/voidrun/api_client/models/create_pty_session200_response_all_of_data.py +6 -5
- {voidrun-0.0.7 → voidrun-0.2.0}/voidrun/api_client/models/create_pty_session_request.py +6 -5
- {voidrun-0.0.7 → voidrun-0.2.0}/voidrun/api_client/models/create_sandbox201_response.py +7 -6
- {voidrun-0.0.7 → voidrun-0.2.0}/voidrun/api_client/models/create_sandbox_request.py +22 -19
- {voidrun-0.0.7 → voidrun-0.2.0}/voidrun/api_client/models/disk_usage.py +5 -4
- {voidrun-0.0.7 → voidrun-0.2.0}/voidrun/api_client/models/error_response.py +7 -6
- {voidrun-0.0.7 → voidrun-0.2.0}/voidrun/api_client/models/exec_request.py +12 -13
- {voidrun-0.0.7 → voidrun-0.2.0}/voidrun/api_client/models/exec_response.py +7 -6
- {voidrun-0.0.7 → voidrun-0.2.0}/voidrun/api_client/models/exec_response_data.py +6 -5
- {voidrun-0.0.7 → voidrun-0.2.0}/voidrun/api_client/models/execute_in_session_request.py +6 -5
- {voidrun-0.0.7 → voidrun-0.2.0}/voidrun/api_client/models/extract_request.py +7 -6
- {voidrun-0.0.7 → voidrun-0.2.0}/voidrun/api_client/models/file_event.py +9 -8
- {voidrun-0.0.7 → voidrun-0.2.0}/voidrun/api_client/models/file_info.py +9 -8
- {voidrun-0.0.7 → voidrun-0.2.0}/voidrun/api_client/models/file_stats.py +4 -3
- {voidrun-0.0.7 → voidrun-0.2.0}/voidrun/api_client/models/generate_api_key_request.py +7 -5
- {voidrun-0.0.7 → voidrun-0.2.0}/voidrun/api_client/models/generated_api_key_response.py +9 -8
- {voidrun-0.0.7 → voidrun-0.2.0}/voidrun/api_client/models/get_current_user200_response.py +8 -7
- {voidrun-0.0.7 → voidrun-0.2.0}/voidrun/api_client/models/get_current_user200_response_orgs_inner.py +7 -6
- {voidrun-0.0.7 → voidrun-0.2.0}/voidrun/api_client/models/get_org_users200_response.py +7 -6
- {voidrun-0.0.7 → voidrun-0.2.0}/voidrun/api_client/models/get_org_users200_response_all_of_data_inner.py +8 -7
- {voidrun-0.0.7 → voidrun-0.2.0}/voidrun/api_client/models/get_pty_buffer200_response.py +7 -6
- {voidrun-0.0.7 → voidrun-0.2.0}/voidrun/api_client/models/get_pty_buffer200_response_all_of_data.py +6 -5
- {voidrun-0.0.7 → voidrun-0.2.0}/voidrun/api_client/models/get_version200_response.py +7 -6
- {voidrun-0.0.7 → voidrun-0.2.0}/voidrun/api_client/models/image.py +12 -11
- {voidrun-0.0.7 → voidrun-0.2.0}/voidrun/api_client/models/kill_background_process_request.py +6 -5
- {voidrun-0.0.7 → voidrun-0.2.0}/voidrun/api_client/models/list_files200_response.py +7 -6
- {voidrun-0.0.7 → voidrun-0.2.0}/voidrun/api_client/models/list_files200_response_data.py +6 -5
- {voidrun-0.0.7 → voidrun-0.2.0}/voidrun/api_client/models/list_pty_sessions200_response.py +7 -6
- {voidrun-0.0.7 → voidrun-0.2.0}/voidrun/api_client/models/list_pty_sessions200_response_all_of_data.py +4 -3
- {voidrun-0.0.7 → voidrun-0.2.0}/voidrun/api_client/models/organization.py +9 -8
- {voidrun-0.0.7 → voidrun-0.2.0}/voidrun/api_client/models/process_info.py +8 -7
- {voidrun-0.0.7 → voidrun-0.2.0}/voidrun/api_client/models/pty_session_info.py +7 -6
- {voidrun-0.0.7 → voidrun-0.2.0}/voidrun/api_client/models/resize_terminal_request.py +6 -5
- {voidrun-0.0.7 → voidrun-0.2.0}/voidrun/api_client/models/run_background_command_request.py +7 -6
- {voidrun-0.0.7 → voidrun-0.2.0}/voidrun/api_client/models/sandbox.py +27 -27
- {voidrun-0.0.7 → voidrun-0.2.0}/voidrun/api_client/models/session_exec_request.py +11 -10
- {voidrun-0.0.7 → voidrun-0.2.0}/voidrun/api_client/models/session_exec_response.py +9 -8
- {voidrun-0.0.7 → voidrun-0.2.0}/voidrun/api_client/models/session_exec_stream_request.py +6 -5
- {voidrun-0.0.7 → voidrun-0.2.0}/voidrun/api_client/models/start_watch200_response.py +7 -6
- {voidrun-0.0.7 → voidrun-0.2.0}/voidrun/api_client/models/start_watch200_response_data.py +5 -4
- {voidrun-0.0.7 → voidrun-0.2.0}/voidrun/api_client/models/start_watch_request.py +5 -4
- {voidrun-0.0.7 → voidrun-0.2.0}/voidrun/api_client/models/success_response.py +6 -5
- {voidrun-0.0.7 → voidrun-0.2.0}/voidrun/api_client/rest.py +54 -4
- {voidrun-0.0.7 → voidrun-0.2.0}/voidrun/client.py +16 -8
- {voidrun-0.0.7 → voidrun-0.2.0}/voidrun/sandbox.py +131 -44
- {voidrun-0.0.7 → voidrun-0.2.0}/.gitignore +0 -0
- {voidrun-0.0.7 → voidrun-0.2.0}/scripts/run_all_examples.sh +0 -0
- {voidrun-0.0.7 → voidrun-0.2.0}/voidrun/api_client/__init__.py +0 -0
- {voidrun-0.0.7 → voidrun-0.2.0}/voidrun/api_client/api/__init__.py +0 -0
- {voidrun-0.0.7 → voidrun-0.2.0}/voidrun/api_client/api_response.py +0 -0
- {voidrun-0.0.7 → voidrun-0.2.0}/voidrun/api_client/models/__init__.py +0 -0
- {voidrun-0.0.7 → voidrun-0.2.0}/voidrun/api_client/py.typed +0 -0
- {voidrun-0.0.7 → voidrun-0.2.0}/voidrun/commands.py +0 -0
- {voidrun-0.0.7 → voidrun-0.2.0}/voidrun/constants.py +0 -0
- {voidrun-0.0.7 → voidrun-0.2.0}/voidrun/fs.py +0 -0
- {voidrun-0.0.7 → voidrun-0.2.0}/voidrun/interpreter.py +0 -0
- {voidrun-0.0.7 → voidrun-0.2.0}/voidrun/pty.py +0 -0
- {voidrun-0.0.7 → voidrun-0.2.0}/voidrun/response.py +0 -0
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
Metadata-Version: 2.4
|
|
2
2
|
Name: voidrun
|
|
3
|
-
Version: 0.0
|
|
3
|
+
Version: 0.2.0
|
|
4
4
|
Summary: Python SDK for VoidRun AI Sandbox
|
|
5
5
|
Project-URL: Homepage, https://voidrun.io
|
|
6
6
|
Project-URL: Documentation, https://docs.voidrun.io
|
|
@@ -55,8 +55,8 @@ The high-level API is aligned with the official **TypeScript SDK** (`create_sand
|
|
|
55
55
|
|
|
56
56
|
## Features
|
|
57
57
|
|
|
58
|
-
- **Sandbox lifecycle**: Create, list, fetch, start/stop/pause
|
|
59
|
-
- **Shell execution**: `exec` with optional `ExecRequest
|
|
58
|
+
- **Sandbox lifecycle**: Create, list, fetch, start/sleep/wake (stop/pause→sleep, resume→wake), and remove sandboxes (sync and async).
|
|
59
|
+
- **Shell execution**: synchronous `exec` with optional `ExecRequest` (no `background` flag); SSE streaming via `exec_stream`; detached processes via `.commands.run`.
|
|
60
60
|
- **Code interpreter**: `run_code` / `interpreter.run` return a structured **`CodeExecutionResult`** (stdout, stderr, success, exit_code, results, logs).
|
|
61
61
|
- **Files**: Create, upload, download, list, move, copy, compress, extract, permissions, search, disk usage.
|
|
62
62
|
- **File watching**: WebSocket-backed directory watches (async).
|
|
@@ -130,11 +130,19 @@ from voidrun import VoidRun
|
|
|
130
130
|
|
|
131
131
|
vr = VoidRun() # uses VR_API_KEY; default base URL unless VR_API_URL / API_URL is set
|
|
132
132
|
|
|
133
|
-
sandbox = vr.create_sandbox(
|
|
133
|
+
sandbox = vr.create_sandbox(
|
|
134
|
+
mem=1024,
|
|
135
|
+
cpu=1,
|
|
136
|
+
labels={"env": "prod", "team": "api"},
|
|
137
|
+
)
|
|
134
138
|
|
|
135
139
|
result = sandbox.exec('echo "Hello from VoidRun"')
|
|
136
140
|
# Exec returns VoidRunResponse whose .data is ExecResponseData
|
|
137
141
|
print(result.data.stdout)
|
|
142
|
+
print(sandbox.labels)
|
|
143
|
+
|
|
144
|
+
listed = vr.list_sandboxes(labels={"env": "prod"})
|
|
145
|
+
print(listed.meta.total)
|
|
138
146
|
|
|
139
147
|
sandbox.remove()
|
|
140
148
|
```
|
|
@@ -194,9 +202,9 @@ Use the same mental model as `@voidrun/sdk` (or the internal TS client):
|
|
|
194
202
|
|
|
195
203
|
**Recommended methods**
|
|
196
204
|
|
|
197
|
-
- `create_sandbox(...)` → `Sandbox`
|
|
205
|
+
- `create_sandbox(...)` → `Sandbox` (optional `labels=`)
|
|
198
206
|
- `get_sandbox(sandbox_id)` → `Sandbox`
|
|
199
|
-
- `list_sandboxes(page=..., limit=...)` → `ListSandboxesResult`
|
|
207
|
+
- `list_sandboxes(page=..., limit=..., labels=...)` → `ListSandboxesResult`
|
|
200
208
|
- `remove_sandbox(sandbox_id)` → `None`
|
|
201
209
|
|
|
202
210
|
`AsyncVoidRun` exposes the same names with `await` and provides `aclose()` (and `async with` support) to shut down the thread pool used for API calls.
|
|
@@ -207,7 +215,7 @@ Create options accept both snake_case and camelCase where noted in code (e.g. `e
|
|
|
207
215
|
|
|
208
216
|
### `Sandbox`
|
|
209
217
|
|
|
210
|
-
Notable attributes: `id`, `name`, `cpu`, `mem`, `org_id`, `status`, `env_vars`, `image`, `region`, `ref_id`, `auto_sleep`, `disk_mb`, `created_at`, `created_by`.
|
|
218
|
+
Notable attributes: `id`, `name`, `cpu`, `mem`, `org_id`, `status`, `env_vars`, `image`, `region`, `ref_id`, `auto_sleep`, `disk_mb`, `labels`, `created_at`, `created_by`.
|
|
211
219
|
|
|
212
220
|
Sub-clients:
|
|
213
221
|
|
|
@@ -218,7 +226,8 @@ Sub-clients:
|
|
|
218
226
|
|
|
219
227
|
Lifecycle:
|
|
220
228
|
|
|
221
|
-
- `start`, `
|
|
229
|
+
- `start`, `sleep`, `wake` (and `*_async` variants)
|
|
230
|
+
- `stop` / `pause` alias `sleep`; `resume` aliases `wake`
|
|
222
231
|
- `remove()` / `remove_async()`: delete sandbox on the API
|
|
223
232
|
- `delete()` / `delete_async()`: deprecated aliases for `remove`
|
|
224
233
|
|
|
@@ -244,6 +253,8 @@ Return type: **`VoidRunResponse[ExecResponseData]`**: the API’s outer **`ExecR
|
|
|
244
253
|
print(r.data.stdout, r.data.stderr, r.data.exit_code)
|
|
245
254
|
```
|
|
246
255
|
|
|
256
|
+
**`sandbox.exec` is synchronous only** — it waits for the command. Do **not** use a `background` flag on `ExecRequest`; for a PID and long-running processes, use **`sandbox.commands.run`** ([Background commands](#background-commands)).
|
|
257
|
+
|
|
247
258
|
### Streaming (`exec_stream`)
|
|
248
259
|
|
|
249
260
|
Provide callbacks for SSE events (`on_stdout`, `on_stderr`, `on_exit`, `on_error`).
|
|
@@ -31,8 +31,8 @@ The high-level API is aligned with the official **TypeScript SDK** (`create_sand
|
|
|
31
31
|
|
|
32
32
|
## Features
|
|
33
33
|
|
|
34
|
-
- **Sandbox lifecycle**: Create, list, fetch, start/stop/pause
|
|
35
|
-
- **Shell execution**: `exec` with optional `ExecRequest
|
|
34
|
+
- **Sandbox lifecycle**: Create, list, fetch, start/sleep/wake (stop/pause→sleep, resume→wake), and remove sandboxes (sync and async).
|
|
35
|
+
- **Shell execution**: synchronous `exec` with optional `ExecRequest` (no `background` flag); SSE streaming via `exec_stream`; detached processes via `.commands.run`.
|
|
36
36
|
- **Code interpreter**: `run_code` / `interpreter.run` return a structured **`CodeExecutionResult`** (stdout, stderr, success, exit_code, results, logs).
|
|
37
37
|
- **Files**: Create, upload, download, list, move, copy, compress, extract, permissions, search, disk usage.
|
|
38
38
|
- **File watching**: WebSocket-backed directory watches (async).
|
|
@@ -106,11 +106,19 @@ from voidrun import VoidRun
|
|
|
106
106
|
|
|
107
107
|
vr = VoidRun() # uses VR_API_KEY; default base URL unless VR_API_URL / API_URL is set
|
|
108
108
|
|
|
109
|
-
sandbox = vr.create_sandbox(
|
|
109
|
+
sandbox = vr.create_sandbox(
|
|
110
|
+
mem=1024,
|
|
111
|
+
cpu=1,
|
|
112
|
+
labels={"env": "prod", "team": "api"},
|
|
113
|
+
)
|
|
110
114
|
|
|
111
115
|
result = sandbox.exec('echo "Hello from VoidRun"')
|
|
112
116
|
# Exec returns VoidRunResponse whose .data is ExecResponseData
|
|
113
117
|
print(result.data.stdout)
|
|
118
|
+
print(sandbox.labels)
|
|
119
|
+
|
|
120
|
+
listed = vr.list_sandboxes(labels={"env": "prod"})
|
|
121
|
+
print(listed.meta.total)
|
|
114
122
|
|
|
115
123
|
sandbox.remove()
|
|
116
124
|
```
|
|
@@ -170,9 +178,9 @@ Use the same mental model as `@voidrun/sdk` (or the internal TS client):
|
|
|
170
178
|
|
|
171
179
|
**Recommended methods**
|
|
172
180
|
|
|
173
|
-
- `create_sandbox(...)` → `Sandbox`
|
|
181
|
+
- `create_sandbox(...)` → `Sandbox` (optional `labels=`)
|
|
174
182
|
- `get_sandbox(sandbox_id)` → `Sandbox`
|
|
175
|
-
- `list_sandboxes(page=..., limit=...)` → `ListSandboxesResult`
|
|
183
|
+
- `list_sandboxes(page=..., limit=..., labels=...)` → `ListSandboxesResult`
|
|
176
184
|
- `remove_sandbox(sandbox_id)` → `None`
|
|
177
185
|
|
|
178
186
|
`AsyncVoidRun` exposes the same names with `await` and provides `aclose()` (and `async with` support) to shut down the thread pool used for API calls.
|
|
@@ -183,7 +191,7 @@ Create options accept both snake_case and camelCase where noted in code (e.g. `e
|
|
|
183
191
|
|
|
184
192
|
### `Sandbox`
|
|
185
193
|
|
|
186
|
-
Notable attributes: `id`, `name`, `cpu`, `mem`, `org_id`, `status`, `env_vars`, `image`, `region`, `ref_id`, `auto_sleep`, `disk_mb`, `created_at`, `created_by`.
|
|
194
|
+
Notable attributes: `id`, `name`, `cpu`, `mem`, `org_id`, `status`, `env_vars`, `image`, `region`, `ref_id`, `auto_sleep`, `disk_mb`, `labels`, `created_at`, `created_by`.
|
|
187
195
|
|
|
188
196
|
Sub-clients:
|
|
189
197
|
|
|
@@ -194,7 +202,8 @@ Sub-clients:
|
|
|
194
202
|
|
|
195
203
|
Lifecycle:
|
|
196
204
|
|
|
197
|
-
- `start`, `
|
|
205
|
+
- `start`, `sleep`, `wake` (and `*_async` variants)
|
|
206
|
+
- `stop` / `pause` alias `sleep`; `resume` aliases `wake`
|
|
198
207
|
- `remove()` / `remove_async()`: delete sandbox on the API
|
|
199
208
|
- `delete()` / `delete_async()`: deprecated aliases for `remove`
|
|
200
209
|
|
|
@@ -220,6 +229,8 @@ Return type: **`VoidRunResponse[ExecResponseData]`**: the API’s outer **`ExecR
|
|
|
220
229
|
print(r.data.stdout, r.data.stderr, r.data.exit_code)
|
|
221
230
|
```
|
|
222
231
|
|
|
232
|
+
**`sandbox.exec` is synchronous only** — it waits for the command. Do **not** use a `background` flag on `ExecRequest`; for a PID and long-running processes, use **`sandbox.commands.run`** ([Background commands](#background-commands)).
|
|
233
|
+
|
|
223
234
|
### Streaming (`exec_stream`)
|
|
224
235
|
|
|
225
236
|
Provide callbacks for SSE events (`on_stdout`, `on_stderr`, `on_exit`, `on_error`).
|
|
@@ -11,7 +11,7 @@ from .constants import (
|
|
|
11
11
|
DEFAULT_SANDBOX_MEM,
|
|
12
12
|
)
|
|
13
13
|
from .interpreter import CodeExecutionResult, CodeInterpreter, Interpreter
|
|
14
|
-
from .sandbox import Sandbox
|
|
14
|
+
from .sandbox import Sandbox, SandboxPublicURL
|
|
15
15
|
|
|
16
16
|
__all__ = [
|
|
17
17
|
"AsyncVoidRun",
|
|
@@ -25,5 +25,6 @@ __all__ = [
|
|
|
25
25
|
"ListSandboxesMeta",
|
|
26
26
|
"ListSandboxesResult",
|
|
27
27
|
"Sandbox",
|
|
28
|
+
"SandboxPublicURL",
|
|
28
29
|
"VoidRun",
|
|
29
30
|
]
|
|
@@ -1,5 +1,3 @@
|
|
|
1
|
-
# coding: utf-8
|
|
2
|
-
|
|
3
1
|
"""
|
|
4
2
|
VoidRun API
|
|
5
3
|
|
|
@@ -11,6 +9,7 @@
|
|
|
11
9
|
Do not edit the class manually.
|
|
12
10
|
""" # noqa: E501
|
|
13
11
|
|
|
12
|
+
|
|
14
13
|
import warnings
|
|
15
14
|
from pydantic import validate_call, Field, StrictFloat, StrictStr, StrictInt
|
|
16
15
|
from typing import Any, Dict, List, Optional, Tuple, Union
|
|
@@ -1500,7 +1499,7 @@ class ExecutionApi:
|
|
|
1500
1499
|
) -> ExecResponse:
|
|
1501
1500
|
"""Execute command (synchronous)
|
|
1502
1501
|
|
|
1503
|
-
Execute a command in the sandbox and wait for the result
|
|
1502
|
+
Execute a command in the sandbox and wait for the result. For a non-blocking start with a PID, use `POST /sandboxes/{id}/commands/run`.
|
|
1504
1503
|
|
|
1505
1504
|
:param id: (required)
|
|
1506
1505
|
:type id: str
|
|
@@ -1574,7 +1573,7 @@ class ExecutionApi:
|
|
|
1574
1573
|
) -> ApiResponse[ExecResponse]:
|
|
1575
1574
|
"""Execute command (synchronous)
|
|
1576
1575
|
|
|
1577
|
-
Execute a command in the sandbox and wait for the result
|
|
1576
|
+
Execute a command in the sandbox and wait for the result. For a non-blocking start with a PID, use `POST /sandboxes/{id}/commands/run`.
|
|
1578
1577
|
|
|
1579
1578
|
:param id: (required)
|
|
1580
1579
|
:type id: str
|
|
@@ -1648,7 +1647,7 @@ class ExecutionApi:
|
|
|
1648
1647
|
) -> RESTResponseType:
|
|
1649
1648
|
"""Execute command (synchronous)
|
|
1650
1649
|
|
|
1651
|
-
Execute a command in the sandbox and wait for the result
|
|
1650
|
+
Execute a command in the sandbox and wait for the result. For a non-blocking start with a PID, use `POST /sandboxes/{id}/commands/run`.
|
|
1652
1651
|
|
|
1653
1652
|
:param id: (required)
|
|
1654
1653
|
:type id: str
|
|
@@ -1,5 +1,3 @@
|
|
|
1
|
-
# coding: utf-8
|
|
2
|
-
|
|
3
1
|
"""
|
|
4
2
|
VoidRun API
|
|
5
3
|
|
|
@@ -11,6 +9,7 @@
|
|
|
11
9
|
Do not edit the class manually.
|
|
12
10
|
""" # noqa: E501
|
|
13
11
|
|
|
12
|
+
|
|
14
13
|
import warnings
|
|
15
14
|
from pydantic import validate_call, Field, StrictFloat, StrictStr, StrictInt
|
|
16
15
|
from typing import Any, Dict, List, Optional, Tuple, Union
|
|
@@ -2146,7 +2145,7 @@ class FileSystemApi:
|
|
|
2146
2145
|
_content_type: Optional[StrictStr] = None,
|
|
2147
2146
|
_headers: Optional[Dict[StrictStr, Any]] = None,
|
|
2148
2147
|
_host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
|
|
2149
|
-
) ->
|
|
2148
|
+
) -> bytes:
|
|
2150
2149
|
"""Download file
|
|
2151
2150
|
|
|
2152
2151
|
Download a file from the sandbox
|
|
@@ -2187,7 +2186,7 @@ class FileSystemApi:
|
|
|
2187
2186
|
)
|
|
2188
2187
|
|
|
2189
2188
|
_response_types_map: Dict[str, Optional[str]] = {
|
|
2190
|
-
'200': "
|
|
2189
|
+
'200': "bytes",
|
|
2191
2190
|
'401': "ErrorResponse",
|
|
2192
2191
|
'404': "ErrorResponse",
|
|
2193
2192
|
}
|
|
@@ -2219,7 +2218,7 @@ class FileSystemApi:
|
|
|
2219
2218
|
_content_type: Optional[StrictStr] = None,
|
|
2220
2219
|
_headers: Optional[Dict[StrictStr, Any]] = None,
|
|
2221
2220
|
_host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
|
|
2222
|
-
) -> ApiResponse[
|
|
2221
|
+
) -> ApiResponse[bytes]:
|
|
2223
2222
|
"""Download file
|
|
2224
2223
|
|
|
2225
2224
|
Download a file from the sandbox
|
|
@@ -2260,7 +2259,7 @@ class FileSystemApi:
|
|
|
2260
2259
|
)
|
|
2261
2260
|
|
|
2262
2261
|
_response_types_map: Dict[str, Optional[str]] = {
|
|
2263
|
-
'200': "
|
|
2262
|
+
'200': "bytes",
|
|
2264
2263
|
'401': "ErrorResponse",
|
|
2265
2264
|
'404': "ErrorResponse",
|
|
2266
2265
|
}
|
|
@@ -2333,7 +2332,7 @@ class FileSystemApi:
|
|
|
2333
2332
|
)
|
|
2334
2333
|
|
|
2335
2334
|
_response_types_map: Dict[str, Optional[str]] = {
|
|
2336
|
-
'200': "
|
|
2335
|
+
'200': "bytes",
|
|
2337
2336
|
'401': "ErrorResponse",
|
|
2338
2337
|
'404': "ErrorResponse",
|
|
2339
2338
|
}
|
|
@@ -4814,7 +4813,7 @@ class FileSystemApi:
|
|
|
4814
4813
|
:param path: (required)
|
|
4815
4814
|
:type path: str
|
|
4816
4815
|
:param body: (required)
|
|
4817
|
-
:type body:
|
|
4816
|
+
:type body: bytes
|
|
4818
4817
|
:param _request_timeout: timeout setting for this request. If one
|
|
4819
4818
|
number provided, it will be total request
|
|
4820
4819
|
timeout. It can also be a pair (tuple) of
|
|
@@ -4891,7 +4890,7 @@ class FileSystemApi:
|
|
|
4891
4890
|
:param path: (required)
|
|
4892
4891
|
:type path: str
|
|
4893
4892
|
:param body: (required)
|
|
4894
|
-
:type body:
|
|
4893
|
+
:type body: bytes
|
|
4895
4894
|
:param _request_timeout: timeout setting for this request. If one
|
|
4896
4895
|
number provided, it will be total request
|
|
4897
4896
|
timeout. It can also be a pair (tuple) of
|
|
@@ -4968,7 +4967,7 @@ class FileSystemApi:
|
|
|
4968
4967
|
:param path: (required)
|
|
4969
4968
|
:type path: str
|
|
4970
4969
|
:param body: (required)
|
|
4971
|
-
:type body:
|
|
4970
|
+
:type body: bytes
|
|
4972
4971
|
:param _request_timeout: timeout setting for this request. If one
|
|
4973
4972
|
number provided, it will be total request
|
|
4974
4973
|
timeout. It can also be a pair (tuple) of
|
|
@@ -1,5 +1,3 @@
|
|
|
1
|
-
# coding: utf-8
|
|
2
|
-
|
|
3
1
|
"""
|
|
4
2
|
VoidRun API
|
|
5
3
|
|
|
@@ -11,6 +9,7 @@
|
|
|
11
9
|
Do not edit the class manually.
|
|
12
10
|
""" # noqa: E501
|
|
13
11
|
|
|
12
|
+
|
|
14
13
|
import warnings
|
|
15
14
|
from pydantic import validate_call, Field, StrictFloat, StrictStr, StrictInt
|
|
16
15
|
from typing import Any, Dict, List, Optional, Tuple, Union
|
|
@@ -590,7 +589,7 @@ class ImagesApi:
|
|
|
590
589
|
) -> List[Image]:
|
|
591
590
|
"""List images
|
|
592
591
|
|
|
593
|
-
Get
|
|
592
|
+
Get active base images visible to the organization (inactive or superseded images are omitted)
|
|
594
593
|
|
|
595
594
|
:param _request_timeout: timeout setting for this request. If one
|
|
596
595
|
number provided, it will be total request
|
|
@@ -654,7 +653,7 @@ class ImagesApi:
|
|
|
654
653
|
) -> ApiResponse[List[Image]]:
|
|
655
654
|
"""List images
|
|
656
655
|
|
|
657
|
-
Get
|
|
656
|
+
Get active base images visible to the organization (inactive or superseded images are omitted)
|
|
658
657
|
|
|
659
658
|
:param _request_timeout: timeout setting for this request. If one
|
|
660
659
|
number provided, it will be total request
|
|
@@ -718,7 +717,7 @@ class ImagesApi:
|
|
|
718
717
|
) -> RESTResponseType:
|
|
719
718
|
"""List images
|
|
720
719
|
|
|
721
|
-
Get
|
|
720
|
+
Get active base images visible to the organization (inactive or superseded images are omitted)
|
|
722
721
|
|
|
723
722
|
:param _request_timeout: timeout setting for this request. If one
|
|
724
723
|
number provided, it will be total request
|
|
@@ -1,5 +1,3 @@
|
|
|
1
|
-
# coding: utf-8
|
|
2
|
-
|
|
3
1
|
"""
|
|
4
2
|
VoidRun API
|
|
5
3
|
|
|
@@ -11,6 +9,7 @@
|
|
|
11
9
|
Do not edit the class manually.
|
|
12
10
|
""" # noqa: E501
|
|
13
11
|
|
|
12
|
+
|
|
14
13
|
import warnings
|
|
15
14
|
from pydantic import validate_call, Field, StrictFloat, StrictStr, StrictInt
|
|
16
15
|
from typing import Any, Dict, List, Optional, Tuple, Union
|