|
70 | 70 | TelemetryResourceWithStreamingResponse, |
71 | 71 | AsyncTelemetryResourceWithStreamingResponse, |
72 | 72 | ) |
73 | | -from .playwright import ( |
74 | | - PlaywrightResource, |
75 | | - AsyncPlaywrightResource, |
76 | | - PlaywrightResourceWithRawResponse, |
77 | | - AsyncPlaywrightResourceWithRawResponse, |
78 | | - PlaywrightResourceWithStreamingResponse, |
79 | | - AsyncPlaywrightResourceWithStreamingResponse, |
80 | | -) |
81 | 73 | from ..._resource import SyncAPIResource, AsyncAPIResource |
82 | 74 | from ..._response import ( |
83 | 75 | to_raw_response_wrapper, |
|
96 | 88 | ) |
97 | 89 | from ..._base_client import AsyncPaginator, make_request_options |
98 | 90 | from ...types.tags_param import TagsParam |
| 91 | +from .playwright.playwright import ( |
| 92 | + PlaywrightResource, |
| 93 | + AsyncPlaywrightResource, |
| 94 | + PlaywrightResourceWithRawResponse, |
| 95 | + AsyncPlaywrightResourceWithRawResponse, |
| 96 | + PlaywrightResourceWithStreamingResponse, |
| 97 | + AsyncPlaywrightResourceWithStreamingResponse, |
| 98 | +) |
99 | 99 | from ...types.browser_repl_result import BrowserReplResult |
100 | 100 | from ...types.browser_curl_response import BrowserCurlResponse |
101 | 101 | from ...types.browser_list_response import BrowserListResponse |
@@ -154,7 +154,9 @@ def computer(self) -> ComputerResource: |
154 | 154 |
|
155 | 155 | @cached_property |
156 | 156 | def playwright(self) -> PlaywrightResource: |
157 | | - """Execute Playwright code against the browser instance.""" |
| 157 | + """ |
| 158 | + Execute Playwright code against the browser instance and manage the executors it runs in. |
| 159 | + """ |
158 | 160 | return PlaywrightResource(self._client) |
159 | 161 |
|
160 | 162 | @cached_property |
@@ -196,7 +198,7 @@ def create( |
196 | 198 | profile: BrowserProfile | Omit = omit, |
197 | 199 | proxy: BrowserProxyConfigParam | Omit = omit, |
198 | 200 | proxy_id: str | Omit = omit, |
199 | | - region: Literal["us-east", "eu-west", "ap-southeast"] | Omit = omit, |
| 201 | + region: Literal["us-east", "us-west", "eu-west", "ap-southeast"] | Omit = omit, |
200 | 202 | start_url: str | Omit = omit, |
201 | 203 | stealth: bool | Omit = omit, |
202 | 204 | tags: TagsParam | Omit = omit, |
@@ -485,7 +487,7 @@ def list( |
485 | 487 | limit: int | Omit = omit, |
486 | 488 | offset: int | Omit = omit, |
487 | 489 | query: str | Omit = omit, |
488 | | - region: Literal["us-east", "eu-west", "ap-southeast"] | Omit = omit, |
| 490 | + region: Literal["us-east", "us-west", "eu-west", "ap-southeast"] | Omit = omit, |
489 | 491 | status: Literal["active", "deleted", "all"] | Omit = omit, |
490 | 492 | tags: Dict[str, str] | Omit = omit, |
491 | 493 | # Use the following arguments if you need to pass additional parameters to the API that aren't available via kwargs. |
@@ -856,7 +858,9 @@ def computer(self) -> AsyncComputerResource: |
856 | 858 |
|
857 | 859 | @cached_property |
858 | 860 | def playwright(self) -> AsyncPlaywrightResource: |
859 | | - """Execute Playwright code against the browser instance.""" |
| 861 | + """ |
| 862 | + Execute Playwright code against the browser instance and manage the executors it runs in. |
| 863 | + """ |
860 | 864 | return AsyncPlaywrightResource(self._client) |
861 | 865 |
|
862 | 866 | @cached_property |
@@ -898,7 +902,7 @@ async def create( |
898 | 902 | profile: BrowserProfile | Omit = omit, |
899 | 903 | proxy: BrowserProxyConfigParam | Omit = omit, |
900 | 904 | proxy_id: str | Omit = omit, |
901 | | - region: Literal["us-east", "eu-west", "ap-southeast"] | Omit = omit, |
| 905 | + region: Literal["us-east", "us-west", "eu-west", "ap-southeast"] | Omit = omit, |
902 | 906 | start_url: str | Omit = omit, |
903 | 907 | stealth: bool | Omit = omit, |
904 | 908 | tags: TagsParam | Omit = omit, |
@@ -1187,7 +1191,7 @@ def list( |
1187 | 1191 | limit: int | Omit = omit, |
1188 | 1192 | offset: int | Omit = omit, |
1189 | 1193 | query: str | Omit = omit, |
1190 | | - region: Literal["us-east", "eu-west", "ap-southeast"] | Omit = omit, |
| 1194 | + region: Literal["us-east", "us-west", "eu-west", "ap-southeast"] | Omit = omit, |
1191 | 1195 | status: Literal["active", "deleted", "all"] | Omit = omit, |
1192 | 1196 | tags: Dict[str, str] | Omit = omit, |
1193 | 1197 | # Use the following arguments if you need to pass additional parameters to the API that aren't available via kwargs. |
@@ -1586,7 +1590,9 @@ def computer(self) -> ComputerResourceWithRawResponse: |
1586 | 1590 |
|
1587 | 1591 | @cached_property |
1588 | 1592 | def playwright(self) -> PlaywrightResourceWithRawResponse: |
1589 | | - """Execute Playwright code against the browser instance.""" |
| 1593 | + """ |
| 1594 | + Execute Playwright code against the browser instance and manage the executors it runs in. |
| 1595 | + """ |
1590 | 1596 | return PlaywrightResourceWithRawResponse(self._browsers.playwright) |
1591 | 1597 |
|
1592 | 1598 | @cached_property |
@@ -1658,7 +1664,9 @@ def computer(self) -> AsyncComputerResourceWithRawResponse: |
1658 | 1664 |
|
1659 | 1665 | @cached_property |
1660 | 1666 | def playwright(self) -> AsyncPlaywrightResourceWithRawResponse: |
1661 | | - """Execute Playwright code against the browser instance.""" |
| 1667 | + """ |
| 1668 | + Execute Playwright code against the browser instance and manage the executors it runs in. |
| 1669 | + """ |
1662 | 1670 | return AsyncPlaywrightResourceWithRawResponse(self._browsers.playwright) |
1663 | 1671 |
|
1664 | 1672 | @cached_property |
@@ -1730,7 +1738,9 @@ def computer(self) -> ComputerResourceWithStreamingResponse: |
1730 | 1738 |
|
1731 | 1739 | @cached_property |
1732 | 1740 | def playwright(self) -> PlaywrightResourceWithStreamingResponse: |
1733 | | - """Execute Playwright code against the browser instance.""" |
| 1741 | + """ |
| 1742 | + Execute Playwright code against the browser instance and manage the executors it runs in. |
| 1743 | + """ |
1734 | 1744 | return PlaywrightResourceWithStreamingResponse(self._browsers.playwright) |
1735 | 1745 |
|
1736 | 1746 | @cached_property |
@@ -1802,7 +1812,9 @@ def computer(self) -> AsyncComputerResourceWithStreamingResponse: |
1802 | 1812 |
|
1803 | 1813 | @cached_property |
1804 | 1814 | def playwright(self) -> AsyncPlaywrightResourceWithStreamingResponse: |
1805 | | - """Execute Playwright code against the browser instance.""" |
| 1815 | + """ |
| 1816 | + Execute Playwright code against the browser instance and manage the executors it runs in. |
| 1817 | + """ |
1806 | 1818 | return AsyncPlaywrightResourceWithStreamingResponse(self._browsers.playwright) |
1807 | 1819 |
|
1808 | 1820 | @cached_property |
|
0 commit comments