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: 22
openapi_spec_url: https://storage.googleapis.com/stainless-sdk-openapi-specs/runloop-ai%2Frunloop-f290dcd103e3a6d5650256bea5942db1508e0dd85e76483242c5556aace4ae48.yml
openapi_spec_url: https://storage.googleapis.com/stainless-sdk-openapi-specs/runloop-ai%2Frunloop-6577301ad49bd3086f3dd9cb0848407834eaf00a58446772426f7186b6ba582b.yml
8 changes: 8 additions & 0 deletions src/runloop_api_client/resources/devboxes/devboxes.py
Original file line number Diff line number Diff line change
Expand Up @@ -67,6 +67,7 @@ def create(
environment_variables: Dict[str, str] | NotGiven = NOT_GIVEN,
file_mounts: Dict[str, str] | NotGiven = NOT_GIVEN,
launch_parameters: devbox_create_params.LaunchParameters | NotGiven = NOT_GIVEN,
metadata: Dict[str, str] | NotGiven = NOT_GIVEN,
name: str | NotGiven = NOT_GIVEN,
setup_commands: List[str] | NotGiven = NOT_GIVEN,
# Use the following arguments if you need to pass additional parameters to the API that aren't available via kwargs.
Expand Down Expand Up @@ -98,6 +99,8 @@ def create(

launch_parameters: Parameters to configure the resources and launch time behavior of the Devbox.

metadata: User defined metadata to attach to the devbox for organization.

name: (Optional) A user specified name to give the Devbox.

setup_commands: (Optional) List of commands needed to set up your Devbox. Examples might include
Expand All @@ -122,6 +125,7 @@ def create(
"environment_variables": environment_variables,
"file_mounts": file_mounts,
"launch_parameters": launch_parameters,
"metadata": metadata,
"name": name,
"setup_commands": setup_commands,
},
Expand Down Expand Up @@ -447,6 +451,7 @@ async def create(
environment_variables: Dict[str, str] | NotGiven = NOT_GIVEN,
file_mounts: Dict[str, str] | NotGiven = NOT_GIVEN,
launch_parameters: devbox_create_params.LaunchParameters | NotGiven = NOT_GIVEN,
metadata: Dict[str, str] | NotGiven = NOT_GIVEN,
name: str | NotGiven = NOT_GIVEN,
setup_commands: List[str] | NotGiven = NOT_GIVEN,
# Use the following arguments if you need to pass additional parameters to the API that aren't available via kwargs.
Expand Down Expand Up @@ -478,6 +483,8 @@ async def create(

launch_parameters: Parameters to configure the resources and launch time behavior of the Devbox.

metadata: User defined metadata to attach to the devbox for organization.

name: (Optional) A user specified name to give the Devbox.

setup_commands: (Optional) List of commands needed to set up your Devbox. Examples might include
Expand All @@ -502,6 +509,7 @@ async def create(
"environment_variables": environment_variables,
"file_mounts": file_mounts,
"launch_parameters": launch_parameters,
"metadata": metadata,
"name": name,
"setup_commands": setup_commands,
},
Expand Down
3 changes: 3 additions & 0 deletions src/runloop_api_client/types/devbox_create_params.py
Original file line number Diff line number Diff line change
Expand Up @@ -40,6 +40,9 @@ class DevboxCreateParams(TypedDict, total=False):
launch_parameters: LaunchParameters
"""Parameters to configure the resources and launch time behavior of the Devbox."""

metadata: Dict[str, str]
"""User defined metadata to attach to the devbox for organization."""

name: str
"""(Optional) A user specified name to give the Devbox."""

Expand Down
5 changes: 4 additions & 1 deletion src/runloop_api_client/types/devbox_view.py
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
# File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details.

from typing import Optional
from typing import Dict, Optional
from typing_extensions import Literal

from .._models import BaseModel
Expand All @@ -27,6 +27,9 @@ class DevboxView(BaseModel):
initiator_type: Optional[Literal["unknown", "api", "invocation"]] = None
"""The initiator of the devbox."""

metadata: Optional[Dict[str, str]] = None
"""The user defined Devbox metadata."""

name: Optional[str] = None
"""The name of the Devbox."""

Expand Down
2 changes: 2 additions & 0 deletions tests/api_resources/test_devboxes.py
Original file line number Diff line number Diff line change
Expand Up @@ -39,6 +39,7 @@ def test_method_create_with_all_params(self, client: Runloop) -> None:
"launch_commands": ["string", "string", "string"],
"resource_size_request": "MINI",
},
metadata={"foo": "string"},
name="name",
setup_commands=["string", "string", "string"],
)
Expand Down Expand Up @@ -382,6 +383,7 @@ async def test_method_create_with_all_params(self, async_client: AsyncRunloop) -
"launch_commands": ["string", "string", "string"],
"resource_size_request": "MINI",
},
metadata={"foo": "string"},
name="name",
setup_commands=["string", "string", "string"],
)
Expand Down