Skip to content

Commit 86cf18f

Browse files
stainless-app[bot]stainless-bot
authored andcommitted
feat(api): update via SDK Studio (#58)
1 parent 12018b3 commit 86cf18f

6 files changed

Lines changed: 34 additions & 5 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: 19
2-
openapi_spec_url: https://storage.googleapis.com/stainless-sdk-openapi-specs/runloop-ai%2Frunloop-1ee44166266d9e9a3ab416b9a232c5cc239e42d504eec799e67df4563b19916f.yml
2+
openapi_spec_url: https://storage.googleapis.com/stainless-sdk-openapi-specs/runloop-ai%2Frunloop-8ed7237714dcf00d5e186095c38ac8afb3300d4773e0d836042d89f3b53c7ffc.yml

src/runloop_api_client/resources/blueprints.py

Lines changed: 17 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22

33
from __future__ import annotations
44

5-
from typing import List, Iterable
5+
from typing import Dict, List, Iterable
66

77
import httpx
88

@@ -44,6 +44,7 @@ def create(
4444
*,
4545
code_mounts: Iterable[CodeMountParametersParam] | NotGiven = NOT_GIVEN,
4646
dockerfile: str | NotGiven = NOT_GIVEN,
47+
file_mounts: Dict[str, str] | NotGiven = NOT_GIVEN,
4748
launch_parameters: blueprint_create_params.LaunchParameters | NotGiven = NOT_GIVEN,
4849
name: str | NotGiven = NOT_GIVEN,
4950
system_setup_commands: List[str] | NotGiven = NOT_GIVEN,
@@ -65,6 +66,8 @@ def create(
6566
6667
dockerfile: Dockerfile contents to be used to build the Blueprint.
6768
69+
file_mounts: (Optional) Map of paths and file contents to write before setup..
70+
6871
launch_parameters: Parameters to configure your Devbox at launch time.
6972
7073
name: Name of the Blueprint.
@@ -85,6 +88,7 @@ def create(
8588
{
8689
"code_mounts": code_mounts,
8790
"dockerfile": dockerfile,
91+
"file_mounts": file_mounts,
8892
"launch_parameters": launch_parameters,
8993
"name": name,
9094
"system_setup_commands": system_setup_commands,
@@ -220,6 +224,7 @@ def preview(
220224
*,
221225
code_mounts: Iterable[CodeMountParametersParam] | NotGiven = NOT_GIVEN,
222226
dockerfile: str | NotGiven = NOT_GIVEN,
227+
file_mounts: Dict[str, str] | NotGiven = NOT_GIVEN,
223228
launch_parameters: blueprint_preview_params.LaunchParameters | NotGiven = NOT_GIVEN,
224229
name: str | NotGiven = NOT_GIVEN,
225230
system_setup_commands: List[str] | NotGiven = NOT_GIVEN,
@@ -240,6 +245,8 @@ def preview(
240245
241246
dockerfile: Dockerfile contents to be used to build the Blueprint.
242247
248+
file_mounts: (Optional) Map of paths and file contents to write before setup..
249+
243250
launch_parameters: Parameters to configure your Devbox at launch time.
244251
245252
name: Name of the Blueprint.
@@ -260,6 +267,7 @@ def preview(
260267
{
261268
"code_mounts": code_mounts,
262269
"dockerfile": dockerfile,
270+
"file_mounts": file_mounts,
263271
"launch_parameters": launch_parameters,
264272
"name": name,
265273
"system_setup_commands": system_setup_commands,
@@ -287,6 +295,7 @@ async def create(
287295
*,
288296
code_mounts: Iterable[CodeMountParametersParam] | NotGiven = NOT_GIVEN,
289297
dockerfile: str | NotGiven = NOT_GIVEN,
298+
file_mounts: Dict[str, str] | NotGiven = NOT_GIVEN,
290299
launch_parameters: blueprint_create_params.LaunchParameters | NotGiven = NOT_GIVEN,
291300
name: str | NotGiven = NOT_GIVEN,
292301
system_setup_commands: List[str] | NotGiven = NOT_GIVEN,
@@ -308,6 +317,8 @@ async def create(
308317
309318
dockerfile: Dockerfile contents to be used to build the Blueprint.
310319
320+
file_mounts: (Optional) Map of paths and file contents to write before setup..
321+
311322
launch_parameters: Parameters to configure your Devbox at launch time.
312323
313324
name: Name of the Blueprint.
@@ -328,6 +339,7 @@ async def create(
328339
{
329340
"code_mounts": code_mounts,
330341
"dockerfile": dockerfile,
342+
"file_mounts": file_mounts,
331343
"launch_parameters": launch_parameters,
332344
"name": name,
333345
"system_setup_commands": system_setup_commands,
@@ -463,6 +475,7 @@ async def preview(
463475
*,
464476
code_mounts: Iterable[CodeMountParametersParam] | NotGiven = NOT_GIVEN,
465477
dockerfile: str | NotGiven = NOT_GIVEN,
478+
file_mounts: Dict[str, str] | NotGiven = NOT_GIVEN,
466479
launch_parameters: blueprint_preview_params.LaunchParameters | NotGiven = NOT_GIVEN,
467480
name: str | NotGiven = NOT_GIVEN,
468481
system_setup_commands: List[str] | NotGiven = NOT_GIVEN,
@@ -483,6 +496,8 @@ async def preview(
483496
484497
dockerfile: Dockerfile contents to be used to build the Blueprint.
485498
499+
file_mounts: (Optional) Map of paths and file contents to write before setup..
500+
486501
launch_parameters: Parameters to configure your Devbox at launch time.
487502
488503
name: Name of the Blueprint.
@@ -503,6 +518,7 @@ async def preview(
503518
{
504519
"code_mounts": code_mounts,
505520
"dockerfile": dockerfile,
521+
"file_mounts": file_mounts,
506522
"launch_parameters": launch_parameters,
507523
"name": name,
508524
"system_setup_commands": system_setup_commands,

src/runloop_api_client/types/blueprint_build_parameters.py

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
# File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details.
22

3-
from typing import List, Optional
3+
from typing import Dict, List, Optional
44

55
from .._models import BaseModel
66
from .resource_size import ResourceSize
@@ -24,6 +24,9 @@ class BlueprintBuildParameters(BaseModel):
2424
dockerfile: Optional[str] = None
2525
"""Dockerfile contents to be used to build the Blueprint."""
2626

27+
file_mounts: Optional[Dict[str, str]] = None
28+
"""(Optional) Map of paths and file contents to write before setup.."""
29+
2730
launch_parameters: Optional[LaunchParameters] = None
2831
"""Parameters to configure your Devbox at launch time."""
2932

src/runloop_api_client/types/blueprint_create_params.py

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22

33
from __future__ import annotations
44

5-
from typing import List, Iterable
5+
from typing import Dict, List, Iterable
66
from typing_extensions import TypedDict
77

88
from .resource_size import ResourceSize
@@ -18,6 +18,9 @@ class BlueprintCreateParams(TypedDict, total=False):
1818
dockerfile: str
1919
"""Dockerfile contents to be used to build the Blueprint."""
2020

21+
file_mounts: Dict[str, str]
22+
"""(Optional) Map of paths and file contents to write before setup.."""
23+
2124
launch_parameters: LaunchParameters
2225
"""Parameters to configure your Devbox at launch time."""
2326

src/runloop_api_client/types/blueprint_preview_params.py

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22

33
from __future__ import annotations
44

5-
from typing import List, Iterable
5+
from typing import Dict, List, Iterable
66
from typing_extensions import TypedDict
77

88
from .resource_size import ResourceSize
@@ -18,6 +18,9 @@ class BlueprintPreviewParams(TypedDict, total=False):
1818
dockerfile: str
1919
"""Dockerfile contents to be used to build the Blueprint."""
2020

21+
file_mounts: Dict[str, str]
22+
"""(Optional) Map of paths and file contents to write before setup.."""
23+
2124
launch_parameters: LaunchParameters
2225
"""Parameters to configure your Devbox at launch time."""
2326

tests/api_resources/test_blueprints.py

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -51,6 +51,7 @@ def test_method_create_with_all_params(self, client: Runloop) -> None:
5151
},
5252
],
5353
dockerfile="dockerfile",
54+
file_mounts={"foo": "string"},
5455
launch_parameters={
5556
"launch_commands": ["string", "string", "string"],
5657
"resource_size_request": "MINI",
@@ -219,6 +220,7 @@ def test_method_preview_with_all_params(self, client: Runloop) -> None:
219220
},
220221
],
221222
dockerfile="dockerfile",
223+
file_mounts={"foo": "string"},
222224
launch_parameters={
223225
"launch_commands": ["string", "string", "string"],
224226
"resource_size_request": "MINI",
@@ -281,6 +283,7 @@ async def test_method_create_with_all_params(self, async_client: AsyncRunloop) -
281283
},
282284
],
283285
dockerfile="dockerfile",
286+
file_mounts={"foo": "string"},
284287
launch_parameters={
285288
"launch_commands": ["string", "string", "string"],
286289
"resource_size_request": "MINI",
@@ -449,6 +452,7 @@ async def test_method_preview_with_all_params(self, async_client: AsyncRunloop)
449452
},
450453
],
451454
dockerfile="dockerfile",
455+
file_mounts={"foo": "string"},
452456
launch_parameters={
453457
"launch_commands": ["string", "string", "string"],
454458
"resource_size_request": "MINI",

0 commit comments

Comments
 (0)