Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion .stats.yml
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
configured_endpoints: 23
openapi_spec_url: https://storage.googleapis.com/stainless-sdk-openapi-specs/runloop-ai%2Frunloop-b8fcc87544efea42048d01a4c7ba4c8abf1725337cfbb6bff607d5fea5cd1e1a.yml
openapi_spec_url: https://storage.googleapis.com/stainless-sdk-openapi-specs/runloop-ai%2Frunloop-a201c7831c11977b26e2aef7a85d862dba74fe528200b613ff67533876f3a8e8.yml
8 changes: 4 additions & 4 deletions src/runloop_api_client/resources/devboxes/devboxes.py
Original file line number Diff line number Diff line change
Expand Up @@ -370,7 +370,7 @@ def upload_file(
self,
id: str,
*,
file_input_stream: FileTypes | NotGiven = NOT_GIVEN,
file: FileTypes | NotGiven = NOT_GIVEN,
path: str | NotGiven = NOT_GIVEN,
# Use the following arguments if you need to pass additional parameters to the API that aren't available via kwargs.
# The extra values given here take precedence over values defined on the client or passed to this method.
Expand All @@ -397,7 +397,7 @@ def upload_file(
f"/v1/devboxes/{id}/upload_file",
body=maybe_transform(
{
"file_input_stream": file_input_stream,
"file": file,
"path": path,
},
devbox_upload_file_params.DevboxUploadFileParams,
Expand Down Expand Up @@ -781,7 +781,7 @@ async def upload_file(
self,
id: str,
*,
file_input_stream: FileTypes | NotGiven = NOT_GIVEN,
file: FileTypes | NotGiven = NOT_GIVEN,
path: str | NotGiven = NOT_GIVEN,
# Use the following arguments if you need to pass additional parameters to the API that aren't available via kwargs.
# The extra values given here take precedence over values defined on the client or passed to this method.
Expand All @@ -808,7 +808,7 @@ async def upload_file(
f"/v1/devboxes/{id}/upload_file",
body=await async_maybe_transform(
{
"file_input_stream": file_input_stream,
"file": file,
"path": path,
},
devbox_upload_file_params.DevboxUploadFileParams,
Expand Down
5 changes: 2 additions & 3 deletions src/runloop_api_client/types/devbox_upload_file_params.py
Original file line number Diff line number Diff line change
Expand Up @@ -2,15 +2,14 @@

from __future__ import annotations

from typing_extensions import Annotated, TypedDict
from typing_extensions import TypedDict

from .._types import FileTypes
from .._utils import PropertyInfo

__all__ = ["DevboxUploadFileParams"]


class DevboxUploadFileParams(TypedDict, total=False):
file_input_stream: Annotated[FileTypes, PropertyInfo(alias="fileInputStream")]
file: FileTypes

path: str
4 changes: 2 additions & 2 deletions tests/api_resources/test_devboxes.py
Original file line number Diff line number Diff line change
Expand Up @@ -323,7 +323,7 @@ def test_method_upload_file(self, client: Runloop) -> None:
def test_method_upload_file_with_all_params(self, client: Runloop) -> None:
devbox = client.devboxes.upload_file(
id="id",
file_input_stream=b"raw file contents",
file=b"raw file contents",
path="path",
)
assert_matches_type(object, devbox, path=["response"])
Expand Down Expand Up @@ -712,7 +712,7 @@ async def test_method_upload_file(self, async_client: AsyncRunloop) -> None:
async def test_method_upload_file_with_all_params(self, async_client: AsyncRunloop) -> None:
devbox = await async_client.devboxes.upload_file(
id="id",
file_input_stream=b"raw file contents",
file=b"raw file contents",
path="path",
)
assert_matches_type(object, devbox, path=["response"])
Expand Down