runloop-api-client 0.1.0a17__tar.gz → 0.1.0a18__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.0a18/.release-please-manifest.json +3 -0
- {runloop_api_client-0.1.0a17 → runloop_api_client-0.1.0a18}/CHANGELOG.md +8 -0
- {runloop_api_client-0.1.0a17 → runloop_api_client-0.1.0a18}/PKG-INFO +1 -1
- {runloop_api_client-0.1.0a17 → runloop_api_client-0.1.0a18}/api.md +2 -2
- {runloop_api_client-0.1.0a17 → runloop_api_client-0.1.0a18}/pyproject.toml +1 -1
- {runloop_api_client-0.1.0a17 → runloop_api_client-0.1.0a18}/src/runloop_api_client/_version.py +1 -1
- {runloop_api_client-0.1.0a17 → runloop_api_client-0.1.0a18}/src/runloop_api_client/resources/devboxes/devboxes.py +90 -0
- {runloop_api_client-0.1.0a17 → runloop_api_client-0.1.0a18}/src/runloop_api_client/resources/devboxes/executions.py +1 -89
- {runloop_api_client-0.1.0a17 → runloop_api_client-0.1.0a18}/src/runloop_api_client/resources/devboxes/logs.py +2 -21
- {runloop_api_client-0.1.0a17 → runloop_api_client-0.1.0a18}/src/runloop_api_client/types/__init__.py +1 -0
- runloop_api_client-0.1.0a17/src/runloop_api_client/types/devboxes/execution_execute_async_params.py → runloop_api_client-0.1.0a18/src/runloop_api_client/types/devbox_execute_async_params.py +2 -2
- {runloop_api_client-0.1.0a17 → runloop_api_client-0.1.0a18}/src/runloop_api_client/types/devboxes/__init__.py +0 -2
- {runloop_api_client-0.1.0a17 → runloop_api_client-0.1.0a18}/tests/api_resources/devboxes/test_executions.py +0 -92
- {runloop_api_client-0.1.0a17 → runloop_api_client-0.1.0a18}/tests/api_resources/devboxes/test_logs.py +8 -24
- {runloop_api_client-0.1.0a17 → runloop_api_client-0.1.0a18}/tests/api_resources/test_devboxes.py +93 -0
- runloop_api_client-0.1.0a17/.release-please-manifest.json +0 -3
- runloop_api_client-0.1.0a17/src/runloop_api_client/types/devboxes/log_list_params.py +0 -12
- {runloop_api_client-0.1.0a17 → runloop_api_client-0.1.0a18}/.gitignore +0 -0
- {runloop_api_client-0.1.0a17 → runloop_api_client-0.1.0a18}/CONTRIBUTING.md +0 -0
- {runloop_api_client-0.1.0a17 → runloop_api_client-0.1.0a18}/LICENSE +0 -0
- {runloop_api_client-0.1.0a17 → runloop_api_client-0.1.0a18}/README.md +0 -0
- {runloop_api_client-0.1.0a17 → runloop_api_client-0.1.0a18}/SECURITY.md +0 -0
- {runloop_api_client-0.1.0a17 → runloop_api_client-0.1.0a18}/bin/check-release-environment +0 -0
- {runloop_api_client-0.1.0a17 → runloop_api_client-0.1.0a18}/bin/publish-pypi +0 -0
- {runloop_api_client-0.1.0a17 → runloop_api_client-0.1.0a18}/examples/.keep +0 -0
- {runloop_api_client-0.1.0a17 → runloop_api_client-0.1.0a18}/mypy.ini +0 -0
- {runloop_api_client-0.1.0a17 → runloop_api_client-0.1.0a18}/noxfile.py +0 -0
- {runloop_api_client-0.1.0a17 → runloop_api_client-0.1.0a18}/release-please-config.json +0 -0
- {runloop_api_client-0.1.0a17 → runloop_api_client-0.1.0a18}/requirements-dev.lock +0 -0
- {runloop_api_client-0.1.0a17 → runloop_api_client-0.1.0a18}/requirements.lock +0 -0
- {runloop_api_client-0.1.0a17 → runloop_api_client-0.1.0a18}/src/runloop/lib/.keep +0 -0
- {runloop_api_client-0.1.0a17 → runloop_api_client-0.1.0a18}/src/runloop_api_client/__init__.py +0 -0
- {runloop_api_client-0.1.0a17 → runloop_api_client-0.1.0a18}/src/runloop_api_client/_base_client.py +0 -0
- {runloop_api_client-0.1.0a17 → runloop_api_client-0.1.0a18}/src/runloop_api_client/_client.py +0 -0
- {runloop_api_client-0.1.0a17 → runloop_api_client-0.1.0a18}/src/runloop_api_client/_compat.py +0 -0
- {runloop_api_client-0.1.0a17 → runloop_api_client-0.1.0a18}/src/runloop_api_client/_constants.py +0 -0
- {runloop_api_client-0.1.0a17 → runloop_api_client-0.1.0a18}/src/runloop_api_client/_exceptions.py +0 -0
- {runloop_api_client-0.1.0a17 → runloop_api_client-0.1.0a18}/src/runloop_api_client/_files.py +0 -0
- {runloop_api_client-0.1.0a17 → runloop_api_client-0.1.0a18}/src/runloop_api_client/_models.py +0 -0
- {runloop_api_client-0.1.0a17 → runloop_api_client-0.1.0a18}/src/runloop_api_client/_qs.py +0 -0
- {runloop_api_client-0.1.0a17 → runloop_api_client-0.1.0a18}/src/runloop_api_client/_resource.py +0 -0
- {runloop_api_client-0.1.0a17 → runloop_api_client-0.1.0a18}/src/runloop_api_client/_response.py +0 -0
- {runloop_api_client-0.1.0a17 → runloop_api_client-0.1.0a18}/src/runloop_api_client/_streaming.py +0 -0
- {runloop_api_client-0.1.0a17 → runloop_api_client-0.1.0a18}/src/runloop_api_client/_types.py +0 -0
- {runloop_api_client-0.1.0a17 → runloop_api_client-0.1.0a18}/src/runloop_api_client/_utils/__init__.py +0 -0
- {runloop_api_client-0.1.0a17 → runloop_api_client-0.1.0a18}/src/runloop_api_client/_utils/_logs.py +0 -0
- {runloop_api_client-0.1.0a17 → runloop_api_client-0.1.0a18}/src/runloop_api_client/_utils/_proxy.py +0 -0
- {runloop_api_client-0.1.0a17 → runloop_api_client-0.1.0a18}/src/runloop_api_client/_utils/_reflection.py +0 -0
- {runloop_api_client-0.1.0a17 → runloop_api_client-0.1.0a18}/src/runloop_api_client/_utils/_streams.py +0 -0
- {runloop_api_client-0.1.0a17 → runloop_api_client-0.1.0a18}/src/runloop_api_client/_utils/_sync.py +0 -0
- {runloop_api_client-0.1.0a17 → runloop_api_client-0.1.0a18}/src/runloop_api_client/_utils/_transform.py +0 -0
- {runloop_api_client-0.1.0a17 → runloop_api_client-0.1.0a18}/src/runloop_api_client/_utils/_typing.py +0 -0
- {runloop_api_client-0.1.0a17 → runloop_api_client-0.1.0a18}/src/runloop_api_client/_utils/_utils.py +0 -0
- {runloop_api_client-0.1.0a17 → runloop_api_client-0.1.0a18}/src/runloop_api_client/lib/.keep +0 -0
- {runloop_api_client-0.1.0a17 → runloop_api_client-0.1.0a18}/src/runloop_api_client/py.typed +0 -0
- {runloop_api_client-0.1.0a17 → runloop_api_client-0.1.0a18}/src/runloop_api_client/resources/__init__.py +0 -0
- {runloop_api_client-0.1.0a17 → runloop_api_client-0.1.0a18}/src/runloop_api_client/resources/blueprints.py +0 -0
- {runloop_api_client-0.1.0a17 → runloop_api_client-0.1.0a18}/src/runloop_api_client/resources/devboxes/__init__.py +0 -0
- {runloop_api_client-0.1.0a17 → runloop_api_client-0.1.0a18}/src/runloop_api_client/resources/functions/__init__.py +0 -0
- {runloop_api_client-0.1.0a17 → runloop_api_client-0.1.0a18}/src/runloop_api_client/resources/functions/functions.py +0 -0
- {runloop_api_client-0.1.0a17 → runloop_api_client-0.1.0a18}/src/runloop_api_client/resources/functions/invocations.py +0 -0
- {runloop_api_client-0.1.0a17 → runloop_api_client-0.1.0a18}/src/runloop_api_client/resources/projects/__init__.py +0 -0
- {runloop_api_client-0.1.0a17 → runloop_api_client-0.1.0a18}/src/runloop_api_client/resources/projects/logs.py +0 -0
- {runloop_api_client-0.1.0a17 → runloop_api_client-0.1.0a18}/src/runloop_api_client/resources/projects/projects.py +0 -0
- {runloop_api_client-0.1.0a17 → runloop_api_client-0.1.0a18}/src/runloop_api_client/types/blueprint_build_log.py +0 -0
- {runloop_api_client-0.1.0a17 → runloop_api_client-0.1.0a18}/src/runloop_api_client/types/blueprint_build_logs_list_view.py +0 -0
- {runloop_api_client-0.1.0a17 → runloop_api_client-0.1.0a18}/src/runloop_api_client/types/blueprint_build_parameters.py +0 -0
- {runloop_api_client-0.1.0a17 → runloop_api_client-0.1.0a18}/src/runloop_api_client/types/blueprint_create_params.py +0 -0
- {runloop_api_client-0.1.0a17 → runloop_api_client-0.1.0a18}/src/runloop_api_client/types/blueprint_list_params.py +0 -0
- {runloop_api_client-0.1.0a17 → runloop_api_client-0.1.0a18}/src/runloop_api_client/types/blueprint_list_view.py +0 -0
- {runloop_api_client-0.1.0a17 → runloop_api_client-0.1.0a18}/src/runloop_api_client/types/blueprint_preview_params.py +0 -0
- {runloop_api_client-0.1.0a17 → runloop_api_client-0.1.0a18}/src/runloop_api_client/types/blueprint_preview_view.py +0 -0
- {runloop_api_client-0.1.0a17 → runloop_api_client-0.1.0a18}/src/runloop_api_client/types/blueprint_view.py +0 -0
- {runloop_api_client-0.1.0a17 → runloop_api_client-0.1.0a18}/src/runloop_api_client/types/code_mount_parameters.py +0 -0
- {runloop_api_client-0.1.0a17 → runloop_api_client-0.1.0a18}/src/runloop_api_client/types/code_mount_parameters_param.py +0 -0
- {runloop_api_client-0.1.0a17 → runloop_api_client-0.1.0a18}/src/runloop_api_client/types/devbox_async_execution_detail_view.py +0 -0
- {runloop_api_client-0.1.0a17 → runloop_api_client-0.1.0a18}/src/runloop_api_client/types/devbox_create_params.py +0 -0
- {runloop_api_client-0.1.0a17 → runloop_api_client-0.1.0a18}/src/runloop_api_client/types/devbox_create_ssh_key_response.py +0 -0
- {runloop_api_client-0.1.0a17 → runloop_api_client-0.1.0a18}/src/runloop_api_client/types/devbox_execute_sync_params.py +0 -0
- {runloop_api_client-0.1.0a17 → runloop_api_client-0.1.0a18}/src/runloop_api_client/types/devbox_execution_detail_view.py +0 -0
- {runloop_api_client-0.1.0a17 → runloop_api_client-0.1.0a18}/src/runloop_api_client/types/devbox_list_params.py +0 -0
- {runloop_api_client-0.1.0a17 → runloop_api_client-0.1.0a18}/src/runloop_api_client/types/devbox_list_view.py +0 -0
- {runloop_api_client-0.1.0a17 → runloop_api_client-0.1.0a18}/src/runloop_api_client/types/devbox_read_file_contents_params.py +0 -0
- {runloop_api_client-0.1.0a17 → runloop_api_client-0.1.0a18}/src/runloop_api_client/types/devbox_read_file_contents_response.py +0 -0
- {runloop_api_client-0.1.0a17 → runloop_api_client-0.1.0a18}/src/runloop_api_client/types/devbox_upload_file_params.py +0 -0
- {runloop_api_client-0.1.0a17 → runloop_api_client-0.1.0a18}/src/runloop_api_client/types/devbox_view.py +0 -0
- {runloop_api_client-0.1.0a17 → runloop_api_client-0.1.0a18}/src/runloop_api_client/types/devbox_write_file_params.py +0 -0
- {runloop_api_client-0.1.0a17 → runloop_api_client-0.1.0a18}/src/runloop_api_client/types/devboxes/devbox_logs_list_view.py +0 -0
- {runloop_api_client-0.1.0a17 → runloop_api_client-0.1.0a18}/src/runloop_api_client/types/devboxes/execution_execute_sync_params.py +0 -0
- {runloop_api_client-0.1.0a17 → runloop_api_client-0.1.0a18}/src/runloop_api_client/types/devboxes/execution_retrieve_params.py +0 -0
- {runloop_api_client-0.1.0a17 → runloop_api_client-0.1.0a18}/src/runloop_api_client/types/function_invoke_async_params.py +0 -0
- {runloop_api_client-0.1.0a17 → runloop_api_client-0.1.0a18}/src/runloop_api_client/types/function_invoke_sync_params.py +0 -0
- {runloop_api_client-0.1.0a17 → runloop_api_client-0.1.0a18}/src/runloop_api_client/types/function_list_view.py +0 -0
- {runloop_api_client-0.1.0a17 → runloop_api_client-0.1.0a18}/src/runloop_api_client/types/functions/__init__.py +0 -0
- {runloop_api_client-0.1.0a17 → runloop_api_client-0.1.0a18}/src/runloop_api_client/types/functions/function_invocation_list_view.py +0 -0
- {runloop_api_client-0.1.0a17 → runloop_api_client-0.1.0a18}/src/runloop_api_client/types/functions/invocation_list_params.py +0 -0
- {runloop_api_client-0.1.0a17 → runloop_api_client-0.1.0a18}/src/runloop_api_client/types/project_list_view.py +0 -0
- {runloop_api_client-0.1.0a17 → runloop_api_client-0.1.0a18}/src/runloop_api_client/types/projects/__init__.py +0 -0
- {runloop_api_client-0.1.0a17 → runloop_api_client-0.1.0a18}/src/runloop_api_client/types/resource_size.py +0 -0
- {runloop_api_client-0.1.0a17 → runloop_api_client-0.1.0a18}/src/runloop_api_client/types/shared/__init__.py +0 -0
- {runloop_api_client-0.1.0a17 → runloop_api_client-0.1.0a18}/src/runloop_api_client/types/shared/function_invocation_execution_detail_view.py +0 -0
- {runloop_api_client-0.1.0a17 → runloop_api_client-0.1.0a18}/src/runloop_api_client/types/shared/project_logs_view.py +0 -0
- {runloop_api_client-0.1.0a17 → runloop_api_client-0.1.0a18}/tests/__init__.py +0 -0
- {runloop_api_client-0.1.0a17 → runloop_api_client-0.1.0a18}/tests/api_resources/__init__.py +0 -0
- {runloop_api_client-0.1.0a17 → runloop_api_client-0.1.0a18}/tests/api_resources/devboxes/__init__.py +0 -0
- {runloop_api_client-0.1.0a17 → runloop_api_client-0.1.0a18}/tests/api_resources/functions/__init__.py +0 -0
- {runloop_api_client-0.1.0a17 → runloop_api_client-0.1.0a18}/tests/api_resources/functions/test_invocations.py +0 -0
- {runloop_api_client-0.1.0a17 → runloop_api_client-0.1.0a18}/tests/api_resources/projects/__init__.py +0 -0
- {runloop_api_client-0.1.0a17 → runloop_api_client-0.1.0a18}/tests/api_resources/projects/test_logs.py +0 -0
- {runloop_api_client-0.1.0a17 → runloop_api_client-0.1.0a18}/tests/api_resources/test_blueprints.py +0 -0
- {runloop_api_client-0.1.0a17 → runloop_api_client-0.1.0a18}/tests/api_resources/test_functions.py +0 -0
- {runloop_api_client-0.1.0a17 → runloop_api_client-0.1.0a18}/tests/api_resources/test_projects.py +0 -0
- {runloop_api_client-0.1.0a17 → runloop_api_client-0.1.0a18}/tests/conftest.py +0 -0
- {runloop_api_client-0.1.0a17 → runloop_api_client-0.1.0a18}/tests/sample_file.txt +0 -0
- {runloop_api_client-0.1.0a17 → runloop_api_client-0.1.0a18}/tests/test_client.py +0 -0
- {runloop_api_client-0.1.0a17 → runloop_api_client-0.1.0a18}/tests/test_deepcopy.py +0 -0
- {runloop_api_client-0.1.0a17 → runloop_api_client-0.1.0a18}/tests/test_extract_files.py +0 -0
- {runloop_api_client-0.1.0a17 → runloop_api_client-0.1.0a18}/tests/test_files.py +0 -0
- {runloop_api_client-0.1.0a17 → runloop_api_client-0.1.0a18}/tests/test_models.py +0 -0
- {runloop_api_client-0.1.0a17 → runloop_api_client-0.1.0a18}/tests/test_qs.py +0 -0
- {runloop_api_client-0.1.0a17 → runloop_api_client-0.1.0a18}/tests/test_required_args.py +0 -0
- {runloop_api_client-0.1.0a17 → runloop_api_client-0.1.0a18}/tests/test_response.py +0 -0
- {runloop_api_client-0.1.0a17 → runloop_api_client-0.1.0a18}/tests/test_streaming.py +0 -0
- {runloop_api_client-0.1.0a17 → runloop_api_client-0.1.0a18}/tests/test_transform.py +0 -0
- {runloop_api_client-0.1.0a17 → runloop_api_client-0.1.0a18}/tests/test_utils/test_proxy.py +0 -0
- {runloop_api_client-0.1.0a17 → runloop_api_client-0.1.0a18}/tests/test_utils/test_typing.py +0 -0
- {runloop_api_client-0.1.0a17 → runloop_api_client-0.1.0a18}/tests/utils.py +0 -0
|
@@ -1,5 +1,13 @@
|
|
|
1
1
|
# Changelog
|
|
2
2
|
|
|
3
|
+
## 0.1.0-alpha.18 (2024-08-28)
|
|
4
|
+
|
|
5
|
+
Full Changelog: [v0.1.0-alpha.17...v0.1.0-alpha.18](https://github.com/runloopai/api-client-python/compare/v0.1.0-alpha.17...v0.1.0-alpha.18)
|
|
6
|
+
|
|
7
|
+
### Features
|
|
8
|
+
|
|
9
|
+
* **api:** OpenAPI spec update via Stainless API ([#136](https://github.com/runloopai/api-client-python/issues/136)) ([ff032bf](https://github.com/runloopai/api-client-python/commit/ff032bfe0559d9057ff6c890349b5d002a60e6e6))
|
|
10
|
+
|
|
3
11
|
## 0.1.0-alpha.17 (2024-08-27)
|
|
4
12
|
|
|
5
13
|
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)
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
Metadata-Version: 2.3
|
|
2
2
|
Name: runloop_api_client
|
|
3
|
-
Version: 0.1.
|
|
3
|
+
Version: 0.1.0a18
|
|
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,6 +65,7 @@ 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>
|
|
68
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>
|
|
69
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>
|
|
70
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>
|
|
@@ -81,14 +82,13 @@ from runloop_api_client.types.devboxes import DevboxLogsListView
|
|
|
81
82
|
|
|
82
83
|
Methods:
|
|
83
84
|
|
|
84
|
-
- <code title="get /v1/devboxes/{id}/logs">client.devboxes.logs.<a href="./src/runloop_api_client/resources/devboxes/logs.py">list</a>(id
|
|
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>
|
|
85
86
|
|
|
86
87
|
## Executions
|
|
87
88
|
|
|
88
89
|
Methods:
|
|
89
90
|
|
|
90
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>
|
|
91
|
-
- <code title="post /v1/devboxes/{id}/execute_async">client.devboxes.executions.<a href="./src/runloop_api_client/resources/devboxes/executions.py">execute_async</a>(id, \*\*<a href="src/runloop_api_client/types/devboxes/execution_execute_async_params.py">params</a>) -> <a href="./src/runloop_api_client/types/devbox_async_execution_detail_view.py">DevboxAsyncExecutionDetailView</a></code>
|
|
92
92
|
- <code title="post /v1/devboxes/{id}/execute_sync">client.devboxes.executions.<a href="./src/runloop_api_client/resources/devboxes/executions.py">execute_sync</a>(id, \*\*<a href="src/runloop_api_client/types/devboxes/execution_execute_sync_params.py">params</a>) -> <a href="./src/runloop_api_client/types/devbox_execution_detail_view.py">DevboxExecutionDetailView</a></code>
|
|
93
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>
|
|
94
94
|
|
|
@@ -20,6 +20,7 @@ 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,
|
|
23
24
|
devbox_read_file_contents_params,
|
|
24
25
|
)
|
|
25
26
|
from ..._types import NOT_GIVEN, Body, Query, Headers, NotGiven, FileTypes
|
|
@@ -50,6 +51,7 @@ from ...types.devbox_view import DevboxView
|
|
|
50
51
|
from ...types.devbox_list_view import DevboxListView
|
|
51
52
|
from ...types.devbox_execution_detail_view import DevboxExecutionDetailView
|
|
52
53
|
from ...types.devbox_create_ssh_key_response import DevboxCreateSSHKeyResponse
|
|
54
|
+
from ...types.devbox_async_execution_detail_view import DevboxAsyncExecutionDetailView
|
|
53
55
|
|
|
54
56
|
__all__ = ["DevboxesResource", "AsyncDevboxesResource"]
|
|
55
57
|
|
|
@@ -269,6 +271,43 @@ class DevboxesResource(SyncAPIResource):
|
|
|
269
271
|
cast_to=DevboxCreateSSHKeyResponse,
|
|
270
272
|
)
|
|
271
273
|
|
|
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
|
+
|
|
272
311
|
def execute_sync(
|
|
273
312
|
self,
|
|
274
313
|
id: str,
|
|
@@ -690,6 +729,45 @@ class AsyncDevboxesResource(AsyncAPIResource):
|
|
|
690
729
|
cast_to=DevboxCreateSSHKeyResponse,
|
|
691
730
|
)
|
|
692
731
|
|
|
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
|
+
|
|
693
771
|
async def execute_sync(
|
|
694
772
|
self,
|
|
695
773
|
id: str,
|
|
@@ -912,6 +990,9 @@ class DevboxesResourceWithRawResponse:
|
|
|
912
990
|
self.create_ssh_key = to_raw_response_wrapper(
|
|
913
991
|
devboxes.create_ssh_key,
|
|
914
992
|
)
|
|
993
|
+
self.execute_async = to_raw_response_wrapper(
|
|
994
|
+
devboxes.execute_async,
|
|
995
|
+
)
|
|
915
996
|
self.execute_sync = to_raw_response_wrapper(
|
|
916
997
|
devboxes.execute_sync,
|
|
917
998
|
)
|
|
@@ -953,6 +1034,9 @@ class AsyncDevboxesResourceWithRawResponse:
|
|
|
953
1034
|
self.create_ssh_key = async_to_raw_response_wrapper(
|
|
954
1035
|
devboxes.create_ssh_key,
|
|
955
1036
|
)
|
|
1037
|
+
self.execute_async = async_to_raw_response_wrapper(
|
|
1038
|
+
devboxes.execute_async,
|
|
1039
|
+
)
|
|
956
1040
|
self.execute_sync = async_to_raw_response_wrapper(
|
|
957
1041
|
devboxes.execute_sync,
|
|
958
1042
|
)
|
|
@@ -994,6 +1078,9 @@ class DevboxesResourceWithStreamingResponse:
|
|
|
994
1078
|
self.create_ssh_key = to_streamed_response_wrapper(
|
|
995
1079
|
devboxes.create_ssh_key,
|
|
996
1080
|
)
|
|
1081
|
+
self.execute_async = to_streamed_response_wrapper(
|
|
1082
|
+
devboxes.execute_async,
|
|
1083
|
+
)
|
|
997
1084
|
self.execute_sync = to_streamed_response_wrapper(
|
|
998
1085
|
devboxes.execute_sync,
|
|
999
1086
|
)
|
|
@@ -1035,6 +1122,9 @@ class AsyncDevboxesResourceWithStreamingResponse:
|
|
|
1035
1122
|
self.create_ssh_key = async_to_streamed_response_wrapper(
|
|
1036
1123
|
devboxes.create_ssh_key,
|
|
1037
1124
|
)
|
|
1125
|
+
self.execute_async = async_to_streamed_response_wrapper(
|
|
1126
|
+
devboxes.execute_async,
|
|
1127
|
+
)
|
|
1038
1128
|
self.execute_sync = async_to_streamed_response_wrapper(
|
|
1039
1129
|
devboxes.execute_sync,
|
|
1040
1130
|
)
|
|
@@ -18,7 +18,7 @@ from ..._response import (
|
|
|
18
18
|
async_to_streamed_response_wrapper,
|
|
19
19
|
)
|
|
20
20
|
from ..._base_client import make_request_options
|
|
21
|
-
from ...types.devboxes import execution_retrieve_params, execution_execute_sync_params
|
|
21
|
+
from ...types.devboxes import execution_retrieve_params, execution_execute_sync_params
|
|
22
22
|
from ...types.devbox_execution_detail_view import DevboxExecutionDetailView
|
|
23
23
|
from ...types.devbox_async_execution_detail_view import DevboxAsyncExecutionDetailView
|
|
24
24
|
|
|
@@ -77,43 +77,6 @@ class ExecutionsResource(SyncAPIResource):
|
|
|
77
77
|
cast_to=DevboxAsyncExecutionDetailView,
|
|
78
78
|
)
|
|
79
79
|
|
|
80
|
-
def execute_async(
|
|
81
|
-
self,
|
|
82
|
-
id: str,
|
|
83
|
-
*,
|
|
84
|
-
command: str | NotGiven = NOT_GIVEN,
|
|
85
|
-
# Use the following arguments if you need to pass additional parameters to the API that aren't available via kwargs.
|
|
86
|
-
# The extra values given here take precedence over values defined on the client or passed to this method.
|
|
87
|
-
extra_headers: Headers | None = None,
|
|
88
|
-
extra_query: Query | None = None,
|
|
89
|
-
extra_body: Body | None = None,
|
|
90
|
-
timeout: float | httpx.Timeout | None | NotGiven = NOT_GIVEN,
|
|
91
|
-
) -> DevboxAsyncExecutionDetailView:
|
|
92
|
-
"""
|
|
93
|
-
Asynchronously execute a command on a devbox
|
|
94
|
-
|
|
95
|
-
Args:
|
|
96
|
-
command: The command to execute on the Devbox.
|
|
97
|
-
|
|
98
|
-
extra_headers: Send extra headers
|
|
99
|
-
|
|
100
|
-
extra_query: Add additional query parameters to the request
|
|
101
|
-
|
|
102
|
-
extra_body: Add additional JSON properties to the request
|
|
103
|
-
|
|
104
|
-
timeout: Override the client-level default timeout for this request, in seconds
|
|
105
|
-
"""
|
|
106
|
-
if not id:
|
|
107
|
-
raise ValueError(f"Expected a non-empty value for `id` but received {id!r}")
|
|
108
|
-
return self._post(
|
|
109
|
-
f"/v1/devboxes/{id}/execute_async",
|
|
110
|
-
body=maybe_transform({"command": command}, execution_execute_async_params.ExecutionExecuteAsyncParams),
|
|
111
|
-
options=make_request_options(
|
|
112
|
-
extra_headers=extra_headers, extra_query=extra_query, extra_body=extra_body, timeout=timeout
|
|
113
|
-
),
|
|
114
|
-
cast_to=DevboxAsyncExecutionDetailView,
|
|
115
|
-
)
|
|
116
|
-
|
|
117
80
|
def execute_sync(
|
|
118
81
|
self,
|
|
119
82
|
id: str,
|
|
@@ -242,45 +205,6 @@ class AsyncExecutionsResource(AsyncAPIResource):
|
|
|
242
205
|
cast_to=DevboxAsyncExecutionDetailView,
|
|
243
206
|
)
|
|
244
207
|
|
|
245
|
-
async def execute_async(
|
|
246
|
-
self,
|
|
247
|
-
id: str,
|
|
248
|
-
*,
|
|
249
|
-
command: str | NotGiven = NOT_GIVEN,
|
|
250
|
-
# Use the following arguments if you need to pass additional parameters to the API that aren't available via kwargs.
|
|
251
|
-
# The extra values given here take precedence over values defined on the client or passed to this method.
|
|
252
|
-
extra_headers: Headers | None = None,
|
|
253
|
-
extra_query: Query | None = None,
|
|
254
|
-
extra_body: Body | None = None,
|
|
255
|
-
timeout: float | httpx.Timeout | None | NotGiven = NOT_GIVEN,
|
|
256
|
-
) -> DevboxAsyncExecutionDetailView:
|
|
257
|
-
"""
|
|
258
|
-
Asynchronously execute a command on a devbox
|
|
259
|
-
|
|
260
|
-
Args:
|
|
261
|
-
command: The command to execute on the Devbox.
|
|
262
|
-
|
|
263
|
-
extra_headers: Send extra headers
|
|
264
|
-
|
|
265
|
-
extra_query: Add additional query parameters to the request
|
|
266
|
-
|
|
267
|
-
extra_body: Add additional JSON properties to the request
|
|
268
|
-
|
|
269
|
-
timeout: Override the client-level default timeout for this request, in seconds
|
|
270
|
-
"""
|
|
271
|
-
if not id:
|
|
272
|
-
raise ValueError(f"Expected a non-empty value for `id` but received {id!r}")
|
|
273
|
-
return await self._post(
|
|
274
|
-
f"/v1/devboxes/{id}/execute_async",
|
|
275
|
-
body=await async_maybe_transform(
|
|
276
|
-
{"command": command}, execution_execute_async_params.ExecutionExecuteAsyncParams
|
|
277
|
-
),
|
|
278
|
-
options=make_request_options(
|
|
279
|
-
extra_headers=extra_headers, extra_query=extra_query, extra_body=extra_body, timeout=timeout
|
|
280
|
-
),
|
|
281
|
-
cast_to=DevboxAsyncExecutionDetailView,
|
|
282
|
-
)
|
|
283
|
-
|
|
284
208
|
async def execute_sync(
|
|
285
209
|
self,
|
|
286
210
|
id: str,
|
|
@@ -364,9 +288,6 @@ class ExecutionsResourceWithRawResponse:
|
|
|
364
288
|
self.retrieve = to_raw_response_wrapper(
|
|
365
289
|
executions.retrieve,
|
|
366
290
|
)
|
|
367
|
-
self.execute_async = to_raw_response_wrapper(
|
|
368
|
-
executions.execute_async,
|
|
369
|
-
)
|
|
370
291
|
self.execute_sync = to_raw_response_wrapper(
|
|
371
292
|
executions.execute_sync,
|
|
372
293
|
)
|
|
@@ -382,9 +303,6 @@ class AsyncExecutionsResourceWithRawResponse:
|
|
|
382
303
|
self.retrieve = async_to_raw_response_wrapper(
|
|
383
304
|
executions.retrieve,
|
|
384
305
|
)
|
|
385
|
-
self.execute_async = async_to_raw_response_wrapper(
|
|
386
|
-
executions.execute_async,
|
|
387
|
-
)
|
|
388
306
|
self.execute_sync = async_to_raw_response_wrapper(
|
|
389
307
|
executions.execute_sync,
|
|
390
308
|
)
|
|
@@ -400,9 +318,6 @@ class ExecutionsResourceWithStreamingResponse:
|
|
|
400
318
|
self.retrieve = to_streamed_response_wrapper(
|
|
401
319
|
executions.retrieve,
|
|
402
320
|
)
|
|
403
|
-
self.execute_async = to_streamed_response_wrapper(
|
|
404
|
-
executions.execute_async,
|
|
405
|
-
)
|
|
406
321
|
self.execute_sync = to_streamed_response_wrapper(
|
|
407
322
|
executions.execute_sync,
|
|
408
323
|
)
|
|
@@ -418,9 +333,6 @@ class AsyncExecutionsResourceWithStreamingResponse:
|
|
|
418
333
|
self.retrieve = async_to_streamed_response_wrapper(
|
|
419
334
|
executions.retrieve,
|
|
420
335
|
)
|
|
421
|
-
self.execute_async = async_to_streamed_response_wrapper(
|
|
422
|
-
executions.execute_async,
|
|
423
|
-
)
|
|
424
336
|
self.execute_sync = async_to_streamed_response_wrapper(
|
|
425
337
|
executions.execute_sync,
|
|
426
338
|
)
|
|
@@ -5,10 +5,6 @@ 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
|
-
)
|
|
12
8
|
from ..._compat import cached_property
|
|
13
9
|
from ..._resource import SyncAPIResource, AsyncAPIResource
|
|
14
10
|
from ..._response import (
|
|
@@ -18,7 +14,6 @@ from ..._response import (
|
|
|
18
14
|
async_to_streamed_response_wrapper,
|
|
19
15
|
)
|
|
20
16
|
from ..._base_client import make_request_options
|
|
21
|
-
from ...types.devboxes import log_list_params
|
|
22
17
|
from ...types.devboxes.devbox_logs_list_view import DevboxLogsListView
|
|
23
18
|
|
|
24
19
|
__all__ = ["LogsResource", "AsyncLogsResource"]
|
|
@@ -37,7 +32,6 @@ class LogsResource(SyncAPIResource):
|
|
|
37
32
|
self,
|
|
38
33
|
id: str,
|
|
39
34
|
*,
|
|
40
|
-
execution_id: str | NotGiven = NOT_GIVEN,
|
|
41
35
|
# Use the following arguments if you need to pass additional parameters to the API that aren't available via kwargs.
|
|
42
36
|
# The extra values given here take precedence over values defined on the client or passed to this method.
|
|
43
37
|
extra_headers: Headers | None = None,
|
|
@@ -49,8 +43,6 @@ class LogsResource(SyncAPIResource):
|
|
|
49
43
|
Get all logs from a Devbox by id.
|
|
50
44
|
|
|
51
45
|
Args:
|
|
52
|
-
execution_id: Id of execution to filter logs by.
|
|
53
|
-
|
|
54
46
|
extra_headers: Send extra headers
|
|
55
47
|
|
|
56
48
|
extra_query: Add additional query parameters to the request
|
|
@@ -64,11 +56,7 @@ class LogsResource(SyncAPIResource):
|
|
|
64
56
|
return self._get(
|
|
65
57
|
f"/v1/devboxes/{id}/logs",
|
|
66
58
|
options=make_request_options(
|
|
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),
|
|
59
|
+
extra_headers=extra_headers, extra_query=extra_query, extra_body=extra_body, timeout=timeout
|
|
72
60
|
),
|
|
73
61
|
cast_to=DevboxLogsListView,
|
|
74
62
|
)
|
|
@@ -87,7 +75,6 @@ class AsyncLogsResource(AsyncAPIResource):
|
|
|
87
75
|
self,
|
|
88
76
|
id: str,
|
|
89
77
|
*,
|
|
90
|
-
execution_id: str | NotGiven = NOT_GIVEN,
|
|
91
78
|
# Use the following arguments if you need to pass additional parameters to the API that aren't available via kwargs.
|
|
92
79
|
# The extra values given here take precedence over values defined on the client or passed to this method.
|
|
93
80
|
extra_headers: Headers | None = None,
|
|
@@ -99,8 +86,6 @@ class AsyncLogsResource(AsyncAPIResource):
|
|
|
99
86
|
Get all logs from a Devbox by id.
|
|
100
87
|
|
|
101
88
|
Args:
|
|
102
|
-
execution_id: Id of execution to filter logs by.
|
|
103
|
-
|
|
104
89
|
extra_headers: Send extra headers
|
|
105
90
|
|
|
106
91
|
extra_query: Add additional query parameters to the request
|
|
@@ -114,11 +99,7 @@ class AsyncLogsResource(AsyncAPIResource):
|
|
|
114
99
|
return await self._get(
|
|
115
100
|
f"/v1/devboxes/{id}/logs",
|
|
116
101
|
options=make_request_options(
|
|
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),
|
|
102
|
+
extra_headers=extra_headers, extra_query=extra_query, extra_body=extra_body, timeout=timeout
|
|
122
103
|
),
|
|
123
104
|
cast_to=DevboxLogsListView,
|
|
124
105
|
)
|
{runloop_api_client-0.1.0a17 → runloop_api_client-0.1.0a18}/src/runloop_api_client/types/__init__.py
RENAMED
|
@@ -26,6 +26,7 @@ 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
|
|
29
30
|
from .function_invoke_sync_params import FunctionInvokeSyncParams as FunctionInvokeSyncParams
|
|
30
31
|
from .devbox_execution_detail_view import DevboxExecutionDetailView as DevboxExecutionDetailView
|
|
31
32
|
from .function_invoke_async_params import FunctionInvokeAsyncParams as FunctionInvokeAsyncParams
|
|
@@ -4,9 +4,9 @@ from __future__ import annotations
|
|
|
4
4
|
|
|
5
5
|
from typing_extensions import TypedDict
|
|
6
6
|
|
|
7
|
-
__all__ = ["
|
|
7
|
+
__all__ = ["DevboxExecuteAsyncParams"]
|
|
8
8
|
|
|
9
9
|
|
|
10
|
-
class
|
|
10
|
+
class DevboxExecuteAsyncParams(TypedDict, total=False):
|
|
11
11
|
command: str
|
|
12
12
|
"""The command to execute on the Devbox."""
|
|
@@ -2,8 +2,6 @@
|
|
|
2
2
|
|
|
3
3
|
from __future__ import annotations
|
|
4
4
|
|
|
5
|
-
from .log_list_params import LogListParams as LogListParams
|
|
6
5
|
from .devbox_logs_list_view import DevboxLogsListView as DevboxLogsListView
|
|
7
6
|
from .execution_retrieve_params import ExecutionRetrieveParams as ExecutionRetrieveParams
|
|
8
7
|
from .execution_execute_sync_params import ExecutionExecuteSyncParams as ExecutionExecuteSyncParams
|
|
9
|
-
from .execution_execute_async_params import ExecutionExecuteAsyncParams as ExecutionExecuteAsyncParams
|
|
@@ -74,52 +74,6 @@ class TestExecutions:
|
|
|
74
74
|
id="id",
|
|
75
75
|
)
|
|
76
76
|
|
|
77
|
-
@parametrize
|
|
78
|
-
def test_method_execute_async(self, client: Runloop) -> None:
|
|
79
|
-
execution = client.devboxes.executions.execute_async(
|
|
80
|
-
id="id",
|
|
81
|
-
)
|
|
82
|
-
assert_matches_type(DevboxAsyncExecutionDetailView, execution, path=["response"])
|
|
83
|
-
|
|
84
|
-
@parametrize
|
|
85
|
-
def test_method_execute_async_with_all_params(self, client: Runloop) -> None:
|
|
86
|
-
execution = client.devboxes.executions.execute_async(
|
|
87
|
-
id="id",
|
|
88
|
-
command="command",
|
|
89
|
-
)
|
|
90
|
-
assert_matches_type(DevboxAsyncExecutionDetailView, execution, path=["response"])
|
|
91
|
-
|
|
92
|
-
@parametrize
|
|
93
|
-
def test_raw_response_execute_async(self, client: Runloop) -> None:
|
|
94
|
-
response = client.devboxes.executions.with_raw_response.execute_async(
|
|
95
|
-
id="id",
|
|
96
|
-
)
|
|
97
|
-
|
|
98
|
-
assert response.is_closed is True
|
|
99
|
-
assert response.http_request.headers.get("X-Stainless-Lang") == "python"
|
|
100
|
-
execution = response.parse()
|
|
101
|
-
assert_matches_type(DevboxAsyncExecutionDetailView, execution, path=["response"])
|
|
102
|
-
|
|
103
|
-
@parametrize
|
|
104
|
-
def test_streaming_response_execute_async(self, client: Runloop) -> None:
|
|
105
|
-
with client.devboxes.executions.with_streaming_response.execute_async(
|
|
106
|
-
id="id",
|
|
107
|
-
) as response:
|
|
108
|
-
assert not response.is_closed
|
|
109
|
-
assert response.http_request.headers.get("X-Stainless-Lang") == "python"
|
|
110
|
-
|
|
111
|
-
execution = response.parse()
|
|
112
|
-
assert_matches_type(DevboxAsyncExecutionDetailView, execution, path=["response"])
|
|
113
|
-
|
|
114
|
-
assert cast(Any, response.is_closed) is True
|
|
115
|
-
|
|
116
|
-
@parametrize
|
|
117
|
-
def test_path_params_execute_async(self, client: Runloop) -> None:
|
|
118
|
-
with pytest.raises(ValueError, match=r"Expected a non-empty value for `id` but received ''"):
|
|
119
|
-
client.devboxes.executions.with_raw_response.execute_async(
|
|
120
|
-
id="",
|
|
121
|
-
)
|
|
122
|
-
|
|
123
77
|
@parametrize
|
|
124
78
|
def test_method_execute_sync(self, client: Runloop) -> None:
|
|
125
79
|
execution = client.devboxes.executions.execute_sync(
|
|
@@ -275,52 +229,6 @@ class TestAsyncExecutions:
|
|
|
275
229
|
id="id",
|
|
276
230
|
)
|
|
277
231
|
|
|
278
|
-
@parametrize
|
|
279
|
-
async def test_method_execute_async(self, async_client: AsyncRunloop) -> None:
|
|
280
|
-
execution = await async_client.devboxes.executions.execute_async(
|
|
281
|
-
id="id",
|
|
282
|
-
)
|
|
283
|
-
assert_matches_type(DevboxAsyncExecutionDetailView, execution, path=["response"])
|
|
284
|
-
|
|
285
|
-
@parametrize
|
|
286
|
-
async def test_method_execute_async_with_all_params(self, async_client: AsyncRunloop) -> None:
|
|
287
|
-
execution = await async_client.devboxes.executions.execute_async(
|
|
288
|
-
id="id",
|
|
289
|
-
command="command",
|
|
290
|
-
)
|
|
291
|
-
assert_matches_type(DevboxAsyncExecutionDetailView, execution, path=["response"])
|
|
292
|
-
|
|
293
|
-
@parametrize
|
|
294
|
-
async def test_raw_response_execute_async(self, async_client: AsyncRunloop) -> None:
|
|
295
|
-
response = await async_client.devboxes.executions.with_raw_response.execute_async(
|
|
296
|
-
id="id",
|
|
297
|
-
)
|
|
298
|
-
|
|
299
|
-
assert response.is_closed is True
|
|
300
|
-
assert response.http_request.headers.get("X-Stainless-Lang") == "python"
|
|
301
|
-
execution = await response.parse()
|
|
302
|
-
assert_matches_type(DevboxAsyncExecutionDetailView, execution, path=["response"])
|
|
303
|
-
|
|
304
|
-
@parametrize
|
|
305
|
-
async def test_streaming_response_execute_async(self, async_client: AsyncRunloop) -> None:
|
|
306
|
-
async with async_client.devboxes.executions.with_streaming_response.execute_async(
|
|
307
|
-
id="id",
|
|
308
|
-
) as response:
|
|
309
|
-
assert not response.is_closed
|
|
310
|
-
assert response.http_request.headers.get("X-Stainless-Lang") == "python"
|
|
311
|
-
|
|
312
|
-
execution = await response.parse()
|
|
313
|
-
assert_matches_type(DevboxAsyncExecutionDetailView, execution, path=["response"])
|
|
314
|
-
|
|
315
|
-
assert cast(Any, response.is_closed) is True
|
|
316
|
-
|
|
317
|
-
@parametrize
|
|
318
|
-
async def test_path_params_execute_async(self, async_client: AsyncRunloop) -> None:
|
|
319
|
-
with pytest.raises(ValueError, match=r"Expected a non-empty value for `id` but received ''"):
|
|
320
|
-
await async_client.devboxes.executions.with_raw_response.execute_async(
|
|
321
|
-
id="",
|
|
322
|
-
)
|
|
323
|
-
|
|
324
232
|
@parametrize
|
|
325
233
|
async def test_method_execute_sync(self, async_client: AsyncRunloop) -> None:
|
|
326
234
|
execution = await async_client.devboxes.executions.execute_sync(
|
|
@@ -20,22 +20,14 @@ class TestLogs:
|
|
|
20
20
|
@parametrize
|
|
21
21
|
def test_method_list(self, client: Runloop) -> None:
|
|
22
22
|
log = client.devboxes.logs.list(
|
|
23
|
-
|
|
24
|
-
)
|
|
25
|
-
assert_matches_type(DevboxLogsListView, log, path=["response"])
|
|
26
|
-
|
|
27
|
-
@parametrize
|
|
28
|
-
def test_method_list_with_all_params(self, client: Runloop) -> None:
|
|
29
|
-
log = client.devboxes.logs.list(
|
|
30
|
-
id="id",
|
|
31
|
-
execution_id="execution_id",
|
|
23
|
+
"id",
|
|
32
24
|
)
|
|
33
25
|
assert_matches_type(DevboxLogsListView, log, path=["response"])
|
|
34
26
|
|
|
35
27
|
@parametrize
|
|
36
28
|
def test_raw_response_list(self, client: Runloop) -> None:
|
|
37
29
|
response = client.devboxes.logs.with_raw_response.list(
|
|
38
|
-
|
|
30
|
+
"id",
|
|
39
31
|
)
|
|
40
32
|
|
|
41
33
|
assert response.is_closed is True
|
|
@@ -46,7 +38,7 @@ class TestLogs:
|
|
|
46
38
|
@parametrize
|
|
47
39
|
def test_streaming_response_list(self, client: Runloop) -> None:
|
|
48
40
|
with client.devboxes.logs.with_streaming_response.list(
|
|
49
|
-
|
|
41
|
+
"id",
|
|
50
42
|
) as response:
|
|
51
43
|
assert not response.is_closed
|
|
52
44
|
assert response.http_request.headers.get("X-Stainless-Lang") == "python"
|
|
@@ -60,7 +52,7 @@ class TestLogs:
|
|
|
60
52
|
def test_path_params_list(self, client: Runloop) -> None:
|
|
61
53
|
with pytest.raises(ValueError, match=r"Expected a non-empty value for `id` but received ''"):
|
|
62
54
|
client.devboxes.logs.with_raw_response.list(
|
|
63
|
-
|
|
55
|
+
"",
|
|
64
56
|
)
|
|
65
57
|
|
|
66
58
|
|
|
@@ -70,22 +62,14 @@ class TestAsyncLogs:
|
|
|
70
62
|
@parametrize
|
|
71
63
|
async def test_method_list(self, async_client: AsyncRunloop) -> None:
|
|
72
64
|
log = await async_client.devboxes.logs.list(
|
|
73
|
-
|
|
74
|
-
)
|
|
75
|
-
assert_matches_type(DevboxLogsListView, log, path=["response"])
|
|
76
|
-
|
|
77
|
-
@parametrize
|
|
78
|
-
async def test_method_list_with_all_params(self, async_client: AsyncRunloop) -> None:
|
|
79
|
-
log = await async_client.devboxes.logs.list(
|
|
80
|
-
id="id",
|
|
81
|
-
execution_id="execution_id",
|
|
65
|
+
"id",
|
|
82
66
|
)
|
|
83
67
|
assert_matches_type(DevboxLogsListView, log, path=["response"])
|
|
84
68
|
|
|
85
69
|
@parametrize
|
|
86
70
|
async def test_raw_response_list(self, async_client: AsyncRunloop) -> None:
|
|
87
71
|
response = await async_client.devboxes.logs.with_raw_response.list(
|
|
88
|
-
|
|
72
|
+
"id",
|
|
89
73
|
)
|
|
90
74
|
|
|
91
75
|
assert response.is_closed is True
|
|
@@ -96,7 +80,7 @@ class TestAsyncLogs:
|
|
|
96
80
|
@parametrize
|
|
97
81
|
async def test_streaming_response_list(self, async_client: AsyncRunloop) -> None:
|
|
98
82
|
async with async_client.devboxes.logs.with_streaming_response.list(
|
|
99
|
-
|
|
83
|
+
"id",
|
|
100
84
|
) as response:
|
|
101
85
|
assert not response.is_closed
|
|
102
86
|
assert response.http_request.headers.get("X-Stainless-Lang") == "python"
|
|
@@ -110,5 +94,5 @@ class TestAsyncLogs:
|
|
|
110
94
|
async def test_path_params_list(self, async_client: AsyncRunloop) -> None:
|
|
111
95
|
with pytest.raises(ValueError, match=r"Expected a non-empty value for `id` but received ''"):
|
|
112
96
|
await async_client.devboxes.logs.with_raw_response.list(
|
|
113
|
-
|
|
97
|
+
"",
|
|
114
98
|
)
|