@@ -105,10 +105,7 @@ def create(
105
105
extension_id : str | NotGiven = NOT_GIVEN ,
106
106
keep_alive : bool | NotGiven = NOT_GIVEN ,
107
107
proxies : object | NotGiven = NOT_GIVEN ,
108
- region : (
109
- Literal ["us-west-2" , "us-east-1" , "eu-central-1" , "ap-southeast-1" ]
110
- | NotGiven
111
- ) = NOT_GIVEN ,
108
+ region : Literal ["us-west-2" , "us-east-1" , "eu-central-1" , "ap-southeast-1" ] | NotGiven = NOT_GIVEN ,
112
109
api_timeout : int | NotGiven = NOT_GIVEN ,
113
110
# Use the following arguments if you need to pass additional parameters to the API that aren't available via kwargs.
114
111
# The extra values given here take precedence over values defined on the client or passed to this method.
@@ -162,10 +159,7 @@ def create(
162
159
session_create_params .SessionCreateParams ,
163
160
),
164
161
options = make_request_options (
165
- extra_headers = extra_headers ,
166
- extra_query = extra_query ,
167
- extra_body = extra_body ,
168
- timeout = timeout ,
162
+ extra_headers = extra_headers , extra_query = extra_query , extra_body = extra_body , timeout = timeout
169
163
),
170
164
cast_to = SessionCreateResponse ,
171
165
)
@@ -198,10 +192,7 @@ def retrieve(
198
192
return self ._get (
199
193
f"/v1/sessions/{ id } " ,
200
194
options = make_request_options (
201
- extra_headers = extra_headers ,
202
- extra_query = extra_query ,
203
- extra_body = extra_body ,
204
- timeout = timeout ,
195
+ extra_headers = extra_headers , extra_query = extra_query , extra_body = extra_body , timeout = timeout
205
196
),
206
197
cast_to = Session ,
207
198
)
@@ -250,20 +241,15 @@ def update(
250
241
session_update_params .SessionUpdateParams ,
251
242
),
252
243
options = make_request_options (
253
- extra_headers = extra_headers ,
254
- extra_query = extra_query ,
255
- extra_body = extra_body ,
256
- timeout = timeout ,
244
+ extra_headers = extra_headers , extra_query = extra_query , extra_body = extra_body , timeout = timeout
257
245
),
258
246
cast_to = Session ,
259
247
)
260
248
261
249
def list (
262
250
self ,
263
251
* ,
264
- status : (
265
- Literal ["RUNNING" , "ERROR" , "TIMED_OUT" , "COMPLETED" ] | NotGiven
266
- ) = NOT_GIVEN ,
252
+ status : Literal ["RUNNING" , "ERROR" , "TIMED_OUT" , "COMPLETED" ] | NotGiven = NOT_GIVEN ,
267
253
# Use the following arguments if you need to pass additional parameters to the API that aren't available via kwargs.
268
254
# The extra values given here take precedence over values defined on the client or passed to this method.
269
255
extra_headers : Headers | None = None ,
@@ -290,9 +276,7 @@ def list(
290
276
extra_query = extra_query ,
291
277
extra_body = extra_body ,
292
278
timeout = timeout ,
293
- query = maybe_transform (
294
- {"status" : status }, session_list_params .SessionListParams
295
- ),
279
+ query = maybe_transform ({"status" : status }, session_list_params .SessionListParams ),
296
280
),
297
281
cast_to = SessionListResponse ,
298
282
)
@@ -325,10 +309,7 @@ def debug(
325
309
return self ._get (
326
310
f"/v1/sessions/{ id } /debug" ,
327
311
options = make_request_options (
328
- extra_headers = extra_headers ,
329
- extra_query = extra_query ,
330
- extra_body = extra_body ,
331
- timeout = timeout ,
312
+ extra_headers = extra_headers , extra_query = extra_query , extra_body = extra_body , timeout = timeout
332
313
),
333
314
cast_to = SessionLiveURLs ,
334
315
)
@@ -378,10 +359,7 @@ async def create(
378
359
extension_id : str | NotGiven = NOT_GIVEN ,
379
360
keep_alive : bool | NotGiven = NOT_GIVEN ,
380
361
proxies : object | NotGiven = NOT_GIVEN ,
381
- region : (
382
- Literal ["us-west-2" , "us-east-1" , "eu-central-1" , "ap-southeast-1" ]
383
- | NotGiven
384
- ) = NOT_GIVEN ,
362
+ region : Literal ["us-west-2" , "us-east-1" , "eu-central-1" , "ap-southeast-1" ] | NotGiven = NOT_GIVEN ,
385
363
api_timeout : int | NotGiven = NOT_GIVEN ,
386
364
# Use the following arguments if you need to pass additional parameters to the API that aren't available via kwargs.
387
365
# The extra values given here take precedence over values defined on the client or passed to this method.
@@ -435,10 +413,7 @@ async def create(
435
413
session_create_params .SessionCreateParams ,
436
414
),
437
415
options = make_request_options (
438
- extra_headers = extra_headers ,
439
- extra_query = extra_query ,
440
- extra_body = extra_body ,
441
- timeout = timeout ,
416
+ extra_headers = extra_headers , extra_query = extra_query , extra_body = extra_body , timeout = timeout
442
417
),
443
418
cast_to = SessionCreateResponse ,
444
419
)
@@ -471,10 +446,7 @@ async def retrieve(
471
446
return await self ._get (
472
447
f"/v1/sessions/{ id } " ,
473
448
options = make_request_options (
474
- extra_headers = extra_headers ,
475
- extra_query = extra_query ,
476
- extra_body = extra_body ,
477
- timeout = timeout ,
449
+ extra_headers = extra_headers , extra_query = extra_query , extra_body = extra_body , timeout = timeout
478
450
),
479
451
cast_to = Session ,
480
452
)
@@ -523,20 +495,15 @@ async def update(
523
495
session_update_params .SessionUpdateParams ,
524
496
),
525
497
options = make_request_options (
526
- extra_headers = extra_headers ,
527
- extra_query = extra_query ,
528
- extra_body = extra_body ,
529
- timeout = timeout ,
498
+ extra_headers = extra_headers , extra_query = extra_query , extra_body = extra_body , timeout = timeout
530
499
),
531
500
cast_to = Session ,
532
501
)
533
502
534
503
async def list (
535
504
self ,
536
505
* ,
537
- status : (
538
- Literal ["RUNNING" , "ERROR" , "TIMED_OUT" , "COMPLETED" ] | NotGiven
539
- ) = NOT_GIVEN ,
506
+ status : Literal ["RUNNING" , "ERROR" , "TIMED_OUT" , "COMPLETED" ] | NotGiven = NOT_GIVEN ,
540
507
# Use the following arguments if you need to pass additional parameters to the API that aren't available via kwargs.
541
508
# The extra values given here take precedence over values defined on the client or passed to this method.
542
509
extra_headers : Headers | None = None ,
@@ -563,9 +530,7 @@ async def list(
563
530
extra_query = extra_query ,
564
531
extra_body = extra_body ,
565
532
timeout = timeout ,
566
- query = await async_maybe_transform (
567
- {"status" : status }, session_list_params .SessionListParams
568
- ),
533
+ query = await async_maybe_transform ({"status" : status }, session_list_params .SessionListParams ),
569
534
),
570
535
cast_to = SessionListResponse ,
571
536
)
@@ -598,10 +563,7 @@ async def debug(
598
563
return await self ._get (
599
564
f"/v1/sessions/{ id } /debug" ,
600
565
options = make_request_options (
601
- extra_headers = extra_headers ,
602
- extra_query = extra_query ,
603
- extra_body = extra_body ,
604
- timeout = timeout ,
566
+ extra_headers = extra_headers , extra_query = extra_query , extra_body = extra_body , timeout = timeout
605
567
),
606
568
cast_to = SessionLiveURLs ,
607
569
)
@@ -752,4 +714,4 @@ def recording(self) -> AsyncRecordingResourceWithStreamingResponse:
752
714
753
715
@cached_property
754
716
def uploads (self ) -> AsyncUploadsResourceWithStreamingResponse :
755
- return AsyncUploadsResourceWithStreamingResponse (self ._sessions .uploads )
717
+ return AsyncUploadsResourceWithStreamingResponse (self ._sessions .uploads )
0 commit comments