diff --git a/.stats.yml b/.stats.yml index 82a38c421..794174526 100644 --- a/.stats.yml +++ b/.stats.yml @@ -1,2 +1,2 @@ configured_endpoints: 19 -openapi_spec_url: https://storage.googleapis.com/stainless-sdk-openapi-specs/runloop-ai%2Frunloop-1ee44166266d9e9a3ab416b9a232c5cc239e42d504eec799e67df4563b19916f.yml +openapi_spec_url: https://storage.googleapis.com/stainless-sdk-openapi-specs/runloop-ai%2Frunloop-8ed7237714dcf00d5e186095c38ac8afb3300d4773e0d836042d89f3b53c7ffc.yml diff --git a/src/runloop_api_client/resources/blueprints.py b/src/runloop_api_client/resources/blueprints.py index 038394104..c3221a79d 100644 --- a/src/runloop_api_client/resources/blueprints.py +++ b/src/runloop_api_client/resources/blueprints.py @@ -2,7 +2,7 @@ from __future__ import annotations -from typing import List, Iterable +from typing import Dict, List, Iterable import httpx @@ -44,6 +44,7 @@ def create( *, code_mounts: Iterable[CodeMountParametersParam] | NotGiven = NOT_GIVEN, dockerfile: str | NotGiven = NOT_GIVEN, + file_mounts: Dict[str, str] | NotGiven = NOT_GIVEN, launch_parameters: blueprint_create_params.LaunchParameters | NotGiven = NOT_GIVEN, name: str | NotGiven = NOT_GIVEN, system_setup_commands: List[str] | NotGiven = NOT_GIVEN, @@ -65,6 +66,8 @@ def create( dockerfile: Dockerfile contents to be used to build the Blueprint. + file_mounts: (Optional) Map of paths and file contents to write before setup.. + launch_parameters: Parameters to configure your Devbox at launch time. name: Name of the Blueprint. @@ -85,6 +88,7 @@ def create( { "code_mounts": code_mounts, "dockerfile": dockerfile, + "file_mounts": file_mounts, "launch_parameters": launch_parameters, "name": name, "system_setup_commands": system_setup_commands, @@ -220,6 +224,7 @@ def preview( *, code_mounts: Iterable[CodeMountParametersParam] | NotGiven = NOT_GIVEN, dockerfile: str | NotGiven = NOT_GIVEN, + file_mounts: Dict[str, str] | NotGiven = NOT_GIVEN, launch_parameters: blueprint_preview_params.LaunchParameters | NotGiven = NOT_GIVEN, name: str | NotGiven = NOT_GIVEN, system_setup_commands: List[str] | NotGiven = NOT_GIVEN, @@ -240,6 +245,8 @@ def preview( dockerfile: Dockerfile contents to be used to build the Blueprint. + file_mounts: (Optional) Map of paths and file contents to write before setup.. + launch_parameters: Parameters to configure your Devbox at launch time. name: Name of the Blueprint. @@ -260,6 +267,7 @@ def preview( { "code_mounts": code_mounts, "dockerfile": dockerfile, + "file_mounts": file_mounts, "launch_parameters": launch_parameters, "name": name, "system_setup_commands": system_setup_commands, @@ -287,6 +295,7 @@ async def create( *, code_mounts: Iterable[CodeMountParametersParam] | NotGiven = NOT_GIVEN, dockerfile: str | NotGiven = NOT_GIVEN, + file_mounts: Dict[str, str] | NotGiven = NOT_GIVEN, launch_parameters: blueprint_create_params.LaunchParameters | NotGiven = NOT_GIVEN, name: str | NotGiven = NOT_GIVEN, system_setup_commands: List[str] | NotGiven = NOT_GIVEN, @@ -308,6 +317,8 @@ async def create( dockerfile: Dockerfile contents to be used to build the Blueprint. + file_mounts: (Optional) Map of paths and file contents to write before setup.. + launch_parameters: Parameters to configure your Devbox at launch time. name: Name of the Blueprint. @@ -328,6 +339,7 @@ async def create( { "code_mounts": code_mounts, "dockerfile": dockerfile, + "file_mounts": file_mounts, "launch_parameters": launch_parameters, "name": name, "system_setup_commands": system_setup_commands, @@ -463,6 +475,7 @@ async def preview( *, code_mounts: Iterable[CodeMountParametersParam] | NotGiven = NOT_GIVEN, dockerfile: str | NotGiven = NOT_GIVEN, + file_mounts: Dict[str, str] | NotGiven = NOT_GIVEN, launch_parameters: blueprint_preview_params.LaunchParameters | NotGiven = NOT_GIVEN, name: str | NotGiven = NOT_GIVEN, system_setup_commands: List[str] | NotGiven = NOT_GIVEN, @@ -483,6 +496,8 @@ async def preview( dockerfile: Dockerfile contents to be used to build the Blueprint. + file_mounts: (Optional) Map of paths and file contents to write before setup.. + launch_parameters: Parameters to configure your Devbox at launch time. name: Name of the Blueprint. @@ -503,6 +518,7 @@ async def preview( { "code_mounts": code_mounts, "dockerfile": dockerfile, + "file_mounts": file_mounts, "launch_parameters": launch_parameters, "name": name, "system_setup_commands": system_setup_commands, diff --git a/src/runloop_api_client/types/blueprint_build_parameters.py b/src/runloop_api_client/types/blueprint_build_parameters.py index 0474fcb02..f052d5810 100644 --- a/src/runloop_api_client/types/blueprint_build_parameters.py +++ b/src/runloop_api_client/types/blueprint_build_parameters.py @@ -1,6 +1,6 @@ # File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details. -from typing import List, Optional +from typing import Dict, List, Optional from .._models import BaseModel from .resource_size import ResourceSize @@ -24,6 +24,9 @@ class BlueprintBuildParameters(BaseModel): dockerfile: Optional[str] = None """Dockerfile contents to be used to build the Blueprint.""" + file_mounts: Optional[Dict[str, str]] = None + """(Optional) Map of paths and file contents to write before setup..""" + launch_parameters: Optional[LaunchParameters] = None """Parameters to configure your Devbox at launch time.""" diff --git a/src/runloop_api_client/types/blueprint_create_params.py b/src/runloop_api_client/types/blueprint_create_params.py index 4cfc8c3e2..5d797dd66 100644 --- a/src/runloop_api_client/types/blueprint_create_params.py +++ b/src/runloop_api_client/types/blueprint_create_params.py @@ -2,7 +2,7 @@ from __future__ import annotations -from typing import List, Iterable +from typing import Dict, List, Iterable from typing_extensions import TypedDict from .resource_size import ResourceSize @@ -18,6 +18,9 @@ class BlueprintCreateParams(TypedDict, total=False): dockerfile: str """Dockerfile contents to be used to build the Blueprint.""" + file_mounts: Dict[str, str] + """(Optional) Map of paths and file contents to write before setup..""" + launch_parameters: LaunchParameters """Parameters to configure your Devbox at launch time.""" diff --git a/src/runloop_api_client/types/blueprint_preview_params.py b/src/runloop_api_client/types/blueprint_preview_params.py index c5b0e0fd9..1fd80859f 100644 --- a/src/runloop_api_client/types/blueprint_preview_params.py +++ b/src/runloop_api_client/types/blueprint_preview_params.py @@ -2,7 +2,7 @@ from __future__ import annotations -from typing import List, Iterable +from typing import Dict, List, Iterable from typing_extensions import TypedDict from .resource_size import ResourceSize @@ -18,6 +18,9 @@ class BlueprintPreviewParams(TypedDict, total=False): dockerfile: str """Dockerfile contents to be used to build the Blueprint.""" + file_mounts: Dict[str, str] + """(Optional) Map of paths and file contents to write before setup..""" + launch_parameters: LaunchParameters """Parameters to configure your Devbox at launch time.""" diff --git a/tests/api_resources/test_blueprints.py b/tests/api_resources/test_blueprints.py index c0af38fce..0228af67d 100644 --- a/tests/api_resources/test_blueprints.py +++ b/tests/api_resources/test_blueprints.py @@ -51,6 +51,7 @@ def test_method_create_with_all_params(self, client: Runloop) -> None: }, ], dockerfile="dockerfile", + file_mounts={"foo": "string"}, launch_parameters={ "launch_commands": ["string", "string", "string"], "resource_size_request": "MINI", @@ -219,6 +220,7 @@ def test_method_preview_with_all_params(self, client: Runloop) -> None: }, ], dockerfile="dockerfile", + file_mounts={"foo": "string"}, launch_parameters={ "launch_commands": ["string", "string", "string"], "resource_size_request": "MINI", @@ -281,6 +283,7 @@ async def test_method_create_with_all_params(self, async_client: AsyncRunloop) - }, ], dockerfile="dockerfile", + file_mounts={"foo": "string"}, launch_parameters={ "launch_commands": ["string", "string", "string"], "resource_size_request": "MINI", @@ -449,6 +452,7 @@ async def test_method_preview_with_all_params(self, async_client: AsyncRunloop) }, ], dockerfile="dockerfile", + file_mounts={"foo": "string"}, launch_parameters={ "launch_commands": ["string", "string", "string"], "resource_size_request": "MINI",