diff --git a/.stats.yml b/.stats.yml index ab5cdaf23..b2ff6aad1 100755 --- a/.stats.yml +++ b/.stats.yml @@ -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 diff --git a/src/runloop_api_client/resources/devboxes/devboxes.py b/src/runloop_api_client/resources/devboxes/devboxes.py index 6d499f25c..7b1c0388d 100755 --- a/src/runloop_api_client/resources/devboxes/devboxes.py +++ b/src/runloop_api_client/resources/devboxes/devboxes.py @@ -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. @@ -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 @@ -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, }, @@ -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. @@ -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 @@ -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, }, diff --git a/src/runloop_api_client/types/devbox_create_params.py b/src/runloop_api_client/types/devbox_create_params.py index 80cd31ef3..61bb1453a 100755 --- a/src/runloop_api_client/types/devbox_create_params.py +++ b/src/runloop_api_client/types/devbox_create_params.py @@ -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.""" diff --git a/src/runloop_api_client/types/devbox_view.py b/src/runloop_api_client/types/devbox_view.py index 724ce3372..71eb25578 100755 --- a/src/runloop_api_client/types/devbox_view.py +++ b/src/runloop_api_client/types/devbox_view.py @@ -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 @@ -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.""" diff --git a/tests/api_resources/test_devboxes.py b/tests/api_resources/test_devboxes.py index 817ee36a9..1024eb26f 100755 --- a/tests/api_resources/test_devboxes.py +++ b/tests/api_resources/test_devboxes.py @@ -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"], ) @@ -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"], )