perceptic-core-client 0.29.0__py3-none-any.whl → 0.31.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.
Potentially problematic release.
This version of perceptic-core-client might be problematic. Click here for more details.
- perceptic_core_client/__init__.py +26 -0
- perceptic_core_client/api/__init__.py +1 -0
- perceptic_core_client/api/citations_resource_api.py +569 -0
- perceptic_core_client/api/user_resource_api.py +269 -0
- perceptic_core_client/api/worker_resource_api.py +273 -0
- perceptic_core_client/models/__init__.py +12 -0
- perceptic_core_client/models/biotech_analysis_api_dto.py +119 -0
- perceptic_core_client/models/biotech_analysis_image_annotated_citation_api_dto.py +91 -0
- perceptic_core_client/models/bulk_get_citations_request.py +87 -0
- perceptic_core_client/models/bulk_get_citations_response.py +95 -0
- perceptic_core_client/models/citation_api_dto.py +102 -0
- perceptic_core_client/models/citation_metadata_api_dto.py +189 -0
- perceptic_core_client/models/get_citation_output_uri_response.py +87 -0
- perceptic_core_client/models/get_worker_run_response.py +97 -0
- perceptic_core_client/models/highlighted_text_citation_metadata_api_dto.py +91 -0
- perceptic_core_client/models/image_detection_box_api_dto.py +97 -0
- perceptic_core_client/models/info_event.py +4 -1
- perceptic_core_client/models/progress_event.py +5 -2
- perceptic_core_client/models/request_for_input_event.py +4 -1
- perceptic_core_client/models/user_info_response.py +115 -0
- perceptic_core_client/models/web_page_citation_metadata_api_dto.py +89 -0
- perceptic_core_client/test/test_biotech_analysis_api_dto.py +77 -0
- perceptic_core_client/test/test_biotech_analysis_image_annotated_citation_api_dto.py +78 -0
- perceptic_core_client/test/test_bulk_get_citations_request.py +53 -0
- perceptic_core_client/test/test_bulk_get_citations_response.py +57 -0
- perceptic_core_client/test/test_citation_api_dto.py +54 -0
- perceptic_core_client/test/test_citation_metadata_api_dto.py +83 -0
- perceptic_core_client/test/test_citations_resource_api.py +45 -0
- perceptic_core_client/test/test_get_citation_output_uri_response.py +51 -0
- perceptic_core_client/test/test_get_worker_run_response.py +55 -0
- perceptic_core_client/test/test_highlighted_text_citation_metadata_api_dto.py +53 -0
- perceptic_core_client/test/test_image_detection_box_api_dto.py +56 -0
- perceptic_core_client/test/test_info_event.py +1 -0
- perceptic_core_client/test/test_progress_event.py +1 -0
- perceptic_core_client/test/test_request_for_input_event.py +1 -0
- perceptic_core_client/test/test_user_info_response.py +56 -0
- perceptic_core_client/test/test_user_resource_api.py +7 -0
- perceptic_core_client/test/test_web_page_citation_metadata_api_dto.py +52 -0
- perceptic_core_client/test/test_worker_event.py +1 -0
- perceptic_core_client/test/test_worker_resource_api.py +7 -0
- {perceptic_core_client-0.29.0.dist-info → perceptic_core_client-0.31.0.dist-info}/METADATA +1 -1
- {perceptic_core_client-0.29.0.dist-info → perceptic_core_client-0.31.0.dist-info}/RECORD +44 -18
- {perceptic_core_client-0.29.0.dist-info → perceptic_core_client-0.31.0.dist-info}/WHEEL +0 -0
- {perceptic_core_client-0.29.0.dist-info → perceptic_core_client-0.31.0.dist-info}/top_level.txt +0 -0
|
@@ -16,7 +16,10 @@ from pydantic import validate_call, Field, StrictFloat, StrictStr, StrictInt
|
|
|
16
16
|
from typing import Any, Dict, List, Optional, Tuple, Union
|
|
17
17
|
from typing_extensions import Annotated
|
|
18
18
|
|
|
19
|
+
from pydantic import Field, StrictStr
|
|
20
|
+
from typing_extensions import Annotated
|
|
19
21
|
from perceptic_core_client.models.me_response import MeResponse
|
|
22
|
+
from perceptic_core_client.models.user_info_response import UserInfoResponse
|
|
20
23
|
|
|
21
24
|
from perceptic_core_client.api_client import ApiClient, RequestSerialized
|
|
22
25
|
from perceptic_core_client.api_response import ApiResponse
|
|
@@ -276,3 +279,269 @@ class UserResourceApi:
|
|
|
276
279
|
)
|
|
277
280
|
|
|
278
281
|
|
|
282
|
+
|
|
283
|
+
|
|
284
|
+
@validate_call
|
|
285
|
+
def api_v1_users_user_subject_get(
|
|
286
|
+
self,
|
|
287
|
+
subject: Annotated[StrictStr, Field(description="User subject/ID from JWT")],
|
|
288
|
+
_request_timeout: Union[
|
|
289
|
+
None,
|
|
290
|
+
Annotated[StrictFloat, Field(gt=0)],
|
|
291
|
+
Tuple[
|
|
292
|
+
Annotated[StrictFloat, Field(gt=0)],
|
|
293
|
+
Annotated[StrictFloat, Field(gt=0)]
|
|
294
|
+
]
|
|
295
|
+
] = None,
|
|
296
|
+
_request_auth: Optional[Dict[StrictStr, Any]] = None,
|
|
297
|
+
_content_type: Optional[StrictStr] = None,
|
|
298
|
+
_headers: Optional[Dict[StrictStr, Any]] = None,
|
|
299
|
+
_host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
|
|
300
|
+
) -> UserInfoResponse:
|
|
301
|
+
"""Get user by subject
|
|
302
|
+
|
|
303
|
+
Retrieves user information from Keycloak by user subject/ID
|
|
304
|
+
|
|
305
|
+
:param subject: User subject/ID from JWT (required)
|
|
306
|
+
:type subject: str
|
|
307
|
+
:param _request_timeout: timeout setting for this request. If one
|
|
308
|
+
number provided, it will be total request
|
|
309
|
+
timeout. It can also be a pair (tuple) of
|
|
310
|
+
(connection, read) timeouts.
|
|
311
|
+
:type _request_timeout: int, tuple(int, int), optional
|
|
312
|
+
:param _request_auth: set to override the auth_settings for an a single
|
|
313
|
+
request; this effectively ignores the
|
|
314
|
+
authentication in the spec for a single request.
|
|
315
|
+
:type _request_auth: dict, optional
|
|
316
|
+
:param _content_type: force content-type for the request.
|
|
317
|
+
:type _content_type: str, Optional
|
|
318
|
+
:param _headers: set to override the headers for a single
|
|
319
|
+
request; this effectively ignores the headers
|
|
320
|
+
in the spec for a single request.
|
|
321
|
+
:type _headers: dict, optional
|
|
322
|
+
:param _host_index: set to override the host_index for a single
|
|
323
|
+
request; this effectively ignores the host_index
|
|
324
|
+
in the spec for a single request.
|
|
325
|
+
:type _host_index: int, optional
|
|
326
|
+
:return: Returns the result object.
|
|
327
|
+
""" # noqa: E501
|
|
328
|
+
|
|
329
|
+
_param = self._api_v1_users_user_subject_get_serialize(
|
|
330
|
+
subject=subject,
|
|
331
|
+
_request_auth=_request_auth,
|
|
332
|
+
_content_type=_content_type,
|
|
333
|
+
_headers=_headers,
|
|
334
|
+
_host_index=_host_index
|
|
335
|
+
)
|
|
336
|
+
|
|
337
|
+
_response_types_map: Dict[str, Optional[str]] = {
|
|
338
|
+
'200': "UserInfoResponse",
|
|
339
|
+
'400': None,
|
|
340
|
+
'401': None,
|
|
341
|
+
}
|
|
342
|
+
response_data = self.api_client.call_api(
|
|
343
|
+
*_param,
|
|
344
|
+
_request_timeout=_request_timeout
|
|
345
|
+
)
|
|
346
|
+
response_data.read()
|
|
347
|
+
return self.api_client.response_deserialize(
|
|
348
|
+
response_data=response_data,
|
|
349
|
+
response_types_map=_response_types_map,
|
|
350
|
+
).data
|
|
351
|
+
|
|
352
|
+
|
|
353
|
+
@validate_call
|
|
354
|
+
def api_v1_users_user_subject_get_with_http_info(
|
|
355
|
+
self,
|
|
356
|
+
subject: Annotated[StrictStr, Field(description="User subject/ID from JWT")],
|
|
357
|
+
_request_timeout: Union[
|
|
358
|
+
None,
|
|
359
|
+
Annotated[StrictFloat, Field(gt=0)],
|
|
360
|
+
Tuple[
|
|
361
|
+
Annotated[StrictFloat, Field(gt=0)],
|
|
362
|
+
Annotated[StrictFloat, Field(gt=0)]
|
|
363
|
+
]
|
|
364
|
+
] = None,
|
|
365
|
+
_request_auth: Optional[Dict[StrictStr, Any]] = None,
|
|
366
|
+
_content_type: Optional[StrictStr] = None,
|
|
367
|
+
_headers: Optional[Dict[StrictStr, Any]] = None,
|
|
368
|
+
_host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
|
|
369
|
+
) -> ApiResponse[UserInfoResponse]:
|
|
370
|
+
"""Get user by subject
|
|
371
|
+
|
|
372
|
+
Retrieves user information from Keycloak by user subject/ID
|
|
373
|
+
|
|
374
|
+
:param subject: User subject/ID from JWT (required)
|
|
375
|
+
:type subject: str
|
|
376
|
+
:param _request_timeout: timeout setting for this request. If one
|
|
377
|
+
number provided, it will be total request
|
|
378
|
+
timeout. It can also be a pair (tuple) of
|
|
379
|
+
(connection, read) timeouts.
|
|
380
|
+
:type _request_timeout: int, tuple(int, int), optional
|
|
381
|
+
:param _request_auth: set to override the auth_settings for an a single
|
|
382
|
+
request; this effectively ignores the
|
|
383
|
+
authentication in the spec for a single request.
|
|
384
|
+
:type _request_auth: dict, optional
|
|
385
|
+
:param _content_type: force content-type for the request.
|
|
386
|
+
:type _content_type: str, Optional
|
|
387
|
+
:param _headers: set to override the headers for a single
|
|
388
|
+
request; this effectively ignores the headers
|
|
389
|
+
in the spec for a single request.
|
|
390
|
+
:type _headers: dict, optional
|
|
391
|
+
:param _host_index: set to override the host_index for a single
|
|
392
|
+
request; this effectively ignores the host_index
|
|
393
|
+
in the spec for a single request.
|
|
394
|
+
:type _host_index: int, optional
|
|
395
|
+
:return: Returns the result object.
|
|
396
|
+
""" # noqa: E501
|
|
397
|
+
|
|
398
|
+
_param = self._api_v1_users_user_subject_get_serialize(
|
|
399
|
+
subject=subject,
|
|
400
|
+
_request_auth=_request_auth,
|
|
401
|
+
_content_type=_content_type,
|
|
402
|
+
_headers=_headers,
|
|
403
|
+
_host_index=_host_index
|
|
404
|
+
)
|
|
405
|
+
|
|
406
|
+
_response_types_map: Dict[str, Optional[str]] = {
|
|
407
|
+
'200': "UserInfoResponse",
|
|
408
|
+
'400': None,
|
|
409
|
+
'401': None,
|
|
410
|
+
}
|
|
411
|
+
response_data = self.api_client.call_api(
|
|
412
|
+
*_param,
|
|
413
|
+
_request_timeout=_request_timeout
|
|
414
|
+
)
|
|
415
|
+
response_data.read()
|
|
416
|
+
return self.api_client.response_deserialize(
|
|
417
|
+
response_data=response_data,
|
|
418
|
+
response_types_map=_response_types_map,
|
|
419
|
+
)
|
|
420
|
+
|
|
421
|
+
|
|
422
|
+
@validate_call
|
|
423
|
+
def api_v1_users_user_subject_get_without_preload_content(
|
|
424
|
+
self,
|
|
425
|
+
subject: Annotated[StrictStr, Field(description="User subject/ID from JWT")],
|
|
426
|
+
_request_timeout: Union[
|
|
427
|
+
None,
|
|
428
|
+
Annotated[StrictFloat, Field(gt=0)],
|
|
429
|
+
Tuple[
|
|
430
|
+
Annotated[StrictFloat, Field(gt=0)],
|
|
431
|
+
Annotated[StrictFloat, Field(gt=0)]
|
|
432
|
+
]
|
|
433
|
+
] = None,
|
|
434
|
+
_request_auth: Optional[Dict[StrictStr, Any]] = None,
|
|
435
|
+
_content_type: Optional[StrictStr] = None,
|
|
436
|
+
_headers: Optional[Dict[StrictStr, Any]] = None,
|
|
437
|
+
_host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
|
|
438
|
+
) -> RESTResponseType:
|
|
439
|
+
"""Get user by subject
|
|
440
|
+
|
|
441
|
+
Retrieves user information from Keycloak by user subject/ID
|
|
442
|
+
|
|
443
|
+
:param subject: User subject/ID from JWT (required)
|
|
444
|
+
:type subject: str
|
|
445
|
+
:param _request_timeout: timeout setting for this request. If one
|
|
446
|
+
number provided, it will be total request
|
|
447
|
+
timeout. It can also be a pair (tuple) of
|
|
448
|
+
(connection, read) timeouts.
|
|
449
|
+
:type _request_timeout: int, tuple(int, int), optional
|
|
450
|
+
:param _request_auth: set to override the auth_settings for an a single
|
|
451
|
+
request; this effectively ignores the
|
|
452
|
+
authentication in the spec for a single request.
|
|
453
|
+
:type _request_auth: dict, optional
|
|
454
|
+
:param _content_type: force content-type for the request.
|
|
455
|
+
:type _content_type: str, Optional
|
|
456
|
+
:param _headers: set to override the headers for a single
|
|
457
|
+
request; this effectively ignores the headers
|
|
458
|
+
in the spec for a single request.
|
|
459
|
+
:type _headers: dict, optional
|
|
460
|
+
:param _host_index: set to override the host_index for a single
|
|
461
|
+
request; this effectively ignores the host_index
|
|
462
|
+
in the spec for a single request.
|
|
463
|
+
:type _host_index: int, optional
|
|
464
|
+
:return: Returns the result object.
|
|
465
|
+
""" # noqa: E501
|
|
466
|
+
|
|
467
|
+
_param = self._api_v1_users_user_subject_get_serialize(
|
|
468
|
+
subject=subject,
|
|
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
|
+
'200': "UserInfoResponse",
|
|
477
|
+
'400': None,
|
|
478
|
+
'401': None,
|
|
479
|
+
}
|
|
480
|
+
response_data = self.api_client.call_api(
|
|
481
|
+
*_param,
|
|
482
|
+
_request_timeout=_request_timeout
|
|
483
|
+
)
|
|
484
|
+
return response_data.response
|
|
485
|
+
|
|
486
|
+
|
|
487
|
+
def _api_v1_users_user_subject_get_serialize(
|
|
488
|
+
self,
|
|
489
|
+
subject,
|
|
490
|
+
_request_auth,
|
|
491
|
+
_content_type,
|
|
492
|
+
_headers,
|
|
493
|
+
_host_index,
|
|
494
|
+
) -> RequestSerialized:
|
|
495
|
+
|
|
496
|
+
_host = None
|
|
497
|
+
|
|
498
|
+
_collection_formats: Dict[str, str] = {
|
|
499
|
+
}
|
|
500
|
+
|
|
501
|
+
_path_params: Dict[str, str] = {}
|
|
502
|
+
_query_params: List[Tuple[str, str]] = []
|
|
503
|
+
_header_params: Dict[str, Optional[str]] = _headers or {}
|
|
504
|
+
_form_params: List[Tuple[str, str]] = []
|
|
505
|
+
_files: Dict[
|
|
506
|
+
str, Union[str, bytes, List[str], List[bytes], List[Tuple[str, bytes]]]
|
|
507
|
+
] = {}
|
|
508
|
+
_body_params: Optional[bytes] = None
|
|
509
|
+
|
|
510
|
+
# process the path parameters
|
|
511
|
+
if subject is not None:
|
|
512
|
+
_path_params['subject'] = subject
|
|
513
|
+
# process the query parameters
|
|
514
|
+
# process the header parameters
|
|
515
|
+
# process the form parameters
|
|
516
|
+
# process the body parameter
|
|
517
|
+
|
|
518
|
+
|
|
519
|
+
# set the HTTP header `Accept`
|
|
520
|
+
if 'Accept' not in _header_params:
|
|
521
|
+
_header_params['Accept'] = self.api_client.select_header_accept(
|
|
522
|
+
[
|
|
523
|
+
'application/json'
|
|
524
|
+
]
|
|
525
|
+
)
|
|
526
|
+
|
|
527
|
+
|
|
528
|
+
# authentication setting
|
|
529
|
+
_auth_settings: List[str] = [
|
|
530
|
+
]
|
|
531
|
+
|
|
532
|
+
return self.api_client.param_serialize(
|
|
533
|
+
method='GET',
|
|
534
|
+
resource_path='/api/v1/users/user/{subject}',
|
|
535
|
+
path_params=_path_params,
|
|
536
|
+
query_params=_query_params,
|
|
537
|
+
header_params=_header_params,
|
|
538
|
+
body=_body_params,
|
|
539
|
+
post_params=_form_params,
|
|
540
|
+
files=_files,
|
|
541
|
+
auth_settings=_auth_settings,
|
|
542
|
+
collection_formats=_collection_formats,
|
|
543
|
+
_host=_host,
|
|
544
|
+
_request_auth=_request_auth
|
|
545
|
+
)
|
|
546
|
+
|
|
547
|
+
|
|
@@ -21,6 +21,7 @@ from typing import Any, Dict, Optional
|
|
|
21
21
|
from typing_extensions import Annotated
|
|
22
22
|
from perceptic_core_client.models.get_worker_events_response import GetWorkerEventsResponse
|
|
23
23
|
from perceptic_core_client.models.get_worker_metadata_response import GetWorkerMetadataResponse
|
|
24
|
+
from perceptic_core_client.models.get_worker_run_response import GetWorkerRunResponse
|
|
24
25
|
from perceptic_core_client.models.get_worker_status_response import GetWorkerStatusResponse
|
|
25
26
|
from perceptic_core_client.models.get_workers_response import GetWorkersResponse
|
|
26
27
|
from perceptic_core_client.models.post_worker_run_request import PostWorkerRunRequest
|
|
@@ -1171,6 +1172,278 @@ class WorkerResourceApi:
|
|
|
1171
1172
|
|
|
1172
1173
|
|
|
1173
1174
|
|
|
1175
|
+
@validate_call
|
|
1176
|
+
def api_v1_workers_worker_id_runs_run_rid_get(
|
|
1177
|
+
self,
|
|
1178
|
+
run_rid: StrictStr,
|
|
1179
|
+
worker_id: StrictStr,
|
|
1180
|
+
_request_timeout: Union[
|
|
1181
|
+
None,
|
|
1182
|
+
Annotated[StrictFloat, Field(gt=0)],
|
|
1183
|
+
Tuple[
|
|
1184
|
+
Annotated[StrictFloat, Field(gt=0)],
|
|
1185
|
+
Annotated[StrictFloat, Field(gt=0)]
|
|
1186
|
+
]
|
|
1187
|
+
] = None,
|
|
1188
|
+
_request_auth: Optional[Dict[StrictStr, Any]] = None,
|
|
1189
|
+
_content_type: Optional[StrictStr] = None,
|
|
1190
|
+
_headers: Optional[Dict[StrictStr, Any]] = None,
|
|
1191
|
+
_host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
|
|
1192
|
+
) -> GetWorkerRunResponse:
|
|
1193
|
+
"""Get Worker Run
|
|
1194
|
+
|
|
1195
|
+
|
|
1196
|
+
:param run_rid: (required)
|
|
1197
|
+
:type run_rid: str
|
|
1198
|
+
:param worker_id: (required)
|
|
1199
|
+
:type worker_id: str
|
|
1200
|
+
:param _request_timeout: timeout setting for this request. If one
|
|
1201
|
+
number provided, it will be total request
|
|
1202
|
+
timeout. It can also be a pair (tuple) of
|
|
1203
|
+
(connection, read) timeouts.
|
|
1204
|
+
:type _request_timeout: int, tuple(int, int), optional
|
|
1205
|
+
:param _request_auth: set to override the auth_settings for an a single
|
|
1206
|
+
request; this effectively ignores the
|
|
1207
|
+
authentication in the spec for a single request.
|
|
1208
|
+
:type _request_auth: dict, optional
|
|
1209
|
+
:param _content_type: force content-type for the request.
|
|
1210
|
+
:type _content_type: str, Optional
|
|
1211
|
+
:param _headers: set to override the headers for a single
|
|
1212
|
+
request; this effectively ignores the headers
|
|
1213
|
+
in the spec for a single request.
|
|
1214
|
+
:type _headers: dict, optional
|
|
1215
|
+
:param _host_index: set to override the host_index for a single
|
|
1216
|
+
request; this effectively ignores the host_index
|
|
1217
|
+
in the spec for a single request.
|
|
1218
|
+
:type _host_index: int, optional
|
|
1219
|
+
:return: Returns the result object.
|
|
1220
|
+
""" # noqa: E501
|
|
1221
|
+
|
|
1222
|
+
_param = self._api_v1_workers_worker_id_runs_run_rid_get_serialize(
|
|
1223
|
+
run_rid=run_rid,
|
|
1224
|
+
worker_id=worker_id,
|
|
1225
|
+
_request_auth=_request_auth,
|
|
1226
|
+
_content_type=_content_type,
|
|
1227
|
+
_headers=_headers,
|
|
1228
|
+
_host_index=_host_index
|
|
1229
|
+
)
|
|
1230
|
+
|
|
1231
|
+
_response_types_map: Dict[str, Optional[str]] = {
|
|
1232
|
+
'200': "GetWorkerRunResponse",
|
|
1233
|
+
}
|
|
1234
|
+
response_data = self.api_client.call_api(
|
|
1235
|
+
*_param,
|
|
1236
|
+
_request_timeout=_request_timeout
|
|
1237
|
+
)
|
|
1238
|
+
response_data.read()
|
|
1239
|
+
return self.api_client.response_deserialize(
|
|
1240
|
+
response_data=response_data,
|
|
1241
|
+
response_types_map=_response_types_map,
|
|
1242
|
+
).data
|
|
1243
|
+
|
|
1244
|
+
|
|
1245
|
+
@validate_call
|
|
1246
|
+
def api_v1_workers_worker_id_runs_run_rid_get_with_http_info(
|
|
1247
|
+
self,
|
|
1248
|
+
run_rid: StrictStr,
|
|
1249
|
+
worker_id: StrictStr,
|
|
1250
|
+
_request_timeout: Union[
|
|
1251
|
+
None,
|
|
1252
|
+
Annotated[StrictFloat, Field(gt=0)],
|
|
1253
|
+
Tuple[
|
|
1254
|
+
Annotated[StrictFloat, Field(gt=0)],
|
|
1255
|
+
Annotated[StrictFloat, Field(gt=0)]
|
|
1256
|
+
]
|
|
1257
|
+
] = None,
|
|
1258
|
+
_request_auth: Optional[Dict[StrictStr, Any]] = None,
|
|
1259
|
+
_content_type: Optional[StrictStr] = None,
|
|
1260
|
+
_headers: Optional[Dict[StrictStr, Any]] = None,
|
|
1261
|
+
_host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
|
|
1262
|
+
) -> ApiResponse[GetWorkerRunResponse]:
|
|
1263
|
+
"""Get Worker Run
|
|
1264
|
+
|
|
1265
|
+
|
|
1266
|
+
:param run_rid: (required)
|
|
1267
|
+
:type run_rid: str
|
|
1268
|
+
:param worker_id: (required)
|
|
1269
|
+
:type worker_id: str
|
|
1270
|
+
:param _request_timeout: timeout setting for this request. If one
|
|
1271
|
+
number provided, it will be total request
|
|
1272
|
+
timeout. It can also be a pair (tuple) of
|
|
1273
|
+
(connection, read) timeouts.
|
|
1274
|
+
:type _request_timeout: int, tuple(int, int), optional
|
|
1275
|
+
:param _request_auth: set to override the auth_settings for an a single
|
|
1276
|
+
request; this effectively ignores the
|
|
1277
|
+
authentication in the spec for a single request.
|
|
1278
|
+
:type _request_auth: dict, optional
|
|
1279
|
+
:param _content_type: force content-type for the request.
|
|
1280
|
+
:type _content_type: str, Optional
|
|
1281
|
+
:param _headers: set to override the headers for a single
|
|
1282
|
+
request; this effectively ignores the headers
|
|
1283
|
+
in the spec for a single request.
|
|
1284
|
+
:type _headers: dict, optional
|
|
1285
|
+
:param _host_index: set to override the host_index for a single
|
|
1286
|
+
request; this effectively ignores the host_index
|
|
1287
|
+
in the spec for a single request.
|
|
1288
|
+
:type _host_index: int, optional
|
|
1289
|
+
:return: Returns the result object.
|
|
1290
|
+
""" # noqa: E501
|
|
1291
|
+
|
|
1292
|
+
_param = self._api_v1_workers_worker_id_runs_run_rid_get_serialize(
|
|
1293
|
+
run_rid=run_rid,
|
|
1294
|
+
worker_id=worker_id,
|
|
1295
|
+
_request_auth=_request_auth,
|
|
1296
|
+
_content_type=_content_type,
|
|
1297
|
+
_headers=_headers,
|
|
1298
|
+
_host_index=_host_index
|
|
1299
|
+
)
|
|
1300
|
+
|
|
1301
|
+
_response_types_map: Dict[str, Optional[str]] = {
|
|
1302
|
+
'200': "GetWorkerRunResponse",
|
|
1303
|
+
}
|
|
1304
|
+
response_data = self.api_client.call_api(
|
|
1305
|
+
*_param,
|
|
1306
|
+
_request_timeout=_request_timeout
|
|
1307
|
+
)
|
|
1308
|
+
response_data.read()
|
|
1309
|
+
return self.api_client.response_deserialize(
|
|
1310
|
+
response_data=response_data,
|
|
1311
|
+
response_types_map=_response_types_map,
|
|
1312
|
+
)
|
|
1313
|
+
|
|
1314
|
+
|
|
1315
|
+
@validate_call
|
|
1316
|
+
def api_v1_workers_worker_id_runs_run_rid_get_without_preload_content(
|
|
1317
|
+
self,
|
|
1318
|
+
run_rid: StrictStr,
|
|
1319
|
+
worker_id: StrictStr,
|
|
1320
|
+
_request_timeout: Union[
|
|
1321
|
+
None,
|
|
1322
|
+
Annotated[StrictFloat, Field(gt=0)],
|
|
1323
|
+
Tuple[
|
|
1324
|
+
Annotated[StrictFloat, Field(gt=0)],
|
|
1325
|
+
Annotated[StrictFloat, Field(gt=0)]
|
|
1326
|
+
]
|
|
1327
|
+
] = None,
|
|
1328
|
+
_request_auth: Optional[Dict[StrictStr, Any]] = None,
|
|
1329
|
+
_content_type: Optional[StrictStr] = None,
|
|
1330
|
+
_headers: Optional[Dict[StrictStr, Any]] = None,
|
|
1331
|
+
_host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
|
|
1332
|
+
) -> RESTResponseType:
|
|
1333
|
+
"""Get Worker Run
|
|
1334
|
+
|
|
1335
|
+
|
|
1336
|
+
:param run_rid: (required)
|
|
1337
|
+
:type run_rid: str
|
|
1338
|
+
:param worker_id: (required)
|
|
1339
|
+
:type worker_id: str
|
|
1340
|
+
:param _request_timeout: timeout setting for this request. If one
|
|
1341
|
+
number provided, it will be total request
|
|
1342
|
+
timeout. It can also be a pair (tuple) of
|
|
1343
|
+
(connection, read) timeouts.
|
|
1344
|
+
:type _request_timeout: int, tuple(int, int), optional
|
|
1345
|
+
:param _request_auth: set to override the auth_settings for an a single
|
|
1346
|
+
request; this effectively ignores the
|
|
1347
|
+
authentication in the spec for a single request.
|
|
1348
|
+
:type _request_auth: dict, optional
|
|
1349
|
+
:param _content_type: force content-type for the request.
|
|
1350
|
+
:type _content_type: str, Optional
|
|
1351
|
+
:param _headers: set to override the headers for a single
|
|
1352
|
+
request; this effectively ignores the headers
|
|
1353
|
+
in the spec for a single request.
|
|
1354
|
+
:type _headers: dict, optional
|
|
1355
|
+
:param _host_index: set to override the host_index for a single
|
|
1356
|
+
request; this effectively ignores the host_index
|
|
1357
|
+
in the spec for a single request.
|
|
1358
|
+
:type _host_index: int, optional
|
|
1359
|
+
:return: Returns the result object.
|
|
1360
|
+
""" # noqa: E501
|
|
1361
|
+
|
|
1362
|
+
_param = self._api_v1_workers_worker_id_runs_run_rid_get_serialize(
|
|
1363
|
+
run_rid=run_rid,
|
|
1364
|
+
worker_id=worker_id,
|
|
1365
|
+
_request_auth=_request_auth,
|
|
1366
|
+
_content_type=_content_type,
|
|
1367
|
+
_headers=_headers,
|
|
1368
|
+
_host_index=_host_index
|
|
1369
|
+
)
|
|
1370
|
+
|
|
1371
|
+
_response_types_map: Dict[str, Optional[str]] = {
|
|
1372
|
+
'200': "GetWorkerRunResponse",
|
|
1373
|
+
}
|
|
1374
|
+
response_data = self.api_client.call_api(
|
|
1375
|
+
*_param,
|
|
1376
|
+
_request_timeout=_request_timeout
|
|
1377
|
+
)
|
|
1378
|
+
return response_data.response
|
|
1379
|
+
|
|
1380
|
+
|
|
1381
|
+
def _api_v1_workers_worker_id_runs_run_rid_get_serialize(
|
|
1382
|
+
self,
|
|
1383
|
+
run_rid,
|
|
1384
|
+
worker_id,
|
|
1385
|
+
_request_auth,
|
|
1386
|
+
_content_type,
|
|
1387
|
+
_headers,
|
|
1388
|
+
_host_index,
|
|
1389
|
+
) -> RequestSerialized:
|
|
1390
|
+
|
|
1391
|
+
_host = None
|
|
1392
|
+
|
|
1393
|
+
_collection_formats: Dict[str, str] = {
|
|
1394
|
+
}
|
|
1395
|
+
|
|
1396
|
+
_path_params: Dict[str, str] = {}
|
|
1397
|
+
_query_params: List[Tuple[str, str]] = []
|
|
1398
|
+
_header_params: Dict[str, Optional[str]] = _headers or {}
|
|
1399
|
+
_form_params: List[Tuple[str, str]] = []
|
|
1400
|
+
_files: Dict[
|
|
1401
|
+
str, Union[str, bytes, List[str], List[bytes], List[Tuple[str, bytes]]]
|
|
1402
|
+
] = {}
|
|
1403
|
+
_body_params: Optional[bytes] = None
|
|
1404
|
+
|
|
1405
|
+
# process the path parameters
|
|
1406
|
+
if run_rid is not None:
|
|
1407
|
+
_path_params['runRid'] = run_rid
|
|
1408
|
+
if worker_id is not None:
|
|
1409
|
+
_path_params['workerId'] = worker_id
|
|
1410
|
+
# process the query parameters
|
|
1411
|
+
# process the header parameters
|
|
1412
|
+
# process the form parameters
|
|
1413
|
+
# process the body parameter
|
|
1414
|
+
|
|
1415
|
+
|
|
1416
|
+
# set the HTTP header `Accept`
|
|
1417
|
+
if 'Accept' not in _header_params:
|
|
1418
|
+
_header_params['Accept'] = self.api_client.select_header_accept(
|
|
1419
|
+
[
|
|
1420
|
+
'application/json'
|
|
1421
|
+
]
|
|
1422
|
+
)
|
|
1423
|
+
|
|
1424
|
+
|
|
1425
|
+
# authentication setting
|
|
1426
|
+
_auth_settings: List[str] = [
|
|
1427
|
+
]
|
|
1428
|
+
|
|
1429
|
+
return self.api_client.param_serialize(
|
|
1430
|
+
method='GET',
|
|
1431
|
+
resource_path='/api/v1/workers/{workerId}/runs/{runRid}',
|
|
1432
|
+
path_params=_path_params,
|
|
1433
|
+
query_params=_query_params,
|
|
1434
|
+
header_params=_header_params,
|
|
1435
|
+
body=_body_params,
|
|
1436
|
+
post_params=_form_params,
|
|
1437
|
+
files=_files,
|
|
1438
|
+
auth_settings=_auth_settings,
|
|
1439
|
+
collection_formats=_collection_formats,
|
|
1440
|
+
_host=_host,
|
|
1441
|
+
_request_auth=_request_auth
|
|
1442
|
+
)
|
|
1443
|
+
|
|
1444
|
+
|
|
1445
|
+
|
|
1446
|
+
|
|
1174
1447
|
@validate_call
|
|
1175
1448
|
def api_v1_workers_worker_id_runs_run_rid_resume_post(
|
|
1176
1449
|
self,
|
|
@@ -18,6 +18,12 @@ from perceptic_core_client.models.action_type import ActionType
|
|
|
18
18
|
from perceptic_core_client.models.add_tag_to_file_request import AddTagToFileRequest
|
|
19
19
|
from perceptic_core_client.models.azure_blob_connection_settings_api_dto import AzureBlobConnectionSettingsApiDto
|
|
20
20
|
from perceptic_core_client.models.azure_blob_file_system_root_metadata_api_dto import AzureBlobFileSystemRootMetadataApiDto
|
|
21
|
+
from perceptic_core_client.models.biotech_analysis_api_dto import BiotechAnalysisApiDto
|
|
22
|
+
from perceptic_core_client.models.biotech_analysis_image_annotated_citation_api_dto import BiotechAnalysisImageAnnotatedCitationApiDto
|
|
23
|
+
from perceptic_core_client.models.bulk_get_citations_request import BulkGetCitationsRequest
|
|
24
|
+
from perceptic_core_client.models.bulk_get_citations_response import BulkGetCitationsResponse
|
|
25
|
+
from perceptic_core_client.models.citation_api_dto import CitationApiDto
|
|
26
|
+
from perceptic_core_client.models.citation_metadata_api_dto import CitationMetadataApiDto
|
|
21
27
|
from perceptic_core_client.models.connection_api_dto import ConnectionApiDto
|
|
22
28
|
from perceptic_core_client.models.connection_settings_api_dto import ConnectionSettingsApiDto
|
|
23
29
|
from perceptic_core_client.models.create_connection_request import CreateConnectionRequest
|
|
@@ -37,6 +43,7 @@ from perceptic_core_client.models.cron_trigger import CronTrigger
|
|
|
37
43
|
from perceptic_core_client.models.execution_trigger_reason import ExecutionTriggerReason
|
|
38
44
|
from perceptic_core_client.models.file_system_api_dto import FileSystemApiDto
|
|
39
45
|
from perceptic_core_client.models.file_system_root_metadata_api_dto import FileSystemRootMetadataApiDto
|
|
46
|
+
from perceptic_core_client.models.get_citation_output_uri_response import GetCitationOutputUriResponse
|
|
40
47
|
from perceptic_core_client.models.get_connection_response import GetConnectionResponse
|
|
41
48
|
from perceptic_core_client.models.get_indexer_response import GetIndexerResponse
|
|
42
49
|
from perceptic_core_client.models.get_indexing_schedule_response import GetIndexingScheduleResponse
|
|
@@ -47,8 +54,11 @@ from perceptic_core_client.models.get_parent_uri_response import GetParentUriRes
|
|
|
47
54
|
from perceptic_core_client.models.get_signed_url_response import GetSignedUrlResponse
|
|
48
55
|
from perceptic_core_client.models.get_worker_events_response import GetWorkerEventsResponse
|
|
49
56
|
from perceptic_core_client.models.get_worker_metadata_response import GetWorkerMetadataResponse
|
|
57
|
+
from perceptic_core_client.models.get_worker_run_response import GetWorkerRunResponse
|
|
50
58
|
from perceptic_core_client.models.get_worker_status_response import GetWorkerStatusResponse
|
|
51
59
|
from perceptic_core_client.models.get_workers_response import GetWorkersResponse
|
|
60
|
+
from perceptic_core_client.models.highlighted_text_citation_metadata_api_dto import HighlightedTextCitationMetadataApiDto
|
|
61
|
+
from perceptic_core_client.models.image_detection_box_api_dto import ImageDetectionBoxApiDto
|
|
52
62
|
from perceptic_core_client.models.indexer_dto import IndexerDto
|
|
53
63
|
from perceptic_core_client.models.indexing_action_dto import IndexingActionDto
|
|
54
64
|
from perceptic_core_client.models.indexing_action_status import IndexingActionStatus
|
|
@@ -94,5 +104,7 @@ from perceptic_core_client.models.update_indexing_schedule_response import Updat
|
|
|
94
104
|
from perceptic_core_client.models.update_tag_request import UpdateTagRequest
|
|
95
105
|
from perceptic_core_client.models.update_tag_response import UpdateTagResponse
|
|
96
106
|
from perceptic_core_client.models.upload_file_to_managed_file_system_response import UploadFileToManagedFileSystemResponse
|
|
107
|
+
from perceptic_core_client.models.user_info_response import UserInfoResponse
|
|
108
|
+
from perceptic_core_client.models.web_page_citation_metadata_api_dto import WebPageCitationMetadataApiDto
|
|
97
109
|
from perceptic_core_client.models.worker_event import WorkerEvent
|
|
98
110
|
from perceptic_core_client.models.worker_metadata_dto import WorkerMetadataDto
|