Skip to content

Commit b7a2ce9

Browse files
chore(blueprints): deprecate blueprints.preview() method (#8526)
1 parent 70b1ef5 commit b7a2ce9

3 files changed

Lines changed: 169 additions & 144 deletions

File tree

.stats.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
11
configured_endpoints: 116
2-
openapi_spec_url: https://storage.googleapis.com/stainless-sdk-openapi-specs/runloop-ai%2Frunloop-c3a508fa36d855b159dd7333ecd403c9449f5bea864cd2f9630bea3c983e34a1.yml
3-
openapi_spec_hash: fc3595ac78e5e050ac0bf1985e643619
2+
openapi_spec_url: https://storage.googleapis.com/stainless-sdk-openapi-specs/runloop-ai%2Frunloop-f7dbf6be046a3a36800422068880c0ad070e3fe818775cf42f66391d98ec4ac1.yml
3+
openapi_spec_hash: e11e56a256b4c900d3d078005171f3ba
44
config_hash: 6649774d90af30c3559d6a242b6cb4b0

src/runloop_api_client/resources/blueprints.py

Lines changed: 19 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,7 @@
22

33
from __future__ import annotations
44

5+
import typing_extensions
56
from typing import Dict, Iterable, Optional, TypedDict
67

78
import httpx
@@ -669,6 +670,7 @@ def logs(
669670
cast_to=BlueprintBuildLogsListView,
670671
)
671672

673+
@typing_extensions.deprecated("deprecated")
672674
def preview(
673675
self,
674676
*,
@@ -1349,6 +1351,7 @@ async def logs(
13491351
cast_to=BlueprintBuildLogsListView,
13501352
)
13511353

1354+
@typing_extensions.deprecated("deprecated")
13521355
async def preview(
13531356
self,
13541357
*,
@@ -1488,8 +1491,10 @@ def __init__(self, blueprints: BlueprintsResource) -> None:
14881491
self.logs = to_raw_response_wrapper(
14891492
blueprints.logs,
14901493
)
1491-
self.preview = to_raw_response_wrapper(
1492-
blueprints.preview,
1494+
self.preview = ( # pyright: ignore[reportDeprecated]
1495+
to_raw_response_wrapper(
1496+
blueprints.preview, # pyright: ignore[reportDeprecated],
1497+
)
14931498
)
14941499

14951500

@@ -1518,8 +1523,10 @@ def __init__(self, blueprints: AsyncBlueprintsResource) -> None:
15181523
self.logs = async_to_raw_response_wrapper(
15191524
blueprints.logs,
15201525
)
1521-
self.preview = async_to_raw_response_wrapper(
1522-
blueprints.preview,
1526+
self.preview = ( # pyright: ignore[reportDeprecated]
1527+
async_to_raw_response_wrapper(
1528+
blueprints.preview, # pyright: ignore[reportDeprecated],
1529+
)
15231530
)
15241531

15251532

@@ -1548,8 +1555,10 @@ def __init__(self, blueprints: BlueprintsResource) -> None:
15481555
self.logs = to_streamed_response_wrapper(
15491556
blueprints.logs,
15501557
)
1551-
self.preview = to_streamed_response_wrapper(
1552-
blueprints.preview,
1558+
self.preview = ( # pyright: ignore[reportDeprecated]
1559+
to_streamed_response_wrapper(
1560+
blueprints.preview, # pyright: ignore[reportDeprecated],
1561+
)
15531562
)
15541563

15551564

@@ -1578,6 +1587,8 @@ def __init__(self, blueprints: AsyncBlueprintsResource) -> None:
15781587
self.logs = async_to_streamed_response_wrapper(
15791588
blueprints.logs,
15801589
)
1581-
self.preview = async_to_streamed_response_wrapper(
1582-
blueprints.preview,
1590+
self.preview = ( # pyright: ignore[reportDeprecated]
1591+
async_to_streamed_response_wrapper(
1592+
blueprints.preview, # pyright: ignore[reportDeprecated],
1593+
)
15831594
)

0 commit comments

Comments
 (0)