runloop-api-client 0.1.0a8__tar.gz → 0.1.0a10__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.0a10/.release-please-manifest.json +3 -0
- {runloop_api_client-0.1.0a8 → runloop_api_client-0.1.0a10}/CHANGELOG.md +16 -0
- {runloop_api_client-0.1.0a8 → runloop_api_client-0.1.0a10}/PKG-INFO +1 -1
- {runloop_api_client-0.1.0a8 → runloop_api_client-0.1.0a10}/api.md +10 -16
- {runloop_api_client-0.1.0a8 → runloop_api_client-0.1.0a10}/pyproject.toml +1 -1
- {runloop_api_client-0.1.0a8 → runloop_api_client-0.1.0a10}/src/runloop_api_client/_version.py +1 -1
- {runloop_api_client-0.1.0a8 → runloop_api_client-0.1.0a10}/src/runloop_api_client/resources/devboxes/devboxes.py +197 -1
- {runloop_api_client-0.1.0a8 → runloop_api_client-0.1.0a10}/src/runloop_api_client/resources/functions/functions.py +9 -11
- {runloop_api_client-0.1.0a8/src/runloop_api_client/resources/functions/invocations → runloop_api_client-0.1.0a10/src/runloop_api_client/resources/functions}/invocations.py +13 -13
- {runloop_api_client-0.1.0a8 → runloop_api_client-0.1.0a10}/src/runloop_api_client/types/__init__.py +6 -3
- runloop_api_client-0.1.0a10/src/runloop_api_client/types/devbox_read_file_params.py +12 -0
- runloop_api_client-0.1.0a10/src/runloop_api_client/types/devbox_write_file_params.py +15 -0
- {runloop_api_client-0.1.0a8 → runloop_api_client-0.1.0a10}/src/runloop_api_client/types/functions/__init__.py +0 -1
- {runloop_api_client-0.1.0a8 → runloop_api_client-0.1.0a10}/src/runloop_api_client/types/shared/__init__.py +3 -0
- runloop_api_client-0.1.0a8/src/runloop_api_client/types/functions/invocation_retrieve_response.py → runloop_api_client-0.1.0a10/src/runloop_api_client/types/shared/function_invocation_execution_detail_view.py +2 -2
- {runloop_api_client-0.1.0a8 → runloop_api_client-0.1.0a10}/tests/api_resources/functions/test_invocations.py +8 -10
- {runloop_api_client-0.1.0a8 → runloop_api_client-0.1.0a10}/tests/api_resources/test_devboxes.py +186 -0
- {runloop_api_client-0.1.0a8 → runloop_api_client-0.1.0a10}/tests/api_resources/test_functions.py +18 -21
- runloop_api_client-0.1.0a8/.release-please-manifest.json +0 -3
- runloop_api_client-0.1.0a8/src/runloop_api_client/resources/functions/invocations/__init__.py +0 -19
- runloop_api_client-0.1.0a8/src/runloop_api_client/types/function_invoke_async_response.py +0 -42
- runloop_api_client-0.1.0a8/src/runloop_api_client/types/function_invoke_sync_response.py +0 -42
- runloop_api_client-0.1.0a8/src/runloop_api_client/types/projects/__init__.py +0 -3
- runloop_api_client-0.1.0a8/tests/api_resources/projects/__init__.py +0 -1
- {runloop_api_client-0.1.0a8 → runloop_api_client-0.1.0a10}/.gitignore +0 -0
- {runloop_api_client-0.1.0a8 → runloop_api_client-0.1.0a10}/CONTRIBUTING.md +0 -0
- {runloop_api_client-0.1.0a8 → runloop_api_client-0.1.0a10}/LICENSE +0 -0
- {runloop_api_client-0.1.0a8 → runloop_api_client-0.1.0a10}/README.md +0 -0
- {runloop_api_client-0.1.0a8 → runloop_api_client-0.1.0a10}/SECURITY.md +0 -0
- {runloop_api_client-0.1.0a8 → runloop_api_client-0.1.0a10}/bin/check-release-environment +0 -0
- {runloop_api_client-0.1.0a8 → runloop_api_client-0.1.0a10}/bin/publish-pypi +0 -0
- {runloop_api_client-0.1.0a8 → runloop_api_client-0.1.0a10}/examples/.keep +0 -0
- {runloop_api_client-0.1.0a8 → runloop_api_client-0.1.0a10}/mypy.ini +0 -0
- {runloop_api_client-0.1.0a8 → runloop_api_client-0.1.0a10}/noxfile.py +0 -0
- {runloop_api_client-0.1.0a8 → runloop_api_client-0.1.0a10}/release-please-config.json +0 -0
- {runloop_api_client-0.1.0a8 → runloop_api_client-0.1.0a10}/requirements-dev.lock +0 -0
- {runloop_api_client-0.1.0a8 → runloop_api_client-0.1.0a10}/requirements.lock +0 -0
- {runloop_api_client-0.1.0a8 → runloop_api_client-0.1.0a10}/src/runloop/lib/.keep +0 -0
- {runloop_api_client-0.1.0a8 → runloop_api_client-0.1.0a10}/src/runloop_api_client/__init__.py +0 -0
- {runloop_api_client-0.1.0a8 → runloop_api_client-0.1.0a10}/src/runloop_api_client/_base_client.py +0 -0
- {runloop_api_client-0.1.0a8 → runloop_api_client-0.1.0a10}/src/runloop_api_client/_client.py +0 -0
- {runloop_api_client-0.1.0a8 → runloop_api_client-0.1.0a10}/src/runloop_api_client/_compat.py +0 -0
- {runloop_api_client-0.1.0a8 → runloop_api_client-0.1.0a10}/src/runloop_api_client/_constants.py +0 -0
- {runloop_api_client-0.1.0a8 → runloop_api_client-0.1.0a10}/src/runloop_api_client/_exceptions.py +0 -0
- {runloop_api_client-0.1.0a8 → runloop_api_client-0.1.0a10}/src/runloop_api_client/_files.py +0 -0
- {runloop_api_client-0.1.0a8 → runloop_api_client-0.1.0a10}/src/runloop_api_client/_models.py +0 -0
- {runloop_api_client-0.1.0a8 → runloop_api_client-0.1.0a10}/src/runloop_api_client/_qs.py +0 -0
- {runloop_api_client-0.1.0a8 → runloop_api_client-0.1.0a10}/src/runloop_api_client/_resource.py +0 -0
- {runloop_api_client-0.1.0a8 → runloop_api_client-0.1.0a10}/src/runloop_api_client/_response.py +0 -0
- {runloop_api_client-0.1.0a8 → runloop_api_client-0.1.0a10}/src/runloop_api_client/_streaming.py +0 -0
- {runloop_api_client-0.1.0a8 → runloop_api_client-0.1.0a10}/src/runloop_api_client/_types.py +0 -0
- {runloop_api_client-0.1.0a8 → runloop_api_client-0.1.0a10}/src/runloop_api_client/_utils/__init__.py +0 -0
- {runloop_api_client-0.1.0a8 → runloop_api_client-0.1.0a10}/src/runloop_api_client/_utils/_logs.py +0 -0
- {runloop_api_client-0.1.0a8 → runloop_api_client-0.1.0a10}/src/runloop_api_client/_utils/_proxy.py +0 -0
- {runloop_api_client-0.1.0a8 → runloop_api_client-0.1.0a10}/src/runloop_api_client/_utils/_reflection.py +0 -0
- {runloop_api_client-0.1.0a8 → runloop_api_client-0.1.0a10}/src/runloop_api_client/_utils/_streams.py +0 -0
- {runloop_api_client-0.1.0a8 → runloop_api_client-0.1.0a10}/src/runloop_api_client/_utils/_sync.py +0 -0
- {runloop_api_client-0.1.0a8 → runloop_api_client-0.1.0a10}/src/runloop_api_client/_utils/_transform.py +0 -0
- {runloop_api_client-0.1.0a8 → runloop_api_client-0.1.0a10}/src/runloop_api_client/_utils/_typing.py +0 -0
- {runloop_api_client-0.1.0a8 → runloop_api_client-0.1.0a10}/src/runloop_api_client/_utils/_utils.py +0 -0
- {runloop_api_client-0.1.0a8 → runloop_api_client-0.1.0a10}/src/runloop_api_client/lib/.keep +0 -0
- {runloop_api_client-0.1.0a8 → runloop_api_client-0.1.0a10}/src/runloop_api_client/py.typed +0 -0
- {runloop_api_client-0.1.0a8 → runloop_api_client-0.1.0a10}/src/runloop_api_client/resources/__init__.py +0 -0
- {runloop_api_client-0.1.0a8 → runloop_api_client-0.1.0a10}/src/runloop_api_client/resources/blueprints.py +0 -0
- {runloop_api_client-0.1.0a8 → runloop_api_client-0.1.0a10}/src/runloop_api_client/resources/devboxes/__init__.py +0 -0
- {runloop_api_client-0.1.0a8 → runloop_api_client-0.1.0a10}/src/runloop_api_client/resources/devboxes/logs.py +0 -0
- {runloop_api_client-0.1.0a8 → runloop_api_client-0.1.0a10}/src/runloop_api_client/resources/functions/__init__.py +0 -0
- {runloop_api_client-0.1.0a8 → runloop_api_client-0.1.0a10}/src/runloop_api_client/resources/projects/__init__.py +0 -0
- {runloop_api_client-0.1.0a8 → runloop_api_client-0.1.0a10}/src/runloop_api_client/resources/projects/logs.py +0 -0
- {runloop_api_client-0.1.0a8 → runloop_api_client-0.1.0a10}/src/runloop_api_client/resources/projects/projects.py +0 -0
- {runloop_api_client-0.1.0a8 → runloop_api_client-0.1.0a10}/src/runloop_api_client/types/blueprint_build_log.py +0 -0
- {runloop_api_client-0.1.0a8 → runloop_api_client-0.1.0a10}/src/runloop_api_client/types/blueprint_build_logs_list_view.py +0 -0
- {runloop_api_client-0.1.0a8 → runloop_api_client-0.1.0a10}/src/runloop_api_client/types/blueprint_build_parameters.py +0 -0
- {runloop_api_client-0.1.0a8 → runloop_api_client-0.1.0a10}/src/runloop_api_client/types/blueprint_create_params.py +0 -0
- {runloop_api_client-0.1.0a8 → runloop_api_client-0.1.0a10}/src/runloop_api_client/types/blueprint_list_params.py +0 -0
- {runloop_api_client-0.1.0a8 → runloop_api_client-0.1.0a10}/src/runloop_api_client/types/blueprint_list_view.py +0 -0
- {runloop_api_client-0.1.0a8 → runloop_api_client-0.1.0a10}/src/runloop_api_client/types/blueprint_preview_params.py +0 -0
- {runloop_api_client-0.1.0a8 → runloop_api_client-0.1.0a10}/src/runloop_api_client/types/blueprint_preview_view.py +0 -0
- {runloop_api_client-0.1.0a8 → runloop_api_client-0.1.0a10}/src/runloop_api_client/types/blueprint_view.py +0 -0
- {runloop_api_client-0.1.0a8 → runloop_api_client-0.1.0a10}/src/runloop_api_client/types/code_mount_parameters.py +0 -0
- {runloop_api_client-0.1.0a8 → runloop_api_client-0.1.0a10}/src/runloop_api_client/types/code_mount_parameters_param.py +0 -0
- {runloop_api_client-0.1.0a8 → runloop_api_client-0.1.0a10}/src/runloop_api_client/types/devbox_create_params.py +0 -0
- {runloop_api_client-0.1.0a8 → runloop_api_client-0.1.0a10}/src/runloop_api_client/types/devbox_execute_sync_params.py +0 -0
- {runloop_api_client-0.1.0a8 → runloop_api_client-0.1.0a10}/src/runloop_api_client/types/devbox_execution_detail_view.py +0 -0
- {runloop_api_client-0.1.0a8 → runloop_api_client-0.1.0a10}/src/runloop_api_client/types/devbox_list_params.py +0 -0
- {runloop_api_client-0.1.0a8 → runloop_api_client-0.1.0a10}/src/runloop_api_client/types/devbox_list_view.py +0 -0
- {runloop_api_client-0.1.0a8 → runloop_api_client-0.1.0a10}/src/runloop_api_client/types/devbox_view.py +0 -0
- {runloop_api_client-0.1.0a8 → runloop_api_client-0.1.0a10}/src/runloop_api_client/types/devboxes/__init__.py +0 -0
- {runloop_api_client-0.1.0a8 → runloop_api_client-0.1.0a10}/src/runloop_api_client/types/devboxes/devbox_logs_list_view.py +0 -0
- {runloop_api_client-0.1.0a8 → runloop_api_client-0.1.0a10}/src/runloop_api_client/types/function_invoke_async_params.py +0 -0
- {runloop_api_client-0.1.0a8 → runloop_api_client-0.1.0a10}/src/runloop_api_client/types/function_invoke_sync_params.py +0 -0
- {runloop_api_client-0.1.0a8 → runloop_api_client-0.1.0a10}/src/runloop_api_client/types/function_list_view.py +0 -0
- {runloop_api_client-0.1.0a8 → runloop_api_client-0.1.0a10}/src/runloop_api_client/types/functions/function_invocation_list_view.py +0 -0
- {runloop_api_client-0.1.0a8 → runloop_api_client-0.1.0a10}/src/runloop_api_client/types/functions/invocation_list_params.py +0 -0
- {runloop_api_client-0.1.0a8 → runloop_api_client-0.1.0a10}/src/runloop_api_client/types/project_list_view.py +0 -0
- {runloop_api_client-0.1.0a8/src/runloop_api_client/types/functions/invocations → runloop_api_client-0.1.0a10/src/runloop_api_client/types/projects}/__init__.py +0 -0
- {runloop_api_client-0.1.0a8 → runloop_api_client-0.1.0a10}/src/runloop_api_client/types/resource_size.py +0 -0
- {runloop_api_client-0.1.0a8 → runloop_api_client-0.1.0a10}/src/runloop_api_client/types/shared/project_logs_view.py +0 -0
- {runloop_api_client-0.1.0a8 → runloop_api_client-0.1.0a10}/tests/__init__.py +0 -0
- {runloop_api_client-0.1.0a8 → runloop_api_client-0.1.0a10}/tests/api_resources/__init__.py +0 -0
- {runloop_api_client-0.1.0a8 → runloop_api_client-0.1.0a10}/tests/api_resources/devboxes/__init__.py +0 -0
- {runloop_api_client-0.1.0a8 → runloop_api_client-0.1.0a10}/tests/api_resources/devboxes/test_logs.py +0 -0
- {runloop_api_client-0.1.0a8 → runloop_api_client-0.1.0a10}/tests/api_resources/functions/__init__.py +0 -0
- {runloop_api_client-0.1.0a8/tests/api_resources/functions/invocations → runloop_api_client-0.1.0a10/tests/api_resources/projects}/__init__.py +0 -0
- {runloop_api_client-0.1.0a8 → runloop_api_client-0.1.0a10}/tests/api_resources/projects/test_logs.py +0 -0
- {runloop_api_client-0.1.0a8 → runloop_api_client-0.1.0a10}/tests/api_resources/test_blueprints.py +0 -0
- {runloop_api_client-0.1.0a8 → runloop_api_client-0.1.0a10}/tests/api_resources/test_projects.py +0 -0
- {runloop_api_client-0.1.0a8 → runloop_api_client-0.1.0a10}/tests/conftest.py +0 -0
- {runloop_api_client-0.1.0a8 → runloop_api_client-0.1.0a10}/tests/sample_file.txt +0 -0
- {runloop_api_client-0.1.0a8 → runloop_api_client-0.1.0a10}/tests/test_client.py +0 -0
- {runloop_api_client-0.1.0a8 → runloop_api_client-0.1.0a10}/tests/test_deepcopy.py +0 -0
- {runloop_api_client-0.1.0a8 → runloop_api_client-0.1.0a10}/tests/test_extract_files.py +0 -0
- {runloop_api_client-0.1.0a8 → runloop_api_client-0.1.0a10}/tests/test_files.py +0 -0
- {runloop_api_client-0.1.0a8 → runloop_api_client-0.1.0a10}/tests/test_models.py +0 -0
- {runloop_api_client-0.1.0a8 → runloop_api_client-0.1.0a10}/tests/test_qs.py +0 -0
- {runloop_api_client-0.1.0a8 → runloop_api_client-0.1.0a10}/tests/test_required_args.py +0 -0
- {runloop_api_client-0.1.0a8 → runloop_api_client-0.1.0a10}/tests/test_response.py +0 -0
- {runloop_api_client-0.1.0a8 → runloop_api_client-0.1.0a10}/tests/test_streaming.py +0 -0
- {runloop_api_client-0.1.0a8 → runloop_api_client-0.1.0a10}/tests/test_transform.py +0 -0
- {runloop_api_client-0.1.0a8 → runloop_api_client-0.1.0a10}/tests/test_utils/test_proxy.py +0 -0
- {runloop_api_client-0.1.0a8 → runloop_api_client-0.1.0a10}/tests/test_utils/test_typing.py +0 -0
- {runloop_api_client-0.1.0a8 → runloop_api_client-0.1.0a10}/tests/utils.py +0 -0
|
@@ -1,5 +1,21 @@
|
|
|
1
1
|
# Changelog
|
|
2
2
|
|
|
3
|
+
## 0.1.0-alpha.10 (2024-08-02)
|
|
4
|
+
|
|
5
|
+
Full Changelog: [v0.1.0-alpha.9...v0.1.0-alpha.10](https://github.com/runloopai/api-client-python/compare/v0.1.0-alpha.9...v0.1.0-alpha.10)
|
|
6
|
+
|
|
7
|
+
### Features
|
|
8
|
+
|
|
9
|
+
* **api:** update via SDK Studio ([#63](https://github.com/runloopai/api-client-python/issues/63)) ([d2aefd1](https://github.com/runloopai/api-client-python/commit/d2aefd19566d6a90121cfd6b4a188a538b496d98))
|
|
10
|
+
|
|
11
|
+
## 0.1.0-alpha.9 (2024-08-01)
|
|
12
|
+
|
|
13
|
+
Full Changelog: [v0.1.0-alpha.8...v0.1.0-alpha.9](https://github.com/runloopai/api-client-python/compare/v0.1.0-alpha.8...v0.1.0-alpha.9)
|
|
14
|
+
|
|
15
|
+
### Chores
|
|
16
|
+
|
|
17
|
+
* update SDK settings ([#60](https://github.com/runloopai/api-client-python/issues/60)) ([0ccfd28](https://github.com/runloopai/api-client-python/commit/0ccfd28645206b0dedc2dac42e17fcaec14c293e))
|
|
18
|
+
|
|
3
19
|
## 0.1.0-alpha.8 (2024-08-01)
|
|
4
20
|
|
|
5
21
|
Full Changelog: [v0.1.0-alpha.7...v0.1.0-alpha.8](https://github.com/runloopai/api-client-python/compare/v0.1.0-alpha.7...v0.1.0-alpha.8)
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
Metadata-Version: 2.3
|
|
2
2
|
Name: runloop_api_client
|
|
3
|
-
Version: 0.1.
|
|
3
|
+
Version: 0.1.0a10
|
|
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
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
# Shared Types
|
|
2
2
|
|
|
3
3
|
```python
|
|
4
|
-
from runloop_api_client.types import ProjectLogsView
|
|
4
|
+
from runloop_api_client.types import FunctionInvocationExecutionDetailView, ProjectLogsView
|
|
5
5
|
```
|
|
6
6
|
|
|
7
7
|
# Account
|
|
@@ -57,7 +57,9 @@ Methods:
|
|
|
57
57
|
- <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>
|
|
58
58
|
- <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>
|
|
59
59
|
- <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>
|
|
60
|
+
- <code title="post /v1/devboxes/{id}/read_file">client.devboxes.<a href="./src/runloop_api_client/resources/devboxes/devboxes.py">read_file</a>(id, \*\*<a href="src/runloop_api_client/types/devbox_read_file_params.py">params</a>) -> <a href="./src/runloop_api_client/types/devbox_execution_detail_view.py">DevboxExecutionDetailView</a></code>
|
|
60
61
|
- <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>
|
|
62
|
+
- <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>
|
|
61
63
|
|
|
62
64
|
## Logs
|
|
63
65
|
|
|
@@ -76,36 +78,28 @@ Methods:
|
|
|
76
78
|
Types:
|
|
77
79
|
|
|
78
80
|
```python
|
|
79
|
-
from runloop_api_client.types import
|
|
80
|
-
FunctionListView,
|
|
81
|
-
FunctionInvokeAsyncResponse,
|
|
82
|
-
FunctionInvokeSyncResponse,
|
|
83
|
-
)
|
|
81
|
+
from runloop_api_client.types import FunctionListView
|
|
84
82
|
```
|
|
85
83
|
|
|
86
84
|
Methods:
|
|
87
85
|
|
|
88
86
|
- <code title="get /v1/functions">client.functions.<a href="./src/runloop_api_client/resources/functions/functions.py">list</a>() -> <a href="./src/runloop_api_client/types/function_list_view.py">FunctionListView</a></code>
|
|
89
|
-
- <code title="post /v1/functions/{project_name}/{function_name}/invoke_async">client.functions.<a href="./src/runloop_api_client/resources/functions/functions.py">invoke_async</a>(function_name, \*, project_name, \*\*<a href="src/runloop_api_client/types/function_invoke_async_params.py">params</a>) -> <a href="./src/runloop_api_client/types/
|
|
90
|
-
- <code title="post /v1/functions/{project_name}/{function_name}/invoke_sync">client.functions.<a href="./src/runloop_api_client/resources/functions/functions.py">invoke_sync</a>(function_name, \*, project_name, \*\*<a href="src/runloop_api_client/types/function_invoke_sync_params.py">params</a>) -> <a href="./src/runloop_api_client/types/
|
|
87
|
+
- <code title="post /v1/functions/{project_name}/{function_name}/invoke_async">client.functions.<a href="./src/runloop_api_client/resources/functions/functions.py">invoke_async</a>(function_name, \*, project_name, \*\*<a href="src/runloop_api_client/types/function_invoke_async_params.py">params</a>) -> <a href="./src/runloop_api_client/types/shared/function_invocation_execution_detail_view.py">FunctionInvocationExecutionDetailView</a></code>
|
|
88
|
+
- <code title="post /v1/functions/{project_name}/{function_name}/invoke_sync">client.functions.<a href="./src/runloop_api_client/resources/functions/functions.py">invoke_sync</a>(function_name, \*, project_name, \*\*<a href="src/runloop_api_client/types/function_invoke_sync_params.py">params</a>) -> <a href="./src/runloop_api_client/types/shared/function_invocation_execution_detail_view.py">FunctionInvocationExecutionDetailView</a></code>
|
|
91
89
|
|
|
92
90
|
## Invocations
|
|
93
91
|
|
|
94
92
|
Types:
|
|
95
93
|
|
|
96
94
|
```python
|
|
97
|
-
from runloop_api_client.types.functions import
|
|
98
|
-
FunctionInvocationListView,
|
|
99
|
-
KillOperationResponse,
|
|
100
|
-
InvocationRetrieveResponse,
|
|
101
|
-
)
|
|
95
|
+
from runloop_api_client.types.functions import FunctionInvocationListView, KillOperationResponse
|
|
102
96
|
```
|
|
103
97
|
|
|
104
98
|
Methods:
|
|
105
99
|
|
|
106
|
-
- <code title="get /v1/functions/invocations/{invocationId}">client.functions.invocations.<a href="./src/runloop_api_client/resources/functions/invocations
|
|
107
|
-
- <code title="get /v1/functions/invocations">client.functions.invocations.<a href="./src/runloop_api_client/resources/functions/invocations
|
|
108
|
-
- <code title="post /v1/functions/invocations/{invocationId}/kill">client.functions.invocations.<a href="./src/runloop_api_client/resources/functions/invocations
|
|
100
|
+
- <code title="get /v1/functions/invocations/{invocationId}">client.functions.invocations.<a href="./src/runloop_api_client/resources/functions/invocations.py">retrieve</a>(invocation_id) -> <a href="./src/runloop_api_client/types/shared/function_invocation_execution_detail_view.py">FunctionInvocationExecutionDetailView</a></code>
|
|
101
|
+
- <code title="get /v1/functions/invocations">client.functions.invocations.<a href="./src/runloop_api_client/resources/functions/invocations.py">list</a>(\*\*<a href="src/runloop_api_client/types/functions/invocation_list_params.py">params</a>) -> <a href="./src/runloop_api_client/types/functions/function_invocation_list_view.py">FunctionInvocationListView</a></code>
|
|
102
|
+
- <code title="post /v1/functions/invocations/{invocationId}/kill">client.functions.invocations.<a href="./src/runloop_api_client/resources/functions/invocations.py">kill</a>(invocation_id) -> <a href="./src/runloop_api_client/types/functions/kill_operation_response.py">object</a></code>
|
|
109
103
|
|
|
110
104
|
# Projects
|
|
111
105
|
|
|
@@ -14,7 +14,13 @@ from .logs import (
|
|
|
14
14
|
LogsResourceWithStreamingResponse,
|
|
15
15
|
AsyncLogsResourceWithStreamingResponse,
|
|
16
16
|
)
|
|
17
|
-
from ...types import
|
|
17
|
+
from ...types import (
|
|
18
|
+
devbox_list_params,
|
|
19
|
+
devbox_create_params,
|
|
20
|
+
devbox_read_file_params,
|
|
21
|
+
devbox_write_file_params,
|
|
22
|
+
devbox_execute_sync_params,
|
|
23
|
+
)
|
|
18
24
|
from ..._types import NOT_GIVEN, Body, Query, Headers, NotGiven
|
|
19
25
|
from ..._utils import (
|
|
20
26
|
maybe_transform,
|
|
@@ -247,6 +253,43 @@ class DevboxesResource(SyncAPIResource):
|
|
|
247
253
|
cast_to=DevboxExecutionDetailView,
|
|
248
254
|
)
|
|
249
255
|
|
|
256
|
+
def read_file(
|
|
257
|
+
self,
|
|
258
|
+
id: str,
|
|
259
|
+
*,
|
|
260
|
+
file_path: str | NotGiven = NOT_GIVEN,
|
|
261
|
+
# Use the following arguments if you need to pass additional parameters to the API that aren't available via kwargs.
|
|
262
|
+
# The extra values given here take precedence over values defined on the client or passed to this method.
|
|
263
|
+
extra_headers: Headers | None = None,
|
|
264
|
+
extra_query: Query | None = None,
|
|
265
|
+
extra_body: Body | None = None,
|
|
266
|
+
timeout: float | httpx.Timeout | None | NotGiven = NOT_GIVEN,
|
|
267
|
+
) -> DevboxExecutionDetailView:
|
|
268
|
+
"""
|
|
269
|
+
Read file contents from a file on given Devbox.
|
|
270
|
+
|
|
271
|
+
Args:
|
|
272
|
+
file_path: The path of the file to read.
|
|
273
|
+
|
|
274
|
+
extra_headers: Send extra headers
|
|
275
|
+
|
|
276
|
+
extra_query: Add additional query parameters to the request
|
|
277
|
+
|
|
278
|
+
extra_body: Add additional JSON properties to the request
|
|
279
|
+
|
|
280
|
+
timeout: Override the client-level default timeout for this request, in seconds
|
|
281
|
+
"""
|
|
282
|
+
if not id:
|
|
283
|
+
raise ValueError(f"Expected a non-empty value for `id` but received {id!r}")
|
|
284
|
+
return self._post(
|
|
285
|
+
f"/v1/devboxes/{id}/read_file",
|
|
286
|
+
body=maybe_transform({"file_path": file_path}, devbox_read_file_params.DevboxReadFileParams),
|
|
287
|
+
options=make_request_options(
|
|
288
|
+
extra_headers=extra_headers, extra_query=extra_query, extra_body=extra_body, timeout=timeout
|
|
289
|
+
),
|
|
290
|
+
cast_to=DevboxExecutionDetailView,
|
|
291
|
+
)
|
|
292
|
+
|
|
250
293
|
def shutdown(
|
|
251
294
|
self,
|
|
252
295
|
id: str,
|
|
@@ -281,6 +324,52 @@ class DevboxesResource(SyncAPIResource):
|
|
|
281
324
|
cast_to=DevboxView,
|
|
282
325
|
)
|
|
283
326
|
|
|
327
|
+
def write_file(
|
|
328
|
+
self,
|
|
329
|
+
id: str,
|
|
330
|
+
*,
|
|
331
|
+
contents: str | NotGiven = NOT_GIVEN,
|
|
332
|
+
file_path: str | NotGiven = NOT_GIVEN,
|
|
333
|
+
# Use the following arguments if you need to pass additional parameters to the API that aren't available via kwargs.
|
|
334
|
+
# The extra values given here take precedence over values defined on the client or passed to this method.
|
|
335
|
+
extra_headers: Headers | None = None,
|
|
336
|
+
extra_query: Query | None = None,
|
|
337
|
+
extra_body: Body | None = None,
|
|
338
|
+
timeout: float | httpx.Timeout | None | NotGiven = NOT_GIVEN,
|
|
339
|
+
) -> DevboxExecutionDetailView:
|
|
340
|
+
"""
|
|
341
|
+
Write contents to a file at path on the Devbox.
|
|
342
|
+
|
|
343
|
+
Args:
|
|
344
|
+
contents: The contents to write to file.
|
|
345
|
+
|
|
346
|
+
file_path: The path of the file to read.
|
|
347
|
+
|
|
348
|
+
extra_headers: Send extra headers
|
|
349
|
+
|
|
350
|
+
extra_query: Add additional query parameters to the request
|
|
351
|
+
|
|
352
|
+
extra_body: Add additional JSON properties to the request
|
|
353
|
+
|
|
354
|
+
timeout: Override the client-level default timeout for this request, in seconds
|
|
355
|
+
"""
|
|
356
|
+
if not id:
|
|
357
|
+
raise ValueError(f"Expected a non-empty value for `id` but received {id!r}")
|
|
358
|
+
return self._post(
|
|
359
|
+
f"/v1/devboxes/{id}/write_file",
|
|
360
|
+
body=maybe_transform(
|
|
361
|
+
{
|
|
362
|
+
"contents": contents,
|
|
363
|
+
"file_path": file_path,
|
|
364
|
+
},
|
|
365
|
+
devbox_write_file_params.DevboxWriteFileParams,
|
|
366
|
+
),
|
|
367
|
+
options=make_request_options(
|
|
368
|
+
extra_headers=extra_headers, extra_query=extra_query, extra_body=extra_body, timeout=timeout
|
|
369
|
+
),
|
|
370
|
+
cast_to=DevboxExecutionDetailView,
|
|
371
|
+
)
|
|
372
|
+
|
|
284
373
|
|
|
285
374
|
class AsyncDevboxesResource(AsyncAPIResource):
|
|
286
375
|
@cached_property
|
|
@@ -493,6 +582,43 @@ class AsyncDevboxesResource(AsyncAPIResource):
|
|
|
493
582
|
cast_to=DevboxExecutionDetailView,
|
|
494
583
|
)
|
|
495
584
|
|
|
585
|
+
async def read_file(
|
|
586
|
+
self,
|
|
587
|
+
id: str,
|
|
588
|
+
*,
|
|
589
|
+
file_path: str | NotGiven = NOT_GIVEN,
|
|
590
|
+
# Use the following arguments if you need to pass additional parameters to the API that aren't available via kwargs.
|
|
591
|
+
# The extra values given here take precedence over values defined on the client or passed to this method.
|
|
592
|
+
extra_headers: Headers | None = None,
|
|
593
|
+
extra_query: Query | None = None,
|
|
594
|
+
extra_body: Body | None = None,
|
|
595
|
+
timeout: float | httpx.Timeout | None | NotGiven = NOT_GIVEN,
|
|
596
|
+
) -> DevboxExecutionDetailView:
|
|
597
|
+
"""
|
|
598
|
+
Read file contents from a file on given Devbox.
|
|
599
|
+
|
|
600
|
+
Args:
|
|
601
|
+
file_path: The path of the file to read.
|
|
602
|
+
|
|
603
|
+
extra_headers: Send extra headers
|
|
604
|
+
|
|
605
|
+
extra_query: Add additional query parameters to the request
|
|
606
|
+
|
|
607
|
+
extra_body: Add additional JSON properties to the request
|
|
608
|
+
|
|
609
|
+
timeout: Override the client-level default timeout for this request, in seconds
|
|
610
|
+
"""
|
|
611
|
+
if not id:
|
|
612
|
+
raise ValueError(f"Expected a non-empty value for `id` but received {id!r}")
|
|
613
|
+
return await self._post(
|
|
614
|
+
f"/v1/devboxes/{id}/read_file",
|
|
615
|
+
body=await async_maybe_transform({"file_path": file_path}, devbox_read_file_params.DevboxReadFileParams),
|
|
616
|
+
options=make_request_options(
|
|
617
|
+
extra_headers=extra_headers, extra_query=extra_query, extra_body=extra_body, timeout=timeout
|
|
618
|
+
),
|
|
619
|
+
cast_to=DevboxExecutionDetailView,
|
|
620
|
+
)
|
|
621
|
+
|
|
496
622
|
async def shutdown(
|
|
497
623
|
self,
|
|
498
624
|
id: str,
|
|
@@ -527,6 +653,52 @@ class AsyncDevboxesResource(AsyncAPIResource):
|
|
|
527
653
|
cast_to=DevboxView,
|
|
528
654
|
)
|
|
529
655
|
|
|
656
|
+
async def write_file(
|
|
657
|
+
self,
|
|
658
|
+
id: str,
|
|
659
|
+
*,
|
|
660
|
+
contents: str | NotGiven = NOT_GIVEN,
|
|
661
|
+
file_path: str | NotGiven = NOT_GIVEN,
|
|
662
|
+
# Use the following arguments if you need to pass additional parameters to the API that aren't available via kwargs.
|
|
663
|
+
# The extra values given here take precedence over values defined on the client or passed to this method.
|
|
664
|
+
extra_headers: Headers | None = None,
|
|
665
|
+
extra_query: Query | None = None,
|
|
666
|
+
extra_body: Body | None = None,
|
|
667
|
+
timeout: float | httpx.Timeout | None | NotGiven = NOT_GIVEN,
|
|
668
|
+
) -> DevboxExecutionDetailView:
|
|
669
|
+
"""
|
|
670
|
+
Write contents to a file at path on the Devbox.
|
|
671
|
+
|
|
672
|
+
Args:
|
|
673
|
+
contents: The contents to write to file.
|
|
674
|
+
|
|
675
|
+
file_path: The path of the file to read.
|
|
676
|
+
|
|
677
|
+
extra_headers: Send extra headers
|
|
678
|
+
|
|
679
|
+
extra_query: Add additional query parameters to the request
|
|
680
|
+
|
|
681
|
+
extra_body: Add additional JSON properties to the request
|
|
682
|
+
|
|
683
|
+
timeout: Override the client-level default timeout for this request, in seconds
|
|
684
|
+
"""
|
|
685
|
+
if not id:
|
|
686
|
+
raise ValueError(f"Expected a non-empty value for `id` but received {id!r}")
|
|
687
|
+
return await self._post(
|
|
688
|
+
f"/v1/devboxes/{id}/write_file",
|
|
689
|
+
body=await async_maybe_transform(
|
|
690
|
+
{
|
|
691
|
+
"contents": contents,
|
|
692
|
+
"file_path": file_path,
|
|
693
|
+
},
|
|
694
|
+
devbox_write_file_params.DevboxWriteFileParams,
|
|
695
|
+
),
|
|
696
|
+
options=make_request_options(
|
|
697
|
+
extra_headers=extra_headers, extra_query=extra_query, extra_body=extra_body, timeout=timeout
|
|
698
|
+
),
|
|
699
|
+
cast_to=DevboxExecutionDetailView,
|
|
700
|
+
)
|
|
701
|
+
|
|
530
702
|
|
|
531
703
|
class DevboxesResourceWithRawResponse:
|
|
532
704
|
def __init__(self, devboxes: DevboxesResource) -> None:
|
|
@@ -544,9 +716,15 @@ class DevboxesResourceWithRawResponse:
|
|
|
544
716
|
self.execute_sync = to_raw_response_wrapper(
|
|
545
717
|
devboxes.execute_sync,
|
|
546
718
|
)
|
|
719
|
+
self.read_file = to_raw_response_wrapper(
|
|
720
|
+
devboxes.read_file,
|
|
721
|
+
)
|
|
547
722
|
self.shutdown = to_raw_response_wrapper(
|
|
548
723
|
devboxes.shutdown,
|
|
549
724
|
)
|
|
725
|
+
self.write_file = to_raw_response_wrapper(
|
|
726
|
+
devboxes.write_file,
|
|
727
|
+
)
|
|
550
728
|
|
|
551
729
|
@cached_property
|
|
552
730
|
def logs(self) -> LogsResourceWithRawResponse:
|
|
@@ -569,9 +747,15 @@ class AsyncDevboxesResourceWithRawResponse:
|
|
|
569
747
|
self.execute_sync = async_to_raw_response_wrapper(
|
|
570
748
|
devboxes.execute_sync,
|
|
571
749
|
)
|
|
750
|
+
self.read_file = async_to_raw_response_wrapper(
|
|
751
|
+
devboxes.read_file,
|
|
752
|
+
)
|
|
572
753
|
self.shutdown = async_to_raw_response_wrapper(
|
|
573
754
|
devboxes.shutdown,
|
|
574
755
|
)
|
|
756
|
+
self.write_file = async_to_raw_response_wrapper(
|
|
757
|
+
devboxes.write_file,
|
|
758
|
+
)
|
|
575
759
|
|
|
576
760
|
@cached_property
|
|
577
761
|
def logs(self) -> AsyncLogsResourceWithRawResponse:
|
|
@@ -594,9 +778,15 @@ class DevboxesResourceWithStreamingResponse:
|
|
|
594
778
|
self.execute_sync = to_streamed_response_wrapper(
|
|
595
779
|
devboxes.execute_sync,
|
|
596
780
|
)
|
|
781
|
+
self.read_file = to_streamed_response_wrapper(
|
|
782
|
+
devboxes.read_file,
|
|
783
|
+
)
|
|
597
784
|
self.shutdown = to_streamed_response_wrapper(
|
|
598
785
|
devboxes.shutdown,
|
|
599
786
|
)
|
|
787
|
+
self.write_file = to_streamed_response_wrapper(
|
|
788
|
+
devboxes.write_file,
|
|
789
|
+
)
|
|
600
790
|
|
|
601
791
|
@cached_property
|
|
602
792
|
def logs(self) -> LogsResourceWithStreamingResponse:
|
|
@@ -619,9 +809,15 @@ class AsyncDevboxesResourceWithStreamingResponse:
|
|
|
619
809
|
self.execute_sync = async_to_streamed_response_wrapper(
|
|
620
810
|
devboxes.execute_sync,
|
|
621
811
|
)
|
|
812
|
+
self.read_file = async_to_streamed_response_wrapper(
|
|
813
|
+
devboxes.read_file,
|
|
814
|
+
)
|
|
622
815
|
self.shutdown = async_to_streamed_response_wrapper(
|
|
623
816
|
devboxes.shutdown,
|
|
624
817
|
)
|
|
818
|
+
self.write_file = async_to_streamed_response_wrapper(
|
|
819
|
+
devboxes.write_file,
|
|
820
|
+
)
|
|
625
821
|
|
|
626
822
|
@cached_property
|
|
627
823
|
def logs(self) -> AsyncLogsResourceWithStreamingResponse:
|
|
@@ -27,10 +27,8 @@ from .invocations import (
|
|
|
27
27
|
AsyncInvocationsResourceWithStreamingResponse,
|
|
28
28
|
)
|
|
29
29
|
from ..._base_client import make_request_options
|
|
30
|
-
from .invocations.invocations import InvocationsResource, AsyncInvocationsResource
|
|
31
30
|
from ...types.function_list_view import FunctionListView
|
|
32
|
-
from ...types.
|
|
33
|
-
from ...types.function_invoke_async_response import FunctionInvokeAsyncResponse
|
|
31
|
+
from ...types.shared.function_invocation_execution_detail_view import FunctionInvocationExecutionDetailView
|
|
34
32
|
|
|
35
33
|
__all__ = ["FunctionsResource", "AsyncFunctionsResource"]
|
|
36
34
|
|
|
@@ -80,7 +78,7 @@ class FunctionsResource(SyncAPIResource):
|
|
|
80
78
|
extra_query: Query | None = None,
|
|
81
79
|
extra_body: Body | None = None,
|
|
82
80
|
timeout: float | httpx.Timeout | None | NotGiven = NOT_GIVEN,
|
|
83
|
-
) ->
|
|
81
|
+
) -> FunctionInvocationExecutionDetailView:
|
|
84
82
|
"""Invoke the remote function asynchronously.
|
|
85
83
|
|
|
86
84
|
This will return a job id that can be
|
|
@@ -113,7 +111,7 @@ class FunctionsResource(SyncAPIResource):
|
|
|
113
111
|
options=make_request_options(
|
|
114
112
|
extra_headers=extra_headers, extra_query=extra_query, extra_body=extra_body, timeout=timeout
|
|
115
113
|
),
|
|
116
|
-
cast_to=
|
|
114
|
+
cast_to=FunctionInvocationExecutionDetailView,
|
|
117
115
|
)
|
|
118
116
|
|
|
119
117
|
def invoke_sync(
|
|
@@ -129,7 +127,7 @@ class FunctionsResource(SyncAPIResource):
|
|
|
129
127
|
extra_query: Query | None = None,
|
|
130
128
|
extra_body: Body | None = None,
|
|
131
129
|
timeout: float | httpx.Timeout | None | NotGiven = NOT_GIVEN,
|
|
132
|
-
) ->
|
|
130
|
+
) -> FunctionInvocationExecutionDetailView:
|
|
133
131
|
"""Invoke the remote function synchronously.
|
|
134
132
|
|
|
135
133
|
This will block until the function
|
|
@@ -163,7 +161,7 @@ class FunctionsResource(SyncAPIResource):
|
|
|
163
161
|
options=make_request_options(
|
|
164
162
|
extra_headers=extra_headers, extra_query=extra_query, extra_body=extra_body, timeout=timeout
|
|
165
163
|
),
|
|
166
|
-
cast_to=
|
|
164
|
+
cast_to=FunctionInvocationExecutionDetailView,
|
|
167
165
|
)
|
|
168
166
|
|
|
169
167
|
|
|
@@ -212,7 +210,7 @@ class AsyncFunctionsResource(AsyncAPIResource):
|
|
|
212
210
|
extra_query: Query | None = None,
|
|
213
211
|
extra_body: Body | None = None,
|
|
214
212
|
timeout: float | httpx.Timeout | None | NotGiven = NOT_GIVEN,
|
|
215
|
-
) ->
|
|
213
|
+
) -> FunctionInvocationExecutionDetailView:
|
|
216
214
|
"""Invoke the remote function asynchronously.
|
|
217
215
|
|
|
218
216
|
This will return a job id that can be
|
|
@@ -245,7 +243,7 @@ class AsyncFunctionsResource(AsyncAPIResource):
|
|
|
245
243
|
options=make_request_options(
|
|
246
244
|
extra_headers=extra_headers, extra_query=extra_query, extra_body=extra_body, timeout=timeout
|
|
247
245
|
),
|
|
248
|
-
cast_to=
|
|
246
|
+
cast_to=FunctionInvocationExecutionDetailView,
|
|
249
247
|
)
|
|
250
248
|
|
|
251
249
|
async def invoke_sync(
|
|
@@ -261,7 +259,7 @@ class AsyncFunctionsResource(AsyncAPIResource):
|
|
|
261
259
|
extra_query: Query | None = None,
|
|
262
260
|
extra_body: Body | None = None,
|
|
263
261
|
timeout: float | httpx.Timeout | None | NotGiven = NOT_GIVEN,
|
|
264
|
-
) ->
|
|
262
|
+
) -> FunctionInvocationExecutionDetailView:
|
|
265
263
|
"""Invoke the remote function synchronously.
|
|
266
264
|
|
|
267
265
|
This will block until the function
|
|
@@ -295,7 +293,7 @@ class AsyncFunctionsResource(AsyncAPIResource):
|
|
|
295
293
|
options=make_request_options(
|
|
296
294
|
extra_headers=extra_headers, extra_query=extra_query, extra_body=extra_body, timeout=timeout
|
|
297
295
|
),
|
|
298
|
-
cast_to=
|
|
296
|
+
cast_to=FunctionInvocationExecutionDetailView,
|
|
299
297
|
)
|
|
300
298
|
|
|
301
299
|
|
|
@@ -4,23 +4,23 @@ from __future__ import annotations
|
|
|
4
4
|
|
|
5
5
|
import httpx
|
|
6
6
|
|
|
7
|
-
from
|
|
8
|
-
from
|
|
7
|
+
from ..._types import NOT_GIVEN, Body, Query, Headers, NotGiven
|
|
8
|
+
from ..._utils import (
|
|
9
9
|
maybe_transform,
|
|
10
10
|
async_maybe_transform,
|
|
11
11
|
)
|
|
12
|
-
from
|
|
13
|
-
from
|
|
14
|
-
from
|
|
12
|
+
from ..._compat import cached_property
|
|
13
|
+
from ..._resource import SyncAPIResource, AsyncAPIResource
|
|
14
|
+
from ..._response import (
|
|
15
15
|
to_raw_response_wrapper,
|
|
16
16
|
to_streamed_response_wrapper,
|
|
17
17
|
async_to_raw_response_wrapper,
|
|
18
18
|
async_to_streamed_response_wrapper,
|
|
19
19
|
)
|
|
20
|
-
from
|
|
21
|
-
from
|
|
22
|
-
from
|
|
23
|
-
from
|
|
20
|
+
from ..._base_client import make_request_options
|
|
21
|
+
from ...types.functions import invocation_list_params
|
|
22
|
+
from ...types.functions.function_invocation_list_view import FunctionInvocationListView
|
|
23
|
+
from ...types.shared.function_invocation_execution_detail_view import FunctionInvocationExecutionDetailView
|
|
24
24
|
|
|
25
25
|
__all__ = ["InvocationsResource", "AsyncInvocationsResource"]
|
|
26
26
|
|
|
@@ -44,7 +44,7 @@ class InvocationsResource(SyncAPIResource):
|
|
|
44
44
|
extra_query: Query | None = None,
|
|
45
45
|
extra_body: Body | None = None,
|
|
46
46
|
timeout: float | httpx.Timeout | None | NotGiven = NOT_GIVEN,
|
|
47
|
-
) ->
|
|
47
|
+
) -> FunctionInvocationExecutionDetailView:
|
|
48
48
|
"""Get the details of a function invocation.
|
|
49
49
|
|
|
50
50
|
This includes the status, response,
|
|
@@ -66,7 +66,7 @@ class InvocationsResource(SyncAPIResource):
|
|
|
66
66
|
options=make_request_options(
|
|
67
67
|
extra_headers=extra_headers, extra_query=extra_query, extra_body=extra_body, timeout=timeout
|
|
68
68
|
),
|
|
69
|
-
cast_to=
|
|
69
|
+
cast_to=FunctionInvocationExecutionDetailView,
|
|
70
70
|
)
|
|
71
71
|
|
|
72
72
|
def list(
|
|
@@ -169,7 +169,7 @@ class AsyncInvocationsResource(AsyncAPIResource):
|
|
|
169
169
|
extra_query: Query | None = None,
|
|
170
170
|
extra_body: Body | None = None,
|
|
171
171
|
timeout: float | httpx.Timeout | None | NotGiven = NOT_GIVEN,
|
|
172
|
-
) ->
|
|
172
|
+
) -> FunctionInvocationExecutionDetailView:
|
|
173
173
|
"""Get the details of a function invocation.
|
|
174
174
|
|
|
175
175
|
This includes the status, response,
|
|
@@ -191,7 +191,7 @@ class AsyncInvocationsResource(AsyncAPIResource):
|
|
|
191
191
|
options=make_request_options(
|
|
192
192
|
extra_headers=extra_headers, extra_query=extra_query, extra_body=extra_body, timeout=timeout
|
|
193
193
|
),
|
|
194
|
-
cast_to=
|
|
194
|
+
cast_to=FunctionInvocationExecutionDetailView,
|
|
195
195
|
)
|
|
196
196
|
|
|
197
197
|
async def list(
|
{runloop_api_client-0.1.0a8 → runloop_api_client-0.1.0a10}/src/runloop_api_client/types/__init__.py
RENAMED
|
@@ -2,7 +2,10 @@
|
|
|
2
2
|
|
|
3
3
|
from __future__ import annotations
|
|
4
4
|
|
|
5
|
-
from .shared import
|
|
5
|
+
from .shared import (
|
|
6
|
+
ProjectLogsView as ProjectLogsView,
|
|
7
|
+
FunctionInvocationExecutionDetailView as FunctionInvocationExecutionDetailView,
|
|
8
|
+
)
|
|
6
9
|
from .devbox_view import DevboxView as DevboxView
|
|
7
10
|
from .resource_size import ResourceSize as ResourceSize
|
|
8
11
|
from .blueprint_view import BlueprintView as BlueprintView
|
|
@@ -17,13 +20,13 @@ from .blueprint_list_params import BlueprintListParams as BlueprintListParams
|
|
|
17
20
|
from .code_mount_parameters import CodeMountParameters as CodeMountParameters
|
|
18
21
|
from .blueprint_preview_view import BlueprintPreviewView as BlueprintPreviewView
|
|
19
22
|
from .blueprint_create_params import BlueprintCreateParams as BlueprintCreateParams
|
|
23
|
+
from .devbox_read_file_params import DevboxReadFileParams as DevboxReadFileParams
|
|
20
24
|
from .blueprint_preview_params import BlueprintPreviewParams as BlueprintPreviewParams
|
|
25
|
+
from .devbox_write_file_params import DevboxWriteFileParams as DevboxWriteFileParams
|
|
21
26
|
from .blueprint_build_parameters import BlueprintBuildParameters as BlueprintBuildParameters
|
|
22
27
|
from .devbox_execute_sync_params import DevboxExecuteSyncParams as DevboxExecuteSyncParams
|
|
23
28
|
from .code_mount_parameters_param import CodeMountParametersParam as CodeMountParametersParam
|
|
24
29
|
from .function_invoke_sync_params import FunctionInvokeSyncParams as FunctionInvokeSyncParams
|
|
25
30
|
from .devbox_execution_detail_view import DevboxExecutionDetailView as DevboxExecutionDetailView
|
|
26
31
|
from .function_invoke_async_params import FunctionInvokeAsyncParams as FunctionInvokeAsyncParams
|
|
27
|
-
from .function_invoke_sync_response import FunctionInvokeSyncResponse as FunctionInvokeSyncResponse
|
|
28
32
|
from .blueprint_build_logs_list_view import BlueprintBuildLogsListView as BlueprintBuildLogsListView
|
|
29
|
-
from .function_invoke_async_response import FunctionInvokeAsyncResponse as FunctionInvokeAsyncResponse
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
# File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details.
|
|
2
|
+
|
|
3
|
+
from __future__ import annotations
|
|
4
|
+
|
|
5
|
+
from typing_extensions import TypedDict
|
|
6
|
+
|
|
7
|
+
__all__ = ["DevboxReadFileParams"]
|
|
8
|
+
|
|
9
|
+
|
|
10
|
+
class DevboxReadFileParams(TypedDict, total=False):
|
|
11
|
+
file_path: str
|
|
12
|
+
"""The path of the file to read."""
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
# File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details.
|
|
2
|
+
|
|
3
|
+
from __future__ import annotations
|
|
4
|
+
|
|
5
|
+
from typing_extensions import TypedDict
|
|
6
|
+
|
|
7
|
+
__all__ = ["DevboxWriteFileParams"]
|
|
8
|
+
|
|
9
|
+
|
|
10
|
+
class DevboxWriteFileParams(TypedDict, total=False):
|
|
11
|
+
contents: str
|
|
12
|
+
"""The contents to write to file."""
|
|
13
|
+
|
|
14
|
+
file_path: str
|
|
15
|
+
"""The path of the file to read."""
|
|
@@ -3,5 +3,4 @@
|
|
|
3
3
|
from __future__ import annotations
|
|
4
4
|
|
|
5
5
|
from .invocation_list_params import InvocationListParams as InvocationListParams
|
|
6
|
-
from .invocation_retrieve_response import InvocationRetrieveResponse as InvocationRetrieveResponse
|
|
7
6
|
from .function_invocation_list_view import FunctionInvocationListView as FunctionInvocationListView
|
|
@@ -1,3 +1,6 @@
|
|
|
1
1
|
# File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details.
|
|
2
2
|
|
|
3
3
|
from .project_logs_view import ProjectLogsView as ProjectLogsView
|
|
4
|
+
from .function_invocation_execution_detail_view import (
|
|
5
|
+
FunctionInvocationExecutionDetailView as FunctionInvocationExecutionDetailView,
|
|
6
|
+
)
|
|
@@ -5,10 +5,10 @@ from typing_extensions import Literal
|
|
|
5
5
|
|
|
6
6
|
from ..._models import BaseModel
|
|
7
7
|
|
|
8
|
-
__all__ = ["
|
|
8
|
+
__all__ = ["FunctionInvocationExecutionDetailView"]
|
|
9
9
|
|
|
10
10
|
|
|
11
|
-
class
|
|
11
|
+
class FunctionInvocationExecutionDetailView(BaseModel):
|
|
12
12
|
id: Optional[str] = None
|
|
13
13
|
"""Unique ID of the invocation."""
|
|
14
14
|
|