runloop-api-client 0.1.0a21__tar.gz → 0.1.0a22__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.
- runloop_api_client-0.1.0a22/.release-please-manifest.json +3 -0
- {runloop_api_client-0.1.0a21 → runloop_api_client-0.1.0a22}/CHANGELOG.md +8 -0
- {runloop_api_client-0.1.0a21 → runloop_api_client-0.1.0a22}/CONTRIBUTING.md +24 -20
- {runloop_api_client-0.1.0a21 → runloop_api_client-0.1.0a22}/PKG-INFO +5 -1
- {runloop_api_client-0.1.0a21 → runloop_api_client-0.1.0a22}/README.md +4 -0
- {runloop_api_client-0.1.0a21 → runloop_api_client-0.1.0a22}/pyproject.toml +1 -1
- {runloop_api_client-0.1.0a21 → runloop_api_client-0.1.0a22}/src/runloop_api_client/_version.py +1 -1
- {runloop_api_client-0.1.0a21 → runloop_api_client-0.1.0a22}/src/runloop_api_client/resources/blueprints.py +16 -16
- {runloop_api_client-0.1.0a21 → runloop_api_client-0.1.0a22}/src/runloop_api_client/resources/devboxes/devboxes.py +10 -10
- {runloop_api_client-0.1.0a21 → runloop_api_client-0.1.0a22}/src/runloop_api_client/resources/devboxes/executions.py +4 -4
- {runloop_api_client-0.1.0a21 → runloop_api_client-0.1.0a22}/src/runloop_api_client/types/blueprint_build_log.py +4 -4
- {runloop_api_client-0.1.0a21 → runloop_api_client-0.1.0a22}/src/runloop_api_client/types/blueprint_build_logs_list_view.py +3 -3
- {runloop_api_client-0.1.0a21 → runloop_api_client-0.1.0a22}/src/runloop_api_client/types/blueprint_build_parameters.py +3 -3
- {runloop_api_client-0.1.0a21 → runloop_api_client-0.1.0a22}/src/runloop_api_client/types/blueprint_create_params.py +4 -4
- {runloop_api_client-0.1.0a21 → runloop_api_client-0.1.0a22}/src/runloop_api_client/types/blueprint_list_view.py +4 -4
- {runloop_api_client-0.1.0a21 → runloop_api_client-0.1.0a22}/src/runloop_api_client/types/blueprint_preview_params.py +4 -4
- {runloop_api_client-0.1.0a21 → runloop_api_client-0.1.0a22}/src/runloop_api_client/types/blueprint_preview_view.py +2 -2
- {runloop_api_client-0.1.0a21 → runloop_api_client-0.1.0a22}/src/runloop_api_client/types/blueprint_view.py +8 -8
- {runloop_api_client-0.1.0a21 → runloop_api_client-0.1.0a22}/src/runloop_api_client/types/code_mount_parameters.py +8 -8
- {runloop_api_client-0.1.0a21 → runloop_api_client-0.1.0a22}/src/runloop_api_client/types/code_mount_parameters_param.py +9 -9
- {runloop_api_client-0.1.0a21 → runloop_api_client-0.1.0a22}/src/runloop_api_client/types/devbox_async_execution_detail_view.py +5 -5
- {runloop_api_client-0.1.0a21 → runloop_api_client-0.1.0a22}/src/runloop_api_client/types/devbox_create_ssh_key_response.py +4 -4
- {runloop_api_client-0.1.0a21 → runloop_api_client-0.1.0a22}/src/runloop_api_client/types/devbox_execute_async_params.py +2 -2
- {runloop_api_client-0.1.0a21 → runloop_api_client-0.1.0a22}/src/runloop_api_client/types/devbox_execute_sync_params.py +2 -2
- {runloop_api_client-0.1.0a21 → runloop_api_client-0.1.0a22}/src/runloop_api_client/types/devbox_execution_detail_view.py +7 -7
- {runloop_api_client-0.1.0a21 → runloop_api_client-0.1.0a22}/src/runloop_api_client/types/devbox_list_view.py +4 -4
- {runloop_api_client-0.1.0a21 → runloop_api_client-0.1.0a22}/src/runloop_api_client/types/devbox_read_file_contents_params.py +2 -2
- {runloop_api_client-0.1.0a21 → runloop_api_client-0.1.0a22}/src/runloop_api_client/types/devbox_view.py +18 -18
- {runloop_api_client-0.1.0a21 → runloop_api_client-0.1.0a22}/src/runloop_api_client/types/devbox_write_file_params.py +3 -3
- {runloop_api_client-0.1.0a21 → runloop_api_client-0.1.0a22}/src/runloop_api_client/types/devboxes/devbox_logs_list_view.py +10 -10
- {runloop_api_client-0.1.0a21 → runloop_api_client-0.1.0a22}/src/runloop_api_client/types/devboxes/execution_execute_async_params.py +2 -2
- {runloop_api_client-0.1.0a21 → runloop_api_client-0.1.0a22}/src/runloop_api_client/types/devboxes/execution_execute_sync_params.py +2 -2
- {runloop_api_client-0.1.0a21 → runloop_api_client-0.1.0a22}/src/runloop_api_client/types/project_list_view.py +7 -7
- {runloop_api_client-0.1.0a21 → runloop_api_client-0.1.0a22}/src/runloop_api_client/types/shared/project_logs_view.py +6 -6
- {runloop_api_client-0.1.0a21 → runloop_api_client-0.1.0a22}/tests/api_resources/devboxes/test_executions.py +16 -0
- {runloop_api_client-0.1.0a21 → runloop_api_client-0.1.0a22}/tests/api_resources/test_blueprints.py +64 -40
- {runloop_api_client-0.1.0a21 → runloop_api_client-0.1.0a22}/tests/api_resources/test_devboxes.py +46 -40
- runloop_api_client-0.1.0a21/.release-please-manifest.json +0 -3
- {runloop_api_client-0.1.0a21 → runloop_api_client-0.1.0a22}/.gitignore +0 -0
- {runloop_api_client-0.1.0a21 → runloop_api_client-0.1.0a22}/LICENSE +0 -0
- {runloop_api_client-0.1.0a21 → runloop_api_client-0.1.0a22}/SECURITY.md +0 -0
- {runloop_api_client-0.1.0a21 → runloop_api_client-0.1.0a22}/api.md +0 -0
- {runloop_api_client-0.1.0a21 → runloop_api_client-0.1.0a22}/bin/check-release-environment +0 -0
- {runloop_api_client-0.1.0a21 → runloop_api_client-0.1.0a22}/bin/publish-pypi +0 -0
- {runloop_api_client-0.1.0a21 → runloop_api_client-0.1.0a22}/examples/.keep +0 -0
- {runloop_api_client-0.1.0a21 → runloop_api_client-0.1.0a22}/mypy.ini +0 -0
- {runloop_api_client-0.1.0a21 → runloop_api_client-0.1.0a22}/noxfile.py +0 -0
- {runloop_api_client-0.1.0a21 → runloop_api_client-0.1.0a22}/release-please-config.json +0 -0
- {runloop_api_client-0.1.0a21 → runloop_api_client-0.1.0a22}/requirements-dev.lock +0 -0
- {runloop_api_client-0.1.0a21 → runloop_api_client-0.1.0a22}/requirements.lock +0 -0
- {runloop_api_client-0.1.0a21 → runloop_api_client-0.1.0a22}/src/runloop/lib/.keep +0 -0
- {runloop_api_client-0.1.0a21 → runloop_api_client-0.1.0a22}/src/runloop_api_client/__init__.py +0 -0
- {runloop_api_client-0.1.0a21 → runloop_api_client-0.1.0a22}/src/runloop_api_client/_base_client.py +0 -0
- {runloop_api_client-0.1.0a21 → runloop_api_client-0.1.0a22}/src/runloop_api_client/_client.py +0 -0
- {runloop_api_client-0.1.0a21 → runloop_api_client-0.1.0a22}/src/runloop_api_client/_compat.py +0 -0
- {runloop_api_client-0.1.0a21 → runloop_api_client-0.1.0a22}/src/runloop_api_client/_constants.py +0 -0
- {runloop_api_client-0.1.0a21 → runloop_api_client-0.1.0a22}/src/runloop_api_client/_exceptions.py +0 -0
- {runloop_api_client-0.1.0a21 → runloop_api_client-0.1.0a22}/src/runloop_api_client/_files.py +0 -0
- {runloop_api_client-0.1.0a21 → runloop_api_client-0.1.0a22}/src/runloop_api_client/_models.py +0 -0
- {runloop_api_client-0.1.0a21 → runloop_api_client-0.1.0a22}/src/runloop_api_client/_qs.py +0 -0
- {runloop_api_client-0.1.0a21 → runloop_api_client-0.1.0a22}/src/runloop_api_client/_resource.py +0 -0
- {runloop_api_client-0.1.0a21 → runloop_api_client-0.1.0a22}/src/runloop_api_client/_response.py +0 -0
- {runloop_api_client-0.1.0a21 → runloop_api_client-0.1.0a22}/src/runloop_api_client/_streaming.py +0 -0
- {runloop_api_client-0.1.0a21 → runloop_api_client-0.1.0a22}/src/runloop_api_client/_types.py +0 -0
- {runloop_api_client-0.1.0a21 → runloop_api_client-0.1.0a22}/src/runloop_api_client/_utils/__init__.py +0 -0
- {runloop_api_client-0.1.0a21 → runloop_api_client-0.1.0a22}/src/runloop_api_client/_utils/_logs.py +0 -0
- {runloop_api_client-0.1.0a21 → runloop_api_client-0.1.0a22}/src/runloop_api_client/_utils/_proxy.py +0 -0
- {runloop_api_client-0.1.0a21 → runloop_api_client-0.1.0a22}/src/runloop_api_client/_utils/_reflection.py +0 -0
- {runloop_api_client-0.1.0a21 → runloop_api_client-0.1.0a22}/src/runloop_api_client/_utils/_streams.py +0 -0
- {runloop_api_client-0.1.0a21 → runloop_api_client-0.1.0a22}/src/runloop_api_client/_utils/_sync.py +0 -0
- {runloop_api_client-0.1.0a21 → runloop_api_client-0.1.0a22}/src/runloop_api_client/_utils/_transform.py +0 -0
- {runloop_api_client-0.1.0a21 → runloop_api_client-0.1.0a22}/src/runloop_api_client/_utils/_typing.py +0 -0
- {runloop_api_client-0.1.0a21 → runloop_api_client-0.1.0a22}/src/runloop_api_client/_utils/_utils.py +0 -0
- {runloop_api_client-0.1.0a21 → runloop_api_client-0.1.0a22}/src/runloop_api_client/lib/.keep +0 -0
- {runloop_api_client-0.1.0a21 → runloop_api_client-0.1.0a22}/src/runloop_api_client/py.typed +0 -0
- {runloop_api_client-0.1.0a21 → runloop_api_client-0.1.0a22}/src/runloop_api_client/resources/__init__.py +0 -0
- {runloop_api_client-0.1.0a21 → runloop_api_client-0.1.0a22}/src/runloop_api_client/resources/devboxes/__init__.py +0 -0
- {runloop_api_client-0.1.0a21 → runloop_api_client-0.1.0a22}/src/runloop_api_client/resources/devboxes/logs.py +0 -0
- {runloop_api_client-0.1.0a21 → runloop_api_client-0.1.0a22}/src/runloop_api_client/resources/functions/__init__.py +0 -0
- {runloop_api_client-0.1.0a21 → runloop_api_client-0.1.0a22}/src/runloop_api_client/resources/functions/functions.py +0 -0
- {runloop_api_client-0.1.0a21 → runloop_api_client-0.1.0a22}/src/runloop_api_client/resources/functions/invocations.py +0 -0
- {runloop_api_client-0.1.0a21 → runloop_api_client-0.1.0a22}/src/runloop_api_client/resources/projects/__init__.py +0 -0
- {runloop_api_client-0.1.0a21 → runloop_api_client-0.1.0a22}/src/runloop_api_client/resources/projects/logs.py +0 -0
- {runloop_api_client-0.1.0a21 → runloop_api_client-0.1.0a22}/src/runloop_api_client/resources/projects/projects.py +0 -0
- {runloop_api_client-0.1.0a21 → runloop_api_client-0.1.0a22}/src/runloop_api_client/types/__init__.py +0 -0
- {runloop_api_client-0.1.0a21 → runloop_api_client-0.1.0a22}/src/runloop_api_client/types/blueprint_list_params.py +0 -0
- {runloop_api_client-0.1.0a21 → runloop_api_client-0.1.0a22}/src/runloop_api_client/types/devbox_create_params.py +0 -0
- {runloop_api_client-0.1.0a21 → runloop_api_client-0.1.0a22}/src/runloop_api_client/types/devbox_list_params.py +0 -0
- {runloop_api_client-0.1.0a21 → runloop_api_client-0.1.0a22}/src/runloop_api_client/types/devbox_read_file_contents_response.py +0 -0
- {runloop_api_client-0.1.0a21 → runloop_api_client-0.1.0a22}/src/runloop_api_client/types/devbox_upload_file_params.py +0 -0
- {runloop_api_client-0.1.0a21 → runloop_api_client-0.1.0a22}/src/runloop_api_client/types/devboxes/__init__.py +0 -0
- {runloop_api_client-0.1.0a21 → runloop_api_client-0.1.0a22}/src/runloop_api_client/types/devboxes/execution_retrieve_params.py +0 -0
- {runloop_api_client-0.1.0a21 → runloop_api_client-0.1.0a22}/src/runloop_api_client/types/devboxes/log_list_params.py +0 -0
- {runloop_api_client-0.1.0a21 → runloop_api_client-0.1.0a22}/src/runloop_api_client/types/function_invoke_async_params.py +0 -0
- {runloop_api_client-0.1.0a21 → runloop_api_client-0.1.0a22}/src/runloop_api_client/types/function_invoke_sync_params.py +0 -0
- {runloop_api_client-0.1.0a21 → runloop_api_client-0.1.0a22}/src/runloop_api_client/types/function_list_view.py +0 -0
- {runloop_api_client-0.1.0a21 → runloop_api_client-0.1.0a22}/src/runloop_api_client/types/functions/__init__.py +0 -0
- {runloop_api_client-0.1.0a21 → runloop_api_client-0.1.0a22}/src/runloop_api_client/types/functions/function_invocation_list_view.py +0 -0
- {runloop_api_client-0.1.0a21 → runloop_api_client-0.1.0a22}/src/runloop_api_client/types/functions/invocation_list_params.py +0 -0
- {runloop_api_client-0.1.0a21 → runloop_api_client-0.1.0a22}/src/runloop_api_client/types/projects/__init__.py +0 -0
- {runloop_api_client-0.1.0a21 → runloop_api_client-0.1.0a22}/src/runloop_api_client/types/resource_size.py +0 -0
- {runloop_api_client-0.1.0a21 → runloop_api_client-0.1.0a22}/src/runloop_api_client/types/shared/__init__.py +0 -0
- {runloop_api_client-0.1.0a21 → runloop_api_client-0.1.0a22}/src/runloop_api_client/types/shared/function_invocation_execution_detail_view.py +0 -0
- {runloop_api_client-0.1.0a21 → runloop_api_client-0.1.0a22}/tests/__init__.py +0 -0
- {runloop_api_client-0.1.0a21 → runloop_api_client-0.1.0a22}/tests/api_resources/__init__.py +0 -0
- {runloop_api_client-0.1.0a21 → runloop_api_client-0.1.0a22}/tests/api_resources/devboxes/__init__.py +0 -0
- {runloop_api_client-0.1.0a21 → runloop_api_client-0.1.0a22}/tests/api_resources/devboxes/test_logs.py +0 -0
- {runloop_api_client-0.1.0a21 → runloop_api_client-0.1.0a22}/tests/api_resources/functions/__init__.py +0 -0
- {runloop_api_client-0.1.0a21 → runloop_api_client-0.1.0a22}/tests/api_resources/functions/test_invocations.py +0 -0
- {runloop_api_client-0.1.0a21 → runloop_api_client-0.1.0a22}/tests/api_resources/projects/__init__.py +0 -0
- {runloop_api_client-0.1.0a21 → runloop_api_client-0.1.0a22}/tests/api_resources/projects/test_logs.py +0 -0
- {runloop_api_client-0.1.0a21 → runloop_api_client-0.1.0a22}/tests/api_resources/test_functions.py +0 -0
- {runloop_api_client-0.1.0a21 → runloop_api_client-0.1.0a22}/tests/api_resources/test_projects.py +0 -0
- {runloop_api_client-0.1.0a21 → runloop_api_client-0.1.0a22}/tests/conftest.py +0 -0
- {runloop_api_client-0.1.0a21 → runloop_api_client-0.1.0a22}/tests/sample_file.txt +0 -0
- {runloop_api_client-0.1.0a21 → runloop_api_client-0.1.0a22}/tests/test_client.py +0 -0
- {runloop_api_client-0.1.0a21 → runloop_api_client-0.1.0a22}/tests/test_deepcopy.py +0 -0
- {runloop_api_client-0.1.0a21 → runloop_api_client-0.1.0a22}/tests/test_extract_files.py +0 -0
- {runloop_api_client-0.1.0a21 → runloop_api_client-0.1.0a22}/tests/test_files.py +0 -0
- {runloop_api_client-0.1.0a21 → runloop_api_client-0.1.0a22}/tests/test_models.py +0 -0
- {runloop_api_client-0.1.0a21 → runloop_api_client-0.1.0a22}/tests/test_qs.py +0 -0
- {runloop_api_client-0.1.0a21 → runloop_api_client-0.1.0a22}/tests/test_required_args.py +0 -0
- {runloop_api_client-0.1.0a21 → runloop_api_client-0.1.0a22}/tests/test_response.py +0 -0
- {runloop_api_client-0.1.0a21 → runloop_api_client-0.1.0a22}/tests/test_streaming.py +0 -0
- {runloop_api_client-0.1.0a21 → runloop_api_client-0.1.0a22}/tests/test_transform.py +0 -0
- {runloop_api_client-0.1.0a21 → runloop_api_client-0.1.0a22}/tests/test_utils/test_proxy.py +0 -0
- {runloop_api_client-0.1.0a21 → runloop_api_client-0.1.0a22}/tests/test_utils/test_typing.py +0 -0
- {runloop_api_client-0.1.0a21 → runloop_api_client-0.1.0a22}/tests/utils.py +0 -0
|
@@ -1,5 +1,13 @@
|
|
|
1
1
|
# Changelog
|
|
2
2
|
|
|
3
|
+
## 0.1.0-alpha.22 (2024-10-01)
|
|
4
|
+
|
|
5
|
+
Full Changelog: [v0.1.0-alpha.21...v0.1.0-alpha.22](https://github.com/runloopai/api-client-python/compare/v0.1.0-alpha.21...v0.1.0-alpha.22)
|
|
6
|
+
|
|
7
|
+
### Features
|
|
8
|
+
|
|
9
|
+
* **api:** OpenAPI spec update via Stainless API ([#174](https://github.com/runloopai/api-client-python/issues/174)) ([83ea2bc](https://github.com/runloopai/api-client-python/commit/83ea2bc3a8e222ab35f23145ba30a003574719a8))
|
|
10
|
+
|
|
3
11
|
## 0.1.0-alpha.21 (2024-10-01)
|
|
4
12
|
|
|
5
13
|
Full Changelog: [v0.1.0-alpha.20...v0.1.0-alpha.21](https://github.com/runloopai/api-client-python/compare/v0.1.0-alpha.20...v0.1.0-alpha.21)
|
|
@@ -2,9 +2,13 @@
|
|
|
2
2
|
|
|
3
3
|
### With Rye
|
|
4
4
|
|
|
5
|
-
We use [Rye](https://rye.astral.sh/) to manage dependencies
|
|
5
|
+
We use [Rye](https://rye.astral.sh/) to manage dependencies because it will automatically provision a Python environment with the expected Python version. To set it up, run:
|
|
6
6
|
|
|
7
|
-
|
|
7
|
+
```sh
|
|
8
|
+
$ ./scripts/bootstrap
|
|
9
|
+
```
|
|
10
|
+
|
|
11
|
+
Or [install Rye manually](https://rye.astral.sh/guide/installation/) and run:
|
|
8
12
|
|
|
9
13
|
```sh
|
|
10
14
|
$ rye sync --all-features
|
|
@@ -39,17 +43,17 @@ modify the contents of the `src/runloop_api_client/lib/` and `examples/` directo
|
|
|
39
43
|
|
|
40
44
|
All files in the `examples/` directory are not modified by the generator and can be freely edited or added to.
|
|
41
45
|
|
|
42
|
-
```
|
|
46
|
+
```py
|
|
43
47
|
# add an example to examples/<your-example>.py
|
|
44
48
|
|
|
45
49
|
#!/usr/bin/env -S rye run python
|
|
46
50
|
…
|
|
47
51
|
```
|
|
48
52
|
|
|
49
|
-
```
|
|
50
|
-
chmod +x examples/<your-example>.py
|
|
53
|
+
```sh
|
|
54
|
+
$ chmod +x examples/<your-example>.py
|
|
51
55
|
# run the example against your api
|
|
52
|
-
./examples/<your-example>.py
|
|
56
|
+
$ ./examples/<your-example>.py
|
|
53
57
|
```
|
|
54
58
|
|
|
55
59
|
## Using the repository from source
|
|
@@ -58,8 +62,8 @@ If you’d like to use the repository from source, you can either install from g
|
|
|
58
62
|
|
|
59
63
|
To install via git:
|
|
60
64
|
|
|
61
|
-
```
|
|
62
|
-
pip install git+ssh://git@github.com/runloopai/api-client-python.git
|
|
65
|
+
```sh
|
|
66
|
+
$ pip install git+ssh://git@github.com/runloopai/api-client-python.git
|
|
63
67
|
```
|
|
64
68
|
|
|
65
69
|
Alternatively, you can build from source and install the wheel file:
|
|
@@ -68,29 +72,29 @@ Building this package will create two files in the `dist/` directory, a `.tar.gz
|
|
|
68
72
|
|
|
69
73
|
To create a distributable version of the library, all you have to do is run this command:
|
|
70
74
|
|
|
71
|
-
```
|
|
72
|
-
rye build
|
|
75
|
+
```sh
|
|
76
|
+
$ rye build
|
|
73
77
|
# or
|
|
74
|
-
python -m build
|
|
78
|
+
$ python -m build
|
|
75
79
|
```
|
|
76
80
|
|
|
77
81
|
Then to install:
|
|
78
82
|
|
|
79
83
|
```sh
|
|
80
|
-
pip install ./path-to-wheel-file.whl
|
|
84
|
+
$ pip install ./path-to-wheel-file.whl
|
|
81
85
|
```
|
|
82
86
|
|
|
83
87
|
## Running tests
|
|
84
88
|
|
|
85
89
|
Most tests require you to [set up a mock server](https://github.com/stoplightio/prism) against the OpenAPI spec to run the tests.
|
|
86
90
|
|
|
87
|
-
```
|
|
91
|
+
```sh
|
|
88
92
|
# you will need npm installed
|
|
89
|
-
npx prism mock path/to/your/openapi.yml
|
|
93
|
+
$ npx prism mock path/to/your/openapi.yml
|
|
90
94
|
```
|
|
91
95
|
|
|
92
|
-
```
|
|
93
|
-
|
|
96
|
+
```sh
|
|
97
|
+
$ ./scripts/test
|
|
94
98
|
```
|
|
95
99
|
|
|
96
100
|
## Linting and formatting
|
|
@@ -100,14 +104,14 @@ This repository uses [ruff](https://github.com/astral-sh/ruff) and
|
|
|
100
104
|
|
|
101
105
|
To lint:
|
|
102
106
|
|
|
103
|
-
```
|
|
104
|
-
|
|
107
|
+
```sh
|
|
108
|
+
$ ./scripts/lint
|
|
105
109
|
```
|
|
106
110
|
|
|
107
111
|
To format and fix all ruff issues automatically:
|
|
108
112
|
|
|
109
|
-
```
|
|
110
|
-
|
|
113
|
+
```sh
|
|
114
|
+
$ ./scripts/format
|
|
111
115
|
```
|
|
112
116
|
|
|
113
117
|
## Publishing and releases
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
Metadata-Version: 2.3
|
|
2
2
|
Name: runloop_api_client
|
|
3
|
-
Version: 0.1.
|
|
3
|
+
Version: 0.1.0a22
|
|
4
4
|
Summary: The official Python library for the runloop API
|
|
5
5
|
Project-URL: Homepage, https://github.com/runloopai/api-client-python
|
|
6
6
|
Project-URL: Repository, https://github.com/runloopai/api-client-python
|
|
@@ -349,3 +349,7 @@ print(runloop_api_client.__version__)
|
|
|
349
349
|
## Requirements
|
|
350
350
|
|
|
351
351
|
Python 3.7 or higher.
|
|
352
|
+
|
|
353
|
+
## Contributing
|
|
354
|
+
|
|
355
|
+
See [the contributing documentation](https://github.com/runloopai/api-client-python/tree/main/./CONTRIBUTING.md).
|
|
@@ -53,11 +53,11 @@ class BlueprintsResource(SyncAPIResource):
|
|
|
53
53
|
def create(
|
|
54
54
|
self,
|
|
55
55
|
*,
|
|
56
|
+
name: str,
|
|
56
57
|
code_mounts: Iterable[CodeMountParametersParam] | NotGiven = NOT_GIVEN,
|
|
57
58
|
dockerfile: str | NotGiven = NOT_GIVEN,
|
|
58
59
|
file_mounts: Dict[str, str] | NotGiven = NOT_GIVEN,
|
|
59
60
|
launch_parameters: blueprint_create_params.LaunchParameters | NotGiven = NOT_GIVEN,
|
|
60
|
-
name: str | NotGiven = NOT_GIVEN,
|
|
61
61
|
system_setup_commands: List[str] | NotGiven = NOT_GIVEN,
|
|
62
62
|
# Use the following arguments if you need to pass additional parameters to the API that aren't available via kwargs.
|
|
63
63
|
# The extra values given here take precedence over values defined on the client or passed to this method.
|
|
@@ -73,6 +73,8 @@ class BlueprintsResource(SyncAPIResource):
|
|
|
73
73
|
ready.
|
|
74
74
|
|
|
75
75
|
Args:
|
|
76
|
+
name: Name of the Blueprint.
|
|
77
|
+
|
|
76
78
|
code_mounts: A list of code mounts to be included in the Blueprint.
|
|
77
79
|
|
|
78
80
|
dockerfile: Dockerfile contents to be used to build the Blueprint.
|
|
@@ -81,8 +83,6 @@ class BlueprintsResource(SyncAPIResource):
|
|
|
81
83
|
|
|
82
84
|
launch_parameters: Parameters to configure your Devbox at launch time.
|
|
83
85
|
|
|
84
|
-
name: Name of the Blueprint.
|
|
85
|
-
|
|
86
86
|
system_setup_commands: A list of commands to run to set up your system.
|
|
87
87
|
|
|
88
88
|
extra_headers: Send extra headers
|
|
@@ -97,11 +97,11 @@ class BlueprintsResource(SyncAPIResource):
|
|
|
97
97
|
"/v1/blueprints",
|
|
98
98
|
body=maybe_transform(
|
|
99
99
|
{
|
|
100
|
+
"name": name,
|
|
100
101
|
"code_mounts": code_mounts,
|
|
101
102
|
"dockerfile": dockerfile,
|
|
102
103
|
"file_mounts": file_mounts,
|
|
103
104
|
"launch_parameters": launch_parameters,
|
|
104
|
-
"name": name,
|
|
105
105
|
"system_setup_commands": system_setup_commands,
|
|
106
106
|
},
|
|
107
107
|
blueprint_create_params.BlueprintCreateParams,
|
|
@@ -233,11 +233,11 @@ class BlueprintsResource(SyncAPIResource):
|
|
|
233
233
|
def preview(
|
|
234
234
|
self,
|
|
235
235
|
*,
|
|
236
|
+
name: str,
|
|
236
237
|
code_mounts: Iterable[CodeMountParametersParam] | NotGiven = NOT_GIVEN,
|
|
237
238
|
dockerfile: str | NotGiven = NOT_GIVEN,
|
|
238
239
|
file_mounts: Dict[str, str] | NotGiven = NOT_GIVEN,
|
|
239
240
|
launch_parameters: blueprint_preview_params.LaunchParameters | NotGiven = NOT_GIVEN,
|
|
240
|
-
name: str | NotGiven = NOT_GIVEN,
|
|
241
241
|
system_setup_commands: List[str] | NotGiven = NOT_GIVEN,
|
|
242
242
|
# Use the following arguments if you need to pass additional parameters to the API that aren't available via kwargs.
|
|
243
243
|
# The extra values given here take precedence over values defined on the client or passed to this method.
|
|
@@ -252,6 +252,8 @@ class BlueprintsResource(SyncAPIResource):
|
|
|
252
252
|
resulting Dockerfile and test out your build.
|
|
253
253
|
|
|
254
254
|
Args:
|
|
255
|
+
name: Name of the Blueprint.
|
|
256
|
+
|
|
255
257
|
code_mounts: A list of code mounts to be included in the Blueprint.
|
|
256
258
|
|
|
257
259
|
dockerfile: Dockerfile contents to be used to build the Blueprint.
|
|
@@ -260,8 +262,6 @@ class BlueprintsResource(SyncAPIResource):
|
|
|
260
262
|
|
|
261
263
|
launch_parameters: Parameters to configure your Devbox at launch time.
|
|
262
264
|
|
|
263
|
-
name: Name of the Blueprint.
|
|
264
|
-
|
|
265
265
|
system_setup_commands: A list of commands to run to set up your system.
|
|
266
266
|
|
|
267
267
|
extra_headers: Send extra headers
|
|
@@ -276,11 +276,11 @@ class BlueprintsResource(SyncAPIResource):
|
|
|
276
276
|
"/v1/blueprints/preview",
|
|
277
277
|
body=maybe_transform(
|
|
278
278
|
{
|
|
279
|
+
"name": name,
|
|
279
280
|
"code_mounts": code_mounts,
|
|
280
281
|
"dockerfile": dockerfile,
|
|
281
282
|
"file_mounts": file_mounts,
|
|
282
283
|
"launch_parameters": launch_parameters,
|
|
283
|
-
"name": name,
|
|
284
284
|
"system_setup_commands": system_setup_commands,
|
|
285
285
|
},
|
|
286
286
|
blueprint_preview_params.BlueprintPreviewParams,
|
|
@@ -315,11 +315,11 @@ class AsyncBlueprintsResource(AsyncAPIResource):
|
|
|
315
315
|
async def create(
|
|
316
316
|
self,
|
|
317
317
|
*,
|
|
318
|
+
name: str,
|
|
318
319
|
code_mounts: Iterable[CodeMountParametersParam] | NotGiven = NOT_GIVEN,
|
|
319
320
|
dockerfile: str | NotGiven = NOT_GIVEN,
|
|
320
321
|
file_mounts: Dict[str, str] | NotGiven = NOT_GIVEN,
|
|
321
322
|
launch_parameters: blueprint_create_params.LaunchParameters | NotGiven = NOT_GIVEN,
|
|
322
|
-
name: str | NotGiven = NOT_GIVEN,
|
|
323
323
|
system_setup_commands: List[str] | NotGiven = NOT_GIVEN,
|
|
324
324
|
# Use the following arguments if you need to pass additional parameters to the API that aren't available via kwargs.
|
|
325
325
|
# The extra values given here take precedence over values defined on the client or passed to this method.
|
|
@@ -335,6 +335,8 @@ class AsyncBlueprintsResource(AsyncAPIResource):
|
|
|
335
335
|
ready.
|
|
336
336
|
|
|
337
337
|
Args:
|
|
338
|
+
name: Name of the Blueprint.
|
|
339
|
+
|
|
338
340
|
code_mounts: A list of code mounts to be included in the Blueprint.
|
|
339
341
|
|
|
340
342
|
dockerfile: Dockerfile contents to be used to build the Blueprint.
|
|
@@ -343,8 +345,6 @@ class AsyncBlueprintsResource(AsyncAPIResource):
|
|
|
343
345
|
|
|
344
346
|
launch_parameters: Parameters to configure your Devbox at launch time.
|
|
345
347
|
|
|
346
|
-
name: Name of the Blueprint.
|
|
347
|
-
|
|
348
348
|
system_setup_commands: A list of commands to run to set up your system.
|
|
349
349
|
|
|
350
350
|
extra_headers: Send extra headers
|
|
@@ -359,11 +359,11 @@ class AsyncBlueprintsResource(AsyncAPIResource):
|
|
|
359
359
|
"/v1/blueprints",
|
|
360
360
|
body=await async_maybe_transform(
|
|
361
361
|
{
|
|
362
|
+
"name": name,
|
|
362
363
|
"code_mounts": code_mounts,
|
|
363
364
|
"dockerfile": dockerfile,
|
|
364
365
|
"file_mounts": file_mounts,
|
|
365
366
|
"launch_parameters": launch_parameters,
|
|
366
|
-
"name": name,
|
|
367
367
|
"system_setup_commands": system_setup_commands,
|
|
368
368
|
},
|
|
369
369
|
blueprint_create_params.BlueprintCreateParams,
|
|
@@ -495,11 +495,11 @@ class AsyncBlueprintsResource(AsyncAPIResource):
|
|
|
495
495
|
async def preview(
|
|
496
496
|
self,
|
|
497
497
|
*,
|
|
498
|
+
name: str,
|
|
498
499
|
code_mounts: Iterable[CodeMountParametersParam] | NotGiven = NOT_GIVEN,
|
|
499
500
|
dockerfile: str | NotGiven = NOT_GIVEN,
|
|
500
501
|
file_mounts: Dict[str, str] | NotGiven = NOT_GIVEN,
|
|
501
502
|
launch_parameters: blueprint_preview_params.LaunchParameters | NotGiven = NOT_GIVEN,
|
|
502
|
-
name: str | NotGiven = NOT_GIVEN,
|
|
503
503
|
system_setup_commands: List[str] | NotGiven = NOT_GIVEN,
|
|
504
504
|
# Use the following arguments if you need to pass additional parameters to the API that aren't available via kwargs.
|
|
505
505
|
# The extra values given here take precedence over values defined on the client or passed to this method.
|
|
@@ -514,6 +514,8 @@ class AsyncBlueprintsResource(AsyncAPIResource):
|
|
|
514
514
|
resulting Dockerfile and test out your build.
|
|
515
515
|
|
|
516
516
|
Args:
|
|
517
|
+
name: Name of the Blueprint.
|
|
518
|
+
|
|
517
519
|
code_mounts: A list of code mounts to be included in the Blueprint.
|
|
518
520
|
|
|
519
521
|
dockerfile: Dockerfile contents to be used to build the Blueprint.
|
|
@@ -522,8 +524,6 @@ class AsyncBlueprintsResource(AsyncAPIResource):
|
|
|
522
524
|
|
|
523
525
|
launch_parameters: Parameters to configure your Devbox at launch time.
|
|
524
526
|
|
|
525
|
-
name: Name of the Blueprint.
|
|
526
|
-
|
|
527
527
|
system_setup_commands: A list of commands to run to set up your system.
|
|
528
528
|
|
|
529
529
|
extra_headers: Send extra headers
|
|
@@ -538,11 +538,11 @@ class AsyncBlueprintsResource(AsyncAPIResource):
|
|
|
538
538
|
"/v1/blueprints/preview",
|
|
539
539
|
body=await async_maybe_transform(
|
|
540
540
|
{
|
|
541
|
+
"name": name,
|
|
541
542
|
"code_mounts": code_mounts,
|
|
542
543
|
"dockerfile": dockerfile,
|
|
543
544
|
"file_mounts": file_mounts,
|
|
544
545
|
"launch_parameters": launch_parameters,
|
|
545
|
-
"name": name,
|
|
546
546
|
"system_setup_commands": system_setup_commands,
|
|
547
547
|
},
|
|
548
548
|
blueprint_preview_params.BlueprintPreviewParams,
|
|
@@ -295,7 +295,7 @@ class DevboxesResource(SyncAPIResource):
|
|
|
295
295
|
self,
|
|
296
296
|
id: str,
|
|
297
297
|
*,
|
|
298
|
-
command: str
|
|
298
|
+
command: str,
|
|
299
299
|
shell_name: str | NotGiven = NOT_GIVEN,
|
|
300
300
|
# Use the following arguments if you need to pass additional parameters to the API that aren't available via kwargs.
|
|
301
301
|
# The extra values given here take precedence over values defined on the client or passed to this method.
|
|
@@ -341,7 +341,7 @@ class DevboxesResource(SyncAPIResource):
|
|
|
341
341
|
self,
|
|
342
342
|
id: str,
|
|
343
343
|
*,
|
|
344
|
-
command: str
|
|
344
|
+
command: str,
|
|
345
345
|
shell_name: str | NotGiven = NOT_GIVEN,
|
|
346
346
|
# Use the following arguments if you need to pass additional parameters to the API that aren't available via kwargs.
|
|
347
347
|
# The extra values given here take precedence over values defined on the client or passed to this method.
|
|
@@ -387,7 +387,7 @@ class DevboxesResource(SyncAPIResource):
|
|
|
387
387
|
self,
|
|
388
388
|
id: str,
|
|
389
389
|
*,
|
|
390
|
-
file_path: str
|
|
390
|
+
file_path: str,
|
|
391
391
|
# Use the following arguments if you need to pass additional parameters to the API that aren't available via kwargs.
|
|
392
392
|
# The extra values given here take precedence over values defined on the client or passed to this method.
|
|
393
393
|
extra_headers: Headers | None = None,
|
|
@@ -509,8 +509,8 @@ class DevboxesResource(SyncAPIResource):
|
|
|
509
509
|
self,
|
|
510
510
|
id: str,
|
|
511
511
|
*,
|
|
512
|
-
contents: str
|
|
513
|
-
file_path: str
|
|
512
|
+
contents: str,
|
|
513
|
+
file_path: str,
|
|
514
514
|
# Use the following arguments if you need to pass additional parameters to the API that aren't available via kwargs.
|
|
515
515
|
# The extra values given here take precedence over values defined on the client or passed to this method.
|
|
516
516
|
extra_headers: Headers | None = None,
|
|
@@ -790,7 +790,7 @@ class AsyncDevboxesResource(AsyncAPIResource):
|
|
|
790
790
|
self,
|
|
791
791
|
id: str,
|
|
792
792
|
*,
|
|
793
|
-
command: str
|
|
793
|
+
command: str,
|
|
794
794
|
shell_name: str | NotGiven = NOT_GIVEN,
|
|
795
795
|
# Use the following arguments if you need to pass additional parameters to the API that aren't available via kwargs.
|
|
796
796
|
# The extra values given here take precedence over values defined on the client or passed to this method.
|
|
@@ -836,7 +836,7 @@ class AsyncDevboxesResource(AsyncAPIResource):
|
|
|
836
836
|
self,
|
|
837
837
|
id: str,
|
|
838
838
|
*,
|
|
839
|
-
command: str
|
|
839
|
+
command: str,
|
|
840
840
|
shell_name: str | NotGiven = NOT_GIVEN,
|
|
841
841
|
# Use the following arguments if you need to pass additional parameters to the API that aren't available via kwargs.
|
|
842
842
|
# The extra values given here take precedence over values defined on the client or passed to this method.
|
|
@@ -882,7 +882,7 @@ class AsyncDevboxesResource(AsyncAPIResource):
|
|
|
882
882
|
self,
|
|
883
883
|
id: str,
|
|
884
884
|
*,
|
|
885
|
-
file_path: str
|
|
885
|
+
file_path: str,
|
|
886
886
|
# Use the following arguments if you need to pass additional parameters to the API that aren't available via kwargs.
|
|
887
887
|
# The extra values given here take precedence over values defined on the client or passed to this method.
|
|
888
888
|
extra_headers: Headers | None = None,
|
|
@@ -1004,8 +1004,8 @@ class AsyncDevboxesResource(AsyncAPIResource):
|
|
|
1004
1004
|
self,
|
|
1005
1005
|
id: str,
|
|
1006
1006
|
*,
|
|
1007
|
-
contents: str
|
|
1008
|
-
file_path: str
|
|
1007
|
+
contents: str,
|
|
1008
|
+
file_path: str,
|
|
1009
1009
|
# Use the following arguments if you need to pass additional parameters to the API that aren't available via kwargs.
|
|
1010
1010
|
# The extra values given here take precedence over values defined on the client or passed to this method.
|
|
1011
1011
|
extra_headers: Headers | None = None,
|
|
@@ -92,7 +92,7 @@ class ExecutionsResource(SyncAPIResource):
|
|
|
92
92
|
self,
|
|
93
93
|
id: str,
|
|
94
94
|
*,
|
|
95
|
-
command: str
|
|
95
|
+
command: str,
|
|
96
96
|
shell_name: str | NotGiven = NOT_GIVEN,
|
|
97
97
|
# Use the following arguments if you need to pass additional parameters to the API that aren't available via kwargs.
|
|
98
98
|
# The extra values given here take precedence over values defined on the client or passed to this method.
|
|
@@ -138,7 +138,7 @@ class ExecutionsResource(SyncAPIResource):
|
|
|
138
138
|
self,
|
|
139
139
|
id: str,
|
|
140
140
|
*,
|
|
141
|
-
command: str
|
|
141
|
+
command: str,
|
|
142
142
|
shell_name: str | NotGiven = NOT_GIVEN,
|
|
143
143
|
# Use the following arguments if you need to pass additional parameters to the API that aren't available via kwargs.
|
|
144
144
|
# The extra values given here take precedence over values defined on the client or passed to this method.
|
|
@@ -286,7 +286,7 @@ class AsyncExecutionsResource(AsyncAPIResource):
|
|
|
286
286
|
self,
|
|
287
287
|
id: str,
|
|
288
288
|
*,
|
|
289
|
-
command: str
|
|
289
|
+
command: str,
|
|
290
290
|
shell_name: str | NotGiven = NOT_GIVEN,
|
|
291
291
|
# Use the following arguments if you need to pass additional parameters to the API that aren't available via kwargs.
|
|
292
292
|
# The extra values given here take precedence over values defined on the client or passed to this method.
|
|
@@ -332,7 +332,7 @@ class AsyncExecutionsResource(AsyncAPIResource):
|
|
|
332
332
|
self,
|
|
333
333
|
id: str,
|
|
334
334
|
*,
|
|
335
|
-
command: str
|
|
335
|
+
command: str,
|
|
336
336
|
shell_name: str | NotGiven = NOT_GIVEN,
|
|
337
337
|
# Use the following arguments if you need to pass additional parameters to the API that aren't available via kwargs.
|
|
338
338
|
# The extra values given here take precedence over values defined on the client or passed to this method.
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
# File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details.
|
|
2
2
|
|
|
3
|
-
|
|
3
|
+
|
|
4
4
|
|
|
5
5
|
from .._models import BaseModel
|
|
6
6
|
|
|
@@ -8,11 +8,11 @@ __all__ = ["BlueprintBuildLog"]
|
|
|
8
8
|
|
|
9
9
|
|
|
10
10
|
class BlueprintBuildLog(BaseModel):
|
|
11
|
-
level:
|
|
11
|
+
level: str
|
|
12
12
|
"""Log line severity level."""
|
|
13
13
|
|
|
14
|
-
message:
|
|
14
|
+
message: str
|
|
15
15
|
"""Log line message."""
|
|
16
16
|
|
|
17
|
-
timestamp_ms:
|
|
17
|
+
timestamp_ms: int
|
|
18
18
|
"""Time of log (Unix timestamp milliseconds)."""
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
# File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details.
|
|
2
2
|
|
|
3
|
-
from typing import List
|
|
3
|
+
from typing import List
|
|
4
4
|
|
|
5
5
|
from .._models import BaseModel
|
|
6
6
|
from .blueprint_build_log import BlueprintBuildLog
|
|
@@ -9,8 +9,8 @@ __all__ = ["BlueprintBuildLogsListView"]
|
|
|
9
9
|
|
|
10
10
|
|
|
11
11
|
class BlueprintBuildLogsListView(BaseModel):
|
|
12
|
-
blueprint_id:
|
|
12
|
+
blueprint_id: str
|
|
13
13
|
"""ID of the Blueprint."""
|
|
14
14
|
|
|
15
|
-
logs:
|
|
15
|
+
logs: List[BlueprintBuildLog]
|
|
16
16
|
"""List of logs generated during Blueprint build."""
|
|
@@ -24,6 +24,9 @@ class LaunchParameters(BaseModel):
|
|
|
24
24
|
|
|
25
25
|
|
|
26
26
|
class BlueprintBuildParameters(BaseModel):
|
|
27
|
+
name: str
|
|
28
|
+
"""Name of the Blueprint."""
|
|
29
|
+
|
|
27
30
|
code_mounts: Optional[List[CodeMountParameters]] = None
|
|
28
31
|
"""A list of code mounts to be included in the Blueprint."""
|
|
29
32
|
|
|
@@ -36,8 +39,5 @@ class BlueprintBuildParameters(BaseModel):
|
|
|
36
39
|
launch_parameters: Optional[LaunchParameters] = None
|
|
37
40
|
"""Parameters to configure your Devbox at launch time."""
|
|
38
41
|
|
|
39
|
-
name: Optional[str] = None
|
|
40
|
-
"""Name of the Blueprint."""
|
|
41
|
-
|
|
42
42
|
system_setup_commands: Optional[List[str]] = None
|
|
43
43
|
"""A list of commands to run to set up your system."""
|
|
@@ -3,7 +3,7 @@
|
|
|
3
3
|
from __future__ import annotations
|
|
4
4
|
|
|
5
5
|
from typing import Dict, List, Iterable
|
|
6
|
-
from typing_extensions import TypedDict
|
|
6
|
+
from typing_extensions import Required, TypedDict
|
|
7
7
|
|
|
8
8
|
from .resource_size import ResourceSize
|
|
9
9
|
from .code_mount_parameters_param import CodeMountParametersParam
|
|
@@ -12,6 +12,9 @@ __all__ = ["BlueprintCreateParams", "LaunchParameters"]
|
|
|
12
12
|
|
|
13
13
|
|
|
14
14
|
class BlueprintCreateParams(TypedDict, total=False):
|
|
15
|
+
name: Required[str]
|
|
16
|
+
"""Name of the Blueprint."""
|
|
17
|
+
|
|
15
18
|
code_mounts: Iterable[CodeMountParametersParam]
|
|
16
19
|
"""A list of code mounts to be included in the Blueprint."""
|
|
17
20
|
|
|
@@ -24,9 +27,6 @@ class BlueprintCreateParams(TypedDict, total=False):
|
|
|
24
27
|
launch_parameters: LaunchParameters
|
|
25
28
|
"""Parameters to configure your Devbox at launch time."""
|
|
26
29
|
|
|
27
|
-
name: str
|
|
28
|
-
"""Name of the Blueprint."""
|
|
29
|
-
|
|
30
30
|
system_setup_commands: List[str]
|
|
31
31
|
"""A list of commands to run to set up your system."""
|
|
32
32
|
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
# File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details.
|
|
2
2
|
|
|
3
|
-
from typing import List
|
|
3
|
+
from typing import List
|
|
4
4
|
|
|
5
5
|
from .._models import BaseModel
|
|
6
6
|
from .blueprint_view import BlueprintView
|
|
@@ -9,9 +9,9 @@ __all__ = ["BlueprintListView"]
|
|
|
9
9
|
|
|
10
10
|
|
|
11
11
|
class BlueprintListView(BaseModel):
|
|
12
|
-
blueprints:
|
|
12
|
+
blueprints: List[BlueprintView]
|
|
13
13
|
"""List of blueprints matching filter."""
|
|
14
14
|
|
|
15
|
-
has_more:
|
|
15
|
+
has_more: bool
|
|
16
16
|
|
|
17
|
-
total_count:
|
|
17
|
+
total_count: int
|
|
@@ -3,7 +3,7 @@
|
|
|
3
3
|
from __future__ import annotations
|
|
4
4
|
|
|
5
5
|
from typing import Dict, List, Iterable
|
|
6
|
-
from typing_extensions import TypedDict
|
|
6
|
+
from typing_extensions import Required, TypedDict
|
|
7
7
|
|
|
8
8
|
from .resource_size import ResourceSize
|
|
9
9
|
from .code_mount_parameters_param import CodeMountParametersParam
|
|
@@ -12,6 +12,9 @@ __all__ = ["BlueprintPreviewParams", "LaunchParameters"]
|
|
|
12
12
|
|
|
13
13
|
|
|
14
14
|
class BlueprintPreviewParams(TypedDict, total=False):
|
|
15
|
+
name: Required[str]
|
|
16
|
+
"""Name of the Blueprint."""
|
|
17
|
+
|
|
15
18
|
code_mounts: Iterable[CodeMountParametersParam]
|
|
16
19
|
"""A list of code mounts to be included in the Blueprint."""
|
|
17
20
|
|
|
@@ -24,9 +27,6 @@ class BlueprintPreviewParams(TypedDict, total=False):
|
|
|
24
27
|
launch_parameters: LaunchParameters
|
|
25
28
|
"""Parameters to configure your Devbox at launch time."""
|
|
26
29
|
|
|
27
|
-
name: str
|
|
28
|
-
"""Name of the Blueprint."""
|
|
29
|
-
|
|
30
30
|
system_setup_commands: List[str]
|
|
31
31
|
"""A list of commands to run to set up your system."""
|
|
32
32
|
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
# File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details.
|
|
2
2
|
|
|
3
|
-
|
|
3
|
+
|
|
4
4
|
|
|
5
5
|
from .._models import BaseModel
|
|
6
6
|
|
|
@@ -8,5 +8,5 @@ __all__ = ["BlueprintPreviewView"]
|
|
|
8
8
|
|
|
9
9
|
|
|
10
10
|
class BlueprintPreviewView(BaseModel):
|
|
11
|
-
dockerfile:
|
|
11
|
+
dockerfile: str
|
|
12
12
|
"""The Dockerfile contents that will built."""
|
|
@@ -10,20 +10,20 @@ __all__ = ["BlueprintView"]
|
|
|
10
10
|
|
|
11
11
|
|
|
12
12
|
class BlueprintView(BaseModel):
|
|
13
|
-
id:
|
|
13
|
+
id: str
|
|
14
14
|
"""The id of the Blueprint."""
|
|
15
15
|
|
|
16
|
-
create_time_ms:
|
|
16
|
+
create_time_ms: int
|
|
17
17
|
"""Creation time of the Blueprint (Unix timestamp milliseconds)."""
|
|
18
18
|
|
|
19
|
-
|
|
20
|
-
"""The failure reason if the Blueprint build failed, if any."""
|
|
21
|
-
|
|
22
|
-
name: Optional[str] = None
|
|
19
|
+
name: str
|
|
23
20
|
"""The name of the Blueprint."""
|
|
24
21
|
|
|
25
|
-
parameters:
|
|
22
|
+
parameters: BlueprintBuildParameters
|
|
26
23
|
"""The parameters used to create Blueprint."""
|
|
27
24
|
|
|
28
|
-
status:
|
|
25
|
+
status: Literal["provisioning", "building", "failed", "build_complete"]
|
|
29
26
|
"""The status of the Blueprint build."""
|
|
27
|
+
|
|
28
|
+
failure_reason: Optional[Literal["out_of_memory", "out_of_disk", "build_failed"]] = None
|
|
29
|
+
"""The failure reason if the Blueprint build failed, if any."""
|
|
@@ -8,17 +8,17 @@ __all__ = ["CodeMountParameters"]
|
|
|
8
8
|
|
|
9
9
|
|
|
10
10
|
class CodeMountParameters(BaseModel):
|
|
11
|
-
|
|
12
|
-
"""The authentication token necessary to pull repo."""
|
|
13
|
-
|
|
14
|
-
install_command: Optional[str] = None
|
|
15
|
-
"""Installation command to install and setup repository."""
|
|
16
|
-
|
|
17
|
-
repo_name: Optional[str] = None
|
|
11
|
+
repo_name: str
|
|
18
12
|
"""The name of the repo to mount.
|
|
19
13
|
|
|
20
14
|
By default, code will be mounted at /home/user/{repo_name}s.
|
|
21
15
|
"""
|
|
22
16
|
|
|
23
|
-
repo_owner:
|
|
17
|
+
repo_owner: str
|
|
24
18
|
"""The owner of the repo."""
|
|
19
|
+
|
|
20
|
+
token: Optional[str] = None
|
|
21
|
+
"""The authentication token necessary to pull repo."""
|
|
22
|
+
|
|
23
|
+
install_command: Optional[str] = None
|
|
24
|
+
"""Installation command to install and setup repository."""
|