asteroid-odyssey 1.0.3__py3-none-any.whl → 1.1.0__py3-none-any.whl

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -17,8 +17,13 @@ from typing import Any, Dict, List, Optional, Tuple, Union
17
17
  from typing_extensions import Annotated
18
18
 
19
19
  from pydantic import Field, StrictBytes, StrictStr
20
- from typing import List, Optional, Tuple, Union
20
+ from typing import Any, Dict, List, Optional, Tuple, Union
21
21
  from typing_extensions import Annotated
22
+ from asteroid_odyssey.openapi_client.models.browser_session_recording_response import BrowserSessionRecordingResponse
23
+ from asteroid_odyssey.openapi_client.models.execution_response import ExecutionResponse
24
+ from asteroid_odyssey.openapi_client.models.execution_result_response import ExecutionResultResponse
25
+ from asteroid_odyssey.openapi_client.models.execution_status_response import ExecutionStatusResponse
26
+ from asteroid_odyssey.openapi_client.models.structured_agent_execution_request import StructuredAgentExecutionRequest
22
27
  from asteroid_odyssey.openapi_client.models.upload_execution_files200_response import UploadExecutionFiles200Response
23
28
 
24
29
  from asteroid_odyssey.openapi_client.api_client import ApiClient, RequestSerialized
@@ -39,6 +44,1400 @@ class ExecutionApi:
39
44
  self.api_client = api_client
40
45
 
41
46
 
