runloop-api-client 0.1.0a15__tar.gz → 0.1.0a16__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.0a16/.release-please-manifest.json +3 -0
- {runloop_api_client-0.1.0a15 → runloop_api_client-0.1.0a16}/CHANGELOG.md +13 -0
- {runloop_api_client-0.1.0a15 → runloop_api_client-0.1.0a16}/PKG-INFO +1 -1
- {runloop_api_client-0.1.0a15 → runloop_api_client-0.1.0a16}/api.md +8 -15
- {runloop_api_client-0.1.0a15 → runloop_api_client-0.1.0a16}/pyproject.toml +1 -1
- {runloop_api_client-0.1.0a15 → runloop_api_client-0.1.0a16}/src/runloop_api_client/_version.py +1 -1
- {runloop_api_client-0.1.0a15 → runloop_api_client-0.1.0a16}/src/runloop_api_client/resources/devboxes/devboxes.py +2 -2
- runloop_api_client-0.1.0a16/src/runloop_api_client/resources/devboxes/executions.py +514 -0
- {runloop_api_client-0.1.0a15 → runloop_api_client-0.1.0a16}/src/runloop_api_client/types/__init__.py +2 -0
- runloop_api_client-0.1.0a16/src/runloop_api_client/types/devbox_async_execution_detail_view.py +37 -0
- {runloop_api_client-0.1.0a15 → runloop_api_client-0.1.0a16}/src/runloop_api_client/types/devboxes/__init__.py +1 -2
- {runloop_api_client-0.1.0a15 → runloop_api_client-0.1.0a16}/src/runloop_api_client/types/devboxes/execution_retrieve_params.py +2 -2
- runloop_api_client-0.1.0a16/tests/api_resources/devboxes/test_executions.py +515 -0
- {runloop_api_client-0.1.0a15 → runloop_api_client-0.1.0a16}/tests/api_resources/test_devboxes.py +2 -1
- runloop_api_client-0.1.0a15/.release-please-manifest.json +0 -3
- runloop_api_client-0.1.0a15/src/runloop_api_client/resources/devboxes/executions.py +0 -245
- runloop_api_client-0.1.0a15/tests/api_resources/devboxes/test_executions.py +0 -209
- {runloop_api_client-0.1.0a15 → runloop_api_client-0.1.0a16}/.gitignore +0 -0
- {runloop_api_client-0.1.0a15 → runloop_api_client-0.1.0a16}/CONTRIBUTING.md +0 -0
- {runloop_api_client-0.1.0a15 → runloop_api_client-0.1.0a16}/LICENSE +0 -0
- {runloop_api_client-0.1.0a15 → runloop_api_client-0.1.0a16}/README.md +0 -0
- {runloop_api_client-0.1.0a15 → runloop_api_client-0.1.0a16}/SECURITY.md +0 -0
- {runloop_api_client-0.1.0a15 → runloop_api_client-0.1.0a16}/bin/check-release-environment +0 -0
- {runloop_api_client-0.1.0a15 → runloop_api_client-0.1.0a16}/bin/publish-pypi +0 -0
- {runloop_api_client-0.1.0a15 → runloop_api_client-0.1.0a16}/examples/.keep +0 -0
- {runloop_api_client-0.1.0a15 → runloop_api_client-0.1.0a16}/mypy.ini +0 -0
- {runloop_api_client-0.1.0a15 → runloop_api_client-0.1.0a16}/noxfile.py +0 -0
- {runloop_api_client-0.1.0a15 → runloop_api_client-0.1.0a16}/release-please-config.json +0 -0
- {runloop_api_client-0.1.0a15 → runloop_api_client-0.1.0a16}/requirements-dev.lock +0 -0
- {runloop_api_client-0.1.0a15 → runloop_api_client-0.1.0a16}/requirements.lock +0 -0
- {runloop_api_client-0.1.0a15 → runloop_api_client-0.1.0a16}/src/runloop/lib/.keep +0 -0
- {runloop_api_client-0.1.0a15 → runloop_api_client-0.1.0a16}/src/runloop_api_client/__init__.py +0 -0
- {runloop_api_client-0.1.0a15 → runloop_api_client-0.1.0a16}/src/runloop_api_client/_base_client.py +0 -0
- {runloop_api_client-0.1.0a15 → runloop_api_client-0.1.0a16}/src/runloop_api_client/_client.py +0 -0
- {runloop_api_client-0.1.0a15 → runloop_api_client-0.1.0a16}/src/runloop_api_client/_compat.py +0 -0
- {runloop_api_client-0.1.0a15 → runloop_api_client-0.1.0a16}/src/runloop_api_client/_constants.py +0 -0
- {runloop_api_client-0.1.0a15 → runloop_api_client-0.1.0a16}/src/runloop_api_client/_exceptions.py +0 -0
- {runloop_api_client-0.1.0a15 → runloop_api_client-0.1.0a16}/src/runloop_api_client/_files.py +0 -0
- {runloop_api_client-0.1.0a15 → runloop_api_client-0.1.0a16}/src/runloop_api_client/_models.py +0 -0
- {runloop_api_client-0.1.0a15 → runloop_api_client-0.1.0a16}/src/runloop_api_client/_qs.py +0 -0
- {runloop_api_client-0.1.0a15 → runloop_api_client-0.1.0a16}/src/runloop_api_client/_resource.py +0 -0
- {runloop_api_client-0.1.0a15 → runloop_api_client-0.1.0a16}/src/runloop_api_client/_response.py +0 -0
- {runloop_api_client-0.1.0a15 → runloop_api_client-0.1.0a16}/src/runloop_api_client/_streaming.py +0 -0
- {runloop_api_client-0.1.0a15 → runloop_api_client-0.1.0a16}/src/runloop_api_client/_types.py +0 -0
- {runloop_api_client-0.1.0a15 → runloop_api_client-0.1.0a16}/src/runloop_api_client/_utils/__init__.py +0 -0
- {runloop_api_client-0.1.0a15 → runloop_api_client-0.1.0a16}/src/runloop_api_client/_utils/_logs.py +0 -0
- {runloop_api_client-0.1.0a15 → runloop_api_client-0.1.0a16}/src/runloop_api_client/_utils/_proxy.py +0 -0
- {runloop_api_client-0.1.0a15 → runloop_api_client-0.1.0a16}/src/runloop_api_client/_utils/_reflection.py +0 -0
- {runloop_api_client-0.1.0a15 → runloop_api_client-0.1.0a16}/src/runloop_api_client/_utils/_streams.py +0 -0
- {runloop_api_client-0.1.0a15 → runloop_api_client-0.1.0a16}/src/runloop_api_client/_utils/_sync.py +0 -0
- {runloop_api_client-0.1.0a15 → runloop_api_client-0.1.0a16}/src/runloop_api_client/_utils/_transform.py +0 -0
- {runloop_api_client-0.1.0a15 → runloop_api_client-0.1.0a16}/src/runloop_api_client/_utils/_typing.py +0 -0
- {runloop_api_client-0.1.0a15 → runloop_api_client-0.1.0a16}/src/runloop_api_client/_utils/_utils.py +0 -0
- {runloop_api_client-0.1.0a15 → runloop_api_client-0.1.0a16}/src/runloop_api_client/lib/.keep +0 -0
- {runloop_api_client-0.1.0a15 → runloop_api_client-0.1.0a16}/src/runloop_api_client/py.typed +0 -0
- {runloop_api_client-0.1.0a15 → runloop_api_client-0.1.0a16}/src/runloop_api_client/resources/__init__.py +0 -0
- {runloop_api_client-0.1.0a15 → runloop_api_client-0.1.0a16}/src/runloop_api_client/resources/blueprints.py +0 -0
- {runloop_api_client-0.1.0a15 → runloop_api_client-0.1.0a16}/src/runloop_api_client/resources/deployments.py +0 -0
- {runloop_api_client-0.1.0a15 → runloop_api_client-0.1.0a16}/src/runloop_api_client/resources/devboxes/__init__.py +0 -0
- {runloop_api_client-0.1.0a15 → runloop_api_client-0.1.0a16}/src/runloop_api_client/resources/devboxes/logs.py +0 -0
- {runloop_api_client-0.1.0a15 → runloop_api_client-0.1.0a16}/src/runloop_api_client/resources/functions/__init__.py +0 -0
- {runloop_api_client-0.1.0a15 → runloop_api_client-0.1.0a16}/src/runloop_api_client/resources/functions/functions.py +0 -0
- {runloop_api_client-0.1.0a15 → runloop_api_client-0.1.0a16}/src/runloop_api_client/resources/functions/invocations.py +0 -0
- {runloop_api_client-0.1.0a15 → runloop_api_client-0.1.0a16}/src/runloop_api_client/resources/projects/__init__.py +0 -0
- {runloop_api_client-0.1.0a15 → runloop_api_client-0.1.0a16}/src/runloop_api_client/resources/projects/logs.py +0 -0
- {runloop_api_client-0.1.0a15 → runloop_api_client-0.1.0a16}/src/runloop_api_client/resources/projects/projects.py +0 -0
- {runloop_api_client-0.1.0a15 → runloop_api_client-0.1.0a16}/src/runloop_api_client/types/blueprint_build_log.py +0 -0
- {runloop_api_client-0.1.0a15 → runloop_api_client-0.1.0a16}/src/runloop_api_client/types/blueprint_build_logs_list_view.py +0 -0
- {runloop_api_client-0.1.0a15 → runloop_api_client-0.1.0a16}/src/runloop_api_client/types/blueprint_build_parameters.py +0 -0
- {runloop_api_client-0.1.0a15 → runloop_api_client-0.1.0a16}/src/runloop_api_client/types/blueprint_create_params.py +0 -0
- {runloop_api_client-0.1.0a15 → runloop_api_client-0.1.0a16}/src/runloop_api_client/types/blueprint_list_params.py +0 -0
- {runloop_api_client-0.1.0a15 → runloop_api_client-0.1.0a16}/src/runloop_api_client/types/blueprint_list_view.py +0 -0
- {runloop_api_client-0.1.0a15 → runloop_api_client-0.1.0a16}/src/runloop_api_client/types/blueprint_preview_params.py +0 -0
- {runloop_api_client-0.1.0a15 → runloop_api_client-0.1.0a16}/src/runloop_api_client/types/blueprint_preview_view.py +0 -0
- {runloop_api_client-0.1.0a15 → runloop_api_client-0.1.0a16}/src/runloop_api_client/types/blueprint_view.py +0 -0
- {runloop_api_client-0.1.0a15 → runloop_api_client-0.1.0a16}/src/runloop_api_client/types/code_mount_parameters.py +0 -0
- {runloop_api_client-0.1.0a15 → runloop_api_client-0.1.0a16}/src/runloop_api_client/types/code_mount_parameters_param.py +0 -0
- {runloop_api_client-0.1.0a15 → runloop_api_client-0.1.0a16}/src/runloop_api_client/types/deployment_get_params.py +0 -0
- {runloop_api_client-0.1.0a15 → runloop_api_client-0.1.0a16}/src/runloop_api_client/types/deployment_get_response.py +0 -0
- {runloop_api_client-0.1.0a15 → runloop_api_client-0.1.0a16}/src/runloop_api_client/types/deployment_logs_response.py +0 -0
- {runloop_api_client-0.1.0a15 → runloop_api_client-0.1.0a16}/src/runloop_api_client/types/deployment_redeploy_response.py +0 -0
- {runloop_api_client-0.1.0a15 → runloop_api_client-0.1.0a16}/src/runloop_api_client/types/deployment_retrieve_response.py +0 -0
- {runloop_api_client-0.1.0a15 → runloop_api_client-0.1.0a16}/src/runloop_api_client/types/deployment_tail_response.py +0 -0
- {runloop_api_client-0.1.0a15 → runloop_api_client-0.1.0a16}/src/runloop_api_client/types/devbox_create_params.py +0 -0
- {runloop_api_client-0.1.0a15 → runloop_api_client-0.1.0a16}/src/runloop_api_client/types/devbox_create_ssh_key_response.py +0 -0
- {runloop_api_client-0.1.0a15 → runloop_api_client-0.1.0a16}/src/runloop_api_client/types/devbox_execute_async_params.py +0 -0
- {runloop_api_client-0.1.0a15 → runloop_api_client-0.1.0a16}/src/runloop_api_client/types/devbox_execute_sync_params.py +0 -0
- {runloop_api_client-0.1.0a15 → runloop_api_client-0.1.0a16}/src/runloop_api_client/types/devbox_execution_detail_view.py +0 -0
- {runloop_api_client-0.1.0a15 → runloop_api_client-0.1.0a16}/src/runloop_api_client/types/devbox_list_params.py +0 -0
- {runloop_api_client-0.1.0a15 → runloop_api_client-0.1.0a16}/src/runloop_api_client/types/devbox_list_response.py +0 -0
- {runloop_api_client-0.1.0a15 → runloop_api_client-0.1.0a16}/src/runloop_api_client/types/devbox_list_view.py +0 -0
- {runloop_api_client-0.1.0a15 → runloop_api_client-0.1.0a16}/src/runloop_api_client/types/devbox_read_file_contents_params.py +0 -0
- {runloop_api_client-0.1.0a15 → runloop_api_client-0.1.0a16}/src/runloop_api_client/types/devbox_read_file_contents_response.py +0 -0
- {runloop_api_client-0.1.0a15 → runloop_api_client-0.1.0a16}/src/runloop_api_client/types/devbox_read_file_params.py +0 -0
- {runloop_api_client-0.1.0a15 → runloop_api_client-0.1.0a16}/src/runloop_api_client/types/devbox_upload_file_params.py +0 -0
- {runloop_api_client-0.1.0a15 → runloop_api_client-0.1.0a16}/src/runloop_api_client/types/devbox_view.py +0 -0
- {runloop_api_client-0.1.0a15 → runloop_api_client-0.1.0a16}/src/runloop_api_client/types/devbox_write_file_params.py +0 -0
- {runloop_api_client-0.1.0a15 → runloop_api_client-0.1.0a16}/src/runloop_api_client/types/devboxes/devbox_async_execution_detail_view.py +0 -0
- {runloop_api_client-0.1.0a15 → runloop_api_client-0.1.0a16}/src/runloop_api_client/types/devboxes/devbox_execution_detail_view.py +0 -0
- {runloop_api_client-0.1.0a15 → runloop_api_client-0.1.0a16}/src/runloop_api_client/types/devboxes/devbox_logs_list_view.py +0 -0
- {runloop_api_client-0.1.0a15 → runloop_api_client-0.1.0a16}/src/runloop_api_client/types/devboxes/execution_execute_async_params.py +0 -0
- {runloop_api_client-0.1.0a15 → runloop_api_client-0.1.0a16}/src/runloop_api_client/types/devboxes/execution_execute_sync_params.py +0 -0
- {runloop_api_client-0.1.0a15 → runloop_api_client-0.1.0a16}/src/runloop_api_client/types/function_invoke_async_params.py +0 -0
- {runloop_api_client-0.1.0a15 → runloop_api_client-0.1.0a16}/src/runloop_api_client/types/function_invoke_sync_params.py +0 -0
- {runloop_api_client-0.1.0a15 → runloop_api_client-0.1.0a16}/src/runloop_api_client/types/function_list_view.py +0 -0
- {runloop_api_client-0.1.0a15 → runloop_api_client-0.1.0a16}/src/runloop_api_client/types/functions/__init__.py +0 -0
- {runloop_api_client-0.1.0a15 → runloop_api_client-0.1.0a16}/src/runloop_api_client/types/functions/function_invocation_list_view.py +0 -0
- {runloop_api_client-0.1.0a15 → runloop_api_client-0.1.0a16}/src/runloop_api_client/types/functions/invocation_list_params.py +0 -0
- {runloop_api_client-0.1.0a15 → runloop_api_client-0.1.0a16}/src/runloop_api_client/types/functions/invocation_logs_response.py +0 -0
- {runloop_api_client-0.1.0a15 → runloop_api_client-0.1.0a16}/src/runloop_api_client/types/project_list_view.py +0 -0
- {runloop_api_client-0.1.0a15 → runloop_api_client-0.1.0a16}/src/runloop_api_client/types/projects/__init__.py +0 -0
- {runloop_api_client-0.1.0a15 → runloop_api_client-0.1.0a16}/src/runloop_api_client/types/resource_size.py +0 -0
- {runloop_api_client-0.1.0a15 → runloop_api_client-0.1.0a16}/src/runloop_api_client/types/shared/__init__.py +0 -0
- {runloop_api_client-0.1.0a15 → runloop_api_client-0.1.0a16}/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.0a16}/src/runloop_api_client/types/shared/project_logs_view.py +0 -0
- {runloop_api_client-0.1.0a15 → runloop_api_client-0.1.0a16}/tests/__init__.py +0 -0
- {runloop_api_client-0.1.0a15 → runloop_api_client-0.1.0a16}/tests/api_resources/__init__.py +0 -0
- {runloop_api_client-0.1.0a15 → runloop_api_client-0.1.0a16}/tests/api_resources/devboxes/__init__.py +0 -0
- {runloop_api_client-0.1.0a15 → runloop_api_client-0.1.0a16}/tests/api_resources/devboxes/test_logs.py +0 -0
- {runloop_api_client-0.1.0a15 → runloop_api_client-0.1.0a16}/tests/api_resources/functions/__init__.py +0 -0
- {runloop_api_client-0.1.0a15 → runloop_api_client-0.1.0a16}/tests/api_resources/functions/test_invocations.py +0 -0
- {runloop_api_client-0.1.0a15 → runloop_api_client-0.1.0a16}/tests/api_resources/projects/__init__.py +0 -0
- {runloop_api_client-0.1.0a15 → runloop_api_client-0.1.0a16}/tests/api_resources/projects/test_logs.py +0 -0
- {runloop_api_client-0.1.0a15 → runloop_api_client-0.1.0a16}/tests/api_resources/test_blueprints.py +0 -0
- {runloop_api_client-0.1.0a15 → runloop_api_client-0.1.0a16}/tests/api_resources/test_deployments.py +0 -0
- {runloop_api_client-0.1.0a15 → runloop_api_client-0.1.0a16}/tests/api_resources/test_functions.py +0 -0
- {runloop_api_client-0.1.0a15 → runloop_api_client-0.1.0a16}/tests/api_resources/test_projects.py +0 -0
- {runloop_api_client-0.1.0a15 → runloop_api_client-0.1.0a16}/tests/conftest.py +0 -0
- {runloop_api_client-0.1.0a15 → runloop_api_client-0.1.0a16}/tests/sample_file.txt +0 -0
- {runloop_api_client-0.1.0a15 → runloop_api_client-0.1.0a16}/tests/test_client.py +0 -0
- {runloop_api_client-0.1.0a15 → runloop_api_client-0.1.0a16}/tests/test_deepcopy.py +0 -0
- {runloop_api_client-0.1.0a15 → runloop_api_client-0.1.0a16}/tests/test_extract_files.py +0 -0
- {runloop_api_client-0.1.0a15 → runloop_api_client-0.1.0a16}/tests/test_files.py +0 -0
- {runloop_api_client-0.1.0a15 → runloop_api_client-0.1.0a16}/tests/test_models.py +0 -0
- {runloop_api_client-0.1.0a15 → runloop_api_client-0.1.0a16}/tests/test_qs.py +0 -0
- {runloop_api_client-0.1.0a15 → runloop_api_client-0.1.0a16}/tests/test_required_args.py +0 -0
- {runloop_api_client-0.1.0a15 → runloop_api_client-0.1.0a16}/tests/test_response.py +0 -0
- {runloop_api_client-0.1.0a15 → runloop_api_client-0.1.0a16}/tests/test_streaming.py +0 -0
- {runloop_api_client-0.1.0a15 → runloop_api_client-0.1.0a16}/tests/test_transform.py +0 -0
- {runloop_api_client-0.1.0a15 → runloop_api_client-0.1.0a16}/tests/test_utils/test_proxy.py +0 -0
- {runloop_api_client-0.1.0a15 → runloop_api_client-0.1.0a16}/tests/test_utils/test_typing.py +0 -0
- {runloop_api_client-0.1.0a15 → runloop_api_client-0.1.0a16}/tests/utils.py +0 -0
|
@@ -1,5 +1,18 @@
|
|
|
1
1
|
# Changelog
|
|
2
2
|
|
|
3
|
+
## 0.1.0-alpha.16 (2024-08-26)
|
|
4
|
+
|
|
5
|
+
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)
|
|
6
|
+
|
|
7
|
+
### Features
|
|
8
|
+
|
|
9
|
+
* **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))
|
|
10
|
+
* **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))
|
|
11
|
+
* **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))
|
|
12
|
+
* **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))
|
|
13
|
+
* **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))
|
|
14
|
+
* **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))
|
|
15
|
+
|
|
3
16
|
## 0.1.0-alpha.15 (2024-08-23)
|
|
4
17
|
|
|
5
18
|
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.0a16
|
|
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,12 @@ 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/
|
|
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/
|
|
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
|
+
- <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
70
|
- <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
71
|
- <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
72
|
- <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/
|
|
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/devbox_execution_detail_view.py">DevboxExecutionDetailView</a></code>
|
|
74
74
|
|
|
75
75
|
## Logs
|
|
76
76
|
|
|
@@ -86,20 +86,13 @@ Methods:
|
|
|
86
86
|
|
|
87
87
|
## Executions
|
|
88
88
|
|
|
89
|
-
Types:
|
|
90
|
-
|
|
91
|
-
```python
|
|
92
|
-
from runloop_api_client.types.devboxes import (
|
|
93
|
-
DevboxAsyncExecutionDetailView,
|
|
94
|
-
DevboxExecutionDetailView,
|
|
95
|
-
DevboxLogsListView,
|
|
96
|
-
)
|
|
97
|
-
```
|
|
98
|
-
|
|
99
89
|
Methods:
|
|
100
90
|
|
|
101
|
-
- <code title="
|
|
102
|
-
- <code title="post /v1/devboxes/{id}/
|
|
91
|
+
- <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}/executions/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
|
+
- <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
|
+
- <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>
|
|
103
96
|
|
|
104
97
|
# Functions
|
|
105
98
|
|
|
@@ -49,9 +49,9 @@ from ..._response import (
|
|
|
49
49
|
from ..._base_client import make_request_options
|
|
50
50
|
from ...types.devbox_view import DevboxView
|
|
51
51
|
from ...types.devbox_list_view import DevboxListView
|
|
52
|
+
from ...types.devbox_execution_detail_view import DevboxExecutionDetailView
|
|
52
53
|
from ...types.devbox_create_ssh_key_response import DevboxCreateSSHKeyResponse
|
|
53
|
-
from ...types.
|
|
54
|
-
from ...types.devboxes.devbox_async_execution_detail_view import DevboxAsyncExecutionDetailView
|
|
54
|
+
from ...types.devbox_async_execution_detail_view import DevboxAsyncExecutionDetailView
|
|
55
55
|
|
|
56
56
|
__all__ = ["DevboxesResource", "AsyncDevboxesResource"]
|
|
57
57
|
|
|
@@ -0,0 +1,514 @@
|
|
|
1
|
+
# File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details.
|
|
2
|
+
|
|
3
|
+
from __future__ import annotations
|
|
4
|
+
|
|
5
|
+
import httpx
|
|
6
|
+
|
|
7
|
+
from ..._types import NOT_GIVEN, Body, Query, Headers, NotGiven
|
|
8
|
+
from ..._utils import (
|
|
9
|
+
maybe_transform,
|
|
10
|
+
async_maybe_transform,
|
|
11
|
+
)
|
|
12
|
+
from ..._compat import cached_property
|
|
13
|
+
from ..._resource import SyncAPIResource, AsyncAPIResource
|
|
14
|
+
from ..._response import (
|
|
15
|
+
to_raw_response_wrapper,
|
|
16
|
+
to_streamed_response_wrapper,
|
|
17
|
+
async_to_raw_response_wrapper,
|
|
18
|
+
async_to_streamed_response_wrapper,
|
|
19
|
+
)
|
|
20
|
+
from ..._base_client import make_request_options
|
|
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.devboxes.devbox_logs_list_view import DevboxLogsListView
|
|
24
|
+
from ...types.devbox_async_execution_detail_view import DevboxAsyncExecutionDetailView
|
|
25
|
+
|
|
26
|
+
__all__ = ["ExecutionsResource", "AsyncExecutionsResource"]
|
|
27
|
+
|
|
28
|
+
|
|
29
|
+
class ExecutionsResource(SyncAPIResource):
|
|
30
|
+
@cached_property
|
|
31
|
+
def with_raw_response(self) -> ExecutionsResourceWithRawResponse:
|
|
32
|
+
return ExecutionsResourceWithRawResponse(self)
|
|
33
|
+
|
|
34
|
+
@cached_property
|
|
35
|
+
def with_streaming_response(self) -> ExecutionsResourceWithStreamingResponse:
|
|
36
|
+
return ExecutionsResourceWithStreamingResponse(self)
|
|
37
|
+
|
|
38
|
+
def retrieve(
|
|
39
|
+
self,
|
|
40
|
+
execution_id: str,
|
|
41
|
+
*,
|
|
42
|
+
id: str,
|
|
43
|
+
last_n: str | NotGiven = NOT_GIVEN,
|
|
44
|
+
# Use the following arguments if you need to pass additional parameters to the API that aren't available via kwargs.
|
|
45
|
+
# The extra values given here take precedence over values defined on the client or passed to this method.
|
|
46
|
+
extra_headers: Headers | None = None,
|
|
47
|
+
extra_query: Query | None = None,
|
|
48
|
+
extra_body: Body | None = None,
|
|
49
|
+
timeout: float | httpx.Timeout | None | NotGiven = NOT_GIVEN,
|
|
50
|
+
) -> DevboxAsyncExecutionDetailView:
|
|
51
|
+
"""
|
|
52
|
+
Get status of an execution on a devbox.
|
|
53
|
+
|
|
54
|
+
Args:
|
|
55
|
+
last_n: Last n lines of standard error / standard out to return
|
|
56
|
+
|
|
57
|
+
extra_headers: Send extra headers
|
|
58
|
+
|
|
59
|
+
extra_query: Add additional query parameters to the request
|
|
60
|
+
|
|
61
|
+
extra_body: Add additional JSON properties to the request
|
|
62
|
+
|
|
63
|
+
timeout: Override the client-level default timeout for this request, in seconds
|
|
64
|
+
"""
|
|
65
|
+
if not id:
|
|
66
|
+
raise ValueError(f"Expected a non-empty value for `id` but received {id!r}")
|
|
67
|
+
if not execution_id:
|
|
68
|
+
raise ValueError(f"Expected a non-empty value for `execution_id` but received {execution_id!r}")
|
|
69
|
+
return self._get(
|
|
70
|
+
f"/v1/devboxes/{id}/executions/{execution_id}",
|
|
71
|
+
options=make_request_options(
|
|
72
|
+
extra_headers=extra_headers,
|
|
73
|
+
extra_query=extra_query,
|
|
74
|
+
extra_body=extra_body,
|
|
75
|
+
timeout=timeout,
|
|
76
|
+
query=maybe_transform({"last_n": last_n}, execution_retrieve_params.ExecutionRetrieveParams),
|
|
77
|
+
),
|
|
78
|
+
cast_to=DevboxAsyncExecutionDetailView,
|
|
79
|
+
)
|
|
80
|
+
|
|
81
|
+
def execute_async(
|
|
82
|
+
self,
|
|
83
|
+
id: str,
|
|
84
|
+
*,
|
|
85
|
+
command: str | NotGiven = NOT_GIVEN,
|
|
86
|
+
# Use the following arguments if you need to pass additional parameters to the API that aren't available via kwargs.
|
|
87
|
+
# The extra values given here take precedence over values defined on the client or passed to this method.
|
|
88
|
+
extra_headers: Headers | None = None,
|
|
89
|
+
extra_query: Query | None = None,
|
|
90
|
+
extra_body: Body | None = None,
|
|
91
|
+
timeout: float | httpx.Timeout | None | NotGiven = NOT_GIVEN,
|
|
92
|
+
) -> DevboxAsyncExecutionDetailView:
|
|
93
|
+
"""
|
|
94
|
+
Asynchronously execute a command on a devbox
|
|
95
|
+
|
|
96
|
+
Args:
|
|
97
|
+
command: The command to execute on the Devbox.
|
|
98
|
+
|
|
99
|
+
extra_headers: Send extra headers
|
|
100
|
+
|
|
101
|
+
extra_query: Add additional query parameters to the request
|
|
102
|
+
|
|
103
|
+
extra_body: Add additional JSON properties to the request
|
|
104
|
+
|
|
105
|
+
timeout: Override the client-level default timeout for this request, in seconds
|
|
106
|
+
"""
|
|
107
|
+
if not id:
|
|
108
|
+
raise ValueError(f"Expected a non-empty value for `id` but received {id!r}")
|
|
109
|
+
return self._post(
|
|
110
|
+
f"/v1/devboxes/{id}/executions/execute_async",
|
|
111
|
+
body=maybe_transform({"command": command}, execution_execute_async_params.ExecutionExecuteAsyncParams),
|
|
112
|
+
options=make_request_options(
|
|
113
|
+
extra_headers=extra_headers, extra_query=extra_query, extra_body=extra_body, timeout=timeout
|
|
114
|
+
),
|
|
115
|
+
cast_to=DevboxAsyncExecutionDetailView,
|
|
116
|
+
)
|
|
117
|
+
|
|
118
|
+
def execute_sync(
|
|
119
|
+
self,
|
|
120
|
+
id: str,
|
|
121
|
+
*,
|
|
122
|
+
command: str | NotGiven = NOT_GIVEN,
|
|
123
|
+
# Use the following arguments if you need to pass additional parameters to the API that aren't available via kwargs.
|
|
124
|
+
# The extra values given here take precedence over values defined on the client or passed to this method.
|
|
125
|
+
extra_headers: Headers | None = None,
|
|
126
|
+
extra_query: Query | None = None,
|
|
127
|
+
extra_body: Body | None = None,
|
|
128
|
+
timeout: float | httpx.Timeout | None | NotGiven = NOT_GIVEN,
|
|
129
|
+
) -> DevboxExecutionDetailView:
|
|
130
|
+
"""
|
|
131
|
+
Synchronously execute a command on a devbox
|
|
132
|
+
|
|
133
|
+
Args:
|
|
134
|
+
command: The command to execute on the Devbox.
|
|
135
|
+
|
|
136
|
+
extra_headers: Send extra headers
|
|
137
|
+
|
|
138
|
+
extra_query: Add additional query parameters to the request
|
|
139
|
+
|
|
140
|
+
extra_body: Add additional JSON properties to the request
|
|
141
|
+
|
|
142
|
+
timeout: Override the client-level default timeout for this request, in seconds
|
|
143
|
+
"""
|
|
144
|
+
if not id:
|
|
145
|
+
raise ValueError(f"Expected a non-empty value for `id` but received {id!r}")
|
|
146
|
+
return self._post(
|
|
147
|
+
f"/v1/devboxes/{id}/execute_sync",
|
|
148
|
+
body=maybe_transform({"command": command}, execution_execute_sync_params.ExecutionExecuteSyncParams),
|
|
149
|
+
options=make_request_options(
|
|
150
|
+
extra_headers=extra_headers, extra_query=extra_query, extra_body=extra_body, timeout=timeout
|
|
151
|
+
),
|
|
152
|
+
cast_to=DevboxExecutionDetailView,
|
|
153
|
+
)
|
|
154
|
+
|
|
155
|
+
def kill(
|
|
156
|
+
self,
|
|
157
|
+
execution_id: str,
|
|
158
|
+
*,
|
|
159
|
+
id: str,
|
|
160
|
+
# Use the following arguments if you need to pass additional parameters to the API that aren't available via kwargs.
|
|
161
|
+
# The extra values given here take precedence over values defined on the client or passed to this method.
|
|
162
|
+
extra_headers: Headers | None = None,
|
|
163
|
+
extra_query: Query | None = None,
|
|
164
|
+
extra_body: Body | None = None,
|
|
165
|
+
timeout: float | httpx.Timeout | None | NotGiven = NOT_GIVEN,
|
|
166
|
+
) -> DevboxAsyncExecutionDetailView:
|
|
167
|
+
"""
|
|
168
|
+
Kill an asynchronous execution currently running on a devbox
|
|
169
|
+
|
|
170
|
+
Args:
|
|
171
|
+
extra_headers: Send extra headers
|
|
172
|
+
|
|
173
|
+
extra_query: Add additional query parameters to the request
|
|
174
|
+
|
|
175
|
+
extra_body: Add additional JSON properties to the request
|
|
176
|
+
|
|
177
|
+
timeout: Override the client-level default timeout for this request, in seconds
|
|
178
|
+
"""
|
|
179
|
+
if not id:
|
|
180
|
+
raise ValueError(f"Expected a non-empty value for `id` but received {id!r}")
|
|
181
|
+
if not execution_id:
|
|
182
|
+
raise ValueError(f"Expected a non-empty value for `execution_id` but received {execution_id!r}")
|
|
183
|
+
return self._post(
|
|
184
|
+
f"/v1/devboxes/{id}/executions/{execution_id}/kill",
|
|
185
|
+
options=make_request_options(
|
|
186
|
+
extra_headers=extra_headers, extra_query=extra_query, extra_body=extra_body, timeout=timeout
|
|
187
|
+
),
|
|
188
|
+
cast_to=DevboxAsyncExecutionDetailView,
|
|
189
|
+
)
|
|
190
|
+
|
|
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
|
+
|
|
228
|
+
class AsyncExecutionsResource(AsyncAPIResource):
|
|
229
|
+
@cached_property
|
|
230
|
+
def with_raw_response(self) -> AsyncExecutionsResourceWithRawResponse:
|
|
231
|
+
return AsyncExecutionsResourceWithRawResponse(self)
|
|
232
|
+
|
|
233
|
+
@cached_property
|
|
234
|
+
def with_streaming_response(self) -> AsyncExecutionsResourceWithStreamingResponse:
|
|
235
|
+
return AsyncExecutionsResourceWithStreamingResponse(self)
|
|
236
|
+
|
|
237
|
+
async def retrieve(
|
|
238
|
+
self,
|
|
239
|
+
execution_id: str,
|
|
240
|
+
*,
|
|
241
|
+
id: str,
|
|
242
|
+
last_n: str | NotGiven = NOT_GIVEN,
|
|
243
|
+
# Use the following arguments if you need to pass additional parameters to the API that aren't available via kwargs.
|
|
244
|
+
# The extra values given here take precedence over values defined on the client or passed to this method.
|
|
245
|
+
extra_headers: Headers | None = None,
|
|
246
|
+
extra_query: Query | None = None,
|
|
247
|
+
extra_body: Body | None = None,
|
|
248
|
+
timeout: float | httpx.Timeout | None | NotGiven = NOT_GIVEN,
|
|
249
|
+
) -> DevboxAsyncExecutionDetailView:
|
|
250
|
+
"""
|
|
251
|
+
Get status of an execution on a devbox.
|
|
252
|
+
|
|
253
|
+
Args:
|
|
254
|
+
last_n: Last n lines of standard error / standard out to return
|
|
255
|
+
|
|
256
|
+
extra_headers: Send extra headers
|
|
257
|
+
|
|
258
|
+
extra_query: Add additional query parameters to the request
|
|
259
|
+
|
|
260
|
+
extra_body: Add additional JSON properties to the request
|
|
261
|
+
|
|
262
|
+
timeout: Override the client-level default timeout for this request, in seconds
|
|
263
|
+
"""
|
|
264
|
+
if not id:
|
|
265
|
+
raise ValueError(f"Expected a non-empty value for `id` but received {id!r}")
|
|
266
|
+
if not execution_id:
|
|
267
|
+
raise ValueError(f"Expected a non-empty value for `execution_id` but received {execution_id!r}")
|
|
268
|
+
return await self._get(
|
|
269
|
+
f"/v1/devboxes/{id}/executions/{execution_id}",
|
|
270
|
+
options=make_request_options(
|
|
271
|
+
extra_headers=extra_headers,
|
|
272
|
+
extra_query=extra_query,
|
|
273
|
+
extra_body=extra_body,
|
|
274
|
+
timeout=timeout,
|
|
275
|
+
query=await async_maybe_transform(
|
|
276
|
+
{"last_n": last_n}, execution_retrieve_params.ExecutionRetrieveParams
|
|
277
|
+
),
|
|
278
|
+
),
|
|
279
|
+
cast_to=DevboxAsyncExecutionDetailView,
|
|
280
|
+
)
|
|
281
|
+
|
|
282
|
+
async def execute_async(
|
|
283
|
+
self,
|
|
284
|
+
id: str,
|
|
285
|
+
*,
|
|
286
|
+
command: str | NotGiven = NOT_GIVEN,
|
|
287
|
+
# Use the following arguments if you need to pass additional parameters to the API that aren't available via kwargs.
|
|
288
|
+
# The extra values given here take precedence over values defined on the client or passed to this method.
|
|
289
|
+
extra_headers: Headers | None = None,
|
|
290
|
+
extra_query: Query | None = None,
|
|
291
|
+
extra_body: Body | None = None,
|
|
292
|
+
timeout: float | httpx.Timeout | None | NotGiven = NOT_GIVEN,
|
|
293
|
+
) -> DevboxAsyncExecutionDetailView:
|
|
294
|
+
"""
|
|
295
|
+
Asynchronously execute a command on a devbox
|
|
296
|
+
|
|
297
|
+
Args:
|
|
298
|
+
command: The command to execute on the Devbox.
|
|
299
|
+
|
|
300
|
+
extra_headers: Send extra headers
|
|
301
|
+
|
|
302
|
+
extra_query: Add additional query parameters to the request
|
|
303
|
+
|
|
304
|
+
extra_body: Add additional JSON properties to the request
|
|
305
|
+
|
|
306
|
+
timeout: Override the client-level default timeout for this request, in seconds
|
|
307
|
+
"""
|
|
308
|
+
if not id:
|
|
309
|
+
raise ValueError(f"Expected a non-empty value for `id` but received {id!r}")
|
|
310
|
+
return await self._post(
|
|
311
|
+
f"/v1/devboxes/{id}/executions/execute_async",
|
|
312
|
+
body=await async_maybe_transform(
|
|
313
|
+
{"command": command}, execution_execute_async_params.ExecutionExecuteAsyncParams
|
|
314
|
+
),
|
|
315
|
+
options=make_request_options(
|
|
316
|
+
extra_headers=extra_headers, extra_query=extra_query, extra_body=extra_body, timeout=timeout
|
|
317
|
+
),
|
|
318
|
+
cast_to=DevboxAsyncExecutionDetailView,
|
|
319
|
+
)
|
|
320
|
+
|
|
321
|
+
async def execute_sync(
|
|
322
|
+
self,
|
|
323
|
+
id: str,
|
|
324
|
+
*,
|
|
325
|
+
command: str | NotGiven = NOT_GIVEN,
|
|
326
|
+
# Use the following arguments if you need to pass additional parameters to the API that aren't available via kwargs.
|
|
327
|
+
# The extra values given here take precedence over values defined on the client or passed to this method.
|
|
328
|
+
extra_headers: Headers | None = None,
|
|
329
|
+
extra_query: Query | None = None,
|
|
330
|
+
extra_body: Body | None = None,
|
|
331
|
+
timeout: float | httpx.Timeout | None | NotGiven = NOT_GIVEN,
|
|
332
|
+
) -> DevboxExecutionDetailView:
|
|
333
|
+
"""
|
|
334
|
+
Synchronously execute a command on a devbox
|
|
335
|
+
|
|
336
|
+
Args:
|
|
337
|
+
command: The command to execute on the Devbox.
|
|
338
|
+
|
|
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
|
+
return await self._post(
|
|
350
|
+
f"/v1/devboxes/{id}/execute_sync",
|
|
351
|
+
body=await async_maybe_transform(
|
|
352
|
+
{"command": command}, execution_execute_sync_params.ExecutionExecuteSyncParams
|
|
353
|
+
),
|
|
354
|
+
options=make_request_options(
|
|
355
|
+
extra_headers=extra_headers, extra_query=extra_query, extra_body=extra_body, timeout=timeout
|
|
356
|
+
),
|
|
357
|
+
cast_to=DevboxExecutionDetailView,
|
|
358
|
+
)
|
|
359
|
+
|
|
360
|
+
async def kill(
|
|
361
|
+
self,
|
|
362
|
+
execution_id: str,
|
|
363
|
+
*,
|
|
364
|
+
id: str,
|
|
365
|
+
# Use the following arguments if you need to pass additional parameters to the API that aren't available via kwargs.
|
|
366
|
+
# The extra values given here take precedence over values defined on the client or passed to this method.
|
|
367
|
+
extra_headers: Headers | None = None,
|
|
368
|
+
extra_query: Query | None = None,
|
|
369
|
+
extra_body: Body | None = None,
|
|
370
|
+
timeout: float | httpx.Timeout | None | NotGiven = NOT_GIVEN,
|
|
371
|
+
) -> DevboxAsyncExecutionDetailView:
|
|
372
|
+
"""
|
|
373
|
+
Kill an asynchronous execution currently running on a devbox
|
|
374
|
+
|
|
375
|
+
Args:
|
|
376
|
+
extra_headers: Send extra headers
|
|
377
|
+
|
|
378
|
+
extra_query: Add additional query parameters to the request
|
|
379
|
+
|
|
380
|
+
extra_body: Add additional JSON properties to the request
|
|
381
|
+
|
|
382
|
+
timeout: Override the client-level default timeout for this request, in seconds
|
|
383
|
+
"""
|
|
384
|
+
if not id:
|
|
385
|
+
raise ValueError(f"Expected a non-empty value for `id` but received {id!r}")
|
|
386
|
+
if not execution_id:
|
|
387
|
+
raise ValueError(f"Expected a non-empty value for `execution_id` but received {execution_id!r}")
|
|
388
|
+
return await self._post(
|
|
389
|
+
f"/v1/devboxes/{id}/executions/{execution_id}/kill",
|
|
390
|
+
options=make_request_options(
|
|
391
|
+
extra_headers=extra_headers, extra_query=extra_query, extra_body=extra_body, timeout=timeout
|
|
392
|
+
),
|
|
393
|
+
cast_to=DevboxAsyncExecutionDetailView,
|
|
394
|
+
)
|
|
395
|
+
|
|
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
|
+
|
|
433
|
+
class ExecutionsResourceWithRawResponse:
|
|
434
|
+
def __init__(self, executions: ExecutionsResource) -> None:
|
|
435
|
+
self._executions = executions
|
|
436
|
+
|
|
437
|
+
self.retrieve = to_raw_response_wrapper(
|
|
438
|
+
executions.retrieve,
|
|
439
|
+
)
|
|
440
|
+
self.execute_async = to_raw_response_wrapper(
|
|
441
|
+
executions.execute_async,
|
|
442
|
+
)
|
|
443
|
+
self.execute_sync = to_raw_response_wrapper(
|
|
444
|
+
executions.execute_sync,
|
|
445
|
+
)
|
|
446
|
+
self.kill = to_raw_response_wrapper(
|
|
447
|
+
executions.kill,
|
|
448
|
+
)
|
|
449
|
+
self.logs = to_raw_response_wrapper(
|
|
450
|
+
executions.logs,
|
|
451
|
+
)
|
|
452
|
+
|
|
453
|
+
|
|
454
|
+
class AsyncExecutionsResourceWithRawResponse:
|
|
455
|
+
def __init__(self, executions: AsyncExecutionsResource) -> None:
|
|
456
|
+
self._executions = executions
|
|
457
|
+
|
|
458
|
+
self.retrieve = async_to_raw_response_wrapper(
|
|
459
|
+
executions.retrieve,
|
|
460
|
+
)
|
|
461
|
+
self.execute_async = async_to_raw_response_wrapper(
|
|
462
|
+
executions.execute_async,
|
|
463
|
+
)
|
|
464
|
+
self.execute_sync = async_to_raw_response_wrapper(
|
|
465
|
+
executions.execute_sync,
|
|
466
|
+
)
|
|
467
|
+
self.kill = async_to_raw_response_wrapper(
|
|
468
|
+
executions.kill,
|
|
469
|
+
)
|
|
470
|
+
self.logs = async_to_raw_response_wrapper(
|
|
471
|
+
executions.logs,
|
|
472
|
+
)
|
|
473
|
+
|
|
474
|
+
|
|
475
|
+
class ExecutionsResourceWithStreamingResponse:
|
|
476
|
+
def __init__(self, executions: ExecutionsResource) -> None:
|
|
477
|
+
self._executions = executions
|
|
478
|
+
|
|
479
|
+
self.retrieve = to_streamed_response_wrapper(
|
|
480
|
+
executions.retrieve,
|
|
481
|
+
)
|
|
482
|
+
self.execute_async = to_streamed_response_wrapper(
|
|
483
|
+
executions.execute_async,
|
|
484
|
+
)
|
|
485
|
+
self.execute_sync = to_streamed_response_wrapper(
|
|
486
|
+
executions.execute_sync,
|
|
487
|
+
)
|
|
488
|
+
self.kill = to_streamed_response_wrapper(
|
|
489
|
+
executions.kill,
|
|
490
|
+
)
|
|
491
|
+
self.logs = to_streamed_response_wrapper(
|
|
492
|
+
executions.logs,
|
|
493
|
+
)
|
|
494
|
+
|
|
495
|
+
|
|
496
|
+
class AsyncExecutionsResourceWithStreamingResponse:
|
|
497
|
+
def __init__(self, executions: AsyncExecutionsResource) -> None:
|
|
498
|
+
self._executions = executions
|
|
499
|
+
|
|
500
|
+
self.retrieve = async_to_streamed_response_wrapper(
|
|
501
|
+
executions.retrieve,
|
|
502
|
+
)
|
|
503
|
+
self.execute_async = async_to_streamed_response_wrapper(
|
|
504
|
+
executions.execute_async,
|
|
505
|
+
)
|
|
506
|
+
self.execute_sync = async_to_streamed_response_wrapper(
|
|
507
|
+
executions.execute_sync,
|
|
508
|
+
)
|
|
509
|
+
self.kill = async_to_streamed_response_wrapper(
|
|
510
|
+
executions.kill,
|
|
511
|
+
)
|
|
512
|
+
self.logs = async_to_streamed_response_wrapper(
|
|
513
|
+
executions.logs,
|
|
514
|
+
)
|
{runloop_api_client-0.1.0a15 → runloop_api_client-0.1.0a16}/src/runloop_api_client/types/__init__.py
RENAMED
|
@@ -28,8 +28,10 @@ from .devbox_execute_sync_params import DevboxExecuteSyncParams as DevboxExecute
|
|
|
28
28
|
from .code_mount_parameters_param import CodeMountParametersParam as CodeMountParametersParam
|
|
29
29
|
from .devbox_execute_async_params import DevboxExecuteAsyncParams as DevboxExecuteAsyncParams
|
|
30
30
|
from .function_invoke_sync_params import FunctionInvokeSyncParams as FunctionInvokeSyncParams
|
|
31
|
+
from .devbox_execution_detail_view import DevboxExecutionDetailView as DevboxExecutionDetailView
|
|
31
32
|
from .function_invoke_async_params import FunctionInvokeAsyncParams as FunctionInvokeAsyncParams
|
|
32
33
|
from .blueprint_build_logs_list_view import BlueprintBuildLogsListView as BlueprintBuildLogsListView
|
|
33
34
|
from .devbox_create_ssh_key_response import DevboxCreateSSHKeyResponse as DevboxCreateSSHKeyResponse
|
|
34
35
|
from .devbox_read_file_contents_params import DevboxReadFileContentsParams as DevboxReadFileContentsParams
|
|
36
|
+
from .devbox_async_execution_detail_view import DevboxAsyncExecutionDetailView as DevboxAsyncExecutionDetailView
|
|
35
37
|
from .devbox_read_file_contents_response import DevboxReadFileContentsResponse as DevboxReadFileContentsResponse
|