runloop-api-client 0.1.0a12__tar.gz → 0.1.0a14__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.0a14/.release-please-manifest.json +3 -0
- {runloop_api_client-0.1.0a12 → runloop_api_client-0.1.0a14}/CHANGELOG.md +21 -0
- {runloop_api_client-0.1.0a12 → runloop_api_client-0.1.0a14}/PKG-INFO +1 -1
- {runloop_api_client-0.1.0a12 → runloop_api_client-0.1.0a14}/pyproject.toml +1 -1
- {runloop_api_client-0.1.0a12 → runloop_api_client-0.1.0a14}/src/runloop_api_client/_version.py +1 -1
- {runloop_api_client-0.1.0a12 → runloop_api_client-0.1.0a14}/src/runloop_api_client/resources/devboxes/devboxes.py +31 -17
- {runloop_api_client-0.1.0a12 → runloop_api_client-0.1.0a14}/src/runloop_api_client/types/blueprint_view.py +3 -0
- {runloop_api_client-0.1.0a12 → runloop_api_client-0.1.0a14}/src/runloop_api_client/types/devbox_upload_file_params.py +2 -3
- {runloop_api_client-0.1.0a12 → runloop_api_client-0.1.0a14}/tests/api_resources/test_devboxes.py +2 -2
- runloop_api_client-0.1.0a12/.release-please-manifest.json +0 -3
- {runloop_api_client-0.1.0a12 → runloop_api_client-0.1.0a14}/.gitignore +0 -0
- {runloop_api_client-0.1.0a12 → runloop_api_client-0.1.0a14}/CONTRIBUTING.md +0 -0
- {runloop_api_client-0.1.0a12 → runloop_api_client-0.1.0a14}/LICENSE +0 -0
- {runloop_api_client-0.1.0a12 → runloop_api_client-0.1.0a14}/README.md +0 -0
- {runloop_api_client-0.1.0a12 → runloop_api_client-0.1.0a14}/SECURITY.md +0 -0
- {runloop_api_client-0.1.0a12 → runloop_api_client-0.1.0a14}/api.md +0 -0
- {runloop_api_client-0.1.0a12 → runloop_api_client-0.1.0a14}/bin/check-release-environment +0 -0
- {runloop_api_client-0.1.0a12 → runloop_api_client-0.1.0a14}/bin/publish-pypi +0 -0
- {runloop_api_client-0.1.0a12 → runloop_api_client-0.1.0a14}/examples/.keep +0 -0
- {runloop_api_client-0.1.0a12 → runloop_api_client-0.1.0a14}/mypy.ini +0 -0
- {runloop_api_client-0.1.0a12 → runloop_api_client-0.1.0a14}/noxfile.py +0 -0
- {runloop_api_client-0.1.0a12 → runloop_api_client-0.1.0a14}/release-please-config.json +0 -0
- {runloop_api_client-0.1.0a12 → runloop_api_client-0.1.0a14}/requirements-dev.lock +0 -0
- {runloop_api_client-0.1.0a12 → runloop_api_client-0.1.0a14}/requirements.lock +0 -0
- {runloop_api_client-0.1.0a12 → runloop_api_client-0.1.0a14}/src/runloop/lib/.keep +0 -0
- {runloop_api_client-0.1.0a12 → runloop_api_client-0.1.0a14}/src/runloop_api_client/__init__.py +0 -0
- {runloop_api_client-0.1.0a12 → runloop_api_client-0.1.0a14}/src/runloop_api_client/_base_client.py +0 -0
- {runloop_api_client-0.1.0a12 → runloop_api_client-0.1.0a14}/src/runloop_api_client/_client.py +0 -0
- {runloop_api_client-0.1.0a12 → runloop_api_client-0.1.0a14}/src/runloop_api_client/_compat.py +0 -0
- {runloop_api_client-0.1.0a12 → runloop_api_client-0.1.0a14}/src/runloop_api_client/_constants.py +0 -0
- {runloop_api_client-0.1.0a12 → runloop_api_client-0.1.0a14}/src/runloop_api_client/_exceptions.py +0 -0
- {runloop_api_client-0.1.0a12 → runloop_api_client-0.1.0a14}/src/runloop_api_client/_files.py +0 -0
- {runloop_api_client-0.1.0a12 → runloop_api_client-0.1.0a14}/src/runloop_api_client/_models.py +0 -0
- {runloop_api_client-0.1.0a12 → runloop_api_client-0.1.0a14}/src/runloop_api_client/_qs.py +0 -0
- {runloop_api_client-0.1.0a12 → runloop_api_client-0.1.0a14}/src/runloop_api_client/_resource.py +0 -0
- {runloop_api_client-0.1.0a12 → runloop_api_client-0.1.0a14}/src/runloop_api_client/_response.py +0 -0
- {runloop_api_client-0.1.0a12 → runloop_api_client-0.1.0a14}/src/runloop_api_client/_streaming.py +0 -0
- {runloop_api_client-0.1.0a12 → runloop_api_client-0.1.0a14}/src/runloop_api_client/_types.py +0 -0
- {runloop_api_client-0.1.0a12 → runloop_api_client-0.1.0a14}/src/runloop_api_client/_utils/__init__.py +0 -0
- {runloop_api_client-0.1.0a12 → runloop_api_client-0.1.0a14}/src/runloop_api_client/_utils/_logs.py +0 -0
- {runloop_api_client-0.1.0a12 → runloop_api_client-0.1.0a14}/src/runloop_api_client/_utils/_proxy.py +0 -0
- {runloop_api_client-0.1.0a12 → runloop_api_client-0.1.0a14}/src/runloop_api_client/_utils/_reflection.py +0 -0
- {runloop_api_client-0.1.0a12 → runloop_api_client-0.1.0a14}/src/runloop_api_client/_utils/_streams.py +0 -0
- {runloop_api_client-0.1.0a12 → runloop_api_client-0.1.0a14}/src/runloop_api_client/_utils/_sync.py +0 -0
- {runloop_api_client-0.1.0a12 → runloop_api_client-0.1.0a14}/src/runloop_api_client/_utils/_transform.py +0 -0
- {runloop_api_client-0.1.0a12 → runloop_api_client-0.1.0a14}/src/runloop_api_client/_utils/_typing.py +0 -0
- {runloop_api_client-0.1.0a12 → runloop_api_client-0.1.0a14}/src/runloop_api_client/_utils/_utils.py +0 -0
- {runloop_api_client-0.1.0a12 → runloop_api_client-0.1.0a14}/src/runloop_api_client/lib/.keep +0 -0
- {runloop_api_client-0.1.0a12 → runloop_api_client-0.1.0a14}/src/runloop_api_client/py.typed +0 -0
- {runloop_api_client-0.1.0a12 → runloop_api_client-0.1.0a14}/src/runloop_api_client/resources/__init__.py +0 -0
- {runloop_api_client-0.1.0a12 → runloop_api_client-0.1.0a14}/src/runloop_api_client/resources/blueprints.py +0 -0
- {runloop_api_client-0.1.0a12 → runloop_api_client-0.1.0a14}/src/runloop_api_client/resources/devboxes/__init__.py +0 -0
- {runloop_api_client-0.1.0a12 → runloop_api_client-0.1.0a14}/src/runloop_api_client/resources/devboxes/logs.py +0 -0
- {runloop_api_client-0.1.0a12 → runloop_api_client-0.1.0a14}/src/runloop_api_client/resources/functions/__init__.py +0 -0
- {runloop_api_client-0.1.0a12 → runloop_api_client-0.1.0a14}/src/runloop_api_client/resources/functions/functions.py +0 -0
- {runloop_api_client-0.1.0a12 → runloop_api_client-0.1.0a14}/src/runloop_api_client/resources/functions/invocations.py +0 -0
- {runloop_api_client-0.1.0a12 → runloop_api_client-0.1.0a14}/src/runloop_api_client/resources/projects/__init__.py +0 -0
- {runloop_api_client-0.1.0a12 → runloop_api_client-0.1.0a14}/src/runloop_api_client/resources/projects/logs.py +0 -0
- {runloop_api_client-0.1.0a12 → runloop_api_client-0.1.0a14}/src/runloop_api_client/resources/projects/projects.py +0 -0
- {runloop_api_client-0.1.0a12 → runloop_api_client-0.1.0a14}/src/runloop_api_client/types/__init__.py +0 -0
- {runloop_api_client-0.1.0a12 → runloop_api_client-0.1.0a14}/src/runloop_api_client/types/blueprint_build_log.py +0 -0
- {runloop_api_client-0.1.0a12 → runloop_api_client-0.1.0a14}/src/runloop_api_client/types/blueprint_build_logs_list_view.py +0 -0
- {runloop_api_client-0.1.0a12 → runloop_api_client-0.1.0a14}/src/runloop_api_client/types/blueprint_build_parameters.py +0 -0
- {runloop_api_client-0.1.0a12 → runloop_api_client-0.1.0a14}/src/runloop_api_client/types/blueprint_create_params.py +0 -0
- {runloop_api_client-0.1.0a12 → runloop_api_client-0.1.0a14}/src/runloop_api_client/types/blueprint_list_params.py +0 -0
- {runloop_api_client-0.1.0a12 → runloop_api_client-0.1.0a14}/src/runloop_api_client/types/blueprint_list_view.py +0 -0
- {runloop_api_client-0.1.0a12 → runloop_api_client-0.1.0a14}/src/runloop_api_client/types/blueprint_preview_params.py +0 -0
- {runloop_api_client-0.1.0a12 → runloop_api_client-0.1.0a14}/src/runloop_api_client/types/blueprint_preview_view.py +0 -0
- {runloop_api_client-0.1.0a12 → runloop_api_client-0.1.0a14}/src/runloop_api_client/types/code_mount_parameters.py +0 -0
- {runloop_api_client-0.1.0a12 → runloop_api_client-0.1.0a14}/src/runloop_api_client/types/code_mount_parameters_param.py +0 -0
- {runloop_api_client-0.1.0a12 → runloop_api_client-0.1.0a14}/src/runloop_api_client/types/devbox_create_params.py +0 -0
- {runloop_api_client-0.1.0a12 → runloop_api_client-0.1.0a14}/src/runloop_api_client/types/devbox_execute_sync_params.py +0 -0
- {runloop_api_client-0.1.0a12 → runloop_api_client-0.1.0a14}/src/runloop_api_client/types/devbox_execution_detail_view.py +0 -0
- {runloop_api_client-0.1.0a12 → runloop_api_client-0.1.0a14}/src/runloop_api_client/types/devbox_list_params.py +0 -0
- {runloop_api_client-0.1.0a12 → runloop_api_client-0.1.0a14}/src/runloop_api_client/types/devbox_list_view.py +0 -0
- {runloop_api_client-0.1.0a12 → runloop_api_client-0.1.0a14}/src/runloop_api_client/types/devbox_read_file_contents_params.py +0 -0
- {runloop_api_client-0.1.0a12 → runloop_api_client-0.1.0a14}/src/runloop_api_client/types/devbox_read_file_contents_response.py +0 -0
- {runloop_api_client-0.1.0a12 → runloop_api_client-0.1.0a14}/src/runloop_api_client/types/devbox_read_file_params.py +0 -0
- {runloop_api_client-0.1.0a12 → runloop_api_client-0.1.0a14}/src/runloop_api_client/types/devbox_view.py +0 -0
- {runloop_api_client-0.1.0a12 → runloop_api_client-0.1.0a14}/src/runloop_api_client/types/devbox_write_file_params.py +0 -0
- {runloop_api_client-0.1.0a12 → runloop_api_client-0.1.0a14}/src/runloop_api_client/types/devboxes/__init__.py +0 -0
- {runloop_api_client-0.1.0a12 → runloop_api_client-0.1.0a14}/src/runloop_api_client/types/devboxes/devbox_logs_list_view.py +0 -0
- {runloop_api_client-0.1.0a12 → runloop_api_client-0.1.0a14}/src/runloop_api_client/types/function_invoke_async_params.py +0 -0
- {runloop_api_client-0.1.0a12 → runloop_api_client-0.1.0a14}/src/runloop_api_client/types/function_invoke_sync_params.py +0 -0
- {runloop_api_client-0.1.0a12 → runloop_api_client-0.1.0a14}/src/runloop_api_client/types/function_list_view.py +0 -0
- {runloop_api_client-0.1.0a12 → runloop_api_client-0.1.0a14}/src/runloop_api_client/types/functions/__init__.py +0 -0
- {runloop_api_client-0.1.0a12 → runloop_api_client-0.1.0a14}/src/runloop_api_client/types/functions/function_invocation_list_view.py +0 -0
- {runloop_api_client-0.1.0a12 → runloop_api_client-0.1.0a14}/src/runloop_api_client/types/functions/invocation_list_params.py +0 -0
- {runloop_api_client-0.1.0a12 → runloop_api_client-0.1.0a14}/src/runloop_api_client/types/project_list_view.py +0 -0
- {runloop_api_client-0.1.0a12 → runloop_api_client-0.1.0a14}/src/runloop_api_client/types/projects/__init__.py +0 -0
- {runloop_api_client-0.1.0a12 → runloop_api_client-0.1.0a14}/src/runloop_api_client/types/resource_size.py +0 -0
- {runloop_api_client-0.1.0a12 → runloop_api_client-0.1.0a14}/src/runloop_api_client/types/shared/__init__.py +0 -0
- {runloop_api_client-0.1.0a12 → runloop_api_client-0.1.0a14}/src/runloop_api_client/types/shared/function_invocation_execution_detail_view.py +0 -0
- {runloop_api_client-0.1.0a12 → runloop_api_client-0.1.0a14}/src/runloop_api_client/types/shared/project_logs_view.py +0 -0
- {runloop_api_client-0.1.0a12 → runloop_api_client-0.1.0a14}/tests/__init__.py +0 -0
- {runloop_api_client-0.1.0a12 → runloop_api_client-0.1.0a14}/tests/api_resources/__init__.py +0 -0
- {runloop_api_client-0.1.0a12 → runloop_api_client-0.1.0a14}/tests/api_resources/devboxes/__init__.py +0 -0
- {runloop_api_client-0.1.0a12 → runloop_api_client-0.1.0a14}/tests/api_resources/devboxes/test_logs.py +0 -0
- {runloop_api_client-0.1.0a12 → runloop_api_client-0.1.0a14}/tests/api_resources/functions/__init__.py +0 -0
- {runloop_api_client-0.1.0a12 → runloop_api_client-0.1.0a14}/tests/api_resources/functions/test_invocations.py +0 -0
- {runloop_api_client-0.1.0a12 → runloop_api_client-0.1.0a14}/tests/api_resources/projects/__init__.py +0 -0
- {runloop_api_client-0.1.0a12 → runloop_api_client-0.1.0a14}/tests/api_resources/projects/test_logs.py +0 -0
- {runloop_api_client-0.1.0a12 → runloop_api_client-0.1.0a14}/tests/api_resources/test_blueprints.py +0 -0
- {runloop_api_client-0.1.0a12 → runloop_api_client-0.1.0a14}/tests/api_resources/test_functions.py +0 -0
- {runloop_api_client-0.1.0a12 → runloop_api_client-0.1.0a14}/tests/api_resources/test_projects.py +0 -0
- {runloop_api_client-0.1.0a12 → runloop_api_client-0.1.0a14}/tests/conftest.py +0 -0
- {runloop_api_client-0.1.0a12 → runloop_api_client-0.1.0a14}/tests/sample_file.txt +0 -0
- {runloop_api_client-0.1.0a12 → runloop_api_client-0.1.0a14}/tests/test_client.py +0 -0
- {runloop_api_client-0.1.0a12 → runloop_api_client-0.1.0a14}/tests/test_deepcopy.py +0 -0
- {runloop_api_client-0.1.0a12 → runloop_api_client-0.1.0a14}/tests/test_extract_files.py +0 -0
- {runloop_api_client-0.1.0a12 → runloop_api_client-0.1.0a14}/tests/test_files.py +0 -0
- {runloop_api_client-0.1.0a12 → runloop_api_client-0.1.0a14}/tests/test_models.py +0 -0
- {runloop_api_client-0.1.0a12 → runloop_api_client-0.1.0a14}/tests/test_qs.py +0 -0
- {runloop_api_client-0.1.0a12 → runloop_api_client-0.1.0a14}/tests/test_required_args.py +0 -0
- {runloop_api_client-0.1.0a12 → runloop_api_client-0.1.0a14}/tests/test_response.py +0 -0
- {runloop_api_client-0.1.0a12 → runloop_api_client-0.1.0a14}/tests/test_streaming.py +0 -0
- {runloop_api_client-0.1.0a12 → runloop_api_client-0.1.0a14}/tests/test_transform.py +0 -0
- {runloop_api_client-0.1.0a12 → runloop_api_client-0.1.0a14}/tests/test_utils/test_proxy.py +0 -0
- {runloop_api_client-0.1.0a12 → runloop_api_client-0.1.0a14}/tests/test_utils/test_typing.py +0 -0
- {runloop_api_client-0.1.0a12 → runloop_api_client-0.1.0a14}/tests/utils.py +0 -0
|
@@ -1,5 +1,26 @@
|
|
|
1
1
|
# Changelog
|
|
2
2
|
|
|
3
|
+
## 0.1.0-alpha.14 (2024-08-16)
|
|
4
|
+
|
|
5
|
+
Full Changelog: [v0.1.0-alpha.13...v0.1.0-alpha.14](https://github.com/runloopai/api-client-python/compare/v0.1.0-alpha.13...v0.1.0-alpha.14)
|
|
6
|
+
|
|
7
|
+
### Features
|
|
8
|
+
|
|
9
|
+
* **api:** OpenAPI spec update via Stainless API ([#104](https://github.com/runloopai/api-client-python/issues/104)) ([ac4c9fa](https://github.com/runloopai/api-client-python/commit/ac4c9fa9d73c01a5cb6dd01955647cb823427fad))
|
|
10
|
+
|
|
11
|
+
## 0.1.0-alpha.13 (2024-08-16)
|
|
12
|
+
|
|
13
|
+
Full Changelog: [v0.1.0-alpha.12...v0.1.0-alpha.13](https://github.com/runloopai/api-client-python/compare/v0.1.0-alpha.12...v0.1.0-alpha.13)
|
|
14
|
+
|
|
15
|
+
### Features
|
|
16
|
+
|
|
17
|
+
* **api:** OpenAPI spec update via Stainless API ([#100](https://github.com/runloopai/api-client-python/issues/100)) ([772cfa1](https://github.com/runloopai/api-client-python/commit/772cfa19fb0c666540b39613ca1fc4a22bdffe82))
|
|
18
|
+
* **api:** OpenAPI spec update via Stainless API ([#101](https://github.com/runloopai/api-client-python/issues/101)) ([a0841a4](https://github.com/runloopai/api-client-python/commit/a0841a410113bc784cca786a2774aea67c9f3a58))
|
|
19
|
+
* **api:** OpenAPI spec update via Stainless API ([#102](https://github.com/runloopai/api-client-python/issues/102)) ([158d661](https://github.com/runloopai/api-client-python/commit/158d661d90493597b1500b6ef4cfcfe6b7fa6d30))
|
|
20
|
+
* **api:** OpenAPI spec update via Stainless API ([#96](https://github.com/runloopai/api-client-python/issues/96)) ([fb6dd1d](https://github.com/runloopai/api-client-python/commit/fb6dd1d4c536f0c518c6399ec543ea92162782ff))
|
|
21
|
+
* **api:** OpenAPI spec update via Stainless API ([#98](https://github.com/runloopai/api-client-python/issues/98)) ([0d77cac](https://github.com/runloopai/api-client-python/commit/0d77cacb4b4c582826b9772a287cced25b1210bf))
|
|
22
|
+
* **api:** OpenAPI spec update via Stainless API ([#99](https://github.com/runloopai/api-client-python/issues/99)) ([081978b](https://github.com/runloopai/api-client-python/commit/081978b3867fe873b52ea475cbe6e69e50448e51))
|
|
23
|
+
|
|
3
24
|
## 0.1.0-alpha.12 (2024-08-15)
|
|
4
25
|
|
|
5
26
|
Full Changelog: [v0.1.0-alpha.11...v0.1.0-alpha.12](https://github.com/runloopai/api-client-python/compare/v0.1.0-alpha.11...v0.1.0-alpha.12)
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
Metadata-Version: 2.3
|
|
2
2
|
Name: runloop_api_client
|
|
3
|
-
Version: 0.1.
|
|
3
|
+
Version: 0.1.0a14
|
|
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
|
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
|
|
3
3
|
from __future__ import annotations
|
|
4
4
|
|
|
5
|
-
from typing import Dict, List
|
|
5
|
+
from typing import Dict, List, Mapping, cast
|
|
6
6
|
|
|
7
7
|
import httpx
|
|
8
8
|
|
|
@@ -25,7 +25,9 @@ from ...types import (
|
|
|
25
25
|
)
|
|
26
26
|
from ..._types import NOT_GIVEN, Body, Query, Headers, NotGiven, FileTypes
|
|
27
27
|
from ..._utils import (
|
|
28
|
+
extract_files,
|
|
28
29
|
maybe_transform,
|
|
30
|
+
deepcopy_minimal,
|
|
29
31
|
async_maybe_transform,
|
|
30
32
|
)
|
|
31
33
|
from ..._compat import cached_property
|
|
@@ -370,7 +372,7 @@ class DevboxesResource(SyncAPIResource):
|
|
|
370
372
|
self,
|
|
371
373
|
id: str,
|
|
372
374
|
*,
|
|
373
|
-
|
|
375
|
+
file: FileTypes | NotGiven = NOT_GIVEN,
|
|
374
376
|
path: str | NotGiven = NOT_GIVEN,
|
|
375
377
|
# Use the following arguments if you need to pass additional parameters to the API that aren't available via kwargs.
|
|
376
378
|
# The extra values given here take precedence over values defined on the client or passed to this method.
|
|
@@ -393,15 +395,21 @@ class DevboxesResource(SyncAPIResource):
|
|
|
393
395
|
"""
|
|
394
396
|
if not id:
|
|
395
397
|
raise ValueError(f"Expected a non-empty value for `id` but received {id!r}")
|
|
398
|
+
body = deepcopy_minimal(
|
|
399
|
+
{
|
|
400
|
+
"file": file,
|
|
401
|
+
"path": path,
|
|
402
|
+
}
|
|
403
|
+
)
|
|
404
|
+
files = extract_files(cast(Mapping[str, object], body), paths=[["file"]])
|
|
405
|
+
# It should be noted that the actual Content-Type header that will be
|
|
406
|
+
# sent to the server will contain a `boundary` parameter, e.g.
|
|
407
|
+
# multipart/form-data; boundary=---abc--
|
|
408
|
+
extra_headers = {"Content-Type": "multipart/form-data", **(extra_headers or {})}
|
|
396
409
|
return self._post(
|
|
397
410
|
f"/v1/devboxes/{id}/upload_file",
|
|
398
|
-
body=maybe_transform(
|
|
399
|
-
|
|
400
|
-
"file_input_stream": file_input_stream,
|
|
401
|
-
"path": path,
|
|
402
|
-
},
|
|
403
|
-
devbox_upload_file_params.DevboxUploadFileParams,
|
|
404
|
-
),
|
|
411
|
+
body=maybe_transform(body, devbox_upload_file_params.DevboxUploadFileParams),
|
|
412
|
+
files=files,
|
|
405
413
|
options=make_request_options(
|
|
406
414
|
extra_headers=extra_headers, extra_query=extra_query, extra_body=extra_body, timeout=timeout
|
|
407
415
|
),
|
|
@@ -781,7 +789,7 @@ class AsyncDevboxesResource(AsyncAPIResource):
|
|
|
781
789
|
self,
|
|
782
790
|
id: str,
|
|
783
791
|
*,
|
|
784
|
-
|
|
792
|
+
file: FileTypes | NotGiven = NOT_GIVEN,
|
|
785
793
|
path: str | NotGiven = NOT_GIVEN,
|
|
786
794
|
# Use the following arguments if you need to pass additional parameters to the API that aren't available via kwargs.
|
|
787
795
|
# The extra values given here take precedence over values defined on the client or passed to this method.
|
|
@@ -804,15 +812,21 @@ class AsyncDevboxesResource(AsyncAPIResource):
|
|
|
804
812
|
"""
|
|
805
813
|
if not id:
|
|
806
814
|
raise ValueError(f"Expected a non-empty value for `id` but received {id!r}")
|
|
815
|
+
body = deepcopy_minimal(
|
|
816
|
+
{
|
|
817
|
+
"file": file,
|
|
818
|
+
"path": path,
|
|
819
|
+
}
|
|
820
|
+
)
|
|
821
|
+
files = extract_files(cast(Mapping[str, object], body), paths=[["file"]])
|
|
822
|
+
# It should be noted that the actual Content-Type header that will be
|
|
823
|
+
# sent to the server will contain a `boundary` parameter, e.g.
|
|
824
|
+
# multipart/form-data; boundary=---abc--
|
|
825
|
+
extra_headers = {"Content-Type": "multipart/form-data", **(extra_headers or {})}
|
|
807
826
|
return await self._post(
|
|
808
827
|
f"/v1/devboxes/{id}/upload_file",
|
|
809
|
-
body=await async_maybe_transform(
|
|
810
|
-
|
|
811
|
-
"file_input_stream": file_input_stream,
|
|
812
|
-
"path": path,
|
|
813
|
-
},
|
|
814
|
-
devbox_upload_file_params.DevboxUploadFileParams,
|
|
815
|
-
),
|
|
828
|
+
body=await async_maybe_transform(body, devbox_upload_file_params.DevboxUploadFileParams),
|
|
829
|
+
files=files,
|
|
816
830
|
options=make_request_options(
|
|
817
831
|
extra_headers=extra_headers, extra_query=extra_query, extra_body=extra_body, timeout=timeout
|
|
818
832
|
),
|
|
@@ -16,6 +16,9 @@ class BlueprintView(BaseModel):
|
|
|
16
16
|
create_time_ms: Optional[int] = None
|
|
17
17
|
"""Creation time of the Blueprint (Unix timestamp milliseconds)."""
|
|
18
18
|
|
|
19
|
+
failure_reason: Optional[Literal["out_of_memory", "out_of_disk", "build_failed"]] = None
|
|
20
|
+
"""The failure reason if the Blueprint build failed, if any."""
|
|
21
|
+
|
|
19
22
|
name: Optional[str] = None
|
|
20
23
|
"""The name of the Blueprint."""
|
|
21
24
|
|
|
@@ -2,15 +2,14 @@
|
|
|
2
2
|
|
|
3
3
|
from __future__ import annotations
|
|
4
4
|
|
|
5
|
-
from typing_extensions import
|
|
5
|
+
from typing_extensions import TypedDict
|
|
6
6
|
|
|
7
7
|
from .._types import FileTypes
|
|
8
|
-
from .._utils import PropertyInfo
|
|
9
8
|
|
|
10
9
|
__all__ = ["DevboxUploadFileParams"]
|
|
11
10
|
|
|
12
11
|
|
|
13
12
|
class DevboxUploadFileParams(TypedDict, total=False):
|
|
14
|
-
|
|
13
|
+
file: FileTypes
|
|
15
14
|
|
|
16
15
|
path: str
|
{runloop_api_client-0.1.0a12 → runloop_api_client-0.1.0a14}/tests/api_resources/test_devboxes.py
RENAMED
|
@@ -323,7 +323,7 @@ class TestDevboxes:
|
|
|
323
323
|
def test_method_upload_file_with_all_params(self, client: Runloop) -> None:
|
|
324
324
|
devbox = client.devboxes.upload_file(
|
|
325
325
|
id="id",
|
|
326
|
-
|
|
326
|
+
file=b"raw file contents",
|
|
327
327
|
path="path",
|
|
328
328
|
)
|
|
329
329
|
assert_matches_type(object, devbox, path=["response"])
|
|
@@ -712,7 +712,7 @@ class TestAsyncDevboxes:
|
|
|
712
712
|
async def test_method_upload_file_with_all_params(self, async_client: AsyncRunloop) -> None:
|
|
713
713
|
devbox = await async_client.devboxes.upload_file(
|
|
714
714
|
id="id",
|
|
715
|
-
|
|
715
|
+
file=b"raw file contents",
|
|
716
716
|
path="path",
|
|
717
717
|
)
|
|
718
718
|
assert_matches_type(object, devbox, path=["response"])
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
{runloop_api_client-0.1.0a12 → runloop_api_client-0.1.0a14}/src/runloop_api_client/__init__.py
RENAMED
|
File without changes
|
{runloop_api_client-0.1.0a12 → runloop_api_client-0.1.0a14}/src/runloop_api_client/_base_client.py
RENAMED
|
File without changes
|
{runloop_api_client-0.1.0a12 → runloop_api_client-0.1.0a14}/src/runloop_api_client/_client.py
RENAMED
|
File without changes
|
{runloop_api_client-0.1.0a12 → runloop_api_client-0.1.0a14}/src/runloop_api_client/_compat.py
RENAMED
|
File without changes
|
{runloop_api_client-0.1.0a12 → runloop_api_client-0.1.0a14}/src/runloop_api_client/_constants.py
RENAMED
|
File without changes
|
{runloop_api_client-0.1.0a12 → runloop_api_client-0.1.0a14}/src/runloop_api_client/_exceptions.py
RENAMED
|
File without changes
|
{runloop_api_client-0.1.0a12 → runloop_api_client-0.1.0a14}/src/runloop_api_client/_files.py
RENAMED
|
File without changes
|
{runloop_api_client-0.1.0a12 → runloop_api_client-0.1.0a14}/src/runloop_api_client/_models.py
RENAMED
|
File without changes
|
|
File without changes
|
{runloop_api_client-0.1.0a12 → runloop_api_client-0.1.0a14}/src/runloop_api_client/_resource.py
RENAMED
|
File without changes
|
{runloop_api_client-0.1.0a12 → runloop_api_client-0.1.0a14}/src/runloop_api_client/_response.py
RENAMED
|
File without changes
|
{runloop_api_client-0.1.0a12 → runloop_api_client-0.1.0a14}/src/runloop_api_client/_streaming.py
RENAMED
|
File without changes
|
{runloop_api_client-0.1.0a12 → runloop_api_client-0.1.0a14}/src/runloop_api_client/_types.py
RENAMED
|
File without changes
|
|
File without changes
|
{runloop_api_client-0.1.0a12 → runloop_api_client-0.1.0a14}/src/runloop_api_client/_utils/_logs.py
RENAMED
|
File without changes
|
{runloop_api_client-0.1.0a12 → runloop_api_client-0.1.0a14}/src/runloop_api_client/_utils/_proxy.py
RENAMED
|
File without changes
|
|
File without changes
|
|
File without changes
|
{runloop_api_client-0.1.0a12 → runloop_api_client-0.1.0a14}/src/runloop_api_client/_utils/_sync.py
RENAMED
|
File without changes
|
|
File without changes
|
{runloop_api_client-0.1.0a12 → runloop_api_client-0.1.0a14}/src/runloop_api_client/_utils/_typing.py
RENAMED
|
File without changes
|
{runloop_api_client-0.1.0a12 → runloop_api_client-0.1.0a14}/src/runloop_api_client/_utils/_utils.py
RENAMED
|
File without changes
|
{runloop_api_client-0.1.0a12 → runloop_api_client-0.1.0a14}/src/runloop_api_client/lib/.keep
RENAMED
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
{runloop_api_client-0.1.0a12 → runloop_api_client-0.1.0a14}/src/runloop_api_client/types/__init__.py
RENAMED
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
{runloop_api_client-0.1.0a12 → runloop_api_client-0.1.0a14}/tests/api_resources/devboxes/__init__.py
RENAMED
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
{runloop_api_client-0.1.0a12 → runloop_api_client-0.1.0a14}/tests/api_resources/projects/__init__.py
RENAMED
|
File without changes
|
|
File without changes
|
{runloop_api_client-0.1.0a12 → runloop_api_client-0.1.0a14}/tests/api_resources/test_blueprints.py
RENAMED
|
File without changes
|
{runloop_api_client-0.1.0a12 → runloop_api_client-0.1.0a14}/tests/api_resources/test_functions.py
RENAMED
|
File without changes
|
{runloop_api_client-0.1.0a12 → runloop_api_client-0.1.0a14}/tests/api_resources/test_projects.py
RENAMED
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|