runloop-api-client 0.1.0a15__tar.gz → 0.1.0a17__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.0a17/.release-please-manifest.json +3 -0
- {runloop_api_client-0.1.0a15 → runloop_api_client-0.1.0a17}/CHANGELOG.md +24 -0
- {runloop_api_client-0.1.0a15 → runloop_api_client-0.1.0a17}/PKG-INFO +1 -1
- {runloop_api_client-0.1.0a15 → runloop_api_client-0.1.0a17}/api.md +7 -16
- {runloop_api_client-0.1.0a15 → runloop_api_client-0.1.0a17}/pyproject.toml +1 -1
- {runloop_api_client-0.1.0a15 → runloop_api_client-0.1.0a17}/src/runloop_api_client/_version.py +1 -1
- {runloop_api_client-0.1.0a15 → runloop_api_client-0.1.0a17}/src/runloop_api_client/resources/devboxes/devboxes.py +1 -91
- {runloop_api_client-0.1.0a15 → runloop_api_client-0.1.0a17}/src/runloop_api_client/resources/devboxes/executions.py +189 -5
- {runloop_api_client-0.1.0a15 → runloop_api_client-0.1.0a17}/src/runloop_api_client/resources/devboxes/logs.py +21 -2
- {runloop_api_client-0.1.0a15 → runloop_api_client-0.1.0a17}/src/runloop_api_client/types/__init__.py +2 -1
- {runloop_api_client-0.1.0a15/src/runloop_api_client/types/devboxes → runloop_api_client-0.1.0a17/src/runloop_api_client/types}/devbox_async_execution_detail_view.py +2 -2
- {runloop_api_client-0.1.0a15 → runloop_api_client-0.1.0a17}/src/runloop_api_client/types/devboxes/__init__.py +2 -2
- {runloop_api_client-0.1.0a15 → runloop_api_client-0.1.0a17}/src/runloop_api_client/types/devboxes/execution_retrieve_params.py +2 -2
- runloop_api_client-0.1.0a15/src/runloop_api_client/types/devbox_read_file_params.py → runloop_api_client-0.1.0a17/src/runloop_api_client/types/devboxes/log_list_params.py +4 -4
- runloop_api_client-0.1.0a17/tests/api_resources/devboxes/test_executions.py +416 -0
- {runloop_api_client-0.1.0a15 → runloop_api_client-0.1.0a17}/tests/api_resources/devboxes/test_logs.py +24 -8
- {runloop_api_client-0.1.0a15 → runloop_api_client-0.1.0a17}/tests/api_resources/test_devboxes.py +1 -93
- runloop_api_client-0.1.0a15/.release-please-manifest.json +0 -3
- runloop_api_client-0.1.0a15/src/runloop_api_client/resources/deployments.py +0 -488
- runloop_api_client-0.1.0a15/src/runloop_api_client/types/deployment_get_params.py +0 -15
- runloop_api_client-0.1.0a15/src/runloop_api_client/types/deployment_get_response.py +0 -59
- runloop_api_client-0.1.0a15/src/runloop_api_client/types/deployment_logs_response.py +0 -26
- runloop_api_client-0.1.0a15/src/runloop_api_client/types/deployment_redeploy_response.py +0 -50
- runloop_api_client-0.1.0a15/src/runloop_api_client/types/deployment_retrieve_response.py +0 -50
- runloop_api_client-0.1.0a15/src/runloop_api_client/types/deployment_tail_response.py +0 -26
- runloop_api_client-0.1.0a15/src/runloop_api_client/types/devbox_execute_async_params.py +0 -12
- runloop_api_client-0.1.0a15/src/runloop_api_client/types/devbox_list_response.py +0 -17
- runloop_api_client-0.1.0a15/src/runloop_api_client/types/devboxes/devbox_execution_detail_view.py +0 -21
- runloop_api_client-0.1.0a15/src/runloop_api_client/types/functions/invocation_logs_response.py +0 -26
- runloop_api_client-0.1.0a15/tests/api_resources/devboxes/test_executions.py +0 -209
- runloop_api_client-0.1.0a15/tests/api_resources/test_deployments.py +0 -406
- {runloop_api_client-0.1.0a15 → runloop_api_client-0.1.0a17}/.gitignore +0 -0
- {runloop_api_client-0.1.0a15 → runloop_api_client-0.1.0a17}/CONTRIBUTING.md +0 -0
- {runloop_api_client-0.1.0a15 → runloop_api_client-0.1.0a17}/LICENSE +0 -0
- {runloop_api_client-0.1.0a15 → runloop_api_client-0.1.0a17}/README.md +0 -0
- {runloop_api_client-0.1.0a15 → runloop_api_client-0.1.0a17}/SECURITY.md +0 -0
- {runloop_api_client-0.1.0a15 → runloop_api_client-0.1.0a17}/bin/check-release-environment +0 -0
- {runloop_api_client-0.1.0a15 → runloop_api_client-0.1.0a17}/bin/publish-pypi +0 -0
- {runloop_api_client-0.1.0a15 → runloop_api_client-0.1.0a17}/examples/.keep +0 -0
- {runloop_api_client-0.1.0a15 → runloop_api_client-0.1.0a17}/mypy.ini +0 -0
- {runloop_api_client-0.1.0a15 → runloop_api_client-0.1.0a17}/noxfile.py +0 -0
- {runloop_api_client-0.1.0a15 → runloop_api_client-0.1.0a17}/release-please-config.json +0 -0
- {runloop_api_client-0.1.0a15 → runloop_api_client-0.1.0a17}/requirements-dev.lock +0 -0
- {runloop_api_client-0.1.0a15 → runloop_api_client-0.1.0a17}/requirements.lock +0 -0
- {runloop_api_client-0.1.0a15 → runloop_api_client-0.1.0a17}/src/runloop/lib/.keep +0 -0
- {runloop_api_client-0.1.0a15 → runloop_api_client-0.1.0a17}/src/runloop_api_client/__init__.py +0 -0
- {runloop_api_client-0.1.0a15 → runloop_api_client-0.1.0a17}/src/runloop_api_client/_base_client.py +0 -0
- {runloop_api_client-0.1.0a15 → runloop_api_client-0.1.0a17}/src/runloop_api_client/_client.py +0 -0
- {runloop_api_client-0.1.0a15 → runloop_api_client-0.1.0a17}/src/runloop_api_client/_compat.py +0 -0
- {runloop_api_client-0.1.0a15 → runloop_api_client-0.1.0a17}/src/runloop_api_client/_constants.py +0 -0
- {runloop_api_client-0.1.0a15 → runloop_api_client-0.1.0a17}/src/runloop_api_client/_exceptions.py +0 -0
- {runloop_api_client-0.1.0a15 → runloop_api_client-0.1.0a17}/src/runloop_api_client/_files.py +0 -0
- {runloop_api_client-0.1.0a15 → runloop_api_client-0.1.0a17}/src/runloop_api_client/_models.py +0 -0
- {runloop_api_client-0.1.0a15 → runloop_api_client-0.1.0a17}/src/runloop_api_client/_qs.py +0 -0
- {runloop_api_client-0.1.0a15 → runloop_api_client-0.1.0a17}/src/runloop_api_client/_resource.py +0 -0
- {runloop_api_client-0.1.0a15 → runloop_api_client-0.1.0a17}/src/runloop_api_client/_response.py +0 -0
- {runloop_api_client-0.1.0a15 → runloop_api_client-0.1.0a17}/src/runloop_api_client/_streaming.py +0 -0
- {runloop_api_client-0.1.0a15 → runloop_api_client-0.1.0a17}/src/runloop_api_client/_types.py +0 -0
- {runloop_api_client-0.1.0a15 → runloop_api_client-0.1.0a17}/src/runloop_api_client/_utils/__init__.py +0 -0
- {runloop_api_client-0.1.0a15 → runloop_api_client-0.1.0a17}/src/runloop_api_client/_utils/_logs.py +0 -0
- {runloop_api_client-0.1.0a15 → runloop_api_client-0.1.0a17}/src/runloop_api_client/_utils/_proxy.py +0 -0
- {runloop_api_client-0.1.0a15 → runloop_api_client-0.1.0a17}/src/runloop_api_client/_utils/_reflection.py +0 -0
- {runloop_api_client-0.1.0a15 → runloop_api_client-0.1.0a17}/src/runloop_api_client/_utils/_streams.py +0 -0
- {runloop_api_client-0.1.0a15 → runloop_api_client-0.1.0a17}/src/runloop_api_client/_utils/_sync.py +0 -0
- {runloop_api_client-0.1.0a15 → runloop_api_client-0.1.0a17}/src/runloop_api_client/_utils/_transform.py +0 -0
- {runloop_api_client-0.1.0a15 → runloop_api_client-0.1.0a17}/src/runloop_api_client/_utils/_typing.py +0 -0
- {runloop_api_client-0.1.0a15 → runloop_api_client-0.1.0a17}/src/runloop_api_client/_utils/_utils.py +0 -0
- {runloop_api_client-0.1.0a15 → runloop_api_client-0.1.0a17}/src/runloop_api_client/lib/.keep +0 -0
- {runloop_api_client-0.1.0a15 → runloop_api_client-0.1.0a17}/src/runloop_api_client/py.typed +0 -0
- {runloop_api_client-0.1.0a15 → runloop_api_client-0.1.0a17}/src/runloop_api_client/resources/__init__.py +0 -0
- {runloop_api_client-0.1.0a15 → runloop_api_client-0.1.0a17}/src/runloop_api_client/resources/blueprints.py +0 -0
- {runloop_api_client-0.1.0a15 → runloop_api_client-0.1.0a17}/src/runloop_api_client/resources/devboxes/__init__.py +0 -0
- {runloop_api_client-0.1.0a15 → runloop_api_client-0.1.0a17}/src/runloop_api_client/resources/functions/__init__.py +0 -0
- {runloop_api_client-0.1.0a15 → runloop_api_client-0.1.0a17}/src/runloop_api_client/resources/functions/functions.py +0 -0
- {runloop_api_client-0.1.0a15 → runloop_api_client-0.1.0a17}/src/runloop_api_client/resources/functions/invocations.py +0 -0
- {runloop_api_client-0.1.0a15 → runloop_api_client-0.1.0a17}/src/runloop_api_client/resources/projects/__init__.py +0 -0
- {runloop_api_client-0.1.0a15 → runloop_api_client-0.1.0a17}/src/runloop_api_client/resources/projects/logs.py +0 -0
- {runloop_api_client-0.1.0a15 → runloop_api_client-0.1.0a17}/src/runloop_api_client/resources/projects/projects.py +0 -0
- {runloop_api_client-0.1.0a15 → runloop_api_client-0.1.0a17}/src/runloop_api_client/types/blueprint_build_log.py +0 -0
- {runloop_api_client-0.1.0a15 → runloop_api_client-0.1.0a17}/src/runloop_api_client/types/blueprint_build_logs_list_view.py +0 -0
- {runloop_api_client-0.1.0a15 → runloop_api_client-0.1.0a17}/src/runloop_api_client/types/blueprint_build_parameters.py +0 -0
- {runloop_api_client-0.1.0a15 → runloop_api_client-0.1.0a17}/src/runloop_api_client/types/blueprint_create_params.py +0 -0
- {runloop_api_client-0.1.0a15 → runloop_api_client-0.1.0a17}/src/runloop_api_client/types/blueprint_list_params.py +0 -0
- {runloop_api_client-0.1.0a15 → runloop_api_client-0.1.0a17}/src/runloop_api_client/types/blueprint_list_view.py +0 -0
- {runloop_api_client-0.1.0a15 → runloop_api_client-0.1.0a17}/src/runloop_api_client/types/blueprint_preview_params.py +0 -0
- {runloop_api_client-0.1.0a15 → runloop_api_client-0.1.0a17}/src/runloop_api_client/types/blueprint_preview_view.py +0 -0
- {runloop_api_client-0.1.0a15 → runloop_api_client-0.1.0a17}/src/runloop_api_client/types/blueprint_view.py +0 -0
- {runloop_api_client-0.1.0a15 → runloop_api_client-0.1.0a17}/src/runloop_api_client/types/code_mount_parameters.py +0 -0
- {runloop_api_client-0.1.0a15 → runloop_api_client-0.1.0a17}/src/runloop_api_client/types/code_mount_parameters_param.py +0 -0
- {runloop_api_client-0.1.0a15 → runloop_api_client-0.1.0a17}/src/runloop_api_client/types/devbox_create_params.py +0 -0
- {runloop_api_client-0.1.0a15 → runloop_api_client-0.1.0a17}/src/runloop_api_client/types/devbox_create_ssh_key_response.py +0 -0
- {runloop_api_client-0.1.0a15 → runloop_api_client-0.1.0a17}/src/runloop_api_client/types/devbox_execute_sync_params.py +0 -0
- {runloop_api_client-0.1.0a15 → runloop_api_client-0.1.0a17}/src/runloop_api_client/types/devbox_execution_detail_view.py +0 -0
- {runloop_api_client-0.1.0a15 → runloop_api_client-0.1.0a17}/src/runloop_api_client/types/devbox_list_params.py +0 -0
- {runloop_api_client-0.1.0a15 → runloop_api_client-0.1.0a17}/src/runloop_api_client/types/devbox_list_view.py +0 -0
- {runloop_api_client-0.1.0a15 → runloop_api_client-0.1.0a17}/src/runloop_api_client/types/devbox_read_file_contents_params.py +0 -0
- {runloop_api_client-0.1.0a15 → runloop_api_client-0.1.0a17}/src/runloop_api_client/types/devbox_read_file_contents_response.py +0 -0
- {runloop_api_client-0.1.0a15 → runloop_api_client-0.1.0a17}/src/runloop_api_client/types/devbox_upload_file_params.py +0 -0
- {runloop_api_client-0.1.0a15 → runloop_api_client-0.1.0a17}/src/runloop_api_client/types/devbox_view.py +0 -0
- {runloop_api_client-0.1.0a15 → runloop_api_client-0.1.0a17}/src/runloop_api_client/types/devbox_write_file_params.py +0 -0
- {runloop_api_client-0.1.0a15 → runloop_api_client-0.1.0a17}/src/runloop_api_client/types/devboxes/devbox_logs_list_view.py +0 -0
- {runloop_api_client-0.1.0a15 → runloop_api_client-0.1.0a17}/src/runloop_api_client/types/devboxes/execution_execute_async_params.py +0 -0
- {runloop_api_client-0.1.0a15 → runloop_api_client-0.1.0a17}/src/runloop_api_client/types/devboxes/execution_execute_sync_params.py +0 -0
- {runloop_api_client-0.1.0a15 → runloop_api_client-0.1.0a17}/src/runloop_api_client/types/function_invoke_async_params.py +0 -0
- {runloop_api_client-0.1.0a15 → runloop_api_client-0.1.0a17}/src/runloop_api_client/types/function_invoke_sync_params.py +0 -0
- {runloop_api_client-0.1.0a15 → runloop_api_client-0.1.0a17}/src/runloop_api_client/types/function_list_view.py +0 -0
- {runloop_api_client-0.1.0a15 → runloop_api_client-0.1.0a17}/src/runloop_api_client/types/functions/__init__.py +0 -0
- {runloop_api_client-0.1.0a15 → runloop_api_client-0.1.0a17}/src/runloop_api_client/types/functions/function_invocation_list_view.py +0 -0
- {runloop_api_client-0.1.0a15 → runloop_api_client-0.1.0a17}/src/runloop_api_client/types/functions/invocation_list_params.py +0 -0
- {runloop_api_client-0.1.0a15 → runloop_api_client-0.1.0a17}/src/runloop_api_client/types/project_list_view.py +0 -0
- {runloop_api_client-0.1.0a15 → runloop_api_client-0.1.0a17}/src/runloop_api_client/types/projects/__init__.py +0 -0
- {runloop_api_client-0.1.0a15 → runloop_api_client-0.1.0a17}/src/runloop_api_client/types/resource_size.py +0 -0
- {runloop_api_client-0.1.0a15 → runloop_api_client-0.1.0a17}/src/runloop_api_client/types/shared/__init__.py +0 -0
- {runloop_api_client-0.1.0a15 → runloop_api_client-0.1.0a17}/src/runloop_api_client/types/shared/function_invocation_execution_detail_view.py +0 -0
- {runloop_api_client-0.1.0a15 → runloop_api_client-0.1.0a17}/src/runloop_api_client/types/shared/project_logs_view.py +0 -0
- {runloop_api_client-0.1.0a15 → runloop_api_client-0.1.0a17}/tests/__init__.py +0 -0
- {runloop_api_client-0.1.0a15 → runloop_api_client-0.1.0a17}/tests/api_resources/__init__.py +0 -0
- {runloop_api_client-0.1.0a15 → runloop_api_client-0.1.0a17}/tests/api_resources/devboxes/__init__.py +0 -0
- {runloop_api_client-0.1.0a15 → runloop_api_client-0.1.0a17}/tests/api_resources/functions/__init__.py +0 -0
- {runloop_api_client-0.1.0a15 → runloop_api_client-0.1.0a17}/tests/api_resources/functions/test_invocations.py +0 -0
- {runloop_api_client-0.1.0a15 → runloop_api_client-0.1.0a17}/tests/api_resources/projects/__init__.py +0 -0
- {runloop_api_client-0.1.0a15 → runloop_api_client-0.1.0a17}/tests/api_resources/projects/test_logs.py +0 -0
- {runloop_api_client-0.1.0a15 → runloop_api_client-0.1.0a17}/tests/api_resources/test_blueprints.py +0 -0
- {runloop_api_client-0.1.0a15 → runloop_api_client-0.1.0a17}/tests/api_resources/test_functions.py +0 -0
- {runloop_api_client-0.1.0a15 → runloop_api_client-0.1.0a17}/tests/api_resources/test_projects.py +0 -0
- {runloop_api_client-0.1.0a15 → runloop_api_client-0.1.0a17}/tests/conftest.py +0 -0
- {runloop_api_client-0.1.0a15 → runloop_api_client-0.1.0a17}/tests/sample_file.txt +0 -0
- {runloop_api_client-0.1.0a15 → runloop_api_client-0.1.0a17}/tests/test_client.py +0 -0
- {runloop_api_client-0.1.0a15 → runloop_api_client-0.1.0a17}/tests/test_deepcopy.py +0 -0
- {runloop_api_client-0.1.0a15 → runloop_api_client-0.1.0a17}/tests/test_extract_files.py +0 -0
- {runloop_api_client-0.1.0a15 → runloop_api_client-0.1.0a17}/tests/test_files.py +0 -0
- {runloop_api_client-0.1.0a15 → runloop_api_client-0.1.0a17}/tests/test_models.py +0 -0
- {runloop_api_client-0.1.0a15 → runloop_api_client-0.1.0a17}/tests/test_qs.py +0 -0
- {runloop_api_client-0.1.0a15 → runloop_api_client-0.1.0a17}/tests/test_required_args.py +0 -0
- {runloop_api_client-0.1.0a15 → runloop_api_client-0.1.0a17}/tests/test_response.py +0 -0
- {runloop_api_client-0.1.0a15 → runloop_api_client-0.1.0a17}/tests/test_streaming.py +0 -0
- {runloop_api_client-0.1.0a15 → runloop_api_client-0.1.0a17}/tests/test_transform.py +0 -0
- {runloop_api_client-0.1.0a15 → runloop_api_client-0.1.0a17}/tests/test_utils/test_proxy.py +0 -0
- {runloop_api_client-0.1.0a15 → runloop_api_client-0.1.0a17}/tests/test_utils/test_typing.py +0 -0
- {runloop_api_client-0.1.0a15 → runloop_api_client-0.1.0a17}/tests/utils.py +0 -0
|
@@ -1,5 +1,29 @@
|
|
|
1
1
|
# Changelog
|
|
2
2
|
|
|
3
|
+
## 0.1.0-alpha.17 (2024-08-27)
|
|
4
|
+
|
|
5
|
+
Full Changelog: [v0.1.0-alpha.16...v0.1.0-alpha.17](https://github.com/runloopai/api-client-python/compare/v0.1.0-alpha.16...v0.1.0-alpha.17)
|
|
6
|
+
|
|
7
|
+
### Features
|
|
8
|
+
|
|
9
|
+
* **api:** OpenAPI spec update via Stainless API ([#130](https://github.com/runloopai/api-client-python/issues/130)) ([fc8ef2f](https://github.com/runloopai/api-client-python/commit/fc8ef2f0b7510d5f368b5d0a12be0fcca1079f14))
|
|
10
|
+
* **api:** OpenAPI spec update via Stainless API ([#132](https://github.com/runloopai/api-client-python/issues/132)) ([29725a4](https://github.com/runloopai/api-client-python/commit/29725a4d63e38ef1f12cd19ead545cbb33a9e338))
|
|
11
|
+
* **api:** OpenAPI spec update via Stainless API ([#133](https://github.com/runloopai/api-client-python/issues/133)) ([9e05c97](https://github.com/runloopai/api-client-python/commit/9e05c97d9bf083d4356b71a141c988422484e6f5))
|
|
12
|
+
* **api:** OpenAPI spec update via Stainless API ([#134](https://github.com/runloopai/api-client-python/issues/134)) ([4c3fd59](https://github.com/runloopai/api-client-python/commit/4c3fd59f4c2e4a0bd87b7539b6cc37979bd4594e))
|
|
13
|
+
|
|
14
|
+
## 0.1.0-alpha.16 (2024-08-26)
|
|
15
|
+
|
|
16
|
+
Full Changelog: [v0.1.0-alpha.15...v0.1.0-alpha.16](https://github.com/runloopai/api-client-python/compare/v0.1.0-alpha.15...v0.1.0-alpha.16)
|
|
17
|
+
|
|
18
|
+
### Features
|
|
19
|
+
|
|
20
|
+
* **api:** OpenAPI spec update via Stainless API ([#122](https://github.com/runloopai/api-client-python/issues/122)) ([e65a4b5](https://github.com/runloopai/api-client-python/commit/e65a4b5a0fafa23ba8070300dc11b4727ae03ed1))
|
|
21
|
+
* **api:** OpenAPI spec update via Stainless API ([#124](https://github.com/runloopai/api-client-python/issues/124)) ([cb87b6f](https://github.com/runloopai/api-client-python/commit/cb87b6f85ee0afcf20e6d5d9bb469b51cda29abe))
|
|
22
|
+
* **api:** OpenAPI spec update via Stainless API ([#125](https://github.com/runloopai/api-client-python/issues/125)) ([b1f126d](https://github.com/runloopai/api-client-python/commit/b1f126d5ff0492f1115f5d0d587291ff0cfa9cde))
|
|
23
|
+
* **api:** OpenAPI spec update via Stainless API ([#126](https://github.com/runloopai/api-client-python/issues/126)) ([db6ba44](https://github.com/runloopai/api-client-python/commit/db6ba44ed380eb5728db4b40654cf1be4c8d8775))
|
|
24
|
+
* **api:** OpenAPI spec update via Stainless API ([#127](https://github.com/runloopai/api-client-python/issues/127)) ([3940b9f](https://github.com/runloopai/api-client-python/commit/3940b9f88c25a518bbcb302b1f5a22ce7c2ba495))
|
|
25
|
+
* **api:** OpenAPI spec update via Stainless API ([#128](https://github.com/runloopai/api-client-python/issues/128)) ([ff9ade1](https://github.com/runloopai/api-client-python/commit/ff9ade1369c3407ab27ea17957f33ae2f4e1eb84))
|
|
26
|
+
|
|
3
27
|
## 0.1.0-alpha.15 (2024-08-23)
|
|
4
28
|
|
|
5
29
|
Full Changelog: [v0.1.0-alpha.14...v0.1.0-alpha.15](https://github.com/runloopai/api-client-python/compare/v0.1.0-alpha.14...v0.1.0-alpha.15)
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
Metadata-Version: 2.3
|
|
2
2
|
Name: runloop_api_client
|
|
3
|
-
Version: 0.1.
|
|
3
|
+
Version: 0.1.0a17
|
|
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
|
|
@@ -65,12 +65,11 @@ Methods:
|
|
|
65
65
|
- <code title="get /v1/devboxes/{id}">client.devboxes.<a href="./src/runloop_api_client/resources/devboxes/devboxes.py">retrieve</a>(id) -> <a href="./src/runloop_api_client/types/devbox_view.py">DevboxView</a></code>
|
|
66
66
|
- <code title="get /v1/devboxes">client.devboxes.<a href="./src/runloop_api_client/resources/devboxes/devboxes.py">list</a>(\*\*<a href="src/runloop_api_client/types/devbox_list_params.py">params</a>) -> <a href="./src/runloop_api_client/types/devbox_list_view.py">DevboxListView</a></code>
|
|
67
67
|
- <code title="post /v1/devboxes/{id}/create_ssh_key">client.devboxes.<a href="./src/runloop_api_client/resources/devboxes/devboxes.py">create_ssh_key</a>(id) -> <a href="./src/runloop_api_client/types/devbox_create_ssh_key_response.py">DevboxCreateSSHKeyResponse</a></code>
|
|
68
|
-
- <code title="post /v1/devboxes/{id}/
|
|
69
|
-
- <code title="post /v1/devboxes/{id}/execute_sync">client.devboxes.<a href="./src/runloop_api_client/resources/devboxes/devboxes.py">execute_sync</a>(id, \*\*<a href="src/runloop_api_client/types/devbox_execute_sync_params.py">params</a>) -> <a href="./src/runloop_api_client/types/devboxes/devbox_execution_detail_view.py">DevboxExecutionDetailView</a></code>
|
|
68
|
+
- <code title="post /v1/devboxes/{id}/execute_sync">client.devboxes.<a href="./src/runloop_api_client/resources/devboxes/devboxes.py">execute_sync</a>(id, \*\*<a href="src/runloop_api_client/types/devbox_execute_sync_params.py">params</a>) -> <a href="./src/runloop_api_client/types/devbox_execution_detail_view.py">DevboxExecutionDetailView</a></code>
|
|
70
69
|
- <code title="post /v1/devboxes/{id}/read_file_contents">client.devboxes.<a href="./src/runloop_api_client/resources/devboxes/devboxes.py">read_file_contents</a>(id, \*\*<a href="src/runloop_api_client/types/devbox_read_file_contents_params.py">params</a>) -> str</code>
|
|
71
70
|
- <code title="post /v1/devboxes/{id}/shutdown">client.devboxes.<a href="./src/runloop_api_client/resources/devboxes/devboxes.py">shutdown</a>(id) -> <a href="./src/runloop_api_client/types/devbox_view.py">DevboxView</a></code>
|
|
72
71
|
- <code title="post /v1/devboxes/{id}/upload_file">client.devboxes.<a href="./src/runloop_api_client/resources/devboxes/devboxes.py">upload_file</a>(id, \*\*<a href="src/runloop_api_client/types/devbox_upload_file_params.py">params</a>) -> <a href="./src/runloop_api_client/types/devbox_upload_file_response.py">object</a></code>
|
|
73
|
-
- <code title="post /v1/devboxes/{id}/write_file">client.devboxes.<a href="./src/runloop_api_client/resources/devboxes/devboxes.py">write_file</a>(id, \*\*<a href="src/runloop_api_client/types/devbox_write_file_params.py">params</a>) -> <a href="./src/runloop_api_client/types/
|
|
72
|
+
- <code title="post /v1/devboxes/{id}/write_file">client.devboxes.<a href="./src/runloop_api_client/resources/devboxes/devboxes.py">write_file</a>(id, \*\*<a href="src/runloop_api_client/types/devbox_write_file_params.py">params</a>) -> <a href="./src/runloop_api_client/types/devbox_execution_detail_view.py">DevboxExecutionDetailView</a></code>
|
|
74
73
|
|
|
75
74
|
## Logs
|
|
76
75
|
|
|
@@ -82,24 +81,16 @@ from runloop_api_client.types.devboxes import DevboxLogsListView
|
|
|
82
81
|
|
|
83
82
|
Methods:
|
|
84
83
|
|
|
85
|
-
- <code title="get /v1/devboxes/{id}/logs">client.devboxes.logs.<a href="./src/runloop_api_client/resources/devboxes/logs.py">list</a>(id) -> <a href="./src/runloop_api_client/types/devboxes/devbox_logs_list_view.py">DevboxLogsListView</a></code>
|
|
84
|
+
- <code title="get /v1/devboxes/{id}/logs">client.devboxes.logs.<a href="./src/runloop_api_client/resources/devboxes/logs.py">list</a>(id, \*\*<a href="src/runloop_api_client/types/devboxes/log_list_params.py">params</a>) -> <a href="./src/runloop_api_client/types/devboxes/devbox_logs_list_view.py">DevboxLogsListView</a></code>
|
|
86
85
|
|
|
87
86
|
## Executions
|
|
88
87
|
|
|
89
|
-
Types:
|
|
90
|
-
|
|
91
|
-
```python
|
|
92
|
-
from runloop_api_client.types.devboxes import (
|
|
93
|
-
DevboxAsyncExecutionDetailView,
|
|
94
|
-
DevboxExecutionDetailView,
|
|
95
|
-
DevboxLogsListView,
|
|
96
|
-
)
|
|
97
|
-
```
|
|
98
|
-
|
|
99
88
|
Methods:
|
|
100
89
|
|
|
101
|
-
- <code title="
|
|
102
|
-
- <code title="post /v1/devboxes/{id}/
|
|
90
|
+
- <code title="get /v1/devboxes/{id}/executions/{execution_id}">client.devboxes.executions.<a href="./src/runloop_api_client/resources/devboxes/executions.py">retrieve</a>(execution_id, \*, id, \*\*<a href="src/runloop_api_client/types/devboxes/execution_retrieve_params.py">params</a>) -> <a href="./src/runloop_api_client/types/devbox_async_execution_detail_view.py">DevboxAsyncExecutionDetailView</a></code>
|
|
91
|
+
- <code title="post /v1/devboxes/{id}/execute_async">client.devboxes.executions.<a href="./src/runloop_api_client/resources/devboxes/executions.py">execute_async</a>(id, \*\*<a href="src/runloop_api_client/types/devboxes/execution_execute_async_params.py">params</a>) -> <a href="./src/runloop_api_client/types/devbox_async_execution_detail_view.py">DevboxAsyncExecutionDetailView</a></code>
|
|
92
|
+
- <code title="post /v1/devboxes/{id}/execute_sync">client.devboxes.executions.<a href="./src/runloop_api_client/resources/devboxes/executions.py">execute_sync</a>(id, \*\*<a href="src/runloop_api_client/types/devboxes/execution_execute_sync_params.py">params</a>) -> <a href="./src/runloop_api_client/types/devbox_execution_detail_view.py">DevboxExecutionDetailView</a></code>
|
|
93
|
+
- <code title="post /v1/devboxes/{id}/executions/{execution_id}/kill">client.devboxes.executions.<a href="./src/runloop_api_client/resources/devboxes/executions.py">kill</a>(execution_id, \*, id) -> <a href="./src/runloop_api_client/types/devbox_async_execution_detail_view.py">DevboxAsyncExecutionDetailView</a></code>
|
|
103
94
|
|
|
104
95
|
# Functions
|
|
105
96
|
|
|
@@ -20,7 +20,6 @@ from ...types import (
|
|
|
20
20
|
devbox_write_file_params,
|
|
21
21
|
devbox_upload_file_params,
|
|
22
22
|
devbox_execute_sync_params,
|
|
23
|
-
devbox_execute_async_params,
|
|
24
23
|
devbox_read_file_contents_params,
|
|
25
24
|
)
|
|
26
25
|
from ..._types import NOT_GIVEN, Body, Query, Headers, NotGiven, FileTypes
|
|
@@ -49,9 +48,8 @@ from ..._response import (
|
|
|
49
48
|
from ..._base_client import make_request_options
|
|
50
49
|
from ...types.devbox_view import DevboxView
|
|
51
50
|
from ...types.devbox_list_view import DevboxListView
|
|
51
|
+
from ...types.devbox_execution_detail_view import DevboxExecutionDetailView
|
|
52
52
|
from ...types.devbox_create_ssh_key_response import DevboxCreateSSHKeyResponse
|
|
53
|
-
from ...types.devboxes.devbox_execution_detail_view import DevboxExecutionDetailView
|
|
54
|
-
from ...types.devboxes.devbox_async_execution_detail_view import DevboxAsyncExecutionDetailView
|
|
55
53
|
|
|
56
54
|
__all__ = ["DevboxesResource", "AsyncDevboxesResource"]
|
|
57
55
|
|
|
@@ -271,43 +269,6 @@ class DevboxesResource(SyncAPIResource):
|
|
|
271
269
|
cast_to=DevboxCreateSSHKeyResponse,
|
|
272
270
|
)
|
|
273
271
|
|
|
274
|
-
def execute_async(
|
|
275
|
-
self,
|
|
276
|
-
id: str,
|
|
277
|
-
*,
|
|
278
|
-
command: str | NotGiven = NOT_GIVEN,
|
|
279
|
-
# Use the following arguments if you need to pass additional parameters to the API that aren't available via kwargs.
|
|
280
|
-
# The extra values given here take precedence over values defined on the client or passed to this method.
|
|
281
|
-
extra_headers: Headers | None = None,
|
|
282
|
-
extra_query: Query | None = None,
|
|
283
|
-
extra_body: Body | None = None,
|
|
284
|
-
timeout: float | httpx.Timeout | None | NotGiven = NOT_GIVEN,
|
|
285
|
-
) -> DevboxAsyncExecutionDetailView:
|
|
286
|
-
"""
|
|
287
|
-
Asynchronously execute a command on a devbox
|
|
288
|
-
|
|
289
|
-
Args:
|
|
290
|
-
command: The command to execute on the Devbox.
|
|
291
|
-
|
|
292
|
-
extra_headers: Send extra headers
|
|
293
|
-
|
|
294
|
-
extra_query: Add additional query parameters to the request
|
|
295
|
-
|
|
296
|
-
extra_body: Add additional JSON properties to the request
|
|
297
|
-
|
|
298
|
-
timeout: Override the client-level default timeout for this request, in seconds
|
|
299
|
-
"""
|
|
300
|
-
if not id:
|
|
301
|
-
raise ValueError(f"Expected a non-empty value for `id` but received {id!r}")
|
|
302
|
-
return self._post(
|
|
303
|
-
f"/v1/devboxes/{id}/executions/execute_async",
|
|
304
|
-
body=maybe_transform({"command": command}, devbox_execute_async_params.DevboxExecuteAsyncParams),
|
|
305
|
-
options=make_request_options(
|
|
306
|
-
extra_headers=extra_headers, extra_query=extra_query, extra_body=extra_body, timeout=timeout
|
|
307
|
-
),
|
|
308
|
-
cast_to=DevboxAsyncExecutionDetailView,
|
|
309
|
-
)
|
|
310
|
-
|
|
311
272
|
def execute_sync(
|
|
312
273
|
self,
|
|
313
274
|
id: str,
|
|
@@ -729,45 +690,6 @@ class AsyncDevboxesResource(AsyncAPIResource):
|
|
|
729
690
|
cast_to=DevboxCreateSSHKeyResponse,
|
|
730
691
|
)
|
|
731
692
|
|
|
732
|
-
async def execute_async(
|
|
733
|
-
self,
|
|
734
|
-
id: str,
|
|
735
|
-
*,
|
|
736
|
-
command: str | NotGiven = NOT_GIVEN,
|
|
737
|
-
# Use the following arguments if you need to pass additional parameters to the API that aren't available via kwargs.
|
|
738
|
-
# The extra values given here take precedence over values defined on the client or passed to this method.
|
|
739
|
-
extra_headers: Headers | None = None,
|
|
740
|
-
extra_query: Query | None = None,
|
|
741
|
-
extra_body: Body | None = None,
|
|
742
|
-
timeout: float | httpx.Timeout | None | NotGiven = NOT_GIVEN,
|
|
743
|
-
) -> DevboxAsyncExecutionDetailView:
|
|
744
|
-
"""
|
|
745
|
-
Asynchronously execute a command on a devbox
|
|
746
|
-
|
|
747
|
-
Args:
|
|
748
|
-
command: The command to execute on the Devbox.
|
|
749
|
-
|
|
750
|
-
extra_headers: Send extra headers
|
|
751
|
-
|
|
752
|
-
extra_query: Add additional query parameters to the request
|
|
753
|
-
|
|
754
|
-
extra_body: Add additional JSON properties to the request
|
|
755
|
-
|
|
756
|
-
timeout: Override the client-level default timeout for this request, in seconds
|
|
757
|
-
"""
|
|
758
|
-
if not id:
|
|
759
|
-
raise ValueError(f"Expected a non-empty value for `id` but received {id!r}")
|
|
760
|
-
return await self._post(
|
|
761
|
-
f"/v1/devboxes/{id}/executions/execute_async",
|
|
762
|
-
body=await async_maybe_transform(
|
|
763
|
-
{"command": command}, devbox_execute_async_params.DevboxExecuteAsyncParams
|
|
764
|
-
),
|
|
765
|
-
options=make_request_options(
|
|
766
|
-
extra_headers=extra_headers, extra_query=extra_query, extra_body=extra_body, timeout=timeout
|
|
767
|
-
),
|
|
768
|
-
cast_to=DevboxAsyncExecutionDetailView,
|
|
769
|
-
)
|
|
770
|
-
|
|
771
693
|
async def execute_sync(
|
|
772
694
|
self,
|
|
773
695
|
id: str,
|
|
@@ -990,9 +912,6 @@ class DevboxesResourceWithRawResponse:
|
|
|
990
912
|
self.create_ssh_key = to_raw_response_wrapper(
|
|
991
913
|
devboxes.create_ssh_key,
|
|
992
914
|
)
|
|
993
|
-
self.execute_async = to_raw_response_wrapper(
|
|
994
|
-
devboxes.execute_async,
|
|
995
|
-
)
|
|
996
915
|
self.execute_sync = to_raw_response_wrapper(
|
|
997
916
|
devboxes.execute_sync,
|
|
998
917
|
)
|
|
@@ -1034,9 +953,6 @@ class AsyncDevboxesResourceWithRawResponse:
|
|
|
1034
953
|
self.create_ssh_key = async_to_raw_response_wrapper(
|
|
1035
954
|
devboxes.create_ssh_key,
|
|
1036
955
|
)
|
|
1037
|
-
self.execute_async = async_to_raw_response_wrapper(
|
|
1038
|
-
devboxes.execute_async,
|
|
1039
|
-
)
|
|
1040
956
|
self.execute_sync = async_to_raw_response_wrapper(
|
|
1041
957
|
devboxes.execute_sync,
|
|
1042
958
|
)
|
|
@@ -1078,9 +994,6 @@ class DevboxesResourceWithStreamingResponse:
|
|
|
1078
994
|
self.create_ssh_key = to_streamed_response_wrapper(
|
|
1079
995
|
devboxes.create_ssh_key,
|
|
1080
996
|
)
|
|
1081
|
-
self.execute_async = to_streamed_response_wrapper(
|
|
1082
|
-
devboxes.execute_async,
|
|
1083
|
-
)
|
|
1084
997
|
self.execute_sync = to_streamed_response_wrapper(
|
|
1085
998
|
devboxes.execute_sync,
|
|
1086
999
|
)
|
|
@@ -1122,9 +1035,6 @@ class AsyncDevboxesResourceWithStreamingResponse:
|
|
|
1122
1035
|
self.create_ssh_key = async_to_streamed_response_wrapper(
|
|
1123
1036
|
devboxes.create_ssh_key,
|
|
1124
1037
|
)
|
|
1125
|
-
self.execute_async = async_to_streamed_response_wrapper(
|
|
1126
|
-
devboxes.execute_async,
|
|
1127
|
-
)
|
|
1128
1038
|
self.execute_sync = async_to_streamed_response_wrapper(
|
|
1129
1039
|
devboxes.execute_sync,
|
|
1130
1040
|
)
|
|
@@ -18,9 +18,9 @@ from ..._response import (
|
|
|
18
18
|
async_to_streamed_response_wrapper,
|
|
19
19
|
)
|
|
20
20
|
from ..._base_client import make_request_options
|
|
21
|
-
from ...types.devboxes import execution_execute_sync_params, execution_execute_async_params
|
|
22
|
-
from ...types.
|
|
23
|
-
from ...types.
|
|
21
|
+
from ...types.devboxes import execution_retrieve_params, execution_execute_sync_params, execution_execute_async_params
|
|
22
|
+
from ...types.devbox_execution_detail_view import DevboxExecutionDetailView
|
|
23
|
+
from ...types.devbox_async_execution_detail_view import DevboxAsyncExecutionDetailView
|
|
24
24
|
|
|
25
25
|
__all__ = ["ExecutionsResource", "AsyncExecutionsResource"]
|
|
26
26
|
|
|
@@ -34,6 +34,49 @@ class ExecutionsResource(SyncAPIResource):
|
|
|
34
34
|
def with_streaming_response(self) -> ExecutionsResourceWithStreamingResponse:
|
|
35
35
|
return ExecutionsResourceWithStreamingResponse(self)
|
|
36
36
|
|
|
37
|
+
def retrieve(
|
|
38
|
+
self,
|
|
39
|
+
execution_id: str,
|
|
40
|
+
*,
|
|
41
|
+
id: str,
|
|
42
|
+
last_n: str | NotGiven = NOT_GIVEN,
|
|
43
|
+
# Use the following arguments if you need to pass additional parameters to the API that aren't available via kwargs.
|
|
44
|
+
# The extra values given here take precedence over values defined on the client or passed to this method.
|
|
45
|
+
extra_headers: Headers | None = None,
|
|
46
|
+
extra_query: Query | None = None,
|
|
47
|
+
extra_body: Body | None = None,
|
|
48
|
+
timeout: float | httpx.Timeout | None | NotGiven = NOT_GIVEN,
|
|
49
|
+
) -> DevboxAsyncExecutionDetailView:
|
|
50
|
+
"""
|
|
51
|
+
Get status of an execution on a devbox.
|
|
52
|
+
|
|
53
|
+
Args:
|
|
54
|
+
last_n: Last n lines of standard error / standard out to return
|
|
55
|
+
|
|
56
|
+
extra_headers: Send extra headers
|
|
57
|
+
|
|
58
|
+
extra_query: Add additional query parameters to the request
|
|
59
|
+
|
|
60
|
+
extra_body: Add additional JSON properties to the request
|
|
61
|
+
|
|
62
|
+
timeout: Override the client-level default timeout for this request, in seconds
|
|
63
|
+
"""
|
|
64
|
+
if not id:
|
|
65
|
+
raise ValueError(f"Expected a non-empty value for `id` but received {id!r}")
|
|
66
|
+
if not execution_id:
|
|
67
|
+
raise ValueError(f"Expected a non-empty value for `execution_id` but received {execution_id!r}")
|
|
68
|
+
return self._get(
|
|
69
|
+
f"/v1/devboxes/{id}/executions/{execution_id}",
|
|
70
|
+
options=make_request_options(
|
|
71
|
+
extra_headers=extra_headers,
|
|
72
|
+
extra_query=extra_query,
|
|
73
|
+
extra_body=extra_body,
|
|
74
|
+
timeout=timeout,
|
|
75
|
+
query=maybe_transform({"last_n": last_n}, execution_retrieve_params.ExecutionRetrieveParams),
|
|
76
|
+
),
|
|
77
|
+
cast_to=DevboxAsyncExecutionDetailView,
|
|
78
|
+
)
|
|
79
|
+
|
|
37
80
|
def execute_async(
|
|
38
81
|
self,
|
|
39
82
|
id: str,
|
|
@@ -63,7 +106,7 @@ class ExecutionsResource(SyncAPIResource):
|
|
|
63
106
|
if not id:
|
|
64
107
|
raise ValueError(f"Expected a non-empty value for `id` but received {id!r}")
|
|
65
108
|
return self._post(
|
|
66
|
-
f"/v1/devboxes/{id}/
|
|
109
|
+
f"/v1/devboxes/{id}/execute_async",
|
|
67
110
|
body=maybe_transform({"command": command}, execution_execute_async_params.ExecutionExecuteAsyncParams),
|
|
68
111
|
options=make_request_options(
|
|
69
112
|
extra_headers=extra_headers, extra_query=extra_query, extra_body=extra_body, timeout=timeout
|
|
@@ -108,6 +151,42 @@ class ExecutionsResource(SyncAPIResource):
|
|
|
108
151
|
cast_to=DevboxExecutionDetailView,
|
|
109
152
|
)
|
|
110
153
|
|
|
154
|
+
def kill(
|
|
155
|
+
self,
|
|
156
|
+
execution_id: str,
|
|
157
|
+
*,
|
|
158
|
+
id: str,
|
|
159
|
+
# Use the following arguments if you need to pass additional parameters to the API that aren't available via kwargs.
|
|
160
|
+
# The extra values given here take precedence over values defined on the client or passed to this method.
|
|
161
|
+
extra_headers: Headers | None = None,
|
|
162
|
+
extra_query: Query | None = None,
|
|
163
|
+
extra_body: Body | None = None,
|
|
164
|
+
timeout: float | httpx.Timeout | None | NotGiven = NOT_GIVEN,
|
|
165
|
+
) -> DevboxAsyncExecutionDetailView:
|
|
166
|
+
"""
|
|
167
|
+
Kill an asynchronous execution currently running on a devbox
|
|
168
|
+
|
|
169
|
+
Args:
|
|
170
|
+
extra_headers: Send extra headers
|
|
171
|
+
|
|
172
|
+
extra_query: Add additional query parameters to the request
|
|
173
|
+
|
|
174
|
+
extra_body: Add additional JSON properties to the request
|
|
175
|
+
|
|
176
|
+
timeout: Override the client-level default timeout for this request, in seconds
|
|
177
|
+
"""
|
|
178
|
+
if not id:
|
|
179
|
+
raise ValueError(f"Expected a non-empty value for `id` but received {id!r}")
|
|
180
|
+
if not execution_id:
|
|
181
|
+
raise ValueError(f"Expected a non-empty value for `execution_id` but received {execution_id!r}")
|
|
182
|
+
return self._post(
|
|
183
|
+
f"/v1/devboxes/{id}/executions/{execution_id}/kill",
|
|
184
|
+
options=make_request_options(
|
|
185
|
+
extra_headers=extra_headers, extra_query=extra_query, extra_body=extra_body, timeout=timeout
|
|
186
|
+
),
|
|
187
|
+
cast_to=DevboxAsyncExecutionDetailView,
|
|
188
|
+
)
|
|
189
|
+
|
|
111
190
|
|
|
112
191
|
class AsyncExecutionsResource(AsyncAPIResource):
|
|
113
192
|
@cached_property
|
|
@@ -118,6 +197,51 @@ class AsyncExecutionsResource(AsyncAPIResource):
|
|
|
118
197
|
def with_streaming_response(self) -> AsyncExecutionsResourceWithStreamingResponse:
|
|
119
198
|
return AsyncExecutionsResourceWithStreamingResponse(self)
|
|
120
199
|
|
|
200
|
+
async def retrieve(
|
|
201
|
+
self,
|
|
202
|
+
execution_id: str,
|
|
203
|
+
*,
|
|
204
|
+
id: str,
|
|
205
|
+
last_n: str | NotGiven = NOT_GIVEN,
|
|
206
|
+
# Use the following arguments if you need to pass additional parameters to the API that aren't available via kwargs.
|
|
207
|
+
# The extra values given here take precedence over values defined on the client or passed to this method.
|
|
208
|
+
extra_headers: Headers | None = None,
|
|
209
|
+
extra_query: Query | None = None,
|
|
210
|
+
extra_body: Body | None = None,
|
|
211
|
+
timeout: float | httpx.Timeout | None | NotGiven = NOT_GIVEN,
|
|
212
|
+
) -> DevboxAsyncExecutionDetailView:
|
|
213
|
+
"""
|
|
214
|
+
Get status of an execution on a devbox.
|
|
215
|
+
|
|
216
|
+
Args:
|
|
217
|
+
last_n: Last n lines of standard error / standard out to return
|
|
218
|
+
|
|
219
|
+
extra_headers: Send extra headers
|
|
220
|
+
|
|
221
|
+
extra_query: Add additional query parameters to the request
|
|
222
|
+
|
|
223
|
+
extra_body: Add additional JSON properties to the request
|
|
224
|
+
|
|
225
|
+
timeout: Override the client-level default timeout for this request, in seconds
|
|
226
|
+
"""
|
|
227
|
+
if not id:
|
|
228
|
+
raise ValueError(f"Expected a non-empty value for `id` but received {id!r}")
|
|
229
|
+
if not execution_id:
|
|
230
|
+
raise ValueError(f"Expected a non-empty value for `execution_id` but received {execution_id!r}")
|
|
231
|
+
return await self._get(
|
|
232
|
+
f"/v1/devboxes/{id}/executions/{execution_id}",
|
|
233
|
+
options=make_request_options(
|
|
234
|
+
extra_headers=extra_headers,
|
|
235
|
+
extra_query=extra_query,
|
|
236
|
+
extra_body=extra_body,
|
|
237
|
+
timeout=timeout,
|
|
238
|
+
query=await async_maybe_transform(
|
|
239
|
+
{"last_n": last_n}, execution_retrieve_params.ExecutionRetrieveParams
|
|
240
|
+
),
|
|
241
|
+
),
|
|
242
|
+
cast_to=DevboxAsyncExecutionDetailView,
|
|
243
|
+
)
|
|
244
|
+
|
|
121
245
|
async def execute_async(
|
|
122
246
|
self,
|
|
123
247
|
id: str,
|
|
@@ -147,7 +271,7 @@ class AsyncExecutionsResource(AsyncAPIResource):
|
|
|
147
271
|
if not id:
|
|
148
272
|
raise ValueError(f"Expected a non-empty value for `id` but received {id!r}")
|
|
149
273
|
return await self._post(
|
|
150
|
-
f"/v1/devboxes/{id}/
|
|
274
|
+
f"/v1/devboxes/{id}/execute_async",
|
|
151
275
|
body=await async_maybe_transform(
|
|
152
276
|
{"command": command}, execution_execute_async_params.ExecutionExecuteAsyncParams
|
|
153
277
|
),
|
|
@@ -196,50 +320,110 @@ class AsyncExecutionsResource(AsyncAPIResource):
|
|
|
196
320
|
cast_to=DevboxExecutionDetailView,
|
|
197
321
|
)
|
|
198
322
|
|
|
323
|
+
async def kill(
|
|
324
|
+
self,
|
|
325
|
+
execution_id: str,
|
|
326
|
+
*,
|
|
327
|
+
id: str,
|
|
328
|
+
# Use the following arguments if you need to pass additional parameters to the API that aren't available via kwargs.
|
|
329
|
+
# The extra values given here take precedence over values defined on the client or passed to this method.
|
|
330
|
+
extra_headers: Headers | None = None,
|
|
331
|
+
extra_query: Query | None = None,
|
|
332
|
+
extra_body: Body | None = None,
|
|
333
|
+
timeout: float | httpx.Timeout | None | NotGiven = NOT_GIVEN,
|
|
334
|
+
) -> DevboxAsyncExecutionDetailView:
|
|
335
|
+
"""
|
|
336
|
+
Kill an asynchronous execution currently running on a devbox
|
|
337
|
+
|
|
338
|
+
Args:
|
|
339
|
+
extra_headers: Send extra headers
|
|
340
|
+
|
|
341
|
+
extra_query: Add additional query parameters to the request
|
|
342
|
+
|
|
343
|
+
extra_body: Add additional JSON properties to the request
|
|
344
|
+
|
|
345
|
+
timeout: Override the client-level default timeout for this request, in seconds
|
|
346
|
+
"""
|
|
347
|
+
if not id:
|
|
348
|
+
raise ValueError(f"Expected a non-empty value for `id` but received {id!r}")
|
|
349
|
+
if not execution_id:
|
|
350
|
+
raise ValueError(f"Expected a non-empty value for `execution_id` but received {execution_id!r}")
|
|
351
|
+
return await self._post(
|
|
352
|
+
f"/v1/devboxes/{id}/executions/{execution_id}/kill",
|
|
353
|
+
options=make_request_options(
|
|
354
|
+
extra_headers=extra_headers, extra_query=extra_query, extra_body=extra_body, timeout=timeout
|
|
355
|
+
),
|
|
356
|
+
cast_to=DevboxAsyncExecutionDetailView,
|
|
357
|
+
)
|
|
358
|
+
|
|
199
359
|
|
|
200
360
|
class ExecutionsResourceWithRawResponse:
|
|
201
361
|
def __init__(self, executions: ExecutionsResource) -> None:
|
|
202
362
|
self._executions = executions
|
|
203
363
|
|
|
364
|
+
self.retrieve = to_raw_response_wrapper(
|
|
365
|
+
executions.retrieve,
|
|
366
|
+
)
|
|
204
367
|
self.execute_async = to_raw_response_wrapper(
|
|
205
368
|
executions.execute_async,
|
|
206
369
|
)
|
|
207
370
|
self.execute_sync = to_raw_response_wrapper(
|
|
208
371
|
executions.execute_sync,
|
|
209
372
|
)
|
|
373
|
+
self.kill = to_raw_response_wrapper(
|
|
374
|
+
executions.kill,
|
|
375
|
+
)
|
|
210
376
|
|
|
211
377
|
|
|
212
378
|
class AsyncExecutionsResourceWithRawResponse:
|
|
213
379
|
def __init__(self, executions: AsyncExecutionsResource) -> None:
|
|
214
380
|
self._executions = executions
|
|
215
381
|
|
|
382
|
+
self.retrieve = async_to_raw_response_wrapper(
|
|
383
|
+
executions.retrieve,
|
|
384
|
+
)
|
|
216
385
|
self.execute_async = async_to_raw_response_wrapper(
|
|
217
386
|
executions.execute_async,
|
|
218
387
|
)
|
|
219
388
|
self.execute_sync = async_to_raw_response_wrapper(
|
|
220
389
|
executions.execute_sync,
|
|
221
390
|
)
|
|
391
|
+
self.kill = async_to_raw_response_wrapper(
|
|
392
|
+
executions.kill,
|
|
393
|
+
)
|
|
222
394
|
|
|
223
395
|
|
|
224
396
|
class ExecutionsResourceWithStreamingResponse:
|
|
225
397
|
def __init__(self, executions: ExecutionsResource) -> None:
|
|
226
398
|
self._executions = executions
|
|
227
399
|
|
|
400
|
+
self.retrieve = to_streamed_response_wrapper(
|
|
401
|
+
executions.retrieve,
|
|
402
|
+
)
|
|
228
403
|
self.execute_async = to_streamed_response_wrapper(
|
|
229
404
|
executions.execute_async,
|
|
230
405
|
)
|
|
231
406
|
self.execute_sync = to_streamed_response_wrapper(
|
|
232
407
|
executions.execute_sync,
|
|
233
408
|
)
|
|
409
|
+
self.kill = to_streamed_response_wrapper(
|
|
410
|
+
executions.kill,
|
|
411
|
+
)
|
|
234
412
|
|
|
235
413
|
|
|
236
414
|
class AsyncExecutionsResourceWithStreamingResponse:
|
|
237
415
|
def __init__(self, executions: AsyncExecutionsResource) -> None:
|
|
238
416
|
self._executions = executions
|
|
239
417
|
|
|
418
|
+
self.retrieve = async_to_streamed_response_wrapper(
|
|
419
|
+
executions.retrieve,
|
|
420
|
+
)
|
|
240
421
|
self.execute_async = async_to_streamed_response_wrapper(
|
|
241
422
|
executions.execute_async,
|
|
242
423
|
)
|
|
243
424
|
self.execute_sync = async_to_streamed_response_wrapper(
|
|
244
425
|
executions.execute_sync,
|
|
245
426
|
)
|
|
427
|
+
self.kill = async_to_streamed_response_wrapper(
|
|
428
|
+
executions.kill,
|
|
429
|
+
)
|
|
@@ -5,6 +5,10 @@ from __future__ import annotations
|
|
|
5
5
|
import httpx
|
|
6
6
|
|
|
7
7
|
from ..._types import NOT_GIVEN, Body, Query, Headers, NotGiven
|
|
8
|
+
from ..._utils import (
|
|
9
|
+
maybe_transform,
|
|
10
|
+
async_maybe_transform,
|
|
11
|
+
)
|
|
8
12
|
from ..._compat import cached_property
|
|
9
13
|
from ..._resource import SyncAPIResource, AsyncAPIResource
|
|
10
14
|
from ..._response import (
|
|
@@ -14,6 +18,7 @@ from ..._response import (
|
|
|
14
18
|
async_to_streamed_response_wrapper,
|
|
15
19
|
)
|
|
16
20
|
from ..._base_client import make_request_options
|
|
21
|
+
from ...types.devboxes import log_list_params
|
|
17
22
|
from ...types.devboxes.devbox_logs_list_view import DevboxLogsListView
|
|
18
23
|
|
|
19
24
|
__all__ = ["LogsResource", "AsyncLogsResource"]
|
|
@@ -32,6 +37,7 @@ class LogsResource(SyncAPIResource):
|
|
|
32
37
|
self,
|
|
33
38
|
id: str,
|
|
34
39
|
*,
|
|
40
|
+
execution_id: str | NotGiven = NOT_GIVEN,
|
|
35
41
|
# Use the following arguments if you need to pass additional parameters to the API that aren't available via kwargs.
|
|
36
42
|
# The extra values given here take precedence over values defined on the client or passed to this method.
|
|
37
43
|
extra_headers: Headers | None = None,
|
|
@@ -43,6 +49,8 @@ class LogsResource(SyncAPIResource):
|
|
|
43
49
|
Get all logs from a Devbox by id.
|
|
44
50
|
|
|
45
51
|
Args:
|
|
52
|
+
execution_id: Id of execution to filter logs by.
|
|
53
|
+
|
|
46
54
|
extra_headers: Send extra headers
|
|
47
55
|
|
|
48
56
|
extra_query: Add additional query parameters to the request
|
|
@@ -56,7 +64,11 @@ class LogsResource(SyncAPIResource):
|
|
|
56
64
|
return self._get(
|
|
57
65
|
f"/v1/devboxes/{id}/logs",
|
|
58
66
|
options=make_request_options(
|
|
59
|
-
extra_headers=extra_headers,
|
|
67
|
+
extra_headers=extra_headers,
|
|
68
|
+
extra_query=extra_query,
|
|
69
|
+
extra_body=extra_body,
|
|
70
|
+
timeout=timeout,
|
|
71
|
+
query=maybe_transform({"execution_id": execution_id}, log_list_params.LogListParams),
|
|
60
72
|
),
|
|
61
73
|
cast_to=DevboxLogsListView,
|
|
62
74
|
)
|
|
@@ -75,6 +87,7 @@ class AsyncLogsResource(AsyncAPIResource):
|
|
|
75
87
|
self,
|
|
76
88
|
id: str,
|
|
77
89
|
*,
|
|
90
|
+
execution_id: str | NotGiven = NOT_GIVEN,
|
|
78
91
|
# Use the following arguments if you need to pass additional parameters to the API that aren't available via kwargs.
|
|
79
92
|
# The extra values given here take precedence over values defined on the client or passed to this method.
|
|
80
93
|
extra_headers: Headers | None = None,
|
|
@@ -86,6 +99,8 @@ class AsyncLogsResource(AsyncAPIResource):
|
|
|
86
99
|
Get all logs from a Devbox by id.
|
|
87
100
|
|
|
88
101
|
Args:
|
|
102
|
+
execution_id: Id of execution to filter logs by.
|
|
103
|
+
|
|
89
104
|
extra_headers: Send extra headers
|
|
90
105
|
|
|
91
106
|
extra_query: Add additional query parameters to the request
|
|
@@ -99,7 +114,11 @@ class AsyncLogsResource(AsyncAPIResource):
|
|
|
99
114
|
return await self._get(
|
|
100
115
|
f"/v1/devboxes/{id}/logs",
|
|
101
116
|
options=make_request_options(
|
|
102
|
-
extra_headers=extra_headers,
|
|
117
|
+
extra_headers=extra_headers,
|
|
118
|
+
extra_query=extra_query,
|
|
119
|
+
extra_body=extra_body,
|
|
120
|
+
timeout=timeout,
|
|
121
|
+
query=await async_maybe_transform({"execution_id": execution_id}, log_list_params.LogListParams),
|
|
103
122
|
),
|
|
104
123
|
cast_to=DevboxLogsListView,
|
|
105
124
|
)
|
{runloop_api_client-0.1.0a15 → runloop_api_client-0.1.0a17}/src/runloop_api_client/types/__init__.py
RENAMED
|
@@ -26,10 +26,11 @@ from .devbox_upload_file_params import DevboxUploadFileParams as DevboxUploadFil
|
|
|
26
26
|
from .blueprint_build_parameters import BlueprintBuildParameters as BlueprintBuildParameters
|
|
27
27
|
from .devbox_execute_sync_params import DevboxExecuteSyncParams as DevboxExecuteSyncParams
|
|
28
28
|
from .code_mount_parameters_param import CodeMountParametersParam as CodeMountParametersParam
|
|
29
|
-
from .devbox_execute_async_params import DevboxExecuteAsyncParams as DevboxExecuteAsyncParams
|
|
30
29
|
from .function_invoke_sync_params import FunctionInvokeSyncParams as FunctionInvokeSyncParams
|
|
30
|
+
from .devbox_execution_detail_view import DevboxExecutionDetailView as DevboxExecutionDetailView
|
|
31
31
|
from .function_invoke_async_params import FunctionInvokeAsyncParams as FunctionInvokeAsyncParams
|
|
32
32
|
from .blueprint_build_logs_list_view import BlueprintBuildLogsListView as BlueprintBuildLogsListView
|
|
33
33
|
from .devbox_create_ssh_key_response import DevboxCreateSSHKeyResponse as DevboxCreateSSHKeyResponse
|
|
34
34
|
from .devbox_read_file_contents_params import DevboxReadFileContentsParams as DevboxReadFileContentsParams
|
|
35
|
+
from .devbox_async_execution_detail_view import DevboxAsyncExecutionDetailView as DevboxAsyncExecutionDetailView
|
|
35
36
|
from .devbox_read_file_contents_response import DevboxReadFileContentsResponse as DevboxReadFileContentsResponse
|
|
@@ -3,7 +3,7 @@
|
|
|
3
3
|
from typing import Optional
|
|
4
4
|
from typing_extensions import Literal
|
|
5
5
|
|
|
6
|
-
from
|
|
6
|
+
from .._models import BaseModel
|
|
7
7
|
|
|
8
8
|
__all__ = ["DevboxAsyncExecutionDetailView"]
|
|
9
9
|
|
|
@@ -21,7 +21,7 @@ class DevboxAsyncExecutionDetailView(BaseModel):
|
|
|
21
21
|
This field will remain unset until the execution has completed.
|
|
22
22
|
"""
|
|
23
23
|
|
|
24
|
-
status: Optional[Literal["running", "
|
|
24
|
+
status: Optional[Literal["running", "completed", "canceled"]] = None
|
|
25
25
|
"""Current status of the execution."""
|
|
26
26
|
|
|
27
27
|
stderr: Optional[str] = None
|