@@ -106,6 +106,7 @@ def create(
106
106
keep_alive : bool | NotGiven = NOT_GIVEN ,
107
107
proxies : object | NotGiven = NOT_GIVEN ,
108
108
region : Literal ["us-west-2" , "us-east-1" , "eu-central-1" , "ap-southeast-1" ] | NotGiven = NOT_GIVEN ,
109
+ api_timeout : int | NotGiven = NOT_GIVEN ,
109
110
# Use the following arguments if you need to pass additional parameters to the API that aren't available via kwargs.
110
111
# The extra values given here take precedence over values defined on the client or passed to this method.
111
112
extra_headers : Headers | None = None ,
@@ -132,6 +133,9 @@ def create(
132
133
133
134
region: The region where the Session should run.
134
135
136
+ api_timeout: Duration in seconds after which the session will automatically end. Defaults to
137
+ the Project's `defaultTimeout`.
138
+
135
139
extra_headers: Send extra headers
136
140
137
141
extra_query: Add additional query parameters to the request
@@ -150,6 +154,7 @@ def create(
150
154
"keep_alive" : keep_alive ,
151
155
"proxies" : proxies ,
152
156
"region" : region ,
157
+ "timeout" : api_timeout ,
153
158
},
154
159
session_create_params .SessionCreateParams ,
155
160
),
@@ -355,6 +360,7 @@ async def create(
355
360
keep_alive : bool | NotGiven = NOT_GIVEN ,
356
361
proxies : object | NotGiven = NOT_GIVEN ,
357
362
region : Literal ["us-west-2" , "us-east-1" , "eu-central-1" , "ap-southeast-1" ] | NotGiven = NOT_GIVEN ,
363
+ api_timeout : int | NotGiven = NOT_GIVEN ,
358
364
# Use the following arguments if you need to pass additional parameters to the API that aren't available via kwargs.
359
365
# The extra values given here take precedence over values defined on the client or passed to this method.
360
366
extra_headers : Headers | None = None ,
@@ -381,6 +387,9 @@ async def create(
381
387
382
388
region: The region where the Session should run.
383
389
390
+ api_timeout: Duration in seconds after which the session will automatically end. Defaults to
391
+ the Project's `defaultTimeout`.
392
+
384
393
extra_headers: Send extra headers
385
394
386
395
extra_query: Add additional query parameters to the request
@@ -399,6 +408,7 @@ async def create(
399
408
"keep_alive" : keep_alive ,
400
409
"proxies" : proxies ,
401
410
"region" : region ,
411
+ "timeout" : api_timeout ,
402
412
},
403
413
session_create_params .SessionCreateParams ,
404
414
),
0 commit comments