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