33from __future__ import annotations
44
55from typing import Dict , Iterable , Optional
6+ from typing_extensions import Literal
67
78import httpx
89
@@ -70,6 +71,7 @@ def create(
7071 profile : browser_pool_create_params .Profile | Omit = omit ,
7172 proxy_id : str | Omit = omit ,
7273 refresh_on_profile_update : bool | Omit = omit ,
74+ region : Literal ["us-east" , "eu-west" ] | Omit = omit ,
7375 start_url : str | Omit = omit ,
7476 stealth : bool | Omit = omit ,
7577 telemetry : Optional [browser_pool_create_params .Telemetry ] | Omit = omit ,
@@ -126,6 +128,10 @@ def create(
126128 pool browsers pick up the latest profile data. When a profile is provided during
127129 creation, this defaults to true. Requires a profile to be set on the pool.
128130
131+ region: Geographic region for the browser pool. It is fixed once the pool is created.
132+ Region selection requires a Start-Up or Enterprise plan, defaults to us-east
133+ when omitted on create.
134+
129135 start_url: Optional URL to navigate to when a new browser is warmed into the pool.
130136 Best-effort: failures to navigate do not fail pool fill. Only applied to
131137 newly-warmed browsers; browsers reused via release/acquire keep whatever URL the
@@ -180,6 +186,7 @@ def create(
180186 "profile" : profile ,
181187 "proxy_id" : proxy_id ,
182188 "refresh_on_profile_update" : refresh_on_profile_update ,
189+ "region" : region ,
183190 "start_url" : start_url ,
184191 "stealth" : stealth ,
185192 "telemetry" : telemetry ,
@@ -386,6 +393,7 @@ def list(
386393 name : str | Omit = omit ,
387394 offset : int | Omit = omit ,
388395 query : str | Omit = omit ,
396+ region : Literal ["us-east" , "eu-west" ] | Omit = omit ,
389397 # Use the following arguments if you need to pass additional parameters to the API that aren't available via kwargs.
390398 # The extra values given here take precedence over values defined on the client or passed to this method.
391399 extra_headers : Headers | None = None ,
@@ -409,6 +417,8 @@ def list(
409417 query: Case-insensitive substring match against browser pool name. IDs match by exact
410418 value.
411419
420+ region: Filter pools by geographic region. Omit to list pools in all regions.
421+
412422 extra_headers: Send extra headers
413423
414424 extra_query: Add additional query parameters to the request
@@ -431,6 +441,7 @@ def list(
431441 "name" : name ,
432442 "offset" : offset ,
433443 "query" : query ,
444+ "region" : region ,
434445 },
435446 browser_pool_list_params .BrowserPoolListParams ,
436447 ),
@@ -678,6 +689,7 @@ async def create(
678689 profile : browser_pool_create_params .Profile | Omit = omit ,
679690 proxy_id : str | Omit = omit ,
680691 refresh_on_profile_update : bool | Omit = omit ,
692+ region : Literal ["us-east" , "eu-west" ] | Omit = omit ,
681693 start_url : str | Omit = omit ,
682694 stealth : bool | Omit = omit ,
683695 telemetry : Optional [browser_pool_create_params .Telemetry ] | Omit = omit ,
@@ -734,6 +746,10 @@ async def create(
734746 pool browsers pick up the latest profile data. When a profile is provided during
735747 creation, this defaults to true. Requires a profile to be set on the pool.
736748
749+ region: Geographic region for the browser pool. It is fixed once the pool is created.
750+ Region selection requires a Start-Up or Enterprise plan, defaults to us-east
751+ when omitted on create.
752+
737753 start_url: Optional URL to navigate to when a new browser is warmed into the pool.
738754 Best-effort: failures to navigate do not fail pool fill. Only applied to
739755 newly-warmed browsers; browsers reused via release/acquire keep whatever URL the
@@ -788,6 +804,7 @@ async def create(
788804 "profile" : profile ,
789805 "proxy_id" : proxy_id ,
790806 "refresh_on_profile_update" : refresh_on_profile_update ,
807+ "region" : region ,
791808 "start_url" : start_url ,
792809 "stealth" : stealth ,
793810 "telemetry" : telemetry ,
@@ -994,6 +1011,7 @@ def list(
9941011 name : str | Omit = omit ,
9951012 offset : int | Omit = omit ,
9961013 query : str | Omit = omit ,
1014+ region : Literal ["us-east" , "eu-west" ] | Omit = omit ,
9971015 # Use the following arguments if you need to pass additional parameters to the API that aren't available via kwargs.
9981016 # The extra values given here take precedence over values defined on the client or passed to this method.
9991017 extra_headers : Headers | None = None ,
@@ -1017,6 +1035,8 @@ def list(
10171035 query: Case-insensitive substring match against browser pool name. IDs match by exact
10181036 value.
10191037
1038+ region: Filter pools by geographic region. Omit to list pools in all regions.
1039+
10201040 extra_headers: Send extra headers
10211041
10221042 extra_query: Add additional query parameters to the request
@@ -1039,6 +1059,7 @@ def list(
10391059 "name" : name ,
10401060 "offset" : offset ,
10411061 "query" : query ,
1062+ "region" : region ,
10421063 },
10431064 browser_pool_list_params .BrowserPoolListParams ,
10441065 ),
0 commit comments