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