perceptic-core-client 0.39.0__py3-none-any.whl → 0.40.999__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.

@@ -75,6 +75,7 @@ __all__ = [
75
75
  "GetMetadataResponse",
76
76
  "GetParentResponse",
77
77
  "GetParentUriResponse",
78
+ "GetRunEventRatingResponse",
78
79
  "GetSignedUrlResponse",
79
80
  "GetWorkerEventsResponse",
80
81
  "GetWorkerMetadataResponse",
@@ -105,9 +106,12 @@ __all__ = [
105
106
  "ModelSchema",
106
107
  "OnUploadTrigger",
107
108
  "PagedListFileSystemResponse",
109
+ "PostRatingRequest",
110
+ "PostRunEventRatingResponse",
108
111
  "PostWorkerRunRequest",
109
112
  "PostWorkerRunResponse",
110
113
  "ProgressEvent",
114
+ "RatingDtoWorkerRunEventRatingSecondaryId",
111
115
  "RemoteFileSystemApiDto",
112
116
  "RemoveTagFromFileRequest",
113
117
  "RequestForInputEvent",
@@ -132,6 +136,7 @@ __all__ = [
132
136
  "WebPageCitationMetadataApiDto",
133
137
  "WorkerEvent",
134
138
  "WorkerMetadataDto",
139
+ "WorkerRunEventRatingSecondaryId",
135
140
  ]
136
141
 
137
142
  # import apis into sdk package
@@ -196,6 +201,7 @@ from perceptic_core_client.models.get_indexing_task_response import GetIndexingT
196
201
  from perceptic_core_client.models.get_metadata_response import GetMetadataResponse as GetMetadataResponse
197
202
  from perceptic_core_client.models.get_parent_response import GetParentResponse as GetParentResponse
198
203
  from perceptic_core_client.models.get_parent_uri_response import GetParentUriResponse as GetParentUriResponse
204
+ from perceptic_core_client.models.get_run_event_rating_response import GetRunEventRatingResponse as GetRunEventRatingResponse
199
205
  from perceptic_core_client.models.get_signed_url_response import GetSignedUrlResponse as GetSignedUrlResponse
200
206
  from perceptic_core_client.models.get_worker_events_response import GetWorkerEventsResponse as GetWorkerEventsResponse
201
207
  from perceptic_core_client.models.get_worker_metadata_response import GetWorkerMetadataResponse as GetWorkerMetadataResponse
@@ -226,9 +232,12 @@ from perceptic_core_client.models.me_response import MeResponse as MeResponse
226
232
  from perceptic_core_client.models.model_schema import ModelSchema as ModelSchema
227
233
  from perceptic_core_client.models.on_upload_trigger import OnUploadTrigger as OnUploadTrigger
228
234
  from perceptic_core_client.models.paged_list_file_system_response import PagedListFileSystemResponse as PagedListFileSystemResponse
235
+ from perceptic_core_client.models.post_rating_request import PostRatingRequest as PostRatingRequest
236
+ from perceptic_core_client.models.post_run_event_rating_response import PostRunEventRatingResponse as PostRunEventRatingResponse
229
237
  from perceptic_core_client.models.post_worker_run_request import PostWorkerRunRequest as PostWorkerRunRequest
230
238
  from perceptic_core_client.models.post_worker_run_response import PostWorkerRunResponse as PostWorkerRunResponse
231
239
  from perceptic_core_client.models.progress_event import ProgressEvent as ProgressEvent
240
+ from perceptic_core_client.models.rating_dto_worker_run_event_rating_secondary_id import RatingDtoWorkerRunEventRatingSecondaryId as RatingDtoWorkerRunEventRatingSecondaryId
232
241
  from perceptic_core_client.models.remote_file_system_api_dto import RemoteFileSystemApiDto as RemoteFileSystemApiDto
233
242
  from perceptic_core_client.models.remove_tag_from_file_request import RemoveTagFromFileRequest as RemoveTagFromFileRequest
234
243
  from perceptic_core_client.models.request_for_input_event import RequestForInputEvent as RequestForInputEvent
@@ -253,3 +262,4 @@ from perceptic_core_client.models.user_info_response import UserInfoResponse as
253
262
  from perceptic_core_client.models.web_page_citation_metadata_api_dto import WebPageCitationMetadataApiDto as WebPageCitationMetadataApiDto
254
263
  from perceptic_core_client.models.worker_event import WorkerEvent as WorkerEvent
255
264
  from perceptic_core_client.models.worker_metadata_dto import WorkerMetadataDto as WorkerMetadataDto
265
+ from perceptic_core_client.models.worker_run_event_rating_secondary_id import WorkerRunEventRatingSecondaryId as WorkerRunEventRatingSecondaryId
@@ -16,14 +16,17 @@ 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
19
+ from pydantic import Field, StrictInt, StrictStr
20
20
  from typing import Any, Dict, Optional
21
21
  from typing_extensions import Annotated
22
+ from perceptic_core_client.models.get_run_event_rating_response import GetRunEventRatingResponse
22
23
  from perceptic_core_client.models.get_worker_events_response import GetWorkerEventsResponse
23
24
  from perceptic_core_client.models.get_worker_metadata_response import GetWorkerMetadataResponse
24
25
  from perceptic_core_client.models.get_worker_run_response import GetWorkerRunResponse
25
26
  from perceptic_core_client.models.get_worker_status_response import GetWorkerStatusResponse
26
27
  from perceptic_core_client.models.get_workers_response import GetWorkersResponse
28
+ from perceptic_core_client.models.post_rating_request import PostRatingRequest
29
+ from perceptic_core_client.models.post_run_event_rating_response import PostRunEventRatingResponse
27
30
  from perceptic_core_client.models.post_worker_run_request import PostWorkerRunRequest
28
31
  from perceptic_core_client.models.post_worker_run_response import PostWorkerRunResponse
29
32
 
@@ -287,6 +290,581 @@ class WorkerResourceApi:
287
290
 
288
291
 
289
292
 
293
+ @validate_call
294
+ def api_v1_workers_runs_run_rid_events_sequence_rating_get(
295
+ self,
296
+ run_rid: StrictStr,
297
+ sequence: StrictInt,
298
+ _request_timeout: Union[
299
+ None,
300
+ Annotated[StrictFloat, Field(gt=0)],
301
+ Tuple[
302
+ Annotated[StrictFloat, Field(gt=0)],
303
+ Annotated[StrictFloat, Field(gt=0)]
304
+ ]
305
+ ] = None,
306
+ _request_auth: Optional[Dict[StrictStr, Any]] = None,
307
+ _content_type: Optional[StrictStr] = None,
308
+ _headers: Optional[Dict[StrictStr, Any]] = None,
309
+ _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
310
+ ) -> GetRunEventRatingResponse:
311
+ """Get Rating
312
+
313
+
314
+ :param run_rid: (required)
315
+ :type run_rid: str
316
+ :param sequence: (required)
317
+ :type sequence: int
318
+ :param _request_timeout: timeout setting for this request. If one
319
+ number provided, it will be total request
320
+ timeout. It can also be a pair (tuple) of
321
+ (connection, read) timeouts.
322
+ :type _request_timeout: int, tuple(int, int), optional
323
+ :param _request_auth: set to override the auth_settings for an a single
324
+ request; this effectively ignores the
325
+ authentication in the spec for a single request.
326
+ :type _request_auth: dict, optional
327
+ :param _content_type: force content-type for the request.
328
+ :type _content_type: str, Optional
329
+ :param _headers: set to override the headers for a single
330
+ request; this effectively ignores the headers
331
+ in the spec for a single request.
332
+ :type _headers: dict, optional
333
+ :param _host_index: set to override the host_index for a single
334
+ request; this effectively ignores the host_index
335
+ in the spec for a single request.
336
+ :type _host_index: int, optional
337
+ :return: Returns the result object.
338
+ """ # noqa: E501
339
+
340
+ _param = self._api_v1_workers_runs_run_rid_events_sequence_rating_get_serialize(
341
+ run_rid=run_rid,
342
+ sequence=sequence,
343
+ _request_auth=_request_auth,
344
+ _content_type=_content_type,
345
+ _headers=_headers,
346
+ _host_index=_host_index
347
+ )
348
+
349
+ _response_types_map: Dict[str, Optional[str]] = {
350
+ '200': "GetRunEventRatingResponse",
351
+ }
352
+ response_data = self.api_client.call_api(
353
+ *_param,
354
+ _request_timeout=_request_timeout
355
+ )
356
+ response_data.read()
357
+ return self.api_client.response_deserialize(
358
+ response_data=response_data,
359
+ response_types_map=_response_types_map,
360
+ ).data
361
+
362
+
363
+ @validate_call
364
+ def api_v1_workers_runs_run_rid_events_sequence_rating_get_with_http_info(
365
+ self,
366
+ run_rid: StrictStr,
367
+ sequence: StrictInt,
368
+ _request_timeout: Union[
369
+ None,
370
+ Annotated[StrictFloat, Field(gt=0)],
371
+ Tuple[
372
+ Annotated[StrictFloat, Field(gt=0)],
373
+ Annotated[StrictFloat, Field(gt=0)]
374
+ ]
375
+ ] = None,
376
+ _request_auth: Optional[Dict[StrictStr, Any]] = None,
377
+ _content_type: Optional[StrictStr] = None,
378
+ _headers: Optional[Dict[StrictStr, Any]] = None,
379
+ _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
380
+ ) -> ApiResponse[GetRunEventRatingResponse]:
381
+ """Get Rating
382
+
383
+
384
+ :param run_rid: (required)
385
+ :type run_rid: str
386
+ :param sequence: (required)
387
+ :type sequence: int
388
+ :param _request_timeout: timeout setting for this request. If one
389
+ number provided, it will be total request
390
+ timeout. It can also be a pair (tuple) of
391
+ (connection, read) timeouts.
392
+ :type _request_timeout: int, tuple(int, int), optional
393
+ :param _request_auth: set to override the auth_settings for an a single
394
+ request; this effectively ignores the
395
+ authentication in the spec for a single request.
396
+ :type _request_auth: dict, optional
397
+ :param _content_type: force content-type for the request.
398
+ :type _content_type: str, Optional
399
+ :param _headers: set to override the headers for a single
400
+ request; this effectively ignores the headers
401
+ in the spec for a single request.
402
+ :type _headers: dict, optional
403
+ :param _host_index: set to override the host_index for a single
404
+ request; this effectively ignores the host_index
405
+ in the spec for a single request.
406
+ :type _host_index: int, optional
407
+ :return: Returns the result object.
408
+ """ # noqa: E501
409
+
410
+ _param = self._api_v1_workers_runs_run_rid_events_sequence_rating_get_serialize(
411
+ run_rid=run_rid,
412
+ sequence=sequence,
413
+ _request_auth=_request_auth,
414
+ _content_type=_content_type,
415
+ _headers=_headers,
416
+ _host_index=_host_index
417
+ )
418
+
419
+ _response_types_map: Dict[str, Optional[str]] = {
420
+ '200': "GetRunEventRatingResponse",
421
+ }
422
+ response_data = self.api_client.call_api(
423
+ *_param,
424
+ _request_timeout=_request_timeout
425
+ )
426
+ response_data.read()
427
+ return self.api_client.response_deserialize(
428
+ response_data=response_data,
429
+ response_types_map=_response_types_map,
430
+ )
431
+
432
+
433
+ @validate_call
434
+ def api_v1_workers_runs_run_rid_events_sequence_rating_get_without_preload_content(
435
+ self,
436
+ run_rid: StrictStr,
437
+ sequence: StrictInt,
438
+ _request_timeout: Union[
439
+ None,
440
+ Annotated[StrictFloat, Field(gt=0)],
441
+ Tuple[
442
+ Annotated[StrictFloat, Field(gt=0)],
443
+ Annotated[StrictFloat, Field(gt=0)]
444
+ ]
445
+ ] = None,
446
+ _request_auth: Optional[Dict[StrictStr, Any]] = None,
447
+ _content_type: Optional[StrictStr] = None,
448
+ _headers: Optional[Dict[StrictStr, Any]] = None,
449
+ _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
450
+ ) -> RESTResponseType:
451
+ """Get Rating
452
+
453
+
454
+ :param run_rid: (required)
455
+ :type run_rid: str
456
+ :param sequence: (required)
457
+ :type sequence: int
458
+ :param _request_timeout: timeout setting for this request. If one
459
+ number provided, it will be total request
460
+ timeout. It can also be a pair (tuple) of
461
+ (connection, read) timeouts.
462
+ :type _request_timeout: int, tuple(int, int), optional
463
+ :param _request_auth: set to override the auth_settings for an a single
464
+ request; this effectively ignores the
465
+ authentication in the spec for a single request.
466
+ :type _request_auth: dict, optional
467
+ :param _content_type: force content-type for the request.
468
+ :type _content_type: str, Optional
469
+ :param _headers: set to override the headers for a single
470
+ request; this effectively ignores the headers
471
+ in the spec for a single request.
472
+ :type _headers: dict, optional
473
+ :param _host_index: set to override the host_index for a single
474
+ request; this effectively ignores the host_index
475
+ in the spec for a single request.
476
+ :type _host_index: int, optional
477
+ :return: Returns the result object.
478
+ """ # noqa: E501
479
+
480
+ _param = self._api_v1_workers_runs_run_rid_events_sequence_rating_get_serialize(
481
+ run_rid=run_rid,
482
+ sequence=sequence,
483
+ _request_auth=_request_auth,
484
+ _content_type=_content_type,
485
+ _headers=_headers,
486
+ _host_index=_host_index
487
+ )
488
+
489
+ _response_types_map: Dict[str, Optional[str]] = {
490
+ '200': "GetRunEventRatingResponse",
491
+ }
492
+ response_data = self.api_client.call_api(
493
+ *_param,
494
+ _request_timeout=_request_timeout
495
+ )
496
+ return response_data.response
497
+
498
+
499
+ def _api_v1_workers_runs_run_rid_events_sequence_rating_get_serialize(
500
+ self,
501
+ run_rid,
502
+ sequence,
503
+ _request_auth,
504
+ _content_type,
505
+ _headers,
506
+ _host_index,
507
+ ) -> RequestSerialized:
508
+
509
+ _host = None
510
+
511
+ _collection_formats: Dict[str, str] = {
512
+ }
513
+
514
+ _path_params: Dict[str, str] = {}
515
+ _query_params: List[Tuple[str, str]] = []
516
+ _header_params: Dict[str, Optional[str]] = _headers or {}
517
+ _form_params: List[Tuple[str, str]] = []
518
+ _files: Dict[
519
+ str, Union[str, bytes, List[str], List[bytes], List[Tuple[str, bytes]]]
520
+ ] = {}
521
+ _body_params: Optional[bytes] = None
522
+
523
+ # process the path parameters
524
+ if run_rid is not None:
525
+ _path_params['runRid'] = run_rid
526
+ if sequence is not None:
527
+ _path_params['sequence'] = sequence
528
+ # process the query parameters
529
+ # process the header parameters
530
+ # process the form parameters
531
+ # process the body parameter
532
+
533
+
534
+ # set the HTTP header `Accept`
535
+ if 'Accept' not in _header_params:
536
+ _header_params['Accept'] = self.api_client.select_header_accept(
537
+ [
538
+ 'application/json'
539
+ ]
540
+ )
541
+
542
+
543
+ # authentication setting
544
+ _auth_settings: List[str] = [
545
+ ]
546
+
547
+ return self.api_client.param_serialize(
548
+ method='GET',
549
+ resource_path='/api/v1/workers/runs/{runRid}/events/{sequence}/rating',
550
+ path_params=_path_params,
551
+ query_params=_query_params,
552
+ header_params=_header_params,
553
+ body=_body_params,
554
+ post_params=_form_params,
555
+ files=_files,
556
+ auth_settings=_auth_settings,
557
+ collection_formats=_collection_formats,
558
+ _host=_host,
559
+ _request_auth=_request_auth
560
+ )
561
+
562
+
563
+
564
+
565
+ @validate_call
566
+ def api_v1_workers_runs_run_rid_events_sequence_rating_post(
567
+ self,
568
+ run_rid: StrictStr,
569
+ sequence: StrictInt,
570
+ post_rating_request: PostRatingRequest,
571
+ _request_timeout: Union[
572
+ None,
573
+ Annotated[StrictFloat, Field(gt=0)],
574
+ Tuple[
575
+ Annotated[StrictFloat, Field(gt=0)],
576
+ Annotated[StrictFloat, Field(gt=0)]
577
+ ]
578
+ ] = None,
579
+ _request_auth: Optional[Dict[StrictStr, Any]] = None,
580
+ _content_type: Optional[StrictStr] = None,
581
+ _headers: Optional[Dict[StrictStr, Any]] = None,
582
+ _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
583
+ ) -> PostRunEventRatingResponse:
584
+ """Post Rating
585
+
586
+
587
+ :param run_rid: (required)
588
+ :type run_rid: str
589
+ :param sequence: (required)
590
+ :type sequence: int
591
+ :param post_rating_request: (required)
592
+ :type post_rating_request: PostRatingRequest
593
+ :param _request_timeout: timeout setting for this request. If one
594
+ number provided, it will be total request
595
+ timeout. It can also be a pair (tuple) of
596
+ (connection, read) timeouts.
597
+ :type _request_timeout: int, tuple(int, int), optional
598
+ :param _request_auth: set to override the auth_settings for an a single
599
+ request; this effectively ignores the
600
+ authentication in the spec for a single request.
601
+ :type _request_auth: dict, optional
602
+ :param _content_type: force content-type for the request.
603
+ :type _content_type: str, Optional
604
+ :param _headers: set to override the headers for a single
605
+ request; this effectively ignores the headers
606
+ in the spec for a single request.
607
+ :type _headers: dict, optional
608
+ :param _host_index: set to override the host_index for a single
609
+ request; this effectively ignores the host_index
610
+ in the spec for a single request.
611
+ :type _host_index: int, optional
612
+ :return: Returns the result object.
613
+ """ # noqa: E501
614
+
615
+ _param = self._api_v1_workers_runs_run_rid_events_sequence_rating_post_serialize(
616
+ run_rid=run_rid,
617
+ sequence=sequence,
618
+ post_rating_request=post_rating_request,
619
+ _request_auth=_request_auth,
620
+ _content_type=_content_type,
621
+ _headers=_headers,
622
+ _host_index=_host_index
623
+ )
624
+
625
+ _response_types_map: Dict[str, Optional[str]] = {
626
+ '200': "PostRunEventRatingResponse",
627
+ '400': None,
628
+ }
629
+ response_data = self.api_client.call_api(
630
+ *_param,
631
+ _request_timeout=_request_timeout
632
+ )
633
+ response_data.read()
634
+ return self.api_client.response_deserialize(
635
+ response_data=response_data,
636
+ response_types_map=_response_types_map,
637
+ ).data
638
+
639
+
640
+ @validate_call
641
+ def api_v1_workers_runs_run_rid_events_sequence_rating_post_with_http_info(
642
+ self,
643
+ run_rid: StrictStr,
644
+ sequence: StrictInt,
645
+ post_rating_request: PostRatingRequest,
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
+ ) -> ApiResponse[PostRunEventRatingResponse]:
659
+ """Post Rating
660
+
661
+
662
+ :param run_rid: (required)
663
+ :type run_rid: str
664
+ :param sequence: (required)
665
+ :type sequence: int
666
+ :param post_rating_request: (required)
667
+ :type post_rating_request: PostRatingRequest
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_v1_workers_runs_run_rid_events_sequence_rating_post_serialize(
691
+ run_rid=run_rid,
692
+ sequence=sequence,
693
+ post_rating_request=post_rating_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
+ '200': "PostRunEventRatingResponse",
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
+ )
713
+
714
+
715
+ @validate_call
716
+ def api_v1_workers_runs_run_rid_events_sequence_rating_post_without_preload_content(
717
+ self,
718
+ run_rid: StrictStr,
719
+ sequence: StrictInt,
720
+ post_rating_request: PostRatingRequest,
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
+ ) -> RESTResponseType:
734
+ """Post Rating
735
+
736
+
737
+ :param run_rid: (required)
738
+ :type run_rid: str
739
+ :param sequence: (required)
740
+ :type sequence: int
741
+ :param post_rating_request: (required)
742
+ :type post_rating_request: PostRatingRequest
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_v1_workers_runs_run_rid_events_sequence_rating_post_serialize(
766
+ run_rid=run_rid,
767
+ sequence=sequence,
768
+ post_rating_request=post_rating_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
+ '200': "PostRunEventRatingResponse",
777
+ '400': None,
778
+ }
779
+ response_data = self.api_client.call_api(
780
+ *_param,
781
+ _request_timeout=_request_timeout
782
+ )
783
+ return response_data.response
784
+
785
+
786
+ def _api_v1_workers_runs_run_rid_events_sequence_rating_post_serialize(
787
+ self,
788
+ run_rid,
789
+ sequence,
790
+ post_rating_request,
791
+ _request_auth,
792
+ _content_type,
793
+ _headers,
794
+ _host_index,
795
+ ) -> RequestSerialized:
796
+
797
+ _host = None
798
+
799
+ _collection_formats: Dict[str, str] = {
800
+ }
801
+
802
+ _path_params: Dict[str, str] = {}
803
+ _query_params: List[Tuple[str, str]] = []
804
+ _header_params: Dict[str, Optional[str]] = _headers or {}
805
+ _form_params: List[Tuple[str, str]] = []
806
+ _files: Dict[
807
+ str, Union[str, bytes, List[str], List[bytes], List[Tuple[str, bytes]]]
808
+ ] = {}
809
+ _body_params: Optional[bytes] = None
810
+
811
+ # process the path parameters
812
+ if run_rid is not None:
813
+ _path_params['runRid'] = run_rid
814
+ if sequence is not None:
815
+ _path_params['sequence'] = sequence
816
+ # process the query parameters
817
+ # process the header parameters
818
+ # process the form parameters
819
+ # process the body parameter
820
+ if post_rating_request is not None:
821
+ _body_params = post_rating_request
822
+
823
+
824
+ # set the HTTP header `Accept`
825
+ if 'Accept' not in _header_params:
826
+ _header_params['Accept'] = self.api_client.select_header_accept(
827
+ [
828
+ 'application/json'
829
+ ]
830
+ )
831
+
832
+ # set the HTTP header `Content-Type`
833
+ if _content_type:
834
+ _header_params['Content-Type'] = _content_type
835
+ else:
836
+ _default_content_type = (
837
+ self.api_client.select_header_content_type(
838
+ [
839
+ 'application/json'
840
+ ]
841
+ )
842
+ )
843
+ if _default_content_type is not None:
844
+ _header_params['Content-Type'] = _default_content_type
845
+
846
+ # authentication setting
847
+ _auth_settings: List[str] = [
848
+ ]
849
+
850
+ return self.api_client.param_serialize(
851
+ method='POST',
852
+ resource_path='/api/v1/workers/runs/{runRid}/events/{sequence}/rating',
853
+ path_params=_path_params,
854
+ query_params=_query_params,
855
+ header_params=_header_params,
856
+ body=_body_params,
857
+ post_params=_form_params,
858
+ files=_files,
859
+ auth_settings=_auth_settings,
860
+ collection_formats=_collection_formats,
861
+ _host=_host,
862
+ _request_auth=_request_auth
863
+ )
864
+
865
+
866
+
867
+
290
868
  @validate_call
291
869
  def api_v1_workers_worker_id_get(
292
870
  self,
@@ -51,6 +51,7 @@ from perceptic_core_client.models.get_indexing_task_response import GetIndexingT
51
51
  from perceptic_core_client.models.get_metadata_response import GetMetadataResponse
52
52
  from perceptic_core_client.models.get_parent_response import GetParentResponse
53
53
  from perceptic_core_client.models.get_parent_uri_response import GetParentUriResponse
54
+ from perceptic_core_client.models.get_run_event_rating_response import GetRunEventRatingResponse
54
55
  from perceptic_core_client.models.get_signed_url_response import GetSignedUrlResponse
55
56
  from perceptic_core_client.models.get_worker_events_response import GetWorkerEventsResponse
56
57
  from perceptic_core_client.models.get_worker_metadata_response import GetWorkerMetadataResponse
@@ -81,9 +82,12 @@ from perceptic_core_client.models.me_response import MeResponse
81
82
  from perceptic_core_client.models.model_schema import ModelSchema
82
83
  from perceptic_core_client.models.on_upload_trigger import OnUploadTrigger
83
84
  from perceptic_core_client.models.paged_list_file_system_response import PagedListFileSystemResponse
85
+ from perceptic_core_client.models.post_rating_request import PostRatingRequest
86
+ from perceptic_core_client.models.post_run_event_rating_response import PostRunEventRatingResponse
84
87
  from perceptic_core_client.models.post_worker_run_request import PostWorkerRunRequest
85
88
  from perceptic_core_client.models.post_worker_run_response import PostWorkerRunResponse
86
89
  from perceptic_core_client.models.progress_event import ProgressEvent
90
+ from perceptic_core_client.models.rating_dto_worker_run_event_rating_secondary_id import RatingDtoWorkerRunEventRatingSecondaryId
87
91
  from perceptic_core_client.models.remote_file_system_api_dto import RemoteFileSystemApiDto
88
92
  from perceptic_core_client.models.remove_tag_from_file_request import RemoveTagFromFileRequest
89
93
  from perceptic_core_client.models.request_for_input_event import RequestForInputEvent
@@ -108,3 +112,4 @@ from perceptic_core_client.models.user_info_response import UserInfoResponse
108
112
  from perceptic_core_client.models.web_page_citation_metadata_api_dto import WebPageCitationMetadataApiDto
109
113
  from perceptic_core_client.models.worker_event import WorkerEvent
110
114
  from perceptic_core_client.models.worker_metadata_dto import WorkerMetadataDto
115
+ from perceptic_core_client.models.worker_run_event_rating_secondary_id import WorkerRunEventRatingSecondaryId