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: 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
18 changes: 17 additions & 1 deletion src/runloop_api_client/resources/blueprints.py
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@

from __future__ import annotations

from typing import List, Iterable
from typing import Dict, List, Iterable

import httpx

Expand Down Expand Up @@ -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,
Expand All @@ -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.
Expand All @@ -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,
Expand Down Expand Up @@ -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,
Expand All @@ -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.
Expand All @@ -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,
Expand Down Expand Up @@ -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,
Expand All @@ -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.
Expand All @@ -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,
Expand Down Expand Up @@ -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,
Expand All @@ -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.
Expand All @@ -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,
Expand Down
5 changes: 4 additions & 1 deletion src/runloop_api_client/types/blueprint_build_parameters.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 List, Optional
from typing import Dict, List, Optional

from .._models import BaseModel
from .resource_size import ResourceSize
Expand All @@ -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."""

Expand Down
5 changes: 4 additions & 1 deletion src/runloop_api_client/types/blueprint_create_params.py
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand All @@ -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."""

Expand Down
5 changes: 4 additions & 1 deletion src/runloop_api_client/types/blueprint_preview_params.py
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand All @@ -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."""

Expand Down
4 changes: 4 additions & 0 deletions tests/api_resources/test_blueprints.py
Original file line number Diff line number Diff line change
Expand Up @@ -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",
Expand Down Expand Up @@ -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",
Expand Down Expand Up @@ -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",
Expand Down Expand Up @@ -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",
Expand Down