Skip to content

Commit 081978b

Browse files
stainless-app[bot]stainless-bot
authored andcommitted
feat(api): OpenAPI spec update via Stainless API (#99)
1 parent 0d77cac commit 081978b

4 files changed

Lines changed: 9 additions & 10 deletions

File tree

.stats.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,2 +1,2 @@
11
configured_endpoints: 23
2-
openapi_spec_url: https://storage.googleapis.com/stainless-sdk-openapi-specs/runloop-ai%2Frunloop-de7c7d103b78caae64b0f9363d2efdfb9a4313ed39dd1d10279b582388f2dc18.yml
2+
openapi_spec_url: https://storage.googleapis.com/stainless-sdk-openapi-specs/runloop-ai%2Frunloop-a201c7831c11977b26e2aef7a85d862dba74fe528200b613ff67533876f3a8e8.yml

src/runloop_api_client/resources/devboxes/devboxes.py

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -370,7 +370,7 @@ def upload_file(
370370
self,
371371
id: str,
372372
*,
373-
file_input_stream: FileTypes | NotGiven = NOT_GIVEN,
373+
file: FileTypes | NotGiven = NOT_GIVEN,
374374
path: str | NotGiven = NOT_GIVEN,
375375
# Use the following arguments if you need to pass additional parameters to the API that aren't available via kwargs.
376376
# The extra values given here take precedence over values defined on the client or passed to this method.
@@ -397,7 +397,7 @@ def upload_file(
397397
f"/v1/devboxes/{id}/upload_file",
398398
body=maybe_transform(
399399
{
400-
"file_input_stream": file_input_stream,
400+
"file": file,
401401
"path": path,
402402
},
403403
devbox_upload_file_params.DevboxUploadFileParams,
@@ -781,7 +781,7 @@ async def upload_file(
781781
self,
782782
id: str,
783783
*,
784-
file_input_stream: FileTypes | NotGiven = NOT_GIVEN,
784+
file: FileTypes | NotGiven = NOT_GIVEN,
785785
path: str | NotGiven = NOT_GIVEN,
786786
# Use the following arguments if you need to pass additional parameters to the API that aren't available via kwargs.
787787
# The extra values given here take precedence over values defined on the client or passed to this method.
@@ -808,7 +808,7 @@ async def upload_file(
808808
f"/v1/devboxes/{id}/upload_file",
809809
body=await async_maybe_transform(
810810
{
811-
"file_input_stream": file_input_stream,
811+
"file": file,
812812
"path": path,
813813
},
814814
devbox_upload_file_params.DevboxUploadFileParams,

src/runloop_api_client/types/devbox_upload_file_params.py

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -2,15 +2,14 @@
22

33
from __future__ import annotations
44

5-
from typing_extensions import Annotated, TypedDict
5+
from typing_extensions import TypedDict
66

77
from .._types import FileTypes
8-
from .._utils import PropertyInfo
98

109
__all__ = ["DevboxUploadFileParams"]
1110

1211

1312
class DevboxUploadFileParams(TypedDict, total=False):
14-
file_input_stream: Annotated[FileTypes, PropertyInfo(alias="fileInputStream")]
13+
file: FileTypes
1514

1615
path: str

tests/api_resources/test_devboxes.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -323,7 +323,7 @@ def test_method_upload_file(self, client: Runloop) -> None:
323323
def test_method_upload_file_with_all_params(self, client: Runloop) -> None:
324324
devbox = client.devboxes.upload_file(
325325
id="id",
326-
file_input_stream=b"raw file contents",
326+
file=b"raw file contents",
327327
path="path",
328328
)
329329
assert_matches_type(object, devbox, path=["response"])
@@ -712,7 +712,7 @@ async def test_method_upload_file(self, async_client: AsyncRunloop) -> None:
712712
async def test_method_upload_file_with_all_params(self, async_client: AsyncRunloop) -> None:
713713
devbox = await async_client.devboxes.upload_file(
714714
id="id",
715-
file_input_stream=b"raw file contents",
715+
file=b"raw file contents",
716716
path="path",
717717
)
718718
assert_matches_type(object, devbox, path=["response"])

0 commit comments

Comments
 (0)