@@ -106,6 +106,7 @@ def create(
106106 keep_alive : bool | NotGiven = NOT_GIVEN ,
107107 proxies : object | NotGiven = NOT_GIVEN ,
108108 region : Literal ["us-west-2" , "us-east-1" , "eu-central-1" , "ap-southeast-1" ] | NotGiven = NOT_GIVEN ,
109+ api_timeout : int | NotGiven = NOT_GIVEN ,
109110 # Use the following arguments if you need to pass additional parameters to the API that aren't available via kwargs.
110111 # The extra values given here take precedence over values defined on the client or passed to this method.
111112 extra_headers : Headers | None = None ,
@@ -132,6 +133,9 @@ def create(
132133
133134 region: The region where the Session should run.
134135
136+ api_timeout: Duration in seconds after which the session will automatically end. Defaults to
137+ the Project's `defaultTimeout`.
138+
135139 extra_headers: Send extra headers
136140
137141 extra_query: Add additional query parameters to the request
@@ -150,6 +154,7 @@ def create(
150154 "keep_alive" : keep_alive ,
151155 "proxies" : proxies ,
152156 "region" : region ,
157+ "timeout" : api_timeout ,
153158 },
154159 session_create_params .SessionCreateParams ,
155160 ),
@@ -355,6 +360,7 @@ async def create(
355360 keep_alive : bool | NotGiven = NOT_GIVEN ,
356361 proxies : object | NotGiven = NOT_GIVEN ,
357362 region : Literal ["us-west-2" , "us-east-1" , "eu-central-1" , "ap-southeast-1" ] | NotGiven = NOT_GIVEN ,
363+ api_timeout : int | NotGiven = NOT_GIVEN ,
358364 # Use the following arguments if you need to pass additional parameters to the API that aren't available via kwargs.
359365 # The extra values given here take precedence over values defined on the client or passed to this method.
360366 extra_headers : Headers | None = None ,
@@ -381,6 +387,9 @@ async def create(
381387
382388 region: The region where the Session should run.
383389
390+ api_timeout: Duration in seconds after which the session will automatically end. Defaults to
391+ the Project's `defaultTimeout`.
392+
384393 extra_headers: Send extra headers
385394
386395 extra_query: Add additional query parameters to the request
@@ -399,6 +408,7 @@ async def create(
399408 "keep_alive" : keep_alive ,
400409 "proxies" : proxies ,
401410 "region" : region ,
411+ "timeout" : api_timeout ,
402412 },
403413 session_create_params .SessionCreateParams ,
404414 ),
0 commit comments