runloop-api-client 0.1.0a16__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.0a16 → runloop_api_client-0.1.0a17}/CHANGELOG.md +11 -0
- {runloop_api_client-0.1.0a16 → runloop_api_client-0.1.0a17}/PKG-INFO +1 -1
- {runloop_api_client-0.1.0a16 → runloop_api_client-0.1.0a17}/api.md +2 -4
- {runloop_api_client-0.1.0a16 → runloop_api_client-0.1.0a17}/pyproject.toml +1 -1
- {runloop_api_client-0.1.0a16 → runloop_api_client-0.1.0a17}/src/runloop_api_client/_version.py +1 -1
- {runloop_api_client-0.1.0a16 → runloop_api_client-0.1.0a17}/src/runloop_api_client/resources/devboxes/devboxes.py +0 -90
- {runloop_api_client-0.1.0a16 → runloop_api_client-0.1.0a17}/src/runloop_api_client/resources/devboxes/executions.py +2 -87
- {runloop_api_client-0.1.0a16 → runloop_api_client-0.1.0a17}/src/runloop_api_client/resources/devboxes/logs.py +21 -2
- {runloop_api_client-0.1.0a16 → runloop_api_client-0.1.0a17}/src/runloop_api_client/types/__init__.py +0 -1
- {runloop_api_client-0.1.0a16 → runloop_api_client-0.1.0a17}/src/runloop_api_client/types/devbox_async_execution_detail_view.py +1 -1
- {runloop_api_client-0.1.0a16 → runloop_api_client-0.1.0a17}/src/runloop_api_client/types/devboxes/__init__.py +1 -0
- runloop_api_client-0.1.0a16/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.0a16 → runloop_api_client-0.1.0a17}/tests/api_resources/devboxes/test_executions.py +0 -99
- {runloop_api_client-0.1.0a16 → runloop_api_client-0.1.0a17}/tests/api_resources/devboxes/test_logs.py +24 -8
- {runloop_api_client-0.1.0a16 → runloop_api_client-0.1.0a17}/tests/api_resources/test_devboxes.py +0 -93
- runloop_api_client-0.1.0a16/.release-please-manifest.json +0 -3
- runloop_api_client-0.1.0a16/src/runloop_api_client/resources/deployments.py +0 -488
- runloop_api_client-0.1.0a16/src/runloop_api_client/types/deployment_get_params.py +0 -15
- runloop_api_client-0.1.0a16/src/runloop_api_client/types/deployment_get_response.py +0 -59
- runloop_api_client-0.1.0a16/src/runloop_api_client/types/deployment_logs_response.py +0 -26
- runloop_api_client-0.1.0a16/src/runloop_api_client/types/deployment_redeploy_response.py +0 -50
- runloop_api_client-0.1.0a16/src/runloop_api_client/types/deployment_retrieve_response.py +0 -50
- runloop_api_client-0.1.0a16/src/runloop_api_client/types/deployment_tail_response.py +0 -26
- runloop_api_client-0.1.0a16/src/runloop_api_client/types/devbox_execute_async_params.py +0 -12
- runloop_api_client-0.1.0a16/src/runloop_api_client/types/devbox_list_response.py +0 -17
- runloop_api_client-0.1.0a16/src/runloop_api_client/types/devboxes/devbox_async_execution_detail_view.py +0 -37
- runloop_api_client-0.1.0a16/src/runloop_api_client/types/devboxes/devbox_execution_detail_view.py +0 -21
- runloop_api_client-0.1.0a16/src/runloop_api_client/types/functions/invocation_logs_response.py +0 -26
- runloop_api_client-0.1.0a16/tests/api_resources/test_deployments.py +0 -406
- {runloop_api_client-0.1.0a16 → runloop_api_client-0.1.0a17}/.gitignore +0 -0
- {runloop_api_client-0.1.0a16 → runloop_api_client-0.1.0a17}/CONTRIBUTING.md +0 -0
- {runloop_api_client-0.1.0a16 → runloop_api_client-0.1.0a17}/LICENSE +0 -0
- {runloop_api_client-0.1.0a16 → runloop_api_client-0.1.0a17}/README.md +0 -0
- {runloop_api_client-0.1.0a16 → runloop_api_client-0.1.0a17}/SECURITY.md +0 -0
- {runloop_api_client-0.1.0a16 → runloop_api_client-0.1.0a17}/bin/check-release-environment +0 -0
- {runloop_api_client-0.1.0a16 → runloop_api_client-0.1.0a17}/bin/publish-pypi +0 -0
- {runloop_api_client-0.1.0a16 → runloop_api_client-0.1.0a17}/examples/.keep +0 -0
- {runloop_api_client-0.1.0a16 → runloop_api_client-0.1.0a17}/mypy.ini +0 -0
- {runloop_api_client-0.1.0a16 → runloop_api_client-0.1.0a17}/noxfile.py +0 -0
- {runloop_api_client-0.1.0a16 → runloop_api_client-0.1.0a17}/release-please-config.json +0 -0
- {runloop_api_client-0.1.0a16 → runloop_api_client-0.1.0a17}/requirements-dev.lock +0 -0
- {runloop_api_client-0.1.0a16 → runloop_api_client-0.1.0a17}/requirements.lock +0 -0
- {runloop_api_client-0.1.0a16 → runloop_api_client-0.1.0a17}/src/runloop/lib/.keep +0 -0
- {runloop_api_client-0.1.0a16 → runloop_api_client-0.1.0a17}/src/runloop_api_client/__init__.py +0 -0
- {runloop_api_client-0.1.0a16 → runloop_api_client-0.1.0a17}/src/runloop_api_client/_base_client.py +0 -0
- {runloop_api_client-0.1.0a16 → runloop_api_client-0.1.0a17}/src/runloop_api_client/_client.py +0 -0
- {runloop_api_client-0.1.0a16 → runloop_api_client-0.1.0a17}/src/runloop_api_client/_compat.py +0 -0
- {runloop_api_client-0.1.0a16 → runloop_api_client-0.1.0a17}/src/runloop_api_client/_constants.py +0 -0
- {runloop_api_client-0.1.0a16 → runloop_api_client-0.1.0a17}/src/runloop_api_client/_exceptions.py +0 -0
- {runloop_api_client-0.1.0a16 → runloop_api_client-0.1.0a17}/src/runloop_api_client/_files.py +0 -0
- {runloop_api_client-0.1.0a16 → runloop_api_client-0.1.0a17}/src/runloop_api_client/_models.py +0 -0
- {runloop_api_client-0.1.0a16 → runloop_api_client-0.1.0a17}/src/runloop_api_client/_qs.py +0 -0
- {runloop_api_client-0.1.0a16 → runloop_api_client-0.1.0a17}/src/runloop_api_client/_resource.py +0 -0
- {runloop_api_client-0.1.0a16 → runloop_api_client-0.1.0a17}/src/runloop_api_client/_response.py +0 -0
- {runloop_api_client-0.1.0a16 → runloop_api_client-0.1.0a17}/src/runloop_api_client/_streaming.py +0 -0
- {runloop_api_client-0.1.0a16 → runloop_api_client-0.1.0a17}/src/runloop_api_client/_types.py +0 -0
- {runloop_api_client-0.1.0a16 → runloop_api_client-0.1.0a17}/src/runloop_api_client/_utils/__init__.py +0 -0
- {runloop_api_client-0.1.0a16 → runloop_api_client-0.1.0a17}/src/runloop_api_client/_utils/_logs.py +0 -0
- {runloop_api_client-0.1.0a16 → runloop_api_client-0.1.0a17}/src/runloop_api_client/_utils/_proxy.py +0 -0
- {runloop_api_client-0.1.0a16 → runloop_api_client-0.1.0a17}/src/runloop_api_client/_utils/_reflection.py +0 -0
- {runloop_api_client-0.1.0a16 → runloop_api_client-0.1.0a17}/src/runloop_api_client/_utils/_streams.py +0 -0
- {runloop_api_client-0.1.0a16 → runloop_api_client-0.1.0a17}/src/runloop_api_client/_utils/_sync.py +0 -0
- {runloop_api_client-0.1.0a16 → runloop_api_client-0.1.0a17}/src/runloop_api_client/_utils/_transform.py +0 -0
- {runloop_api_client-0.1.0a16 → runloop_api_client-0.1.0a17}/src/runloop_api_client/_utils/_typing.py +0 -0
- {runloop_api_client-0.1.0a16 → runloop_api_client-0.1.0a17}/src/runloop_api_client/_utils/_utils.py +0 -0
- {runloop_api_client-0.1.0a16 → runloop_api_client-0.1.0a17}/src/runloop_api_client/lib/.keep +0 -0
- {runloop_api_client-0.1.0a16 → runloop_api_client-0.1.0a17}/src/runloop_api_client/py.typed +0 -0
- {runloop_api_client-0.1.0a16 → runloop_api_client-0.1.0a17}/src/runloop_api_client/resources/__init__.py +0 -0
- {runloop_api_client-0.1.0a16 → runloop_api_client-0.1.0a17}/src/runloop_api_client/resources/blueprints.py +0 -0
- {runloop_api_client-0.1.0a16 → runloop_api_client-0.1.0a17}/src/runloop_api_client/resources/devboxes/__init__.py +0 -0
- {runloop_api_client-0.1.0a16 → runloop_api_client-0.1.0a17}/src/runloop_api_client/resources/functions/__init__.py +0 -0
- {runloop_api_client-0.1.0a16 → runloop_api_client-0.1.0a17}/src/runloop_api_client/resources/functions/functions.py +0 -0
- {runloop_api_client-0.1.0a16 → runloop_api_client-0.1.0a17}/src/runloop_api_client/resources/functions/invocations.py +0 -0
- {runloop_api_client-0.1.0a16 → runloop_api_client-0.1.0a17}/src/runloop_api_client/resources/projects/__init__.py +0 -0
- {runloop_api_client-0.1.0a16 → runloop_api_client-0.1.0a17}/src/runloop_api_client/resources/projects/logs.py +0 -0
- {runloop_api_client-0.1.0a16 → runloop_api_client-0.1.0a17}/src/runloop_api_client/resources/projects/projects.py +0 -0
- {runloop_api_client-0.1.0a16 → runloop_api_client-0.1.0a17}/src/runloop_api_client/types/blueprint_build_log.py +0 -0
- {runloop_api_client-0.1.0a16 → runloop_api_client-0.1.0a17}/src/runloop_api_client/types/blueprint_build_logs_list_view.py +0 -0
- {runloop_api_client-0.1.0a16 → runloop_api_client-0.1.0a17}/src/runloop_api_client/types/blueprint_build_parameters.py +0 -0
- {runloop_api_client-0.1.0a16 → runloop_api_client-0.1.0a17}/src/runloop_api_client/types/blueprint_create_params.py +0 -0
- {runloop_api_client-0.1.0a16 → runloop_api_client-0.1.0a17}/src/runloop_api_client/types/blueprint_list_params.py +0 -0
- {runloop_api_client-0.1.0a16 → runloop_api_client-0.1.0a17}/src/runloop_api_client/types/blueprint_list_view.py +0 -0
- {runloop_api_client-0.1.0a16 → runloop_api_client-0.1.0a17}/src/runloop_api_client/types/blueprint_preview_params.py +0 -0
- {runloop_api_client-0.1.0a16 → runloop_api_client-0.1.0a17}/src/runloop_api_client/types/blueprint_preview_view.py +0 -0
- {runloop_api_client-0.1.0a16 → runloop_api_client-0.1.0a17}/src/runloop_api_client/types/blueprint_view.py +0 -0
- {runloop_api_client-0.1.0a16 → runloop_api_client-0.1.0a17}/src/runloop_api_client/types/code_mount_parameters.py +0 -0
- {runloop_api_client-0.1.0a16 → runloop_api_client-0.1.0a17}/src/runloop_api_client/types/code_mount_parameters_param.py +0 -0
- {runloop_api_client-0.1.0a16 → runloop_api_client-0.1.0a17}/src/runloop_api_client/types/devbox_create_params.py +0 -0
- {runloop_api_client-0.1.0a16 → runloop_api_client-0.1.0a17}/src/runloop_api_client/types/devbox_create_ssh_key_response.py +0 -0
- {runloop_api_client-0.1.0a16 → runloop_api_client-0.1.0a17}/src/runloop_api_client/types/devbox_execute_sync_params.py +0 -0
- {runloop_api_client-0.1.0a16 → runloop_api_client-0.1.0a17}/src/runloop_api_client/types/devbox_execution_detail_view.py +0 -0
- {runloop_api_client-0.1.0a16 → runloop_api_client-0.1.0a17}/src/runloop_api_client/types/devbox_list_params.py +0 -0
- {runloop_api_client-0.1.0a16 → runloop_api_client-0.1.0a17}/src/runloop_api_client/types/devbox_list_view.py +0 -0
- {runloop_api_client-0.1.0a16 → runloop_api_client-0.1.0a17}/src/runloop_api_client/types/devbox_read_file_contents_params.py +0 -0
- {runloop_api_client-0.1.0a16 → runloop_api_client-0.1.0a17}/src/runloop_api_client/types/devbox_read_file_contents_response.py +0 -0
- {runloop_api_client-0.1.0a16 → runloop_api_client-0.1.0a17}/src/runloop_api_client/types/devbox_upload_file_params.py +0 -0
- {runloop_api_client-0.1.0a16 → runloop_api_client-0.1.0a17}/src/runloop_api_client/types/devbox_view.py +0 -0
- {runloop_api_client-0.1.0a16 → runloop_api_client-0.1.0a17}/src/runloop_api_client/types/devbox_write_file_params.py +0 -0
- {runloop_api_client-0.1.0a16 → runloop_api_client-0.1.0a17}/src/runloop_api_client/types/devboxes/devbox_logs_list_view.py +0 -0
- {runloop_api_client-0.1.0a16 → runloop_api_client-0.1.0a17}/src/runloop_api_client/types/devboxes/execution_execute_async_params.py +0 -0
- {runloop_api_client-0.1.0a16 → runloop_api_client-0.1.0a17}/src/runloop_api_client/types/devboxes/execution_execute_sync_params.py +0 -0
- {runloop_api_client-0.1.0a16 → runloop_api_client-0.1.0a17}/src/runloop_api_client/types/devboxes/execution_retrieve_params.py +0 -0
- {runloop_api_client-0.1.0a16 → runloop_api_client-0.1.0a17}/src/runloop_api_client/types/function_invoke_async_params.py +0 -0
- {runloop_api_client-0.1.0a16 → runloop_api_client-0.1.0a17}/src/runloop_api_client/types/function_invoke_sync_params.py +0 -0
- {runloop_api_client-0.1.0a16 → runloop_api_client-0.1.0a17}/src/runloop_api_client/types/function_list_view.py +0 -0
- {runloop_api_client-0.1.0a16 → runloop_api_client-0.1.0a17}/src/runloop_api_client/types/functions/__init__.py +0 -0
- {runloop_api_client-0.1.0a16 → runloop_api_client-0.1.0a17}/src/runloop_api_client/types/functions/function_invocation_list_view.py +0 -0
- {runloop_api_client-0.1.0a16 → runloop_api_client-0.1.0a17}/src/runloop_api_client/types/functions/invocation_list_params.py +0 -0
- {runloop_api_client-0.1.0a16 → runloop_api_client-0.1.0a17}/src/runloop_api_client/types/project_list_view.py +0 -0
- {runloop_api_client-0.1.0a16 → runloop_api_client-0.1.0a17}/src/runloop_api_client/types/projects/__init__.py +0 -0
- {runloop_api_client-0.1.0a16 → runloop_api_client-0.1.0a17}/src/runloop_api_client/types/resource_size.py +0 -0
- {runloop_api_client-0.1.0a16 → runloop_api_client-0.1.0a17}/src/runloop_api_client/types/shared/__init__.py +0 -0
- {runloop_api_client-0.1.0a16 → 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.0a16 → runloop_api_client-0.1.0a17}/src/runloop_api_client/types/shared/project_logs_view.py +0 -0
- {runloop_api_client-0.1.0a16 → runloop_api_client-0.1.0a17}/tests/__init__.py +0 -0
- {runloop_api_client-0.1.0a16 → runloop_api_client-0.1.0a17}/tests/api_resources/__init__.py +0 -0
- {runloop_api_client-0.1.0a16 → runloop_api_client-0.1.0a17}/tests/api_resources/devboxes/__init__.py +0 -0
- {runloop_api_client-0.1.0a16 → runloop_api_client-0.1.0a17}/tests/api_resources/functions/__init__.py +0 -0
- {runloop_api_client-0.1.0a16 → runloop_api_client-0.1.0a17}/tests/api_resources/functions/test_invocations.py +0 -0
- {runloop_api_client-0.1.0a16 → runloop_api_client-0.1.0a17}/tests/api_resources/projects/__init__.py +0 -0
- {runloop_api_client-0.1.0a16 → runloop_api_client-0.1.0a17}/tests/api_resources/projects/test_logs.py +0 -0
- {runloop_api_client-0.1.0a16 → runloop_api_client-0.1.0a17}/tests/api_resources/test_blueprints.py +0 -0
- {runloop_api_client-0.1.0a16 → runloop_api_client-0.1.0a17}/tests/api_resources/test_functions.py +0 -0
- {runloop_api_client-0.1.0a16 → runloop_api_client-0.1.0a17}/tests/api_resources/test_projects.py +0 -0
- {runloop_api_client-0.1.0a16 → runloop_api_client-0.1.0a17}/tests/conftest.py +0 -0
- {runloop_api_client-0.1.0a16 → runloop_api_client-0.1.0a17}/tests/sample_file.txt +0 -0
- {runloop_api_client-0.1.0a16 → runloop_api_client-0.1.0a17}/tests/test_client.py +0 -0
- {runloop_api_client-0.1.0a16 → runloop_api_client-0.1.0a17}/tests/test_deepcopy.py +0 -0
- {runloop_api_client-0.1.0a16 → runloop_api_client-0.1.0a17}/tests/test_extract_files.py +0 -0
- {runloop_api_client-0.1.0a16 → runloop_api_client-0.1.0a17}/tests/test_files.py +0 -0
- {runloop_api_client-0.1.0a16 → runloop_api_client-0.1.0a17}/tests/test_models.py +0 -0
- {runloop_api_client-0.1.0a16 → runloop_api_client-0.1.0a17}/tests/test_qs.py +0 -0
- {runloop_api_client-0.1.0a16 → runloop_api_client-0.1.0a17}/tests/test_required_args.py +0 -0
- {runloop_api_client-0.1.0a16 → runloop_api_client-0.1.0a17}/tests/test_response.py +0 -0
- {runloop_api_client-0.1.0a16 → runloop_api_client-0.1.0a17}/tests/test_streaming.py +0 -0
- {runloop_api_client-0.1.0a16 → runloop_api_client-0.1.0a17}/tests/test_transform.py +0 -0
- {runloop_api_client-0.1.0a16 → runloop_api_client-0.1.0a17}/tests/test_utils/test_proxy.py +0 -0
- {runloop_api_client-0.1.0a16 → runloop_api_client-0.1.0a17}/tests/test_utils/test_typing.py +0 -0
- {runloop_api_client-0.1.0a16 → runloop_api_client-0.1.0a17}/tests/utils.py +0 -0
|
@@ -1,5 +1,16 @@
|
|
|
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
|
+
|
|
3
14
|
## 0.1.0-alpha.16 (2024-08-26)
|
|
4
15
|
|
|
5
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)
|
|
@@ -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,7 +65,6 @@ 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}/executions/execute_async">client.devboxes.<a href="./src/runloop_api_client/resources/devboxes/devboxes.py">execute_async</a>(id, \*\*<a href="src/runloop_api_client/types/devbox_execute_async_params.py">params</a>) -> <a href="./src/runloop_api_client/types/devbox_async_execution_detail_view.py">DevboxAsyncExecutionDetailView</a></code>
|
|
69
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>
|
|
@@ -82,17 +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
88
|
Methods:
|
|
90
89
|
|
|
91
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>
|
|
92
|
-
- <code title="post /v1/devboxes/{id}/
|
|
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>
|
|
93
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>
|
|
94
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>
|
|
95
|
-
- <code title="get /v1/devboxes/{id}/executions/{execution_id}/logs">client.devboxes.executions.<a href="./src/runloop_api_client/resources/devboxes/executions.py">logs</a>(execution_id, \*, id) -> <a href="./src/runloop_api_client/types/devboxes/devbox_logs_list_view.py">DevboxLogsListView</a></code>
|
|
96
94
|
|
|
97
95
|
# Functions
|
|
98
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
|
|
@@ -51,7 +50,6 @@ from ...types.devbox_view import DevboxView
|
|
|
51
50
|
from ...types.devbox_list_view import DevboxListView
|
|
52
51
|
from ...types.devbox_execution_detail_view import DevboxExecutionDetailView
|
|
53
52
|
from ...types.devbox_create_ssh_key_response import DevboxCreateSSHKeyResponse
|
|
54
|
-
from ...types.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
|
)
|
|
@@ -20,7 +20,6 @@ from ..._response import (
|
|
|
20
20
|
from ..._base_client import make_request_options
|
|
21
21
|
from ...types.devboxes import execution_retrieve_params, execution_execute_sync_params, execution_execute_async_params
|
|
22
22
|
from ...types.devbox_execution_detail_view import DevboxExecutionDetailView
|
|
23
|
-
from ...types.devboxes.devbox_logs_list_view import DevboxLogsListView
|
|
24
23
|
from ...types.devbox_async_execution_detail_view import DevboxAsyncExecutionDetailView
|
|
25
24
|
|
|
26
25
|
__all__ = ["ExecutionsResource", "AsyncExecutionsResource"]
|
|
@@ -107,7 +106,7 @@ class ExecutionsResource(SyncAPIResource):
|
|
|
107
106
|
if not id:
|
|
108
107
|
raise ValueError(f"Expected a non-empty value for `id` but received {id!r}")
|
|
109
108
|
return self._post(
|
|
110
|
-
f"/v1/devboxes/{id}/
|
|
109
|
+
f"/v1/devboxes/{id}/execute_async",
|
|
111
110
|
body=maybe_transform({"command": command}, execution_execute_async_params.ExecutionExecuteAsyncParams),
|
|
112
111
|
options=make_request_options(
|
|
113
112
|
extra_headers=extra_headers, extra_query=extra_query, extra_body=extra_body, timeout=timeout
|
|
@@ -188,42 +187,6 @@ class ExecutionsResource(SyncAPIResource):
|
|
|
188
187
|
cast_to=DevboxAsyncExecutionDetailView,
|
|
189
188
|
)
|
|
190
189
|
|
|
191
|
-
def logs(
|
|
192
|
-
self,
|
|
193
|
-
execution_id: str,
|
|
194
|
-
*,
|
|
195
|
-
id: str,
|
|
196
|
-
# Use the following arguments if you need to pass additional parameters to the API that aren't available via kwargs.
|
|
197
|
-
# The extra values given here take precedence over values defined on the client or passed to this method.
|
|
198
|
-
extra_headers: Headers | None = None,
|
|
199
|
-
extra_query: Query | None = None,
|
|
200
|
-
extra_body: Body | None = None,
|
|
201
|
-
timeout: float | httpx.Timeout | None | NotGiven = NOT_GIVEN,
|
|
202
|
-
) -> DevboxLogsListView:
|
|
203
|
-
"""
|
|
204
|
-
Get all logs from a Devbox execution by id.
|
|
205
|
-
|
|
206
|
-
Args:
|
|
207
|
-
extra_headers: Send extra headers
|
|
208
|
-
|
|
209
|
-
extra_query: Add additional query parameters to the request
|
|
210
|
-
|
|
211
|
-
extra_body: Add additional JSON properties to the request
|
|
212
|
-
|
|
213
|
-
timeout: Override the client-level default timeout for this request, in seconds
|
|
214
|
-
"""
|
|
215
|
-
if not id:
|
|
216
|
-
raise ValueError(f"Expected a non-empty value for `id` but received {id!r}")
|
|
217
|
-
if not execution_id:
|
|
218
|
-
raise ValueError(f"Expected a non-empty value for `execution_id` but received {execution_id!r}")
|
|
219
|
-
return self._get(
|
|
220
|
-
f"/v1/devboxes/{id}/executions/{execution_id}/logs",
|
|
221
|
-
options=make_request_options(
|
|
222
|
-
extra_headers=extra_headers, extra_query=extra_query, extra_body=extra_body, timeout=timeout
|
|
223
|
-
),
|
|
224
|
-
cast_to=DevboxLogsListView,
|
|
225
|
-
)
|
|
226
|
-
|
|
227
190
|
|
|
228
191
|
class AsyncExecutionsResource(AsyncAPIResource):
|
|
229
192
|
@cached_property
|
|
@@ -308,7 +271,7 @@ class AsyncExecutionsResource(AsyncAPIResource):
|
|
|
308
271
|
if not id:
|
|
309
272
|
raise ValueError(f"Expected a non-empty value for `id` but received {id!r}")
|
|
310
273
|
return await self._post(
|
|
311
|
-
f"/v1/devboxes/{id}/
|
|
274
|
+
f"/v1/devboxes/{id}/execute_async",
|
|
312
275
|
body=await async_maybe_transform(
|
|
313
276
|
{"command": command}, execution_execute_async_params.ExecutionExecuteAsyncParams
|
|
314
277
|
),
|
|
@@ -393,42 +356,6 @@ class AsyncExecutionsResource(AsyncAPIResource):
|
|
|
393
356
|
cast_to=DevboxAsyncExecutionDetailView,
|
|
394
357
|
)
|
|
395
358
|
|
|
396
|
-
async def logs(
|
|
397
|
-
self,
|
|
398
|
-
execution_id: str,
|
|
399
|
-
*,
|
|
400
|
-
id: str,
|
|
401
|
-
# Use the following arguments if you need to pass additional parameters to the API that aren't available via kwargs.
|
|
402
|
-
# The extra values given here take precedence over values defined on the client or passed to this method.
|
|
403
|
-
extra_headers: Headers | None = None,
|
|
404
|
-
extra_query: Query | None = None,
|
|
405
|
-
extra_body: Body | None = None,
|
|
406
|
-
timeout: float | httpx.Timeout | None | NotGiven = NOT_GIVEN,
|
|
407
|
-
) -> DevboxLogsListView:
|
|
408
|
-
"""
|
|
409
|
-
Get all logs from a Devbox execution by id.
|
|
410
|
-
|
|
411
|
-
Args:
|
|
412
|
-
extra_headers: Send extra headers
|
|
413
|
-
|
|
414
|
-
extra_query: Add additional query parameters to the request
|
|
415
|
-
|
|
416
|
-
extra_body: Add additional JSON properties to the request
|
|
417
|
-
|
|
418
|
-
timeout: Override the client-level default timeout for this request, in seconds
|
|
419
|
-
"""
|
|
420
|
-
if not id:
|
|
421
|
-
raise ValueError(f"Expected a non-empty value for `id` but received {id!r}")
|
|
422
|
-
if not execution_id:
|
|
423
|
-
raise ValueError(f"Expected a non-empty value for `execution_id` but received {execution_id!r}")
|
|
424
|
-
return await self._get(
|
|
425
|
-
f"/v1/devboxes/{id}/executions/{execution_id}/logs",
|
|
426
|
-
options=make_request_options(
|
|
427
|
-
extra_headers=extra_headers, extra_query=extra_query, extra_body=extra_body, timeout=timeout
|
|
428
|
-
),
|
|
429
|
-
cast_to=DevboxLogsListView,
|
|
430
|
-
)
|
|
431
|
-
|
|
432
359
|
|
|
433
360
|
class ExecutionsResourceWithRawResponse:
|
|
434
361
|
def __init__(self, executions: ExecutionsResource) -> None:
|
|
@@ -446,9 +373,6 @@ class ExecutionsResourceWithRawResponse:
|
|
|
446
373
|
self.kill = to_raw_response_wrapper(
|
|
447
374
|
executions.kill,
|
|
448
375
|
)
|
|
449
|
-
self.logs = to_raw_response_wrapper(
|
|
450
|
-
executions.logs,
|
|
451
|
-
)
|
|
452
376
|
|
|
453
377
|
|
|
454
378
|
class AsyncExecutionsResourceWithRawResponse:
|
|
@@ -467,9 +391,6 @@ class AsyncExecutionsResourceWithRawResponse:
|
|
|
467
391
|
self.kill = async_to_raw_response_wrapper(
|
|
468
392
|
executions.kill,
|
|
469
393
|
)
|
|
470
|
-
self.logs = async_to_raw_response_wrapper(
|
|
471
|
-
executions.logs,
|
|
472
|
-
)
|
|
473
394
|
|
|
474
395
|
|
|
475
396
|
class ExecutionsResourceWithStreamingResponse:
|
|
@@ -488,9 +409,6 @@ class ExecutionsResourceWithStreamingResponse:
|
|
|
488
409
|
self.kill = to_streamed_response_wrapper(
|
|
489
410
|
executions.kill,
|
|
490
411
|
)
|
|
491
|
-
self.logs = to_streamed_response_wrapper(
|
|
492
|
-
executions.logs,
|
|
493
|
-
)
|
|
494
412
|
|
|
495
413
|
|
|
496
414
|
class AsyncExecutionsResourceWithStreamingResponse:
|
|
@@ -509,6 +427,3 @@ class AsyncExecutionsResourceWithStreamingResponse:
|
|
|
509
427
|
self.kill = async_to_streamed_response_wrapper(
|
|
510
428
|
executions.kill,
|
|
511
429
|
)
|
|
512
|
-
self.logs = async_to_streamed_response_wrapper(
|
|
513
|
-
executions.logs,
|
|
514
|
-
)
|
|
@@ -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.0a16 → runloop_api_client-0.1.0a17}/src/runloop_api_client/types/__init__.py
RENAMED
|
@@ -26,7 +26,6 @@ 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
|
|
31
30
|
from .devbox_execution_detail_view import DevboxExecutionDetailView as DevboxExecutionDetailView
|
|
32
31
|
from .function_invoke_async_params import FunctionInvokeAsyncParams as FunctionInvokeAsyncParams
|
|
@@ -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
|
|
@@ -2,6 +2,7 @@
|
|
|
2
2
|
|
|
3
3
|
from __future__ import annotations
|
|
4
4
|
|
|
5
|
+
from .log_list_params import LogListParams as LogListParams
|
|
5
6
|
from .devbox_logs_list_view import DevboxLogsListView as DevboxLogsListView
|
|
6
7
|
from .execution_retrieve_params import ExecutionRetrieveParams as ExecutionRetrieveParams
|
|
7
8
|
from .execution_execute_sync_params import ExecutionExecuteSyncParams as ExecutionExecuteSyncParams
|
|
@@ -4,9 +4,9 @@ from __future__ import annotations
|
|
|
4
4
|
|
|
5
5
|
from typing_extensions import TypedDict
|
|
6
6
|
|
|
7
|
-
__all__ = ["
|
|
7
|
+
__all__ = ["LogListParams"]
|
|
8
8
|
|
|
9
9
|
|
|
10
|
-
class
|
|
11
|
-
|
|
12
|
-
"""
|
|
10
|
+
class LogListParams(TypedDict, total=False):
|
|
11
|
+
execution_id: str
|
|
12
|
+
"""Id of execution to filter logs by."""
|
|
@@ -10,9 +10,6 @@ import pytest
|
|
|
10
10
|
from tests.utils import assert_matches_type
|
|
11
11
|
from runloop_api_client import Runloop, AsyncRunloop
|
|
12
12
|
from runloop_api_client.types import DevboxExecutionDetailView, DevboxAsyncExecutionDetailView
|
|
13
|
-
from runloop_api_client.types.devboxes import (
|
|
14
|
-
DevboxLogsListView,
|
|
15
|
-
)
|
|
16
13
|
|
|
17
14
|
base_url = os.environ.get("TEST_API_BASE_URL", "http://127.0.0.1:4010")
|
|
18
15
|
|
|
@@ -217,54 +214,6 @@ class TestExecutions:
|
|
|
217
214
|
id="id",
|
|
218
215
|
)
|
|
219
216
|
|
|
220
|
-
@parametrize
|
|
221
|
-
def test_method_logs(self, client: Runloop) -> None:
|
|
222
|
-
execution = client.devboxes.executions.logs(
|
|
223
|
-
execution_id="execution_id",
|
|
224
|
-
id="id",
|
|
225
|
-
)
|
|
226
|
-
assert_matches_type(DevboxLogsListView, execution, path=["response"])
|
|
227
|
-
|
|
228
|
-
@parametrize
|
|
229
|
-
def test_raw_response_logs(self, client: Runloop) -> None:
|
|
230
|
-
response = client.devboxes.executions.with_raw_response.logs(
|
|
231
|
-
execution_id="execution_id",
|
|
232
|
-
id="id",
|
|
233
|
-
)
|
|
234
|
-
|
|
235
|
-
assert response.is_closed is True
|
|
236
|
-
assert response.http_request.headers.get("X-Stainless-Lang") == "python"
|
|
237
|
-
execution = response.parse()
|
|
238
|
-
assert_matches_type(DevboxLogsListView, execution, path=["response"])
|
|
239
|
-
|
|
240
|
-
@parametrize
|
|
241
|
-
def test_streaming_response_logs(self, client: Runloop) -> None:
|
|
242
|
-
with client.devboxes.executions.with_streaming_response.logs(
|
|
243
|
-
execution_id="execution_id",
|
|
244
|
-
id="id",
|
|
245
|
-
) as response:
|
|
246
|
-
assert not response.is_closed
|
|
247
|
-
assert response.http_request.headers.get("X-Stainless-Lang") == "python"
|
|
248
|
-
|
|
249
|
-
execution = response.parse()
|
|
250
|
-
assert_matches_type(DevboxLogsListView, execution, path=["response"])
|
|
251
|
-
|
|
252
|
-
assert cast(Any, response.is_closed) is True
|
|
253
|
-
|
|
254
|
-
@parametrize
|
|
255
|
-
def test_path_params_logs(self, client: Runloop) -> None:
|
|
256
|
-
with pytest.raises(ValueError, match=r"Expected a non-empty value for `id` but received ''"):
|
|
257
|
-
client.devboxes.executions.with_raw_response.logs(
|
|
258
|
-
execution_id="execution_id",
|
|
259
|
-
id="",
|
|
260
|
-
)
|
|
261
|
-
|
|
262
|
-
with pytest.raises(ValueError, match=r"Expected a non-empty value for `execution_id` but received ''"):
|
|
263
|
-
client.devboxes.executions.with_raw_response.logs(
|
|
264
|
-
execution_id="",
|
|
265
|
-
id="id",
|
|
266
|
-
)
|
|
267
|
-
|
|
268
217
|
|
|
269
218
|
class TestAsyncExecutions:
|
|
270
219
|
parametrize = pytest.mark.parametrize("async_client", [False, True], indirect=True, ids=["loose", "strict"])
|
|
@@ -465,51 +414,3 @@ class TestAsyncExecutions:
|
|
|
465
414
|
execution_id="",
|
|
466
415
|
id="id",
|
|
467
416
|
)
|
|
468
|
-
|
|
469
|
-
@parametrize
|
|
470
|
-
async def test_method_logs(self, async_client: AsyncRunloop) -> None:
|
|
471
|
-
execution = await async_client.devboxes.executions.logs(
|
|
472
|
-
execution_id="execution_id",
|
|
473
|
-
id="id",
|
|
474
|
-
)
|
|
475
|
-
assert_matches_type(DevboxLogsListView, execution, path=["response"])
|
|
476
|
-
|
|
477
|
-
@parametrize
|
|
478
|
-
async def test_raw_response_logs(self, async_client: AsyncRunloop) -> None:
|
|
479
|
-
response = await async_client.devboxes.executions.with_raw_response.logs(
|
|
480
|
-
execution_id="execution_id",
|
|
481
|
-
id="id",
|
|
482
|
-
)
|
|
483
|
-
|
|
484
|
-
assert response.is_closed is True
|
|
485
|
-
assert response.http_request.headers.get("X-Stainless-Lang") == "python"
|
|
486
|
-
execution = await response.parse()
|
|
487
|
-
assert_matches_type(DevboxLogsListView, execution, path=["response"])
|
|
488
|
-
|
|
489
|
-
@parametrize
|
|
490
|
-
async def test_streaming_response_logs(self, async_client: AsyncRunloop) -> None:
|
|
491
|
-
async with async_client.devboxes.executions.with_streaming_response.logs(
|
|
492
|
-
execution_id="execution_id",
|
|
493
|
-
id="id",
|
|
494
|
-
) as response:
|
|
495
|
-
assert not response.is_closed
|
|
496
|
-
assert response.http_request.headers.get("X-Stainless-Lang") == "python"
|
|
497
|
-
|
|
498
|
-
execution = await response.parse()
|
|
499
|
-
assert_matches_type(DevboxLogsListView, execution, path=["response"])
|
|
500
|
-
|
|
501
|
-
assert cast(Any, response.is_closed) is True
|
|
502
|
-
|
|
503
|
-
@parametrize
|
|
504
|
-
async def test_path_params_logs(self, async_client: AsyncRunloop) -> None:
|
|
505
|
-
with pytest.raises(ValueError, match=r"Expected a non-empty value for `id` but received ''"):
|
|
506
|
-
await async_client.devboxes.executions.with_raw_response.logs(
|
|
507
|
-
execution_id="execution_id",
|
|
508
|
-
id="",
|
|
509
|
-
)
|
|
510
|
-
|
|
511
|
-
with pytest.raises(ValueError, match=r"Expected a non-empty value for `execution_id` but received ''"):
|
|
512
|
-
await async_client.devboxes.executions.with_raw_response.logs(
|
|
513
|
-
execution_id="",
|
|
514
|
-
id="id",
|
|
515
|
-
)
|