47
+ @validate_call
48
+ def execute_agent(
49
+ self,
50
+ id: Annotated[StrictStr, Field(description="The ID of the agent")],
51
+ request_body: Dict[str, Any],
52
+ _request_timeout: Union[
53
+ None,
54
+ Annotated[StrictFloat, Field(gt=0)],
55
+ Tuple[
56
+ Annotated[StrictFloat, Field(gt=0)],
57
+ Annotated[StrictFloat, Field(gt=0)]
58
+ ]
59
+ ] = None,
60
+ _request_auth: Optional[Dict[StrictStr, Any]] = None,
61
+ _content_type: Optional[StrictStr] = None,
62
+ _headers: Optional[Dict[StrictStr, Any]] = None,
63
+ _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
64
+ ) -> ExecutionResponse:
65
+ """(Deprecated) Execute an agent
66
+
67
+ Executes an agent with the provided parameters
68
+
69
+ :param id: The ID of the agent (required)
70
+ :type id: str
71
+ :param request_body: (required)
72
+ :type request_body: Dict[str, object]
73
+ :param _request_timeout: timeout setting for this request. If one
74
+ number provided, it will be total request
75
+ timeout. It can also be a pair (tuple) of
76
+ (connection, read) timeouts.
77
+ :type _request_timeout: int, tuple(int, int), optional
78
+ :param _request_auth: set to override the auth_settings for an a single
79
+ request; this effectively ignores the
80
+ authentication in the spec for a single request.
81
+ :type _request_auth: dict, optional
82
+ :param _content_type: force content-type for the request.
83
+ :type _content_type: str, Optional
84
+ :param _headers: set to override the headers for a single
85
+ request; this effectively ignores the headers
86
+ in the spec for a single request.
87
+ :type _headers: dict, optional
88
+ :param _host_index: set to override the host_index for a single
89
+ request; this effectively ignores the host_index
90
+ in the spec for a single request.
91
+ :type _host_index: int, optional
92
+ :return: Returns the result object.
93
+ """ # noqa: E501
94
+ warnings.warn("POST /agent/{id} is deprecated.", DeprecationWarning)
95
+
96
+ _param = self._execute_agent_serialize(
97
+ id=id,
98
+ request_body=request_body,
99
+ _request_auth=_request_auth,
100
+ _content_type=_content_type,
101
+ _headers=_headers,
102
+ _host_index=_host_index
103
+ )
104
+
105
+ _response_types_map: Dict[str, Optional[str]] = {
106
+ '202': "ExecutionResponse",
107
+ '400': "ErrorResponse",
108
+ '404': "ErrorResponse",
109
+ '500': "ErrorResponse",
110
+ }
111
+ response_data = self.api_client.call_api(
112
+ *_param,
113
+ _request_timeout=_request_timeout
114
+ )
115
+ response_data.read()
116
+ return self.api_client.response_deserialize(
117
+ response_data=response_data,
118
+ response_types_map=_response_types_map,
119
+ ).data
120
+
121
+
122
+ @validate_call
123
+ def execute_agent_with_http_info(
124
+ self,
125
+ id: Annotated[StrictStr, Field(description="The ID of the agent")],
126
+ request_body: Dict[str, Any],
127
+ _request_timeout: Union[
128
+ None,
129
+ Annotated[StrictFloat, Field(gt=0)],
130
+ Tuple[
131
+ Annotated[StrictFloat, Field(gt=0)],
132
+ Annotated[StrictFloat, Field(gt=0)]
133
+ ]
134
+ ] = None,
135
+ _request_auth: Optional[Dict[StrictStr, Any]] = None,
136
+ _content_type: Optional[StrictStr] = None,
137
+ _headers: Optional[Dict[StrictStr, Any]] = None,
138
+ _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
139
+ ) -> ApiResponse[ExecutionResponse]:
140
+ """(Deprecated) Execute an agent
141
+
142
+ Executes an agent with the provided parameters
143
+
144
+ :param id: The ID of the agent (required)
145
+ :type id: str
146
+ :param request_body: (required)
147
+ :type request_body: Dict[str, object]
148
+ :param _request_timeout: timeout setting for this request. If one
149
+ number provided, it will be total request
150
+ timeout. It can also be a pair (tuple) of
151
+ (connection, read) timeouts.
152
+ :type _request_timeout: int, tuple(int, int), optional
153
+ :param _request_auth: set to override the auth_settings for an a single
154
+ request; this effectively ignores the
155
+ authentication in the spec for a single request.
156
+ :type _request_auth: dict, optional
157
+ :param _content_type: force content-type for the request.
158
+ :type _content_type: str, Optional
159
+ :param _headers: set to override the headers for a single
160
+ request; this effectively ignores the headers
161
+ in the spec for a single request.
162
+ :type _headers: dict, optional
163
+ :param _host_index: set to override the host_index for a single
164
+ request; this effectively ignores the host_index
165
+ in the spec for a single request.
166
+ :type _host_index: int, optional
167
+ :return: Returns the result object.
168
+ """ # noqa: E501
169
+ warnings.warn("POST /agent/{id} is deprecated.", DeprecationWarning)
170
+
171
+ _param = self._execute_agent_serialize(
172
+ id=id,
173
+ request_body=request_body,
174
+ _request_auth=_request_auth,
175
+ _content_type=_content_type,
176
+ _headers=_headers,
177
+ _host_index=_host_index
178
+ )
179
+
180
+ _response_types_map: Dict[str, Optional[str]] = {
181
+ '202': "ExecutionResponse",
182
+ '400': "ErrorResponse",
183
+ '404': "ErrorResponse",
184
+ '500': "ErrorResponse",
185
+ }
186
+ response_data = self.api_client.call_api(
187
+ *_param,
188
+ _request_timeout=_request_timeout
189
+ )
190
+ response_data.read()
191
+ return self.api_client.response_deserialize(
192
+ response_data=response_data,
193
+ response_types_map=_response_types_map,
194
+ )
195
+
196
+
197
+ @validate_call
198
+ def execute_agent_without_preload_content(
199
+ self,
200
+ id: Annotated[StrictStr, Field(description="The ID of the agent")],
201
+ request_body: Dict[str, Any],
202
+ _request_timeout: Union[
203
+ None,
204
+ Annotated[StrictFloat, Field(gt=0)],
205
+ Tuple[
206
+ Annotated[StrictFloat, Field(gt=0)],
207
+ Annotated[StrictFloat, Field(gt=0)]
208
+ ]
209
+ ] = None,
210
+ _request_auth: Optional[Dict[StrictStr, Any]] = None,
211
+ _content_type: Optional[StrictStr] = None,
212
+ _headers: Optional[Dict[StrictStr, Any]] = None,
213
+ _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
214
+ ) -> RESTResponseType:
215
+ """(Deprecated) Execute an agent
216
+
217
+ Executes an agent with the provided parameters
218
+
219
+ :param id: The ID of the agent (required)
220
+ :type id: str
221
+ :param request_body: (required)
222
+ :type request_body: Dict[str, object]
223
+ :param _request_timeout: timeout setting for this request. If one
224
+ number provided, it will be total request
225
+ timeout. It can also be a pair (tuple) of
226
+ (connection, read) timeouts.
227
+ :type _request_timeout: int, tuple(int, int), optional
228
+ :param _request_auth: set to override the auth_settings for an a single
229
+ request; this effectively ignores the
230
+ authentication in the spec for a single request.
231
+ :type _request_auth: dict, optional
232
+ :param _content_type: force content-type for the request.
233
+ :type _content_type: str, Optional
234
+ :param _headers: set to override the headers for a single
235
+ request; this effectively ignores the headers
236
+ in the spec for a single request.
237
+ :type _headers: dict, optional
238
+ :param _host_index: set to override the host_index for a single
239
+ request; this effectively ignores the host_index
240
+ in the spec for a single request.
241
+ :type _host_index: int, optional
242
+ :return: Returns the result object.
243
+ """ # noqa: E501
244
+ warnings.warn("POST /agent/{id} is deprecated.", DeprecationWarning)
245
+
246
+ _param = self._execute_agent_serialize(
247
+ id=id,
248
+ request_body=request_body,
249
+ _request_auth=_request_auth,
250
+ _content_type=_content_type,
251
+ _headers=_headers,
252
+ _host_index=_host_index
253
+ )
254
+
255
+ _response_types_map: Dict[str, Optional[str]] = {
256
+ '202': "ExecutionResponse",
257
+ '400': "ErrorResponse",
258
+ '404': "ErrorResponse",
259
+ '500': "ErrorResponse",
260
+ }
261
+ response_data = self.api_client.call_api(
262
+ *_param,
263
+ _request_timeout=_request_timeout
264
+ )
265
+ return response_data.response
266
+
267
+
268
+ def _execute_agent_serialize(
269
+ self,
270
+ id,
271
+ request_body,
272
+ _request_auth,
273
+ _content_type,
274
+ _headers,
275
+ _host_index,
276
+ ) -> RequestSerialized:
277
+
278
+ _host = None
279
+
280
+ _collection_formats: Dict[str, str] = {
281
+ }
282
+
283
+ _path_params: Dict[str, str] = {}
284
+ _query_params: List[Tuple[str, str]] = []
285
+ _header_params: Dict[str, Optional[str]] = _headers or {}
286
+ _form_params: List[Tuple[str, str]] = []
287
+ _files: Dict[
288
+ str, Union[str, bytes, List[str], List[bytes], List[Tuple[str, bytes]]]
289
+ ] = {}
290
+ _body_params: Optional[bytes] = None
291
+
292
+ # process the path parameters
293
+ if id is not None:
294
+ _path_params['id'] = id
295
+ # process the query parameters
296
+ # process the header parameters
297
+ # process the form parameters
298
+ # process the body parameter
299
+ if request_body is not None:
300
+ _body_params = request_body
301
+
302
+
303
+ # set the HTTP header `Accept`
304
+ if 'Accept' not in _header_params:
305
+ _header_params['Accept'] = self.api_client.select_header_accept(
306
+ [
307
+ 'application/json'
308
+ ]
309
+ )
310
+
311
+ # set the HTTP header `Content-Type`
312
+ if _content_type:
313
+ _header_params['Content-Type'] = _content_type
314
+ else:
315
+ _default_content_type = (
316
+ self.api_client.select_header_content_type(
317
+ [
318
+ 'application/json'
319
+ ]
320
+ )
321
+ )
322
+ if _default_content_type is not None:
323
+ _header_params['Content-Type'] = _default_content_type
324
+
325
+ # authentication setting
326
+ _auth_settings: List[str] = [
327
+ 'ApiKeyAuth'
328
+ ]
329
+
330
+ return self.api_client.param_serialize(
331
+ method='POST',
332
+ resource_path='/agent/{id}',
333
+ path_params=_path_params,
334
+ query_params=_query_params,
335
+ header_params=_header_params,
336
+ body=_body_params,
337
+ post_params=_form_params,
338
+ files=_files,
339
+ auth_settings=_auth_settings,
340
+ collection_formats=_collection_formats,
341
+ _host=_host,
342
+ _request_auth=_request_auth
343
+ )
344
+
345
+
346
+
347
+
348
+ @validate_call
349
+ def execute_agent_structured(
350
+ self,
351
+ id: Annotated[StrictStr, Field(description="The ID of the agent")],
352
+ structured_agent_execution_request: StructuredAgentExecutionRequest,
353
+ _request_timeout: Union[
354
+ None,
355
+ Annotated[StrictFloat, Field(gt=0)],
356
+ Tuple[
357
+ Annotated[StrictFloat, Field(gt=0)],
358
+ Annotated[StrictFloat, Field(gt=0)]
359
+ ]
360
+ ] = None,
361
+ _request_auth: Optional[Dict[StrictStr, Any]] = None,
362
+ _content_type: Optional[StrictStr] = None,
363
+ _headers: Optional[Dict[StrictStr, Any]] = None,
364
+ _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
365
+ ) -> ExecutionResponse:
366
+ """Execute an agent with structured parameters
367
+
368
+ Executes an agent with structured parameters including optional agent profile configuration. This is the recommended method for new integrations.
369
+
370
+ :param id: The ID of the agent (required)
371
+ :type id: str
372
+ :param structured_agent_execution_request: (required)
373
+ :type structured_agent_execution_request: StructuredAgentExecutionRequest
374
+ :param _request_timeout: timeout setting for this request. If one
375
+ number provided, it will be total request
376
+ timeout. It can also be a pair (tuple) of
377
+ (connection, read) timeouts.
378
+ :type _request_timeout: int, tuple(int, int), optional
379
+ :param _request_auth: set to override the auth_settings for an a single
380
+ request; this effectively ignores the
381
+ authentication in the spec for a single request.
382
+ :type _request_auth: dict, optional
383
+ :param _content_type: force content-type for the request.
384
+ :type _content_type: str, Optional
385
+ :param _headers: set to override the headers for a single
386
+ request; this effectively ignores the headers
387
+ in the spec for a single request.
388
+ :type _headers: dict, optional
389
+ :param _host_index: set to override the host_index for a single
390
+ request; this effectively ignores the host_index
391
+ in the spec for a single request.
392
+ :type _host_index: int, optional
393
+ :return: Returns the result object.
394
+ """ # noqa: E501
395
+
396
+ _param = self._execute_agent_structured_serialize(
397
+ id=id,
398
+ structured_agent_execution_request=structured_agent_execution_request,
399
+ _request_auth=_request_auth,
400
+ _content_type=_content_type,
401
+ _headers=_headers,
402
+ _host_index=_host_index
403
+ )
404
+
405
+ _response_types_map: Dict[str, Optional[str]] = {
406
+ '202': "ExecutionResponse",
407
+ '400': "ErrorResponse",
408
+ '404': "ErrorResponse",
409
+ '500': "ErrorResponse",
410
+ }
411
+ response_data = self.api_client.call_api(
412
+ *_param,
413
+ _request_timeout=_request_timeout
414
+ )
415
+ response_data.read()
416
+ return self.api_client.response_deserialize(
417
+ response_data=response_data,
418
+ response_types_map=_response_types_map,
419
+ ).data
420
+
421
+
422
+ @validate_call
423
+ def execute_agent_structured_with_http_info(
424
+ self,
425
+ id: Annotated[StrictStr, Field(description="The ID of the agent")],
426
+ structured_agent_execution_request: StructuredAgentExecutionRequest,
427
+ _request_timeout: Union[
428
+ None,
429
+ Annotated[StrictFloat, Field(gt=0)],
430
+ Tuple[
431
+ Annotated[StrictFloat, Field(gt=0)],
432
+ Annotated[StrictFloat, Field(gt=0)]
433
+ ]
434
+ ] = None,
435
+ _request_auth: Optional[Dict[StrictStr, Any]] = None,
436
+ _content_type: Optional[StrictStr] = None,
437
+ _headers: Optional[Dict[StrictStr, Any]] = None,
438
+ _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
439
+ ) -> ApiResponse[ExecutionResponse]:
440
+ """Execute an agent with structured parameters
441
+
442
+ Executes an agent with structured parameters including optional agent profile configuration. This is the recommended method for new integrations.
443
+
444
+ :param id: The ID of the agent (required)
445
+ :type id: str
446
+ :param structured_agent_execution_request: (required)
447
+ :type structured_agent_execution_request: StructuredAgentExecutionRequest
448
+ :param _request_timeout: timeout setting for this request. If one
449
+ number provided, it will be total request
450
+ timeout. It can also be a pair (tuple) of
451
+ (connection, read) timeouts.
452
+ :type _request_timeout: int, tuple(int, int), optional
453
+ :param _request_auth: set to override the auth_settings for an a single
454
+ request; this effectively ignores the
455
+ authentication in the spec for a single request.
456
+ :type _request_auth: dict, optional
457
+ :param _content_type: force content-type for the request.
458
+ :type _content_type: str, Optional
459
+ :param _headers: set to override the headers for a single
460
+ request; this effectively ignores the headers
461
+ in the spec for a single request.
462
+ :type _headers: dict, optional
463
+ :param _host_index: set to override the host_index for a single
464
+ request; this effectively ignores the host_index
465
+ in the spec for a single request.
466
+ :type _host_index: int, optional
467
+ :return: Returns the result object.
468
+ """ # noqa: E501
469
+
470
+ _param = self._execute_agent_structured_serialize(
471
+ id=id,
472
+ structured_agent_execution_request=structured_agent_execution_request,
473
+ _request_auth=_request_auth,
474
+ _content_type=_content_type,
475
+ _headers=_headers,
476
+ _host_index=_host_index
477
+ )
478
+
479
+ _response_types_map: Dict[str, Optional[str]] = {
480
+ '202': "ExecutionResponse",
481
+ '400': "ErrorResponse",
482
+ '404': "ErrorResponse",
483
+ '500': "ErrorResponse",
484
+ }
485
+ response_data = self.api_client.call_api(
486
+ *_param,
487
+ _request_timeout=_request_timeout
488
+ )
489
+ response_data.read()
490
+ return self.api_client.response_deserialize(
491
+ response_data=response_data,
492
+ response_types_map=_response_types_map,
493
+ )
494
+
495
+
496
+ @validate_call
497
+ def execute_agent_structured_without_preload_content(
498
+ self,
499
+ id: Annotated[StrictStr, Field(description="The ID of the agent")],
500
+ structured_agent_execution_request: StructuredAgentExecutionRequest,
501
+ _request_timeout: Union[
502
+ None,
503
+ Annotated[StrictFloat, Field(gt=0)],
504
+ Tuple[
505
+ Annotated[StrictFloat, Field(gt=0)],
506
+ Annotated[StrictFloat, Field(gt=0)]
507
+ ]
508
+ ] = None,
509
+ _request_auth: Optional[Dict[StrictStr, Any]] = None,
510
+ _content_type: Optional[StrictStr] = None,
511
+ _headers: Optional[Dict[StrictStr, Any]] = None,
512
+ _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
513
+ ) -> RESTResponseType:
514
+ """Execute an agent with structured parameters
515
+
516
+ Executes an agent with structured parameters including optional agent profile configuration. This is the recommended method for new integrations.
517
+
518
+ :param id: The ID of the agent (required)
519
+ :type id: str
520
+ :param structured_agent_execution_request: (required)
521
+ :type structured_agent_execution_request: StructuredAgentExecutionRequest
522
+ :param _request_timeout: timeout setting for this request. If one
523
+ number provided, it will be total request
524
+ timeout. It can also be a pair (tuple) of
525
+ (connection, read) timeouts.
526
+ :type _request_timeout: int, tuple(int, int), optional
527
+ :param _request_auth: set to override the auth_settings for an a single
528
+ request; this effectively ignores the
529
+ authentication in the spec for a single request.
530
+ :type _request_auth: dict, optional
531
+ :param _content_type: force content-type for the request.
532
+ :type _content_type: str, Optional
533
+ :param _headers: set to override the headers for a single
534
+ request; this effectively ignores the headers
535
+ in the spec for a single request.
536
+ :type _headers: dict, optional
537
+ :param _host_index: set to override the host_index for a single
538
+ request; this effectively ignores the host_index
539
+ in the spec for a single request.
540
+ :type _host_index: int, optional
541
+ :return: Returns the result object.
542
+ """ # noqa: E501
543
+
544
+ _param = self._execute_agent_structured_serialize(
545
+ id=id,
546
+ structured_agent_execution_request=structured_agent_execution_request,
547
+ _request_auth=_request_auth,
548
+ _content_type=_content_type,
549
+ _headers=_headers,
550
+ _host_index=_host_index
551
+ )
552
+
553
+ _response_types_map: Dict[str, Optional[str]] = {
554
+ '202': "ExecutionResponse",
555
+ '400': "ErrorResponse",
556
+ '404': "ErrorResponse",
557
+ '500': "ErrorResponse",
558
+ }
559
+ response_data = self.api_client.call_api(
560
+ *_param,
561
+ _request_timeout=_request_timeout
562
+ )
563
+ return response_data.execution_response
564
+
565
+
566
+ def _execute_agent_structured_serialize(
567
+ self,
568
+ id,
569
+ structured_agent_execution_request,
570
+ _request_auth,
571
+ _content_type,
572
+ _headers,
573
+ _host_index,
574
+ ) -> RequestSerialized:
575
+
576
+ _host = None
577
+
578
+ _collection_formats: Dict[str, str] = {
579
+ }
580
+
581
+ _path_params: Dict[str, str] = {}
582
+ _query_params: List[Tuple[str, str]] = []
583
+ _header_params: Dict[str, Optional[str]] = _headers or {}
584
+ _form_params: List[Tuple[str, str]] = []
585
+ _files: Dict[
586
+ str, Union[str, bytes, List[str], List[bytes], List[Tuple[str, bytes]]]
587
+ ] = {}
588
+ _body_params: Optional[bytes] = None
589
+
590
+ # process the path parameters
591
+ if id is not None:
592
+ _path_params['id'] = id
593
+ # process the query parameters
594
+ # process the header parameters
595
+ # process the form parameters
596
+ # process the body parameter
597
+ if structured_agent_execution_request is not None:
598
+ _body_params = structured_agent_execution_request
599
+
600
+
601
+ # set the HTTP header `Accept`
602
+ if 'Accept' not in _header_params:
603
+ _header_params['Accept'] = self.api_client.select_header_accept(
604
+ [
605
+ 'application/json'
606
+ ]
607
+ )
608
+
609
+ # set the HTTP header `Content-Type`
610
+ if _content_type:
611
+ _header_params['Content-Type'] = _content_type
612
+ else:
613
+ _default_content_type = (
614
+ self.api_client.select_header_content_type(
615
+ [
616
+ 'application/json'
617
+ ]
618
+ )
619
+ )
620
+ if _default_content_type is not None:
621
+ _header_params['Content-Type'] = _default_content_type
622
+
623
+ # authentication setting
624
+ _auth_settings: List[str] = [
625
+ 'ApiKeyAuth'
626
+ ]
627
+
628
+ return self.api_client.param_serialize(
629
+ method='POST',
630
+ resource_path='/agent/{id}/execute',
631
+ path_params=_path_params,
632
+ query_params=_query_params,
633
+ header_params=_header_params,
634
+ body=_body_params,
635
+ post_params=_form_params,
636
+ files=_files,
637
+ auth_settings=_auth_settings,
638
+ collection_formats=_collection_formats,
639
+ _host=_host,
640
+ _request_auth=_request_auth
641
+ )
642
+
643
+
644
+
645
+
646
+ @validate_call
647
+ def get_browser_session_recording(
648
+ self,
649
+ id: Annotated[StrictStr, Field(description="The ID of the execution")],
650
+ _request_timeout: Union[
651
+ None,
652
+ Annotated[StrictFloat, Field(gt=0)],
653
+ Tuple[
654
+ Annotated[StrictFloat, Field(gt=0)],
655
+ Annotated[StrictFloat, Field(gt=0)]
656
+ ]
657
+ ] = None,
658
+ _request_auth: Optional[Dict[StrictStr, Any]] = None,
659
+ _content_type: Optional[StrictStr] = None,
660
+ _headers: Optional[Dict[StrictStr, Any]] = None,
661
+ _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
662
+ ) -> BrowserSessionRecordingResponse:
663
+ """Get browser session recording
664
+
665
+ Retrieves the browser session recording URL for a completed execution
666
+
667
+ :param id: The ID of the execution (required)
668
+ :type id: str
669
+ :param _request_timeout: timeout setting for this request. If one
670
+ number provided, it will be total request
671
+ timeout. It can also be a pair (tuple) of
672
+ (connection, read) timeouts.
673
+ :type _request_timeout: int, tuple(int, int), optional
674
+ :param _request_auth: set to override the auth_settings for an a single
675
+ request; this effectively ignores the
676
+ authentication in the spec for a single request.
677
+ :type _request_auth: dict, optional
678
+ :param _content_type: force content-type for the request.
679
+ :type _content_type: str, Optional
680
+ :param _headers: set to override the headers for a single
681
+ request; this effectively ignores the headers
682
+ in the spec for a single request.
683
+ :type _headers: dict, optional
684
+ :param _host_index: set to override the host_index for a single
685
+ request; this effectively ignores the host_index
686
+ in the spec for a single request.
687
+ :type _host_index: int, optional
688
+ :return: Returns the result object.
689
+ """ # noqa: E501
690
+
691
+ _param = self._get_browser_session_recording_serialize(
692
+ id=id,
693
+ _request_auth=_request_auth,
694
+ _content_type=_content_type,
695
+ _headers=_headers,
696
+ _host_index=_host_index
697
+ )
698
+
699
+ _response_types_map: Dict[str, Optional[str]] = {
700
+ '200': "BrowserSessionRecordingResponse",
701
+ '404': "ErrorResponse",
702
+ '500': "ErrorResponse",
703
+ }
704
+ response_data = self.api_client.call_api(
705
+ *_param,
706
+ _request_timeout=_request_timeout
707
+ )
708
+ response_data.read()
709
+ return self.api_client.response_deserialize(
710
+ response_data=response_data,
711
+ response_types_map=_response_types_map,
712
+ ).data
713
+
714
+
715
+ @validate_call
716
+ def get_browser_session_recording_with_http_info(
717
+ self,
718
+ id: Annotated[StrictStr, Field(description="The ID of the execution")],
719
+ _request_timeout: Union[
720
+ None,
721
+ Annotated[StrictFloat, Field(gt=0)],
722
+ Tuple[
723
+ Annotated[StrictFloat, Field(gt=0)],
724
+ Annotated[StrictFloat, Field(gt=0)]
725
+ ]
726
+ ] = None,
727
+ _request_auth: Optional[Dict[StrictStr, Any]] = None,
728
+ _content_type: Optional[StrictStr] = None,
729
+ _headers: Optional[Dict[StrictStr, Any]] = None,
730
+ _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
731
+ ) -> ApiResponse[BrowserSessionRecordingResponse]:
732
+ """Get browser session recording
733
+
734
+ Retrieves the browser session recording URL for a completed execution
735
+
736
+ :param id: The ID of the execution (required)
737
+ :type id: str
738
+ :param _request_timeout: timeout setting for this request. If one
739
+ number provided, it will be total request
740
+ timeout. It can also be a pair (tuple) of
741
+ (connection, read) timeouts.
742
+ :type _request_timeout: int, tuple(int, int), optional
743
+ :param _request_auth: set to override the auth_settings for an a single
744
+ request; this effectively ignores the
745
+ authentication in the spec for a single request.
746
+ :type _request_auth: dict, optional
747
+ :param _content_type: force content-type for the request.
748
+ :type _content_type: str, Optional
749
+ :param _headers: set to override the headers for a single
750
+ request; this effectively ignores the headers
751
+ in the spec for a single request.
752
+ :type _headers: dict, optional
753
+ :param _host_index: set to override the host_index for a single
754
+ request; this effectively ignores the host_index
755
+ in the spec for a single request.
756
+ :type _host_index: int, optional
757
+ :return: Returns the result object.
758
+ """ # noqa: E501
759
+
760
+ _param = self._get_browser_session_recording_serialize(
761
+ id=id,
762
+ _request_auth=_request_auth,
763
+ _content_type=_content_type,
764
+ _headers=_headers,
765
+ _host_index=_host_index
766
+ )
767
+
768
+ _response_types_map: Dict[str, Optional[str]] = {
769
+ '200': "BrowserSessionRecordingResponse",
770
+ '404': "ErrorResponse",
771
+ '500': "ErrorResponse",
772
+ }
773
+ response_data = self.api_client.call_api(
774
+ *_param,
775
+ _request_timeout=_request_timeout
776
+ )
777
+ response_data.read()
778
+ return self.api_client.response_deserialize(
779
+ response_data=response_data,
780
+ response_types_map=_response_types_map,
781
+ )
782
+
783
+
784
+ @validate_call
785
+ def get_browser_session_recording_without_preload_content(
786
+ self,
787
+ id: Annotated[StrictStr, Field(description="The ID of the execution")],
788
+ _request_timeout: Union[
789
+ None,
790
+ Annotated[StrictFloat, Field(gt=0)],
791
+ Tuple[
792
+ Annotated[StrictFloat, Field(gt=0)],
793
+ Annotated[StrictFloat, Field(gt=0)]
794
+ ]
795
+ ] = None,
796
+ _request_auth: Optional[Dict[StrictStr, Any]] = None,
797
+ _content_type: Optional[StrictStr] = None,
798
+ _headers: Optional[Dict[StrictStr, Any]] = None,
799
+ _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
800
+ ) -> RESTResponseType:
801
+ """Get browser session recording
802
+
803
+ Retrieves the browser session recording URL for a completed execution
804
+
805
+ :param id: The ID of the execution (required)
806
+ :type id: str
807
+ :param _request_timeout: timeout setting for this request. If one
808
+ number provided, it will be total request
809
+ timeout. It can also be a pair (tuple) of
810
+ (connection, read) timeouts.
811
+ :type _request_timeout: int, tuple(int, int), optional
812
+ :param _request_auth: set to override the auth_settings for an a single
813
+ request; this effectively ignores the
814
+ authentication in the spec for a single request.
815
+ :type _request_auth: dict, optional
816
+ :param _content_type: force content-type for the request.
817
+ :type _content_type: str, Optional
818
+ :param _headers: set to override the headers for a single
819
+ request; this effectively ignores the headers
820
+ in the spec for a single request.
821
+ :type _headers: dict, optional
822
+ :param _host_index: set to override the host_index for a single
823
+ request; this effectively ignores the host_index
824
+ in the spec for a single request.
825
+ :type _host_index: int, optional
826
+ :return: Returns the result object.
827
+ """ # noqa: E501
828
+
829
+ _param = self._get_browser_session_recording_serialize(
830
+ id=id,
831
+ _request_auth=_request_auth,
832
+ _content_type=_content_type,
833
+ _headers=_headers,
834
+ _host_index=_host_index
835
+ )
836
+
837
+ _response_types_map: Dict[str, Optional[str]] = {
838
+ '200': "BrowserSessionRecordingResponse",
839
+ '404': "ErrorResponse",
840
+ '500': "ErrorResponse",
841
+ }
842
+ response_data = self.api_client.call_api(
843
+ *_param,
844
+ _request_timeout=_request_timeout
845
+ )
846
+ return response_data.response
847
+
848
+
849
+ def _get_browser_session_recording_serialize(
850
+ self,
851
+ id,
852
+ _request_auth,
853
+ _content_type,
854
+ _headers,
855
+ _host_index,
856
+ ) -> RequestSerialized:
857
+
858
+ _host = None
859
+
860
+ _collection_formats: Dict[str, str] = {
861
+ }
862
+
863
+ _path_params: Dict[str, str] = {}
864
+ _query_params: List[Tuple[str, str]] = []
865
+ _header_params: Dict[str, Optional[str]] = _headers or {}
866
+ _form_params: List[Tuple[str, str]] = []
867
+ _files: Dict[
868
+ str, Union[str, bytes, List[str], List[bytes], List[Tuple[str, bytes]]]
869
+ ] = {}
870
+ _body_params: Optional[bytes] = None
871
+
872
+ # process the path parameters
873
+ if id is not None:
874
+ _path_params['id'] = id
875
+ # process the query parameters
876
+ # process the header parameters
877
+ # process the form parameters
878
+ # process the body parameter
879
+
880
+
881
+ # set the HTTP header `Accept`
882
+ if 'Accept' not in _header_params:
883
+ _header_params['Accept'] = self.api_client.select_header_accept(
884
+ [
885
+ 'application/json'
886
+ ]
887
+ )
888
+
889
+
890
+ # authentication setting
891
+ _auth_settings: List[str] = [
892
+ 'ApiKeyAuth'
893
+ ]
894
+
895
+ return self.api_client.param_serialize(
896
+ method='GET',
897
+ resource_path='/execution/{id}/browser_session/recording',
898
+ path_params=_path_params,
899
+ query_params=_query_params,
900
+ header_params=_header_params,
901
+ body=_body_params,
902
+ post_params=_form_params,
903
+ files=_files,
904
+ auth_settings=_auth_settings,
905
+ collection_formats=_collection_formats,
906
+ _host=_host,
907
+ _request_auth=_request_auth
908
+ )
909
+
910
+
911
+
912
+
913
+ @validate_call
914
+ def get_execution_result(
915
+ self,
916
+ id: Annotated[StrictStr, Field(description="The ID of the execution")],
917
+ _request_timeout: Union[
918
+ None,
919
+ Annotated[StrictFloat, Field(gt=0)],
920
+ Tuple[
921
+ Annotated[StrictFloat, Field(gt=0)],
922
+ Annotated[StrictFloat, Field(gt=0)]
923
+ ]
924
+ ] = None,
925
+ _request_auth: Optional[Dict[StrictStr, Any]] = None,
926
+ _content_type: Optional[StrictStr] = None,
927
+ _headers: Optional[Dict[StrictStr, Any]] = None,
928
+ _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
929
+ ) -> ExecutionResultResponse:
930
+ """Get execution result
931
+
932
+
933
+ :param id: The ID of the execution (required)
934
+ :type id: str
935
+ :param _request_timeout: timeout setting for this request. If one
936
+ number provided, it will be total request
937
+ timeout. It can also be a pair (tuple) of
938
+ (connection, read) timeouts.
939
+ :type _request_timeout: int, tuple(int, int), optional
940
+ :param _request_auth: set to override the auth_settings for an a single
941
+ request; this effectively ignores the
942
+ authentication in the spec for a single request.
943
+ :type _request_auth: dict, optional
944
+ :param _content_type: force content-type for the request.
945
+ :type _content_type: str, Optional
946
+ :param _headers: set to override the headers for a single
947
+ request; this effectively ignores the headers
948
+ in the spec for a single request.
949
+ :type _headers: dict, optional
950
+ :param _host_index: set to override the host_index for a single
951
+ request; this effectively ignores the host_index
952
+ in the spec for a single request.
953
+ :type _host_index: int, optional
954
+ :return: Returns the result object.
955
+ """ # noqa: E501
956
+
957
+ _param = self._get_execution_result_serialize(
958
+ id=id,
959
+ _request_auth=_request_auth,
960
+ _content_type=_content_type,
961
+ _headers=_headers,
962
+ _host_index=_host_index
963
+ )
964
+
965
+ _response_types_map: Dict[str, Optional[str]] = {
966
+ '200': "ExecutionResultResponse",
967
+ '404': "ErrorResponse",
968
+ '500': "ErrorResponse",
969
+ }
970
+ response_data = self.api_client.call_api(
971
+ *_param,
972
+ _request_timeout=_request_timeout
973
+ )
974
+ response_data.read()
975
+ return self.api_client.response_deserialize(
976
+ response_data=response_data,
977
+ response_types_map=_response_types_map,
978
+ ).data
979
+
980
+
981
+ @validate_call
982
+ def get_execution_result_with_http_info(
983
+ self,
984
+ id: Annotated[StrictStr, Field(description="The ID of the execution")],
985
+ _request_timeout: Union[
986
+ None,
987
+ Annotated[StrictFloat, Field(gt=0)],
988
+ Tuple[
989
+ Annotated[StrictFloat, Field(gt=0)],
990
+ Annotated[StrictFloat, Field(gt=0)]
991
+ ]
992
+ ] = None,
993
+ _request_auth: Optional[Dict[StrictStr, Any]] = None,
994
+ _content_type: Optional[StrictStr] = None,
995
+ _headers: Optional[Dict[StrictStr, Any]] = None,
996
+ _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
997
+ ) -> ApiResponse[ExecutionResultResponse]:
998
+ """Get execution result
999
+
1000
+
1001
+ :param id: The ID of the execution (required)
1002
+ :type id: str
1003
+ :param _request_timeout: timeout setting for this request. If one
1004
+ number provided, it will be total request
1005
+ timeout. It can also be a pair (tuple) of
1006
+ (connection, read) timeouts.
1007
+ :type _request_timeout: int, tuple(int, int), optional
1008
+ :param _request_auth: set to override the auth_settings for an a single
1009
+ request; this effectively ignores the
1010
+ authentication in the spec for a single request.
1011
+ :type _request_auth: dict, optional
1012
+ :param _content_type: force content-type for the request.
1013
+ :type _content_type: str, Optional
1014
+ :param _headers: set to override the headers for a single
1015
+ request; this effectively ignores the headers
1016
+ in the spec for a single request.
1017
+ :type _headers: dict, optional
1018
+ :param _host_index: set to override the host_index for a single
1019
+ request; this effectively ignores the host_index
1020
+ in the spec for a single request.
1021
+ :type _host_index: int, optional
1022
+ :return: Returns the result object.
1023
+ """ # noqa: E501
1024
+
1025
+ _param = self._get_execution_result_serialize(
1026
+ id=id,
1027
+ _request_auth=_request_auth,
1028
+ _content_type=_content_type,
1029
+ _headers=_headers,
1030
+ _host_index=_host_index
1031
+ )
1032
+
1033
+ _response_types_map: Dict[str, Optional[str]] = {
1034
+ '200': "ExecutionResultResponse",
1035
+ '404': "ErrorResponse",
1036
+ '500': "ErrorResponse",
1037
+ }
1038
+ response_data = self.api_client.call_api(
1039
+ *_param,
1040
+ _request_timeout=_request_timeout
1041
+ )
1042
+ response_data.read()
1043
+ return self.api_client.response_deserialize(
1044
+ response_data=response_data,
1045
+ response_types_map=_response_types_map,
1046
+ )
1047
+
1048
+
1049
+ @validate_call
1050
+ def get_execution_result_without_preload_content(
1051
+ self,
1052
+ id: Annotated[StrictStr, Field(description="The ID of the execution")],
1053
+ _request_timeout: Union[
1054
+ None,
1055
+ Annotated[StrictFloat, Field(gt=0)],
1056
+ Tuple[
1057
+ Annotated[StrictFloat, Field(gt=0)],
1058
+ Annotated[StrictFloat, Field(gt=0)]
1059
+ ]
1060
+ ] = None,
1061
+ _request_auth: Optional[Dict[StrictStr, Any]] = None,
1062
+ _content_type: Optional[StrictStr] = None,
1063
+ _headers: Optional[Dict[StrictStr, Any]] = None,
1064
+ _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
1065
+ ) -> RESTResponseType:
1066
+ """Get execution result
1067
+
1068
+
1069
+ :param id: The ID of the execution (required)
1070
+ :type id: str
1071
+ :param _request_timeout: timeout setting for this request. If one
1072
+ number provided, it will be total request
1073
+ timeout. It can also be a pair (tuple) of
1074
+ (connection, read) timeouts.
1075
+ :type _request_timeout: int, tuple(int, int), optional
1076
+ :param _request_auth: set to override the auth_settings for an a single
1077
+ request; this effectively ignores the
1078
+ authentication in the spec for a single request.
1079
+ :type _request_auth: dict, optional
1080
+ :param _content_type: force content-type for the request.
1081
+ :type _content_type: str, Optional
1082
+ :param _headers: set to override the headers for a single
1083
+ request; this effectively ignores the headers
1084
+ in the spec for a single request.
1085
+ :type _headers: dict, optional
1086
+ :param _host_index: set to override the host_index for a single
1087
+ request; this effectively ignores the host_index
1088
+ in the spec for a single request.
1089
+ :type _host_index: int, optional
1090
+ :return: Returns the result object.
1091
+ """ # noqa: E501
1092
+
1093
+ _param = self._get_execution_result_serialize(
1094
+ id=id,
1095
+ _request_auth=_request_auth,
1096
+ _content_type=_content_type,
1097
+ _headers=_headers,
1098
+ _host_index=_host_index
1099
+ )
1100
+
1101
+ _response_types_map: Dict[str, Optional[str]] = {
1102
+ '200': "ExecutionResultResponse",
1103
+ '404': "ErrorResponse",
1104
+ '500': "ErrorResponse",
1105
+ }
1106
+ response_data = self.api_client.call_api(
1107
+ *_param,
1108
+ _request_timeout=_request_timeout
1109
+ )
1110
+ return response_data.response
1111
+
1112
+
1113
+ def _get_execution_result_serialize(
1114
+ self,
1115
+ id,
1116
+ _request_auth,
1117
+ _content_type,
1118
+ _headers,
1119
+ _host_index,
1120
+ ) -> RequestSerialized:
1121
+
1122
+ _host = None
1123
+
1124
+ _collection_formats: Dict[str, str] = {
1125
+ }
1126
+
1127
+ _path_params: Dict[str, str] = {}
1128
+ _query_params: List[Tuple[str, str]] = []
1129
+ _header_params: Dict[str, Optional[str]] = _headers or {}
1130
+ _form_params: List[Tuple[str, str]] = []
1131
+ _files: Dict[
1132
+ str, Union[str, bytes, List[str], List[bytes], List[Tuple[str, bytes]]]
1133
+ ] = {}
1134
+ _body_params: Optional[bytes] = None
1135
+
1136
+ # process the path parameters
1137
+ if id is not None:
1138
+ _path_params['id'] = id
1139
+ # process the query parameters
1140
+ # process the header parameters
1141
+ # process the form parameters
1142
+ # process the body parameter
1143
+
1144
+
1145
+ # set the HTTP header `Accept`
1146
+ if 'Accept' not in _header_params:
1147
+ _header_params['Accept'] = self.api_client.select_header_accept(
1148
+ [
1149
+ 'application/json'
1150
+ ]
1151
+ )
1152
+
1153
+
1154
+ # authentication setting
1155
+ _auth_settings: List[str] = [
1156
+ 'ApiKeyAuth'
1157
+ ]
1158
+
1159
+ return self.api_client.param_serialize(
1160
+ method='GET',
1161
+ resource_path='/execution/{id}/result',
1162
+ path_params=_path_params,
1163
+ query_params=_query_params,
1164
+ header_params=_header_params,
1165
+ body=_body_params,
1166
+ post_params=_form_params,
1167
+ files=_files,
1168
+ auth_settings=_auth_settings,
1169
+ collection_formats=_collection_formats,
1170
+ _host=_host,
1171
+ _request_auth=_request_auth
1172
+ )
1173
+
1174
+
1175
+
1176
+
1177
+ @validate_call
1178
+ def get_execution_status(
1179
+ self,
1180
+ id: Annotated[StrictStr, Field(description="The ID of the execution")],
1181
+ _request_timeout: Union[
1182
+ None,
1183
+ Annotated[StrictFloat, Field(gt=0)],
1184
+ Tuple[
1185
+ Annotated[StrictFloat, Field(gt=0)],
1186
+ Annotated[StrictFloat, Field(gt=0)]
1187
+ ]
1188
+ ] = None,
1189
+ _request_auth: Optional[Dict[StrictStr, Any]] = None,
1190
+ _content_type: Optional[StrictStr] = None,
1191
+ _headers: Optional[Dict[StrictStr, Any]] = None,
1192
+ _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
1193
+ ) -> ExecutionStatusResponse:
1194
+ """Get execution status
1195
+
1196
+
1197
+ :param id: The ID of the execution (required)
1198
+ :type id: str
1199
+ :param _request_timeout: timeout setting for this request. If one
1200
+ number provided, it will be total request
1201
+ timeout. It can also be a pair (tuple) of
1202
+ (connection, read) timeouts.
1203
+ :type _request_timeout: int, tuple(int, int), optional
1204
+ :param _request_auth: set to override the auth_settings for an a single
1205
+ request; this effectively ignores the
1206
+ authentication in the spec for a single request.
1207
+ :type _request_auth: dict, optional
1208
+ :param _content_type: force content-type for the request.
1209
+ :type _content_type: str, Optional
1210
+ :param _headers: set to override the headers for a single
1211
+ request; this effectively ignores the headers
1212
+ in the spec for a single request.
1213
+ :type _headers: dict, optional
1214
+ :param _host_index: set to override the host_index for a single
1215
+ request; this effectively ignores the host_index
1216
+ in the spec for a single request.
1217
+ :type _host_index: int, optional
1218
+ :return: Returns the result object.
1219
+ """ # noqa: E501
1220
+
1221
+ _param = self._get_execution_status_serialize(
1222
+ id=id,
1223
+ _request_auth=_request_auth,
1224
+ _content_type=_content_type,
1225
+ _headers=_headers,
1226
+ _host_index=_host_index
1227
+ )
1228
+
1229
+ _response_types_map: Dict[str, Optional[str]] = {
1230
+ '200': "ExecutionStatusResponse",
1231
+ '404': "ErrorResponse",
1232
+ '500': "ErrorResponse",
1233
+ }
1234
+ response_data = self.api_client.call_api(
1235
+ *_param,
1236
+ _request_timeout=_request_timeout
1237
+ )
1238
+ response_data.read()
1239
+ return self.api_client.response_deserialize(
1240
+ response_data=response_data,
1241
+ response_types_map=_response_types_map,
1242
+ ).data
1243
+
1244
+
1245
+ @validate_call
1246
+ def get_execution_status_with_http_info(
1247
+ self,
1248
+ id: Annotated[StrictStr, Field(description="The ID of the execution")],
1249
+ _request_timeout: Union[
1250
+ None,
1251
+ Annotated[StrictFloat, Field(gt=0)],
1252
+ Tuple[
1253
+ Annotated[StrictFloat, Field(gt=0)],
1254
+ Annotated[StrictFloat, Field(gt=0)]
1255
+ ]
1256
+ ] = None,
1257
+ _request_auth: Optional[Dict[StrictStr, Any]] = None,
1258
+ _content_type: Optional[StrictStr] = None,
1259
+ _headers: Optional[Dict[StrictStr, Any]] = None,
1260
+ _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
1261
+ ) -> ApiResponse[ExecutionStatusResponse]:
1262
+ """Get execution status
1263
+
1264
+
1265
+ :param id: The ID of the execution (required)
1266
+ :type id: str
1267
+ :param _request_timeout: timeout setting for this request. If one
1268
+ number provided, it will be total request
1269
+ timeout. It can also be a pair (tuple) of
1270
+ (connection, read) timeouts.
1271
+ :type _request_timeout: int, tuple(int, int), optional
1272
+ :param _request_auth: set to override the auth_settings for an a single
1273
+ request; this effectively ignores the
1274
+ authentication in the spec for a single request.
1275
+ :type _request_auth: dict, optional
1276
+ :param _content_type: force content-type for the request.
1277
+ :type _content_type: str, Optional
1278
+ :param _headers: set to override the headers for a single
1279
+ request; this effectively ignores the headers
1280
+ in the spec for a single request.
1281
+ :type _headers: dict, optional
1282
+ :param _host_index: set to override the host_index for a single
1283
+ request; this effectively ignores the host_index
1284
+ in the spec for a single request.
1285
+ :type _host_index: int, optional
1286
+ :return: Returns the result object.
1287
+ """ # noqa: E501
1288
+
1289
+ _param = self._get_execution_status_serialize(
1290
+ id=id,
1291
+ _request_auth=_request_auth,
1292
+ _content_type=_content_type,
1293
+ _headers=_headers,
1294
+ _host_index=_host_index
1295
+ )
1296
+
1297
+ _response_types_map: Dict[str, Optional[str]] = {
1298
+ '200': "ExecutionStatusResponse",
1299
+ '404': "ErrorResponse",
1300
+ '500': "ErrorResponse",
1301
+ }
1302
+ response_data = self.api_client.call_api(
1303
+ *_param,
1304
+ _request_timeout=_request_timeout
1305
+ )
1306
+ response_data.read()
1307
+ return self.api_client.response_deserialize(
1308
+ response_data=response_data,
1309
+ response_types_map=_response_types_map,
1310
+ )
1311
+
1312
+
1313
+ @validate_call
1314
+ def get_execution_status_without_preload_content(
1315
+ self,
1316
+ id: Annotated[StrictStr, Field(description="The ID of the execution")],
1317
+ _request_timeout: Union[
1318
+ None,
1319
+ Annotated[StrictFloat, Field(gt=0)],
1320
+ Tuple[
1321
+ Annotated[StrictFloat, Field(gt=0)],
1322
+ Annotated[StrictFloat, Field(gt=0)]
1323
+ ]
1324
+ ] = None,
1325
+ _request_auth: Optional[Dict[StrictStr, Any]] = None,
1326
+ _content_type: Optional[StrictStr] = None,
1327
+ _headers: Optional[Dict[StrictStr, Any]] = None,
1328
+ _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
1329
+ ) -> RESTResponseType:
1330
+ """Get execution status
1331
+
1332
+
1333
+ :param id: The ID of the execution (required)
1334
+ :type id: str
1335
+ :param _request_timeout: timeout setting for this request. If one
1336
+ number provided, it will be total request
1337
+ timeout. It can also be a pair (tuple) of
1338
+ (connection, read) timeouts.
1339
+ :type _request_timeout: int, tuple(int, int), optional
1340
+ :param _request_auth: set to override the auth_settings for an a single
1341
+ request; this effectively ignores the
1342
+ authentication in the spec for a single request.
1343
+ :type _request_auth: dict, optional
1344
+ :param _content_type: force content-type for the request.
1345
+ :type _content_type: str, Optional
1346
+ :param _headers: set to override the headers for a single
1347
+ request; this effectively ignores the headers
1348
+ in the spec for a single request.
1349
+ :type _headers: dict, optional
1350
+ :param _host_index: set to override the host_index for a single
1351
+ request; this effectively ignores the host_index
1352
+ in the spec for a single request.
1353
+ :type _host_index: int, optional
1354
+ :return: Returns the result object.
1355
+ """ # noqa: E501
1356
+
1357
+ _param = self._get_execution_status_serialize(
1358
+ id=id,
1359
+ _request_auth=_request_auth,
1360
+ _content_type=_content_type,
1361
+ _headers=_headers,
1362
+ _host_index=_host_index
1363
+ )
1364
+
1365
+ _response_types_map: Dict[str, Optional[str]] = {
1366
+ '200': "ExecutionStatusResponse",
1367
+ '404': "ErrorResponse",
1368
+ '500': "ErrorResponse",
1369
+ }
1370
+ response_data = self.api_client.call_api(
1371
+ *_param,
1372
+ _request_timeout=_request_timeout
1373
+ )
1374
+ return response_data.response
1375
+
1376
+
1377
+ def _get_execution_status_serialize(
1378
+ self,
1379
+ id,
1380
+ _request_auth,
1381
+ _content_type,
1382
+ _headers,
1383
+ _host_index,
1384
+ ) -> RequestSerialized:
1385
+
1386
+ _host = None
1387
+
1388
+ _collection_formats: Dict[str, str] = {
1389
+ }
1390
+
1391
+ _path_params: Dict[str, str] = {}
1392
+ _query_params: List[Tuple[str, str]] = []
1393
+ _header_params: Dict[str, Optional[str]] = _headers or {}
1394
+ _form_params: List[Tuple[str, str]] = []
1395
+ _files: Dict[
1396
+ str, Union[str, bytes, List[str], List[bytes], List[Tuple[str, bytes]]]
1397
+ ] = {}
1398
+ _body_params: Optional[bytes] = None
1399
+
1400
+ # process the path parameters
1401
+ if id is not None:
1402
+ _path_params['id'] = id
1403
+ # process the query parameters
1404
+ # process the header parameters
1405
+ # process the form parameters
1406
+ # process the body parameter
1407
+
1408
+
1409
+ # set the HTTP header `Accept`
1410
+ if 'Accept' not in _header_params:
1411
+ _header_params['Accept'] = self.api_client.select_header_accept(
1412
+ [
1413
+ 'application/json'
1414
+ ]
1415
+ )
1416
+
1417
+
1418
+ # authentication setting
1419
+ _auth_settings: List[str] = [
1420
+ 'ApiKeyAuth'
1421
+ ]
1422
+
1423
+ return self.api_client.param_serialize(
1424
+ method='GET',
1425
+ resource_path='/execution/{id}/status',
1426
+ path_params=_path_params,
1427
+ query_params=_query_params,
1428
+ header_params=_header_params,
1429
+ body=_body_params,
1430
+ post_params=_form_params,
1431
+ files=_files,
1432
+ auth_settings=_auth_settings,
1433
+ collection_formats=_collection_formats,
1434
+ _host=_host,
1435
+ _request_auth=_request_auth
1436
+ )
1437
+
1438
+
1439
+
1440
+
42
1441
  @validate_call
43
1442
  def upload_execution_files(
44
1443
  self,