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.
Files changed (77) hide show
  1. perceptic_core_client/__init__.py +51 -0
  2. perceptic_core_client/api/__init__.py +1 -0
  3. perceptic_core_client/api/tag_resource_api.py +100 -836
  4. perceptic_core_client/api/uri_resource_api.py +818 -207
  5. perceptic_core_client/api/user_resource_api.py +308 -1
  6. perceptic_core_client/api/worker_resource_api.py +1100 -211
  7. perceptic_core_client/api/worker_resource_v3_api.py +1477 -0
  8. perceptic_core_client/api_client.py +8 -5
  9. perceptic_core_client/configuration.py +6 -2
  10. perceptic_core_client/models/__init__.py +25 -1
  11. perceptic_core_client/models/citation_metadata_api_dto.py +0 -15
  12. perceptic_core_client/models/connection_settings_api_dto.py +0 -10
  13. perceptic_core_client/models/create_folder_response_v2.py +89 -0
  14. perceptic_core_client/models/file_system_api_dto.py +0 -10
  15. perceptic_core_client/models/file_system_root_metadata_api_dto.py +0 -10
  16. perceptic_core_client/models/get_run_event_rating_response.py +91 -0
  17. perceptic_core_client/models/get_worker_events_v2_response.py +101 -0
  18. perceptic_core_client/models/get_worker_events_v3_response.py +89 -0
  19. perceptic_core_client/models/info_event1.py +94 -0
  20. perceptic_core_client/models/ingest_event_request.py +94 -0
  21. perceptic_core_client/models/ingest_event_response.py +89 -0
  22. perceptic_core_client/models/ingest_stream_event_request.py +89 -0
  23. perceptic_core_client/models/list_users_response.py +104 -0
  24. perceptic_core_client/models/persistence_mode.py +38 -0
  25. perceptic_core_client/models/post_rating_request.py +89 -0
  26. perceptic_core_client/models/post_run_event_rating_response.py +91 -0
  27. perceptic_core_client/models/post_worker_run_request1.py +87 -0
  28. perceptic_core_client/models/post_worker_run_response1.py +87 -0
  29. perceptic_core_client/models/progress_event1.py +94 -0
  30. perceptic_core_client/models/rating_dto_worker_run_event_rating_secondary_id.py +108 -0
  31. perceptic_core_client/models/run_status_dto.py +1 -0
  32. perceptic_core_client/models/schedule_trigger.py +0 -15
  33. perceptic_core_client/models/upload_resource_response_v2.py +91 -0
  34. perceptic_core_client/models/user_input_event.py +101 -0
  35. perceptic_core_client/models/user_request_for_input_event.py +108 -0
  36. perceptic_core_client/models/worker_event.py +0 -15
  37. perceptic_core_client/models/worker_event_v2.py +193 -0
  38. perceptic_core_client/models/worker_run_event_rating_secondary_id.py +89 -0
  39. perceptic_core_client/models/worker_stream_event_v2.py +90 -0
  40. perceptic_core_client/models/worker_v2_next_page_token.py +89 -0
  41. perceptic_core_client/models/workflow_status_response.py +89 -0
  42. perceptic_core_client/test/test_create_folder_response_v2.py +52 -0
  43. perceptic_core_client/test/test_get_run_event_rating_response.py +57 -0
  44. perceptic_core_client/test/test_get_worker_events_v2_response.py +56 -0
  45. perceptic_core_client/test/test_get_worker_events_v3_response.py +54 -0
  46. perceptic_core_client/test/test_info_event1.py +54 -0
  47. perceptic_core_client/test/test_ingest_event_request.py +56 -0
  48. perceptic_core_client/test/test_ingest_event_response.py +52 -0
  49. perceptic_core_client/test/test_ingest_stream_event_request.py +52 -0
  50. perceptic_core_client/test/test_list_users_response.py +60 -0
  51. perceptic_core_client/test/test_persistence_mode.py +33 -0
  52. perceptic_core_client/test/test_post_rating_request.py +52 -0
  53. perceptic_core_client/test/test_post_run_event_rating_response.py +57 -0
  54. perceptic_core_client/test/test_post_worker_run_request1.py +51 -0
  55. perceptic_core_client/test/test_post_worker_run_response1.py +51 -0
  56. perceptic_core_client/test/test_progress_event.py +1 -1
  57. perceptic_core_client/test/test_progress_event1.py +54 -0
  58. perceptic_core_client/test/test_rating_dto_worker_run_event_rating_secondary_id.py +56 -0
  59. perceptic_core_client/test/test_request_for_input_event.py +1 -1
  60. perceptic_core_client/test/test_tag_resource_api.py +0 -21
  61. perceptic_core_client/test/test_upload_resource_response_v2.py +53 -0
  62. perceptic_core_client/test/test_uri_resource_api.py +14 -0
  63. perceptic_core_client/test/test_user_input_event.py +55 -0
  64. perceptic_core_client/test/test_user_request_for_input_event.py +56 -0
  65. perceptic_core_client/test/test_user_resource_api.py +7 -0
  66. perceptic_core_client/test/test_worker_event.py +2 -2
  67. perceptic_core_client/test/test_worker_event_v2.py +59 -0
  68. perceptic_core_client/test/test_worker_resource_api.py +21 -0
  69. perceptic_core_client/test/test_worker_resource_v3_api.py +66 -0
  70. perceptic_core_client/test/test_worker_run_event_rating_secondary_id.py +53 -0
  71. perceptic_core_client/test/test_worker_stream_event_v2.py +52 -0
  72. perceptic_core_client/test/test_worker_v2_next_page_token.py +52 -0
  73. perceptic_core_client/test/test_workflow_status_response.py +52 -0
  74. {perceptic_core_client-0.39.0.dist-info → perceptic_core_client-0.50.3.dist-info}/METADATA +1 -1
  75. {perceptic_core_client-0.39.0.dist-info → perceptic_core_client-0.50.3.dist-info}/RECORD +77 -27
  76. {perceptic_core_client-0.39.0.dist-info → perceptic_core_client-0.50.3.dist-info}/WHEEL +0 -0
  77. {perceptic_core_client-0.39.0.dist-info → perceptic_core_client-0.50.3.dist-info}/top_level.txt +0 -0
@@ -16,16 +16,21 @@ 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
24
+ from perceptic_core_client.models.get_worker_events_v2_response import GetWorkerEventsV2Response
23
25
  from perceptic_core_client.models.get_worker_metadata_response import GetWorkerMetadataResponse
24
26
  from perceptic_core_client.models.get_worker_run_response import GetWorkerRunResponse
25
27
  from perceptic_core_client.models.get_worker_status_response import GetWorkerStatusResponse
26
28
  from perceptic_core_client.models.get_workers_response import GetWorkersResponse
29
+ from perceptic_core_client.models.post_rating_request import PostRatingRequest
30
+ from perceptic_core_client.models.post_run_event_rating_response import PostRunEventRatingResponse
27
31
  from perceptic_core_client.models.post_worker_run_request import PostWorkerRunRequest
28
32
  from perceptic_core_client.models.post_worker_run_response import PostWorkerRunResponse
33
+ from perceptic_core_client.models.worker_v2_next_page_token import WorkerV2NextPageToken
29
34
 
30
35
  from perceptic_core_client.api_client import ApiClient, RequestSerialized
31
36
  from perceptic_core_client.api_response import ApiResponse
@@ -287,6 +292,581 @@ class WorkerResourceApi:
287
292
 
288
293
 
289
294
 
295
+ @validate_call
296
+ def api_v1_workers_runs_run_rid_events_sequence_rating_get(
297
+ self,
298
+ run_rid: StrictStr,
299
+ sequence: StrictInt,
300
+ _request_timeout: Union[
301
+ None,
302
+ Annotated[StrictFloat, Field(gt=0)],
303
+ Tuple[
304
+ Annotated[StrictFloat, Field(gt=0)],
305
+ Annotated[StrictFloat, Field(gt=0)]
306
+ ]
307
+ ] = None,
308
+ _request_auth: Optional[Dict[StrictStr, Any]] = None,
309
+ _content_type: Optional[StrictStr] = None,
310
+ _headers: Optional[Dict[StrictStr, Any]] = None,
311
+ _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
312
+ ) -> GetRunEventRatingResponse:
313
+ """Get Rating
314
+
315
+
316
+ :param run_rid: (required)
317
+ :type run_rid: str
318
+ :param sequence: (required)
319
+ :type sequence: int
320
+ :param _request_timeout: timeout setting for this request. If one
321
+ number provided, it will be total request
322
+ timeout. It can also be a pair (tuple) of
323
+ (connection, read) timeouts.
324
+ :type _request_timeout: int, tuple(int, int), optional
325
+ :param _request_auth: set to override the auth_settings for an a single
326
+ request; this effectively ignores the
327
+ authentication in the spec for a single request.
328
+ :type _request_auth: dict, optional
329
+ :param _content_type: force content-type for the request.
330
+ :type _content_type: str, Optional
331
+ :param _headers: set to override the headers for a single
332
+ request; this effectively ignores the headers
333
+ in the spec for a single request.
334
+ :type _headers: dict, optional
335
+ :param _host_index: set to override the host_index for a single
336
+ request; this effectively ignores the host_index
337
+ in the spec for a single request.
338
+ :type _host_index: int, optional
339
+ :return: Returns the result object.
340
+ """ # noqa: E501
341
+
342
+ _param = self._api_v1_workers_runs_run_rid_events_sequence_rating_get_serialize(
343
+ run_rid=run_rid,
344
+ sequence=sequence,
345
+ _request_auth=_request_auth,
346
+ _content_type=_content_type,
347
+ _headers=_headers,
348
+ _host_index=_host_index
349
+ )
350
+
351
+ _response_types_map: Dict[str, Optional[str]] = {
352
+ '200': "GetRunEventRatingResponse",
353
+ }
354
+ response_data = self.api_client.call_api(
355
+ *_param,
356
+ _request_timeout=_request_timeout
357
+ )
358
+ response_data.read()
359
+ return self.api_client.response_deserialize(
360
+ response_data=response_data,
361
+ response_types_map=_response_types_map,
362
+ ).data
363
+
364
+
365
+ @validate_call
366
+ def api_v1_workers_runs_run_rid_events_sequence_rating_get_with_http_info(
367
+ self,
368
+ run_rid: StrictStr,
369
+ sequence: StrictInt,
370
+ _request_timeout: Union[
371
+ None,
372
+ Annotated[StrictFloat, Field(gt=0)],
373
+ Tuple[
374
+ Annotated[StrictFloat, Field(gt=0)],
375
+ Annotated[StrictFloat, Field(gt=0)]
376
+ ]
377
+ ] = None,
378
+ _request_auth: Optional[Dict[StrictStr, Any]] = None,
379
+ _content_type: Optional[StrictStr] = None,
380
+ _headers: Optional[Dict[StrictStr, Any]] = None,
381
+ _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
382
+ ) -> ApiResponse[GetRunEventRatingResponse]:
383
+ """Get Rating
384
+
385
+
386
+ :param run_rid: (required)
387
+ :type run_rid: str
388
+ :param sequence: (required)
389
+ :type sequence: int
390
+ :param _request_timeout: timeout setting for this request. If one
391
+ number provided, it will be total request
392
+ timeout. It can also be a pair (tuple) of
393
+ (connection, read) timeouts.
394
+ :type _request_timeout: int, tuple(int, int), optional
395
+ :param _request_auth: set to override the auth_settings for an a single
396
+ request; this effectively ignores the
397
+ authentication in the spec for a single request.
398
+ :type _request_auth: dict, optional
399
+ :param _content_type: force content-type for the request.
400
+ :type _content_type: str, Optional
401
+ :param _headers: set to override the headers for a single
402
+ request; this effectively ignores the headers
403
+ in the spec for a single request.
404
+ :type _headers: dict, optional
405
+ :param _host_index: set to override the host_index for a single
406
+ request; this effectively ignores the host_index
407
+ in the spec for a single request.
408
+ :type _host_index: int, optional
409
+ :return: Returns the result object.
410
+ """ # noqa: E501
411
+
412
+ _param = self._api_v1_workers_runs_run_rid_events_sequence_rating_get_serialize(
413
+ run_rid=run_rid,
414
+ sequence=sequence,
415
+ _request_auth=_request_auth,
416
+ _content_type=_content_type,
417
+ _headers=_headers,
418
+ _host_index=_host_index
419
+ )
420
+
421
+ _response_types_map: Dict[str, Optional[str]] = {
422
+ '200': "GetRunEventRatingResponse",
423
+ }
424
+ response_data = self.api_client.call_api(
425
+ *_param,
426
+ _request_timeout=_request_timeout
427
+ )
428
+ response_data.read()
429
+ return self.api_client.response_deserialize(
430
+ response_data=response_data,
431
+ response_types_map=_response_types_map,
432
+ )
433
+
434
+
435
+ @validate_call
436
+ def api_v1_workers_runs_run_rid_events_sequence_rating_get_without_preload_content(
437
+ self,
438
+ run_rid: StrictStr,
439
+ sequence: StrictInt,
440
+ _request_timeout: Union[
441
+ None,
442
+ Annotated[StrictFloat, Field(gt=0)],
443
+ Tuple[
444
+ Annotated[StrictFloat, Field(gt=0)],
445
+ Annotated[StrictFloat, Field(gt=0)]
446
+ ]
447
+ ] = None,
448
+ _request_auth: Optional[Dict[StrictStr, Any]] = None,
449
+ _content_type: Optional[StrictStr] = None,
450
+ _headers: Optional[Dict[StrictStr, Any]] = None,
451
+ _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
452
+ ) -> RESTResponseType:
453
+ """Get Rating
454
+
455
+
456
+ :param run_rid: (required)
457
+ :type run_rid: str
458
+ :param sequence: (required)
459
+ :type sequence: int
460
+ :param _request_timeout: timeout setting for this request. If one
461
+ number provided, it will be total request
462
+ timeout. It can also be a pair (tuple) of
463
+ (connection, read) timeouts.
464
+ :type _request_timeout: int, tuple(int, int), optional
465
+ :param _request_auth: set to override the auth_settings for an a single
466
+ request; this effectively ignores the
467
+ authentication in the spec for a single request.
468
+ :type _request_auth: dict, optional
469
+ :param _content_type: force content-type for the request.
470
+ :type _content_type: str, Optional
471
+ :param _headers: set to override the headers for a single
472
+ request; this effectively ignores the headers
473
+ in the spec for a single request.
474
+ :type _headers: dict, optional
475
+ :param _host_index: set to override the host_index for a single
476
+ request; this effectively ignores the host_index
477
+ in the spec for a single request.
478
+ :type _host_index: int, optional
479
+ :return: Returns the result object.
480
+ """ # noqa: E501
481
+
482
+ _param = self._api_v1_workers_runs_run_rid_events_sequence_rating_get_serialize(
483
+ run_rid=run_rid,
484
+ sequence=sequence,
485
+ _request_auth=_request_auth,
486
+ _content_type=_content_type,
487
+ _headers=_headers,
488
+ _host_index=_host_index
489
+ )
490
+
491
+ _response_types_map: Dict[str, Optional[str]] = {
492
+ '200': "GetRunEventRatingResponse",
493
+ }
494
+ response_data = self.api_client.call_api(
495
+ *_param,
496
+ _request_timeout=_request_timeout
497
+ )
498
+ return response_data.response
499
+
500
+
501
+ def _api_v1_workers_runs_run_rid_events_sequence_rating_get_serialize(
502
+ self,
503
+ run_rid,
504
+ sequence,
505
+ _request_auth,
506
+ _content_type,
507
+ _headers,
508
+ _host_index,
509
+ ) -> RequestSerialized:
510
+
511
+ _host = None
512
+
513
+ _collection_formats: Dict[str, str] = {
514
+ }
515
+
516
+ _path_params: Dict[str, str] = {}
517
+ _query_params: List[Tuple[str, str]] = []
518
+ _header_params: Dict[str, Optional[str]] = _headers or {}
519
+ _form_params: List[Tuple[str, str]] = []
520
+ _files: Dict[
521
+ str, Union[str, bytes, List[str], List[bytes], List[Tuple[str, bytes]]]
522
+ ] = {}
523
+ _body_params: Optional[bytes] = None
524
+
525
+ # process the path parameters
526
+ if run_rid is not None:
527
+ _path_params['runRid'] = run_rid
528
+ if sequence is not None:
529
+ _path_params['sequence'] = sequence
530
+ # process the query parameters
531
+ # process the header parameters
532
+ # process the form parameters
533
+ # process the body parameter
534
+
535
+
536
+ # set the HTTP header `Accept`
537
+ if 'Accept' not in _header_params:
538
+ _header_params['Accept'] = self.api_client.select_header_accept(
539
+ [
540
+ 'application/json'
541
+ ]
542
+ )
543
+
544
+
545
+ # authentication setting
546
+ _auth_settings: List[str] = [
547
+ ]
548
+
549
+ return self.api_client.param_serialize(
550
+ method='GET',
551
+ resource_path='/api/v1/workers/runs/{runRid}/events/{sequence}/rating',
552
+ path_params=_path_params,
553
+ query_params=_query_params,
554
+ header_params=_header_params,
555
+ body=_body_params,
556
+ post_params=_form_params,
557
+ files=_files,
558
+ auth_settings=_auth_settings,
559
+ collection_formats=_collection_formats,
560
+ _host=_host,
561
+ _request_auth=_request_auth
562
+ )
563
+
564
+
565
+
566
+
567
+ @validate_call
568
+ def api_v1_workers_runs_run_rid_events_sequence_rating_post(
569
+ self,
570
+ run_rid: StrictStr,
571
+ sequence: StrictInt,
572
+ post_rating_request: PostRatingRequest,
573
+ _request_timeout: Union[
574
+ None,
575
+ Annotated[StrictFloat, Field(gt=0)],
576
+ Tuple[
577
+ Annotated[StrictFloat, Field(gt=0)],
578
+ Annotated[StrictFloat, Field(gt=0)]
579
+ ]
580
+ ] = None,
581
+ _request_auth: Optional[Dict[StrictStr, Any]] = None,
582
+ _content_type: Optional[StrictStr] = None,
583
+ _headers: Optional[Dict[StrictStr, Any]] = None,
584
+ _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
585
+ ) -> PostRunEventRatingResponse:
586
+ """Post Rating
587
+
588
+
589
+ :param run_rid: (required)
590
+ :type run_rid: str
591
+ :param sequence: (required)
592
+ :type sequence: int
593
+ :param post_rating_request: (required)
594
+ :type post_rating_request: PostRatingRequest
595
+ :param _request_timeout: timeout setting for this request. If one
596
+ number provided, it will be total request
597
+ timeout. It can also be a pair (tuple) of
598
+ (connection, read) timeouts.
599
+ :type _request_timeout: int, tuple(int, int), optional
600
+ :param _request_auth: set to override the auth_settings for an a single
601
+ request; this effectively ignores the
602
+ authentication in the spec for a single request.
603
+ :type _request_auth: dict, optional
604
+ :param _content_type: force content-type for the request.
605
+ :type _content_type: str, Optional
606
+ :param _headers: set to override the headers for a single
607
+ request; this effectively ignores the headers
608
+ in the spec for a single request.
609
+ :type _headers: dict, optional
610
+ :param _host_index: set to override the host_index for a single
611
+ request; this effectively ignores the host_index
612
+ in the spec for a single request.
613
+ :type _host_index: int, optional
614
+ :return: Returns the result object.
615
+ """ # noqa: E501
616
+
617
+ _param = self._api_v1_workers_runs_run_rid_events_sequence_rating_post_serialize(
618
+ run_rid=run_rid,
619
+ sequence=sequence,
620
+ post_rating_request=post_rating_request,
621
+ _request_auth=_request_auth,
622
+ _content_type=_content_type,
623
+ _headers=_headers,
624
+ _host_index=_host_index
625
+ )
626
+
627
+ _response_types_map: Dict[str, Optional[str]] = {
628
+ '200': "PostRunEventRatingResponse",
629
+ '400': None,
630
+ }
631
+ response_data = self.api_client.call_api(
632
+ *_param,
633
+ _request_timeout=_request_timeout
634
+ )
635
+ response_data.read()
636
+ return self.api_client.response_deserialize(
637
+ response_data=response_data,
638
+ response_types_map=_response_types_map,
639
+ ).data
640
+
641
+
642
+ @validate_call
643
+ def api_v1_workers_runs_run_rid_events_sequence_rating_post_with_http_info(
644
+ self,
645
+ run_rid: StrictStr,
646
+ sequence: StrictInt,
647
+ post_rating_request: PostRatingRequest,
648
+ _request_timeout: Union[
649
+ None,
650
+ Annotated[StrictFloat, Field(gt=0)],
651
+ Tuple[
652
+ Annotated[StrictFloat, Field(gt=0)],
653
+ Annotated[StrictFloat, Field(gt=0)]
654
+ ]
655
+ ] = None,
656
+ _request_auth: Optional[Dict[StrictStr, Any]] = None,
657
+ _content_type: Optional[StrictStr] = None,
658
+ _headers: Optional[Dict[StrictStr, Any]] = None,
659
+ _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
660
+ ) -> ApiResponse[PostRunEventRatingResponse]:
661
+ """Post Rating
662
+
663
+
664
+ :param run_rid: (required)
665
+ :type run_rid: str
666
+ :param sequence: (required)
667
+ :type sequence: int
668
+ :param post_rating_request: (required)
669
+ :type post_rating_request: PostRatingRequest
670
+ :param _request_timeout: timeout setting for this request. If one
671
+ number provided, it will be total request
672
+ timeout. It can also be a pair (tuple) of
673
+ (connection, read) timeouts.
674
+ :type _request_timeout: int, tuple(int, int), optional
675
+ :param _request_auth: set to override the auth_settings for an a single
676
+ request; this effectively ignores the
677
+ authentication in the spec for a single request.
678
+ :type _request_auth: dict, optional
679
+ :param _content_type: force content-type for the request.
680
+ :type _content_type: str, Optional
681
+ :param _headers: set to override the headers for a single
682
+ request; this effectively ignores the headers
683
+ in the spec for a single request.
684
+ :type _headers: dict, optional
685
+ :param _host_index: set to override the host_index for a single
686
+ request; this effectively ignores the host_index
687
+ in the spec for a single request.
688
+ :type _host_index: int, optional
689
+ :return: Returns the result object.
690
+ """ # noqa: E501
691
+
692
+ _param = self._api_v1_workers_runs_run_rid_events_sequence_rating_post_serialize(
693
+ run_rid=run_rid,
694
+ sequence=sequence,
695
+ post_rating_request=post_rating_request,
696
+ _request_auth=_request_auth,
697
+ _content_type=_content_type,
698
+ _headers=_headers,
699
+ _host_index=_host_index
700
+ )
701
+
702
+ _response_types_map: Dict[str, Optional[str]] = {
703
+ '200': "PostRunEventRatingResponse",
704
+ '400': None,
705
+ }
706
+ response_data = self.api_client.call_api(
707
+ *_param,
708
+ _request_timeout=_request_timeout
709
+ )
710
+ response_data.read()
711
+ return self.api_client.response_deserialize(
712
+ response_data=response_data,
713
+ response_types_map=_response_types_map,
714
+ )
715
+
716
+
717
+ @validate_call
718
+ def api_v1_workers_runs_run_rid_events_sequence_rating_post_without_preload_content(
719
+ self,
720
+ run_rid: StrictStr,
721
+ sequence: StrictInt,
722
+ post_rating_request: PostRatingRequest,
723
+ _request_timeout: Union[
724
+ None,
725
+ Annotated[StrictFloat, Field(gt=0)],
726
+ Tuple[
727
+ Annotated[StrictFloat, Field(gt=0)],
728
+ Annotated[StrictFloat, Field(gt=0)]
729
+ ]
730
+ ] = None,
731
+ _request_auth: Optional[Dict[StrictStr, Any]] = None,
732
+ _content_type: Optional[StrictStr] = None,
733
+ _headers: Optional[Dict[StrictStr, Any]] = None,
734
+ _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
735
+ ) -> RESTResponseType:
736
+ """Post Rating
737
+
738
+
739
+ :param run_rid: (required)
740
+ :type run_rid: str
741
+ :param sequence: (required)
742
+ :type sequence: int
743
+ :param post_rating_request: (required)
744
+ :type post_rating_request: PostRatingRequest
745
+ :param _request_timeout: timeout setting for this request. If one
746
+ number provided, it will be total request
747
+ timeout. It can also be a pair (tuple) of
748
+ (connection, read) timeouts.
749
+ :type _request_timeout: int, tuple(int, int), optional
750
+ :param _request_auth: set to override the auth_settings for an a single
751
+ request; this effectively ignores the
752
+ authentication in the spec for a single request.
753
+ :type _request_auth: dict, optional
754
+ :param _content_type: force content-type for the request.
755
+ :type _content_type: str, Optional
756
+ :param _headers: set to override the headers for a single
757
+ request; this effectively ignores the headers
758
+ in the spec for a single request.
759
+ :type _headers: dict, optional
760
+ :param _host_index: set to override the host_index for a single
761
+ request; this effectively ignores the host_index
762
+ in the spec for a single request.
763
+ :type _host_index: int, optional
764
+ :return: Returns the result object.
765
+ """ # noqa: E501
766
+
767
+ _param = self._api_v1_workers_runs_run_rid_events_sequence_rating_post_serialize(
768
+ run_rid=run_rid,
769
+ sequence=sequence,
770
+ post_rating_request=post_rating_request,
771
+ _request_auth=_request_auth,
772
+ _content_type=_content_type,
773
+ _headers=_headers,
774
+ _host_index=_host_index
775
+ )
776
+
777
+ _response_types_map: Dict[str, Optional[str]] = {
778
+ '200': "PostRunEventRatingResponse",
779
+ '400': None,
780
+ }
781
+ response_data = self.api_client.call_api(
782
+ *_param,
783
+ _request_timeout=_request_timeout
784
+ )
785
+ return response_data.response
786
+
787
+
788
+ def _api_v1_workers_runs_run_rid_events_sequence_rating_post_serialize(
789
+ self,
790
+ run_rid,
791
+ sequence,
792
+ post_rating_request,
793
+ _request_auth,
794
+ _content_type,
795
+ _headers,
796
+ _host_index,
797
+ ) -> RequestSerialized:
798
+
799
+ _host = None
800
+
801
+ _collection_formats: Dict[str, str] = {
802
+ }
803
+
804
+ _path_params: Dict[str, str] = {}
805
+ _query_params: List[Tuple[str, str]] = []
806
+ _header_params: Dict[str, Optional[str]] = _headers or {}
807
+ _form_params: List[Tuple[str, str]] = []
808
+ _files: Dict[
809
+ str, Union[str, bytes, List[str], List[bytes], List[Tuple[str, bytes]]]
810
+ ] = {}
811
+ _body_params: Optional[bytes] = None
812
+
813
+ # process the path parameters
814
+ if run_rid is not None:
815
+ _path_params['runRid'] = run_rid
816
+ if sequence is not None:
817
+ _path_params['sequence'] = sequence
818
+ # process the query parameters
819
+ # process the header parameters
820
+ # process the form parameters
821
+ # process the body parameter
822
+ if post_rating_request is not None:
823
+ _body_params = post_rating_request
824
+
825
+
826
+ # set the HTTP header `Accept`
827
+ if 'Accept' not in _header_params:
828
+ _header_params['Accept'] = self.api_client.select_header_accept(
829
+ [
830
+ 'application/json'
831
+ ]
832
+ )
833
+
834
+ # set the HTTP header `Content-Type`
835
+ if _content_type:
836
+ _header_params['Content-Type'] = _content_type
837
+ else:
838
+ _default_content_type = (
839
+ self.api_client.select_header_content_type(
840
+ [
841
+ 'application/json'
842
+ ]
843
+ )
844
+ )
845
+ if _default_content_type is not None:
846
+ _header_params['Content-Type'] = _default_content_type
847
+
848
+ # authentication setting
849
+ _auth_settings: List[str] = [
850
+ ]
851
+
852
+ return self.api_client.param_serialize(
853
+ method='POST',
854
+ resource_path='/api/v1/workers/runs/{runRid}/events/{sequence}/rating',
855
+ path_params=_path_params,
856
+ query_params=_query_params,
857
+ header_params=_header_params,
858
+ body=_body_params,
859
+ post_params=_form_params,
860
+ files=_files,
861
+ auth_settings=_auth_settings,
862
+ collection_formats=_collection_formats,
863
+ _host=_host,
864
+ _request_auth=_request_auth
865
+ )
866
+
867
+
868
+
869
+
290
870
  @validate_call
291
871
  def api_v1_workers_worker_id_get(
292
872
  self,
@@ -304,12 +884,289 @@ class WorkerResourceApi:
304
884
  _content_type: Optional[StrictStr] = None,
305
885
  _headers: Optional[Dict[StrictStr, Any]] = None,
306
886
  _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
307
- ) -> GetWorkerMetadataResponse:
308
- """Get Worker Metadata
887
+ ) -> GetWorkerMetadataResponse:
888
+ """Get Worker Metadata
889
+
890
+
891
+ :param worker_id: (required)
892
+ :type worker_id: str
893
+ :param version:
894
+ :type version: str
895
+ :param _request_timeout: timeout setting for this request. If one
896
+ number provided, it will be total request
897
+ timeout. It can also be a pair (tuple) of
898
+ (connection, read) timeouts.
899
+ :type _request_timeout: int, tuple(int, int), optional
900
+ :param _request_auth: set to override the auth_settings for an a single
901
+ request; this effectively ignores the
902
+ authentication in the spec for a single request.
903
+ :type _request_auth: dict, optional
904
+ :param _content_type: force content-type for the request.
905
+ :type _content_type: str, Optional
906
+ :param _headers: set to override the headers for a single
907
+ request; this effectively ignores the headers
908
+ in the spec for a single request.
909
+ :type _headers: dict, optional
910
+ :param _host_index: set to override the host_index for a single
911
+ request; this effectively ignores the host_index
912
+ in the spec for a single request.
913
+ :type _host_index: int, optional
914
+ :return: Returns the result object.
915
+ """ # noqa: E501
916
+
917
+ _param = self._api_v1_workers_worker_id_get_serialize(
918
+ worker_id=worker_id,
919
+ version=version,
920
+ _request_auth=_request_auth,
921
+ _content_type=_content_type,
922
+ _headers=_headers,
923
+ _host_index=_host_index
924
+ )
925
+
926
+ _response_types_map: Dict[str, Optional[str]] = {
927
+ '200': "GetWorkerMetadataResponse",
928
+ }
929
+ response_data = self.api_client.call_api(
930
+ *_param,
931
+ _request_timeout=_request_timeout
932
+ )
933
+ response_data.read()
934
+ return self.api_client.response_deserialize(
935
+ response_data=response_data,
936
+ response_types_map=_response_types_map,
937
+ ).data
938
+
939
+
940
+ @validate_call
941
+ def api_v1_workers_worker_id_get_with_http_info(
942
+ self,
943
+ worker_id: StrictStr,
944
+ version: Optional[StrictStr] = None,
945
+ _request_timeout: Union[
946
+ None,
947
+ Annotated[StrictFloat, Field(gt=0)],
948
+ Tuple[
949
+ Annotated[StrictFloat, Field(gt=0)],
950
+ Annotated[StrictFloat, Field(gt=0)]
951
+ ]
952
+ ] = None,
953
+ _request_auth: Optional[Dict[StrictStr, Any]] = None,
954
+ _content_type: Optional[StrictStr] = None,
955
+ _headers: Optional[Dict[StrictStr, Any]] = None,
956
+ _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
957
+ ) -> ApiResponse[GetWorkerMetadataResponse]:
958
+ """Get Worker Metadata
959
+
960
+
961
+ :param worker_id: (required)
962
+ :type worker_id: str
963
+ :param version:
964
+ :type version: str
965
+ :param _request_timeout: timeout setting for this request. If one
966
+ number provided, it will be total request
967
+ timeout. It can also be a pair (tuple) of
968
+ (connection, read) timeouts.
969
+ :type _request_timeout: int, tuple(int, int), optional
970
+ :param _request_auth: set to override the auth_settings for an a single
971
+ request; this effectively ignores the
972
+ authentication in the spec for a single request.
973
+ :type _request_auth: dict, optional
974
+ :param _content_type: force content-type for the request.
975
+ :type _content_type: str, Optional
976
+ :param _headers: set to override the headers for a single
977
+ request; this effectively ignores the headers
978
+ in the spec for a single request.
979
+ :type _headers: dict, optional
980
+ :param _host_index: set to override the host_index for a single
981
+ request; this effectively ignores the host_index
982
+ in the spec for a single request.
983
+ :type _host_index: int, optional
984
+ :return: Returns the result object.
985
+ """ # noqa: E501
986
+
987
+ _param = self._api_v1_workers_worker_id_get_serialize(
988
+ worker_id=worker_id,
989
+ version=version,
990
+ _request_auth=_request_auth,
991
+ _content_type=_content_type,
992
+ _headers=_headers,
993
+ _host_index=_host_index
994
+ )
995
+
996
+ _response_types_map: Dict[str, Optional[str]] = {
997
+ '200': "GetWorkerMetadataResponse",
998
+ }
999
+ response_data = self.api_client.call_api(
1000
+ *_param,
1001
+ _request_timeout=_request_timeout
1002
+ )
1003
+ response_data.read()
1004
+ return self.api_client.response_deserialize(
1005
+ response_data=response_data,
1006
+ response_types_map=_response_types_map,
1007
+ )
1008
+
1009
+
1010
+ @validate_call
1011
+ def api_v1_workers_worker_id_get_without_preload_content(
1012
+ self,
1013
+ worker_id: StrictStr,
1014
+ version: Optional[StrictStr] = None,
1015
+ _request_timeout: Union[
1016
+ None,
1017
+ Annotated[StrictFloat, Field(gt=0)],
1018
+ Tuple[
1019
+ Annotated[StrictFloat, Field(gt=0)],
1020
+ Annotated[StrictFloat, Field(gt=0)]
1021
+ ]
1022
+ ] = None,
1023
+ _request_auth: Optional[Dict[StrictStr, Any]] = None,
1024
+ _content_type: Optional[StrictStr] = None,
1025
+ _headers: Optional[Dict[StrictStr, Any]] = None,
1026
+ _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
1027
+ ) -> RESTResponseType:
1028
+ """Get Worker Metadata
1029
+
1030
+
1031
+ :param worker_id: (required)
1032
+ :type worker_id: str
1033
+ :param version:
1034
+ :type version: str
1035
+ :param _request_timeout: timeout setting for this request. If one
1036
+ number provided, it will be total request
1037
+ timeout. It can also be a pair (tuple) of
1038
+ (connection, read) timeouts.
1039
+ :type _request_timeout: int, tuple(int, int), optional
1040
+ :param _request_auth: set to override the auth_settings for an a single
1041
+ request; this effectively ignores the
1042
+ authentication in the spec for a single request.
1043
+ :type _request_auth: dict, optional
1044
+ :param _content_type: force content-type for the request.
1045
+ :type _content_type: str, Optional
1046
+ :param _headers: set to override the headers for a single
1047
+ request; this effectively ignores the headers
1048
+ in the spec for a single request.
1049
+ :type _headers: dict, optional
1050
+ :param _host_index: set to override the host_index for a single
1051
+ request; this effectively ignores the host_index
1052
+ in the spec for a single request.
1053
+ :type _host_index: int, optional
1054
+ :return: Returns the result object.
1055
+ """ # noqa: E501
1056
+
1057
+ _param = self._api_v1_workers_worker_id_get_serialize(
1058
+ worker_id=worker_id,
1059
+ version=version,
1060
+ _request_auth=_request_auth,
1061
+ _content_type=_content_type,
1062
+ _headers=_headers,
1063
+ _host_index=_host_index
1064
+ )
1065
+
1066
+ _response_types_map: Dict[str, Optional[str]] = {
1067
+ '200': "GetWorkerMetadataResponse",
1068
+ }
1069
+ response_data = self.api_client.call_api(
1070
+ *_param,
1071
+ _request_timeout=_request_timeout
1072
+ )
1073
+ return response_data.response
1074
+
1075
+
1076
+ def _api_v1_workers_worker_id_get_serialize(
1077
+ self,
1078
+ worker_id,
1079
+ version,
1080
+ _request_auth,
1081
+ _content_type,
1082
+ _headers,
1083
+ _host_index,
1084
+ ) -> RequestSerialized:
1085
+
1086
+ _host = None
1087
+
1088
+ _collection_formats: Dict[str, str] = {
1089
+ }
1090
+
1091
+ _path_params: Dict[str, str] = {}
1092
+ _query_params: List[Tuple[str, str]] = []
1093
+ _header_params: Dict[str, Optional[str]] = _headers or {}
1094
+ _form_params: List[Tuple[str, str]] = []
1095
+ _files: Dict[
1096
+ str, Union[str, bytes, List[str], List[bytes], List[Tuple[str, bytes]]]
1097
+ ] = {}
1098
+ _body_params: Optional[bytes] = None
1099
+
1100
+ # process the path parameters
1101
+ if worker_id is not None:
1102
+ _path_params['workerId'] = worker_id
1103
+ # process the query parameters
1104
+ if version is not None:
1105
+
1106
+ _query_params.append(('version', version))
1107
+
1108
+ # process the header parameters
1109
+ # process the form parameters
1110
+ # process the body parameter
1111
+
1112
+
1113
+ # set the HTTP header `Accept`
1114
+ if 'Accept' not in _header_params:
1115
+ _header_params['Accept'] = self.api_client.select_header_accept(
1116
+ [
1117
+ 'application/json'
1118
+ ]
1119
+ )
1120
+
1121
+
1122
+ # authentication setting
1123
+ _auth_settings: List[str] = [
1124
+ ]
1125
+
1126
+ return self.api_client.param_serialize(
1127
+ method='GET',
1128
+ resource_path='/api/v1/workers/{workerId}',
1129
+ path_params=_path_params,
1130
+ query_params=_query_params,
1131
+ header_params=_header_params,
1132
+ body=_body_params,
1133
+ post_params=_form_params,
1134
+ files=_files,
1135
+ auth_settings=_auth_settings,
1136
+ collection_formats=_collection_formats,
1137
+ _host=_host,
1138
+ _request_auth=_request_auth
1139
+ )
1140
+
1141
+
1142
+
1143
+
1144
+ @validate_call
1145
+ def api_v1_workers_worker_id_runs_post(
1146
+ self,
1147
+ worker_id: StrictStr,
1148
+ post_worker_run_request: PostWorkerRunRequest,
1149
+ version: Optional[StrictStr] = None,
1150
+ _request_timeout: Union[
1151
+ None,
1152
+ Annotated[StrictFloat, Field(gt=0)],
1153
+ Tuple[
1154
+ Annotated[StrictFloat, Field(gt=0)],
1155
+ Annotated[StrictFloat, Field(gt=0)]
1156
+ ]
1157
+ ] = None,
1158
+ _request_auth: Optional[Dict[StrictStr, Any]] = None,
1159
+ _content_type: Optional[StrictStr] = None,
1160
+ _headers: Optional[Dict[StrictStr, Any]] = None,
1161
+ _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
1162
+ ) -> PostWorkerRunResponse:
1163
+ """Post Worker Run
309
1164
 
310
1165
 
311
1166
  :param worker_id: (required)
312
1167
  :type worker_id: str
1168
+ :param post_worker_run_request: (required)
1169
+ :type post_worker_run_request: PostWorkerRunRequest
313
1170
  :param version:
314
1171
  :type version: str
315
1172
  :param _request_timeout: timeout setting for this request. If one
@@ -334,8 +1191,9 @@ class WorkerResourceApi:
334
1191
  :return: Returns the result object.
335
1192
  """ # noqa: E501
336
1193
 
337
- _param = self._api_v1_workers_worker_id_get_serialize(
1194
+ _param = self._api_v1_workers_worker_id_runs_post_serialize(
338
1195
  worker_id=worker_id,
1196
+ post_worker_run_request=post_worker_run_request,
339
1197
  version=version,
340
1198
  _request_auth=_request_auth,
341
1199
  _content_type=_content_type,
@@ -344,7 +1202,8 @@ class WorkerResourceApi:
344
1202
  )
345
1203
 
346
1204
  _response_types_map: Dict[str, Optional[str]] = {
347
- '200': "GetWorkerMetadataResponse",
1205
+ '200': "PostWorkerRunResponse",
1206
+ '400': None,
348
1207
  }
349
1208
  response_data = self.api_client.call_api(
350
1209
  *_param,
@@ -358,9 +1217,10 @@ class WorkerResourceApi:
358
1217
 
359
1218
 
360
1219
  @validate_call
361
- def api_v1_workers_worker_id_get_with_http_info(
1220
+ def api_v1_workers_worker_id_runs_post_with_http_info(
362
1221
  self,
363
1222
  worker_id: StrictStr,
1223
+ post_worker_run_request: PostWorkerRunRequest,
364
1224
  version: Optional[StrictStr] = None,
365
1225
  _request_timeout: Union[
366
1226
  None,
@@ -374,12 +1234,14 @@ class WorkerResourceApi:
374
1234
  _content_type: Optional[StrictStr] = None,
375
1235
  _headers: Optional[Dict[StrictStr, Any]] = None,
376
1236
  _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
377
- ) -> ApiResponse[GetWorkerMetadataResponse]:
378
- """Get Worker Metadata
1237
+ ) -> ApiResponse[PostWorkerRunResponse]:
1238
+ """Post Worker Run
379
1239
 
380
1240
 
381
1241
  :param worker_id: (required)
382
1242
  :type worker_id: str
1243
+ :param post_worker_run_request: (required)
1244
+ :type post_worker_run_request: PostWorkerRunRequest
383
1245
  :param version:
384
1246
  :type version: str
385
1247
  :param _request_timeout: timeout setting for this request. If one
@@ -404,8 +1266,9 @@ class WorkerResourceApi:
404
1266
  :return: Returns the result object.
405
1267
  """ # noqa: E501
406
1268
 
407
- _param = self._api_v1_workers_worker_id_get_serialize(
1269
+ _param = self._api_v1_workers_worker_id_runs_post_serialize(
408
1270
  worker_id=worker_id,
1271
+ post_worker_run_request=post_worker_run_request,
409
1272
  version=version,
410
1273
  _request_auth=_request_auth,
411
1274
  _content_type=_content_type,
@@ -414,7 +1277,8 @@ class WorkerResourceApi:
414
1277
  )
415
1278
 
416
1279
  _response_types_map: Dict[str, Optional[str]] = {
417
- '200': "GetWorkerMetadataResponse",
1280
+ '200': "PostWorkerRunResponse",
1281
+ '400': None,
418
1282
  }
419
1283
  response_data = self.api_client.call_api(
420
1284
  *_param,
@@ -428,9 +1292,10 @@ class WorkerResourceApi:
428
1292
 
429
1293
 
430
1294
  @validate_call
431
- def api_v1_workers_worker_id_get_without_preload_content(
1295
+ def api_v1_workers_worker_id_runs_post_without_preload_content(
432
1296
  self,
433
1297
  worker_id: StrictStr,
1298
+ post_worker_run_request: PostWorkerRunRequest,
434
1299
  version: Optional[StrictStr] = None,
435
1300
  _request_timeout: Union[
436
1301
  None,
@@ -445,11 +1310,13 @@ class WorkerResourceApi:
445
1310
  _headers: Optional[Dict[StrictStr, Any]] = None,
446
1311
  _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
447
1312
  ) -> RESTResponseType:
448
- """Get Worker Metadata
1313
+ """Post Worker Run
449
1314
 
450
1315
 
451
1316
  :param worker_id: (required)
452
1317
  :type worker_id: str
1318
+ :param post_worker_run_request: (required)
1319
+ :type post_worker_run_request: PostWorkerRunRequest
453
1320
  :param version:
454
1321
  :type version: str
455
1322
  :param _request_timeout: timeout setting for this request. If one
@@ -474,8 +1341,9 @@ class WorkerResourceApi:
474
1341
  :return: Returns the result object.
475
1342
  """ # noqa: E501
476
1343
 
477
- _param = self._api_v1_workers_worker_id_get_serialize(
1344
+ _param = self._api_v1_workers_worker_id_runs_post_serialize(
478
1345
  worker_id=worker_id,
1346
+ post_worker_run_request=post_worker_run_request,
479
1347
  version=version,
480
1348
  _request_auth=_request_auth,
481
1349
  _content_type=_content_type,
@@ -484,7 +1352,8 @@ class WorkerResourceApi:
484
1352
  )
485
1353
 
486
1354
  _response_types_map: Dict[str, Optional[str]] = {
487
- '200': "GetWorkerMetadataResponse",
1355
+ '200': "PostWorkerRunResponse",
1356
+ '400': None,
488
1357
  }
489
1358
  response_data = self.api_client.call_api(
490
1359
  *_param,
@@ -493,9 +1362,10 @@ class WorkerResourceApi:
493
1362
  return response_data.response
494
1363
 
495
1364
 
496
- def _api_v1_workers_worker_id_get_serialize(
1365
+ def _api_v1_workers_worker_id_runs_post_serialize(
497
1366
  self,
498
1367
  worker_id,
1368
+ post_worker_run_request,
499
1369
  version,
500
1370
  _request_auth,
501
1371
  _content_type,
@@ -528,6 +1398,8 @@ class WorkerResourceApi:
528
1398
  # process the header parameters
529
1399
  # process the form parameters
530
1400
  # process the body parameter
1401
+ if post_worker_run_request is not None:
1402
+ _body_params = post_worker_run_request
531
1403
 
532
1404
 
533
1405
  # set the HTTP header `Accept`
@@ -538,14 +1410,27 @@ class WorkerResourceApi:
538
1410
  ]
539
1411
  )
540
1412
 
1413
+ # set the HTTP header `Content-Type`
1414
+ if _content_type:
1415
+ _header_params['Content-Type'] = _content_type
1416
+ else:
1417
+ _default_content_type = (
1418
+ self.api_client.select_header_content_type(
1419
+ [
1420
+ 'application/json'
1421
+ ]
1422
+ )
1423
+ )
1424
+ if _default_content_type is not None:
1425
+ _header_params['Content-Type'] = _default_content_type
541
1426
 
542
1427
  # authentication setting
543
1428
  _auth_settings: List[str] = [
544
1429
  ]
545
1430
 
546
1431
  return self.api_client.param_serialize(
547
- method='GET',
548
- resource_path='/api/v1/workers/{workerId}',
1432
+ method='POST',
1433
+ resource_path='/api/v1/workers/{workerId}/runs',
549
1434
  path_params=_path_params,
550
1435
  query_params=_query_params,
551
1436
  header_params=_header_params,
@@ -562,11 +1447,12 @@ class WorkerResourceApi:
562
1447
 
563
1448
 
564
1449
  @validate_call
565
- def api_v1_workers_worker_id_runs_post(
1450
+ def api_v1_workers_worker_id_runs_run_rid_events_get(
566
1451
  self,
1452
+ run_rid: StrictStr,
567
1453
  worker_id: StrictStr,
568
- post_worker_run_request: PostWorkerRunRequest,
569
- version: Optional[StrictStr] = None,
1454
+ limit: Optional[Annotated[int, Field(le=200, strict=True, ge=1)]] = None,
1455
+ offset: Optional[Annotated[int, Field(strict=True, ge=0)]] = None,
570
1456
  _request_timeout: Union[
571
1457
  None,
572
1458
  Annotated[StrictFloat, Field(gt=0)],
@@ -579,16 +1465,18 @@ class WorkerResourceApi:
579
1465
  _content_type: Optional[StrictStr] = None,
580
1466
  _headers: Optional[Dict[StrictStr, Any]] = None,
581
1467
  _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
582
- ) -> PostWorkerRunResponse:
583
- """Post Worker Run
1468
+ ) -> GetWorkerEventsResponse:
1469
+ """Get Worker Run Events
584
1470
 
585
1471
 
1472
+ :param run_rid: (required)
1473
+ :type run_rid: str
586
1474
  :param worker_id: (required)
587
1475
  :type worker_id: str
588
- :param post_worker_run_request: (required)
589
- :type post_worker_run_request: PostWorkerRunRequest
590
- :param version:
591
- :type version: str
1476
+ :param limit:
1477
+ :type limit: int
1478
+ :param offset:
1479
+ :type offset: int
592
1480
  :param _request_timeout: timeout setting for this request. If one
593
1481
  number provided, it will be total request
594
1482
  timeout. It can also be a pair (tuple) of
@@ -611,10 +1499,11 @@ class WorkerResourceApi:
611
1499
  :return: Returns the result object.
612
1500
  """ # noqa: E501
613
1501
 
614
- _param = self._api_v1_workers_worker_id_runs_post_serialize(
1502
+ _param = self._api_v1_workers_worker_id_runs_run_rid_events_get_serialize(
1503
+ run_rid=run_rid,
615
1504
  worker_id=worker_id,
616
- post_worker_run_request=post_worker_run_request,
617
- version=version,
1505
+ limit=limit,
1506
+ offset=offset,
618
1507
  _request_auth=_request_auth,
619
1508
  _content_type=_content_type,
620
1509
  _headers=_headers,
@@ -622,8 +1511,7 @@ class WorkerResourceApi:
622
1511
  )
623
1512
 
624
1513
  _response_types_map: Dict[str, Optional[str]] = {
625
- '200': "PostWorkerRunResponse",
626
- '400': None,
1514
+ '200': "GetWorkerEventsResponse",
627
1515
  }
628
1516
  response_data = self.api_client.call_api(
629
1517
  *_param,
@@ -637,11 +1525,12 @@ class WorkerResourceApi:
637
1525
 
638
1526
 
639
1527
  @validate_call
640
- def api_v1_workers_worker_id_runs_post_with_http_info(
1528
+ def api_v1_workers_worker_id_runs_run_rid_events_get_with_http_info(
641
1529
  self,
1530
+ run_rid: StrictStr,
642
1531
  worker_id: StrictStr,
643
- post_worker_run_request: PostWorkerRunRequest,
644
- version: Optional[StrictStr] = None,
1532
+ limit: Optional[Annotated[int, Field(le=200, strict=True, ge=1)]] = None,
1533
+ offset: Optional[Annotated[int, Field(strict=True, ge=0)]] = None,
645
1534
  _request_timeout: Union[
646
1535
  None,
647
1536
  Annotated[StrictFloat, Field(gt=0)],
@@ -654,16 +1543,18 @@ class WorkerResourceApi:
654
1543
  _content_type: Optional[StrictStr] = None,
655
1544
  _headers: Optional[Dict[StrictStr, Any]] = None,
656
1545
  _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
657
- ) -> ApiResponse[PostWorkerRunResponse]:
658
- """Post Worker Run
1546
+ ) -> ApiResponse[GetWorkerEventsResponse]:
1547
+ """Get Worker Run Events
659
1548
 
660
1549
 
1550
+ :param run_rid: (required)
1551
+ :type run_rid: str
661
1552
  :param worker_id: (required)
662
1553
  :type worker_id: str
663
- :param post_worker_run_request: (required)
664
- :type post_worker_run_request: PostWorkerRunRequest
665
- :param version:
666
- :type version: str
1554
+ :param limit:
1555
+ :type limit: int
1556
+ :param offset:
1557
+ :type offset: int
667
1558
  :param _request_timeout: timeout setting for this request. If one
668
1559
  number provided, it will be total request
669
1560
  timeout. It can also be a pair (tuple) of
@@ -686,10 +1577,11 @@ class WorkerResourceApi:
686
1577
  :return: Returns the result object.
687
1578
  """ # noqa: E501
688
1579
 
689
- _param = self._api_v1_workers_worker_id_runs_post_serialize(
1580
+ _param = self._api_v1_workers_worker_id_runs_run_rid_events_get_serialize(
1581
+ run_rid=run_rid,
690
1582
  worker_id=worker_id,
691
- post_worker_run_request=post_worker_run_request,
692
- version=version,
1583
+ limit=limit,
1584
+ offset=offset,
693
1585
  _request_auth=_request_auth,
694
1586
  _content_type=_content_type,
695
1587
  _headers=_headers,
@@ -697,8 +1589,7 @@ class WorkerResourceApi:
697
1589
  )
698
1590
 
699
1591
  _response_types_map: Dict[str, Optional[str]] = {
700
- '200': "PostWorkerRunResponse",
701
- '400': None,
1592
+ '200': "GetWorkerEventsResponse",
702
1593
  }
703
1594
  response_data = self.api_client.call_api(
704
1595
  *_param,
@@ -712,11 +1603,12 @@ class WorkerResourceApi:
712
1603
 
713
1604
 
714
1605
  @validate_call
715
- def api_v1_workers_worker_id_runs_post_without_preload_content(
1606
+ def api_v1_workers_worker_id_runs_run_rid_events_get_without_preload_content(
716
1607
  self,
1608
+ run_rid: StrictStr,
717
1609
  worker_id: StrictStr,
718
- post_worker_run_request: PostWorkerRunRequest,
719
- version: Optional[StrictStr] = None,
1610
+ limit: Optional[Annotated[int, Field(le=200, strict=True, ge=1)]] = None,
1611
+ offset: Optional[Annotated[int, Field(strict=True, ge=0)]] = None,
720
1612
  _request_timeout: Union[
721
1613
  None,
722
1614
  Annotated[StrictFloat, Field(gt=0)],
@@ -730,15 +1622,17 @@ class WorkerResourceApi:
730
1622
  _headers: Optional[Dict[StrictStr, Any]] = None,
731
1623
  _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
732
1624
  ) -> RESTResponseType:
733
- """Post Worker Run
1625
+ """Get Worker Run Events
734
1626
 
735
1627
 
1628
+ :param run_rid: (required)
1629
+ :type run_rid: str
736
1630
  :param worker_id: (required)
737
1631
  :type worker_id: str
738
- :param post_worker_run_request: (required)
739
- :type post_worker_run_request: PostWorkerRunRequest
740
- :param version:
741
- :type version: str
1632
+ :param limit:
1633
+ :type limit: int
1634
+ :param offset:
1635
+ :type offset: int
742
1636
  :param _request_timeout: timeout setting for this request. If one
743
1637
  number provided, it will be total request
744
1638
  timeout. It can also be a pair (tuple) of
@@ -761,10 +1655,11 @@ class WorkerResourceApi:
761
1655
  :return: Returns the result object.
762
1656
  """ # noqa: E501
763
1657
 
764
- _param = self._api_v1_workers_worker_id_runs_post_serialize(
1658
+ _param = self._api_v1_workers_worker_id_runs_run_rid_events_get_serialize(
1659
+ run_rid=run_rid,
765
1660
  worker_id=worker_id,
766
- post_worker_run_request=post_worker_run_request,
767
- version=version,
1661
+ limit=limit,
1662
+ offset=offset,
768
1663
  _request_auth=_request_auth,
769
1664
  _content_type=_content_type,
770
1665
  _headers=_headers,
@@ -772,8 +1667,7 @@ class WorkerResourceApi:
772
1667
  )
773
1668
 
774
1669
  _response_types_map: Dict[str, Optional[str]] = {
775
- '200': "PostWorkerRunResponse",
776
- '400': None,
1670
+ '200': "GetWorkerEventsResponse",
777
1671
  }
778
1672
  response_data = self.api_client.call_api(
779
1673
  *_param,
@@ -782,11 +1676,12 @@ class WorkerResourceApi:
782
1676
  return response_data.response
783
1677
 
784
1678
 
785
- def _api_v1_workers_worker_id_runs_post_serialize(
1679
+ def _api_v1_workers_worker_id_runs_run_rid_events_get_serialize(
786
1680
  self,
1681
+ run_rid,
787
1682
  worker_id,
788
- post_worker_run_request,
789
- version,
1683
+ limit,
1684
+ offset,
790
1685
  _request_auth,
791
1686
  _content_type,
792
1687
  _headers,
@@ -808,18 +1703,22 @@ class WorkerResourceApi:
808
1703
  _body_params: Optional[bytes] = None
809
1704
 
810
1705
  # process the path parameters
1706
+ if run_rid is not None:
1707
+ _path_params['runRid'] = run_rid
811
1708
  if worker_id is not None:
812
1709
  _path_params['workerId'] = worker_id
813
1710
  # process the query parameters
814
- if version is not None:
1711
+ if limit is not None:
815
1712
 
816
- _query_params.append(('version', version))
1713
+ _query_params.append(('limit', limit))
1714
+
1715
+ if offset is not None:
1716
+
1717
+ _query_params.append(('offset', offset))
817
1718
 
818
1719
  # process the header parameters
819
1720
  # process the form parameters
820
1721
  # process the body parameter
821
- if post_worker_run_request is not None:
822
- _body_params = post_worker_run_request
823
1722
 
824
1723
 
825
1724
  # set the HTTP header `Accept`
@@ -830,27 +1729,14 @@ class WorkerResourceApi:
830
1729
  ]
831
1730
  )
832
1731
 
833
- # set the HTTP header `Content-Type`
834
- if _content_type:
835
- _header_params['Content-Type'] = _content_type
836
- else:
837
- _default_content_type = (
838
- self.api_client.select_header_content_type(
839
- [
840
- 'application/json'
841
- ]
842
- )
843
- )
844
- if _default_content_type is not None:
845
- _header_params['Content-Type'] = _default_content_type
846
1732
 
847
1733
  # authentication setting
848
1734
  _auth_settings: List[str] = [
849
1735
  ]
850
1736
 
851
1737
  return self.api_client.param_serialize(
852
- method='POST',
853
- resource_path='/api/v1/workers/{workerId}/runs',
1738
+ method='GET',
1739
+ resource_path='/api/v1/workers/{workerId}/runs/{runRid}/events',
854
1740
  path_params=_path_params,
855
1741
  query_params=_query_params,
856
1742
  header_params=_header_params,
@@ -867,12 +1753,10 @@ class WorkerResourceApi:
867
1753
 
868
1754
 
869
1755
  @validate_call
870
- def api_v1_workers_worker_id_runs_run_rid_events_get(
1756
+ def api_v1_workers_worker_id_runs_run_rid_get(
871
1757
  self,
872
1758
  run_rid: StrictStr,
873
1759
  worker_id: StrictStr,
874
- limit: Optional[Annotated[int, Field(le=200, strict=True, ge=1)]] = None,
875
- offset: Optional[Annotated[int, Field(strict=True, ge=0)]] = None,
876
1760
  _request_timeout: Union[
877
1761
  None,
878
1762
  Annotated[StrictFloat, Field(gt=0)],
@@ -885,18 +1769,14 @@ class WorkerResourceApi:
885
1769
  _content_type: Optional[StrictStr] = None,
886
1770
  _headers: Optional[Dict[StrictStr, Any]] = None,
887
1771
  _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
888
- ) -> GetWorkerEventsResponse:
889
- """Get Worker Run Events
1772
+ ) -> GetWorkerRunResponse:
1773
+ """Get Worker Run
890
1774
 
891
1775
 
892
1776
  :param run_rid: (required)
893
1777
  :type run_rid: str
894
1778
  :param worker_id: (required)
895
1779
  :type worker_id: str
896
- :param limit:
897
- :type limit: int
898
- :param offset:
899
- :type offset: int
900
1780
  :param _request_timeout: timeout setting for this request. If one
901
1781
  number provided, it will be total request
902
1782
  timeout. It can also be a pair (tuple) of
@@ -919,11 +1799,9 @@ class WorkerResourceApi:
919
1799
  :return: Returns the result object.
920
1800
  """ # noqa: E501
921
1801
 
922
- _param = self._api_v1_workers_worker_id_runs_run_rid_events_get_serialize(
1802
+ _param = self._api_v1_workers_worker_id_runs_run_rid_get_serialize(
923
1803
  run_rid=run_rid,
924
1804
  worker_id=worker_id,
925
- limit=limit,
926
- offset=offset,
927
1805
  _request_auth=_request_auth,
928
1806
  _content_type=_content_type,
929
1807
  _headers=_headers,
@@ -931,7 +1809,7 @@ class WorkerResourceApi:
931
1809
  )
932
1810
 
933
1811
  _response_types_map: Dict[str, Optional[str]] = {
934
- '200': "GetWorkerEventsResponse",
1812
+ '200': "GetWorkerRunResponse",
935
1813
  }
936
1814
  response_data = self.api_client.call_api(
937
1815
  *_param,
@@ -945,12 +1823,10 @@ class WorkerResourceApi:
945
1823
 
946
1824
 
947
1825
  @validate_call
948
- def api_v1_workers_worker_id_runs_run_rid_events_get_with_http_info(
1826
+ def api_v1_workers_worker_id_runs_run_rid_get_with_http_info(
949
1827
  self,
950
1828
  run_rid: StrictStr,
951
1829
  worker_id: StrictStr,
952
- limit: Optional[Annotated[int, Field(le=200, strict=True, ge=1)]] = None,
953
- offset: Optional[Annotated[int, Field(strict=True, ge=0)]] = None,
954
1830
  _request_timeout: Union[
955
1831
  None,
956
1832
  Annotated[StrictFloat, Field(gt=0)],
@@ -963,18 +1839,14 @@ class WorkerResourceApi:
963
1839
  _content_type: Optional[StrictStr] = None,
964
1840
  _headers: Optional[Dict[StrictStr, Any]] = None,
965
1841
  _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
966
- ) -> ApiResponse[GetWorkerEventsResponse]:
967
- """Get Worker Run Events
1842
+ ) -> ApiResponse[GetWorkerRunResponse]:
1843
+ """Get Worker Run
968
1844
 
969
1845
 
970
1846
  :param run_rid: (required)
971
1847
  :type run_rid: str
972
1848
  :param worker_id: (required)
973
1849
  :type worker_id: str
974
- :param limit:
975
- :type limit: int
976
- :param offset:
977
- :type offset: int
978
1850
  :param _request_timeout: timeout setting for this request. If one
979
1851
  number provided, it will be total request
980
1852
  timeout. It can also be a pair (tuple) of
@@ -997,11 +1869,9 @@ class WorkerResourceApi:
997
1869
  :return: Returns the result object.
998
1870
  """ # noqa: E501
999
1871
 
1000
- _param = self._api_v1_workers_worker_id_runs_run_rid_events_get_serialize(
1872
+ _param = self._api_v1_workers_worker_id_runs_run_rid_get_serialize(
1001
1873
  run_rid=run_rid,
1002
1874
  worker_id=worker_id,
1003
- limit=limit,
1004
- offset=offset,
1005
1875
  _request_auth=_request_auth,
1006
1876
  _content_type=_content_type,
1007
1877
  _headers=_headers,
@@ -1009,7 +1879,7 @@ class WorkerResourceApi:
1009
1879
  )
1010
1880
 
1011
1881
  _response_types_map: Dict[str, Optional[str]] = {
1012
- '200': "GetWorkerEventsResponse",
1882
+ '200': "GetWorkerRunResponse",
1013
1883
  }
1014
1884
  response_data = self.api_client.call_api(
1015
1885
  *_param,
@@ -1023,12 +1893,10 @@ class WorkerResourceApi:
1023
1893
 
1024
1894
 
1025
1895
  @validate_call
1026
- def api_v1_workers_worker_id_runs_run_rid_events_get_without_preload_content(
1896
+ def api_v1_workers_worker_id_runs_run_rid_get_without_preload_content(
1027
1897
  self,
1028
1898
  run_rid: StrictStr,
1029
1899
  worker_id: StrictStr,
1030
- limit: Optional[Annotated[int, Field(le=200, strict=True, ge=1)]] = None,
1031
- offset: Optional[Annotated[int, Field(strict=True, ge=0)]] = None,
1032
1900
  _request_timeout: Union[
1033
1901
  None,
1034
1902
  Annotated[StrictFloat, Field(gt=0)],
@@ -1042,17 +1910,13 @@ class WorkerResourceApi:
1042
1910
  _headers: Optional[Dict[StrictStr, Any]] = None,
1043
1911
  _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
1044
1912
  ) -> RESTResponseType:
1045
- """Get Worker Run Events
1913
+ """Get Worker Run
1046
1914
 
1047
1915
 
1048
1916
  :param run_rid: (required)
1049
1917
  :type run_rid: str
1050
1918
  :param worker_id: (required)
1051
1919
  :type worker_id: str
1052
- :param limit:
1053
- :type limit: int
1054
- :param offset:
1055
- :type offset: int
1056
1920
  :param _request_timeout: timeout setting for this request. If one
1057
1921
  number provided, it will be total request
1058
1922
  timeout. It can also be a pair (tuple) of
@@ -1075,11 +1939,9 @@ class WorkerResourceApi:
1075
1939
  :return: Returns the result object.
1076
1940
  """ # noqa: E501
1077
1941
 
1078
- _param = self._api_v1_workers_worker_id_runs_run_rid_events_get_serialize(
1942
+ _param = self._api_v1_workers_worker_id_runs_run_rid_get_serialize(
1079
1943
  run_rid=run_rid,
1080
1944
  worker_id=worker_id,
1081
- limit=limit,
1082
- offset=offset,
1083
1945
  _request_auth=_request_auth,
1084
1946
  _content_type=_content_type,
1085
1947
  _headers=_headers,
@@ -1087,7 +1949,7 @@ class WorkerResourceApi:
1087
1949
  )
1088
1950
 
1089
1951
  _response_types_map: Dict[str, Optional[str]] = {
1090
- '200': "GetWorkerEventsResponse",
1952
+ '200': "GetWorkerRunResponse",
1091
1953
  }
1092
1954
  response_data = self.api_client.call_api(
1093
1955
  *_param,
@@ -1096,12 +1958,10 @@ class WorkerResourceApi:
1096
1958
  return response_data.response
1097
1959
 
1098
1960
 
1099
- def _api_v1_workers_worker_id_runs_run_rid_events_get_serialize(
1961
+ def _api_v1_workers_worker_id_runs_run_rid_get_serialize(
1100
1962
  self,
1101
1963
  run_rid,
1102
1964
  worker_id,
1103
- limit,
1104
- offset,
1105
1965
  _request_auth,
1106
1966
  _content_type,
1107
1967
  _headers,
@@ -1128,14 +1988,6 @@ class WorkerResourceApi:
1128
1988
  if worker_id is not None:
1129
1989
  _path_params['workerId'] = worker_id
1130
1990
  # process the query parameters
1131
- if limit is not None:
1132
-
1133
- _query_params.append(('limit', limit))
1134
-
1135
- if offset is not None:
1136
-
1137
- _query_params.append(('offset', offset))
1138
-
1139
1991
  # process the header parameters
1140
1992
  # process the form parameters
1141
1993
  # process the body parameter
@@ -1156,7 +2008,7 @@ class WorkerResourceApi:
1156
2008
 
1157
2009
  return self.api_client.param_serialize(
1158
2010
  method='GET',
1159
- resource_path='/api/v1/workers/{workerId}/runs/{runRid}/events',
2011
+ resource_path='/api/v1/workers/{workerId}/runs/{runRid}',
1160
2012
  path_params=_path_params,
1161
2013
  query_params=_query_params,
1162
2014
  header_params=_header_params,
@@ -1173,10 +2025,11 @@ class WorkerResourceApi:
1173
2025
 
1174
2026
 
1175
2027
  @validate_call
1176
- def api_v1_workers_worker_id_runs_run_rid_get(
2028
+ def api_v1_workers_worker_id_runs_run_rid_resume_post(
1177
2029
  self,
1178
2030
  run_rid: StrictStr,
1179
2031
  worker_id: StrictStr,
2032
+ post_worker_run_request: PostWorkerRunRequest,
1180
2033
  _request_timeout: Union[
1181
2034
  None,
1182
2035
  Annotated[StrictFloat, Field(gt=0)],
@@ -1189,14 +2042,16 @@ class WorkerResourceApi:
1189
2042
  _content_type: Optional[StrictStr] = None,
1190
2043
  _headers: Optional[Dict[StrictStr, Any]] = None,
1191
2044
  _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
1192
- ) -> GetWorkerRunResponse:
1193
- """Get Worker Run
2045
+ ) -> object:
2046
+ """Post Resume Run
1194
2047
 
1195
2048
 
1196
2049
  :param run_rid: (required)
1197
2050
  :type run_rid: str
1198
2051
  :param worker_id: (required)
1199
2052
  :type worker_id: str
2053
+ :param post_worker_run_request: (required)
2054
+ :type post_worker_run_request: PostWorkerRunRequest
1200
2055
  :param _request_timeout: timeout setting for this request. If one
1201
2056
  number provided, it will be total request
1202
2057
  timeout. It can also be a pair (tuple) of
@@ -1219,9 +2074,10 @@ class WorkerResourceApi:
1219
2074
  :return: Returns the result object.
1220
2075
  """ # noqa: E501
1221
2076
 
1222
- _param = self._api_v1_workers_worker_id_runs_run_rid_get_serialize(
2077
+ _param = self._api_v1_workers_worker_id_runs_run_rid_resume_post_serialize(
1223
2078
  run_rid=run_rid,
1224
2079
  worker_id=worker_id,
2080
+ post_worker_run_request=post_worker_run_request,
1225
2081
  _request_auth=_request_auth,
1226
2082
  _content_type=_content_type,
1227
2083
  _headers=_headers,
@@ -1229,7 +2085,8 @@ class WorkerResourceApi:
1229
2085
  )
1230
2086
 
1231
2087
  _response_types_map: Dict[str, Optional[str]] = {
1232
- '200': "GetWorkerRunResponse",
2088
+ '200': "object",
2089
+ '400': None,
1233
2090
  }
1234
2091
  response_data = self.api_client.call_api(
1235
2092
  *_param,
@@ -1243,10 +2100,11 @@ class WorkerResourceApi:
1243
2100
 
1244
2101
 
1245
2102
  @validate_call
1246
- def api_v1_workers_worker_id_runs_run_rid_get_with_http_info(
2103
+ def api_v1_workers_worker_id_runs_run_rid_resume_post_with_http_info(
1247
2104
  self,
1248
2105
  run_rid: StrictStr,
1249
2106
  worker_id: StrictStr,
2107
+ post_worker_run_request: PostWorkerRunRequest,
1250
2108
  _request_timeout: Union[
1251
2109
  None,
1252
2110
  Annotated[StrictFloat, Field(gt=0)],
@@ -1259,14 +2117,16 @@ class WorkerResourceApi:
1259
2117
  _content_type: Optional[StrictStr] = None,
1260
2118
  _headers: Optional[Dict[StrictStr, Any]] = None,
1261
2119
  _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
1262
- ) -> ApiResponse[GetWorkerRunResponse]:
1263
- """Get Worker Run
2120
+ ) -> ApiResponse[object]:
2121
+ """Post Resume Run
1264
2122
 
1265
2123
 
1266
2124
  :param run_rid: (required)
1267
2125
  :type run_rid: str
1268
2126
  :param worker_id: (required)
1269
2127
  :type worker_id: str
2128
+ :param post_worker_run_request: (required)
2129
+ :type post_worker_run_request: PostWorkerRunRequest
1270
2130
  :param _request_timeout: timeout setting for this request. If one
1271
2131
  number provided, it will be total request
1272
2132
  timeout. It can also be a pair (tuple) of
@@ -1289,9 +2149,10 @@ class WorkerResourceApi:
1289
2149
  :return: Returns the result object.
1290
2150
  """ # noqa: E501
1291
2151
 
1292
- _param = self._api_v1_workers_worker_id_runs_run_rid_get_serialize(
2152
+ _param = self._api_v1_workers_worker_id_runs_run_rid_resume_post_serialize(
1293
2153
  run_rid=run_rid,
1294
2154
  worker_id=worker_id,
2155
+ post_worker_run_request=post_worker_run_request,
1295
2156
  _request_auth=_request_auth,
1296
2157
  _content_type=_content_type,
1297
2158
  _headers=_headers,
@@ -1299,7 +2160,8 @@ class WorkerResourceApi:
1299
2160
  )
1300
2161
 
1301
2162
  _response_types_map: Dict[str, Optional[str]] = {
1302
- '200': "GetWorkerRunResponse",
2163
+ '200': "object",
2164
+ '400': None,
1303
2165
  }
1304
2166
  response_data = self.api_client.call_api(
1305
2167
  *_param,
@@ -1313,10 +2175,11 @@ class WorkerResourceApi:
1313
2175
 
1314
2176
 
1315
2177
  @validate_call
1316
- def api_v1_workers_worker_id_runs_run_rid_get_without_preload_content(
2178
+ def api_v1_workers_worker_id_runs_run_rid_resume_post_without_preload_content(
1317
2179
  self,
1318
2180
  run_rid: StrictStr,
1319
2181
  worker_id: StrictStr,
2182
+ post_worker_run_request: PostWorkerRunRequest,
1320
2183
  _request_timeout: Union[
1321
2184
  None,
1322
2185
  Annotated[StrictFloat, Field(gt=0)],
@@ -1330,13 +2193,15 @@ class WorkerResourceApi:
1330
2193
  _headers: Optional[Dict[StrictStr, Any]] = None,
1331
2194
  _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
1332
2195
  ) -> RESTResponseType:
1333
- """Get Worker Run
2196
+ """Post Resume Run
1334
2197
 
1335
2198
 
1336
2199
  :param run_rid: (required)
1337
2200
  :type run_rid: str
1338
2201
  :param worker_id: (required)
1339
2202
  :type worker_id: str
2203
+ :param post_worker_run_request: (required)
2204
+ :type post_worker_run_request: PostWorkerRunRequest
1340
2205
  :param _request_timeout: timeout setting for this request. If one
1341
2206
  number provided, it will be total request
1342
2207
  timeout. It can also be a pair (tuple) of
@@ -1359,9 +2224,10 @@ class WorkerResourceApi:
1359
2224
  :return: Returns the result object.
1360
2225
  """ # noqa: E501
1361
2226
 
1362
- _param = self._api_v1_workers_worker_id_runs_run_rid_get_serialize(
2227
+ _param = self._api_v1_workers_worker_id_runs_run_rid_resume_post_serialize(
1363
2228
  run_rid=run_rid,
1364
2229
  worker_id=worker_id,
2230
+ post_worker_run_request=post_worker_run_request,
1365
2231
  _request_auth=_request_auth,
1366
2232
  _content_type=_content_type,
1367
2233
  _headers=_headers,
@@ -1369,7 +2235,8 @@ class WorkerResourceApi:
1369
2235
  )
1370
2236
 
1371
2237
  _response_types_map: Dict[str, Optional[str]] = {
1372
- '200': "GetWorkerRunResponse",
2238
+ '200': "object",
2239
+ '400': None,
1373
2240
  }
1374
2241
  response_data = self.api_client.call_api(
1375
2242
  *_param,
@@ -1378,10 +2245,11 @@ class WorkerResourceApi:
1378
2245
  return response_data.response
1379
2246
 
1380
2247
 
1381
- def _api_v1_workers_worker_id_runs_run_rid_get_serialize(
2248
+ def _api_v1_workers_worker_id_runs_run_rid_resume_post_serialize(
1382
2249
  self,
1383
2250
  run_rid,
1384
2251
  worker_id,
2252
+ post_worker_run_request,
1385
2253
  _request_auth,
1386
2254
  _content_type,
1387
2255
  _headers,
@@ -1411,6 +2279,8 @@ class WorkerResourceApi:
1411
2279
  # process the header parameters
1412
2280
  # process the form parameters
1413
2281
  # process the body parameter
2282
+ if post_worker_run_request is not None:
2283
+ _body_params = post_worker_run_request
1414
2284
 
1415
2285
 
1416
2286
  # set the HTTP header `Accept`
@@ -1421,14 +2291,27 @@ class WorkerResourceApi:
1421
2291
  ]
1422
2292
  )
1423
2293
 
2294
+ # set the HTTP header `Content-Type`
2295
+ if _content_type:
2296
+ _header_params['Content-Type'] = _content_type
2297
+ else:
2298
+ _default_content_type = (
2299
+ self.api_client.select_header_content_type(
2300
+ [
2301
+ 'application/json'
2302
+ ]
2303
+ )
2304
+ )
2305
+ if _default_content_type is not None:
2306
+ _header_params['Content-Type'] = _default_content_type
1424
2307
 
1425
2308
  # authentication setting
1426
2309
  _auth_settings: List[str] = [
1427
2310
  ]
1428
2311
 
1429
2312
  return self.api_client.param_serialize(
1430
- method='GET',
1431
- resource_path='/api/v1/workers/{workerId}/runs/{runRid}',
2313
+ method='POST',
2314
+ resource_path='/api/v1/workers/{workerId}/runs/{runRid}/resume',
1432
2315
  path_params=_path_params,
1433
2316
  query_params=_query_params,
1434
2317
  header_params=_header_params,
@@ -1445,11 +2328,10 @@ class WorkerResourceApi:
1445
2328
 
1446
2329
 
1447
2330
  @validate_call
1448
- def api_v1_workers_worker_id_runs_run_rid_resume_post(
2331
+ def api_v1_workers_worker_id_runs_run_rid_status_get(
1449
2332
  self,
1450
2333
  run_rid: StrictStr,
1451
2334
  worker_id: StrictStr,
1452
- post_worker_run_request: PostWorkerRunRequest,
1453
2335
  _request_timeout: Union[
1454
2336
  None,
1455
2337
  Annotated[StrictFloat, Field(gt=0)],
@@ -1462,16 +2344,14 @@ class WorkerResourceApi:
1462
2344
  _content_type: Optional[StrictStr] = None,
1463
2345
  _headers: Optional[Dict[StrictStr, Any]] = None,
1464
2346
  _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
1465
- ) -> object:
1466
- """Post Resume Run
2347
+ ) -> GetWorkerStatusResponse:
2348
+ """Get Worker Run Status
1467
2349
 
1468
2350
 
1469
2351
  :param run_rid: (required)
1470
2352
  :type run_rid: str
1471
2353
  :param worker_id: (required)
1472
2354
  :type worker_id: str
1473
- :param post_worker_run_request: (required)
1474
- :type post_worker_run_request: PostWorkerRunRequest
1475
2355
  :param _request_timeout: timeout setting for this request. If one
1476
2356
  number provided, it will be total request
1477
2357
  timeout. It can also be a pair (tuple) of
@@ -1494,10 +2374,9 @@ class WorkerResourceApi:
1494
2374
  :return: Returns the result object.
1495
2375
  """ # noqa: E501
1496
2376
 
1497
- _param = self._api_v1_workers_worker_id_runs_run_rid_resume_post_serialize(
2377
+ _param = self._api_v1_workers_worker_id_runs_run_rid_status_get_serialize(
1498
2378
  run_rid=run_rid,
1499
2379
  worker_id=worker_id,
1500
- post_worker_run_request=post_worker_run_request,
1501
2380
  _request_auth=_request_auth,
1502
2381
  _content_type=_content_type,
1503
2382
  _headers=_headers,
@@ -1505,8 +2384,7 @@ class WorkerResourceApi:
1505
2384
  )
1506
2385
 
1507
2386
  _response_types_map: Dict[str, Optional[str]] = {
1508
- '200': "object",
1509
- '400': None,
2387
+ '200': "GetWorkerStatusResponse",
1510
2388
  }
1511
2389
  response_data = self.api_client.call_api(
1512
2390
  *_param,
@@ -1520,11 +2398,10 @@ class WorkerResourceApi:
1520
2398
 
1521
2399
 
1522
2400
  @validate_call
1523
- def api_v1_workers_worker_id_runs_run_rid_resume_post_with_http_info(
2401
+ def api_v1_workers_worker_id_runs_run_rid_status_get_with_http_info(
1524
2402
  self,
1525
2403
  run_rid: StrictStr,
1526
2404
  worker_id: StrictStr,
1527
- post_worker_run_request: PostWorkerRunRequest,
1528
2405
  _request_timeout: Union[
1529
2406
  None,
1530
2407
  Annotated[StrictFloat, Field(gt=0)],
@@ -1537,16 +2414,14 @@ class WorkerResourceApi:
1537
2414
  _content_type: Optional[StrictStr] = None,
1538
2415
  _headers: Optional[Dict[StrictStr, Any]] = None,
1539
2416
  _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
1540
- ) -> ApiResponse[object]:
1541
- """Post Resume Run
2417
+ ) -> ApiResponse[GetWorkerStatusResponse]:
2418
+ """Get Worker Run Status
1542
2419
 
1543
2420
 
1544
2421
  :param run_rid: (required)
1545
2422
  :type run_rid: str
1546
2423
  :param worker_id: (required)
1547
2424
  :type worker_id: str
1548
- :param post_worker_run_request: (required)
1549
- :type post_worker_run_request: PostWorkerRunRequest
1550
2425
  :param _request_timeout: timeout setting for this request. If one
1551
2426
  number provided, it will be total request
1552
2427
  timeout. It can also be a pair (tuple) of
@@ -1569,10 +2444,9 @@ class WorkerResourceApi:
1569
2444
  :return: Returns the result object.
1570
2445
  """ # noqa: E501
1571
2446
 
1572
- _param = self._api_v1_workers_worker_id_runs_run_rid_resume_post_serialize(
2447
+ _param = self._api_v1_workers_worker_id_runs_run_rid_status_get_serialize(
1573
2448
  run_rid=run_rid,
1574
2449
  worker_id=worker_id,
1575
- post_worker_run_request=post_worker_run_request,
1576
2450
  _request_auth=_request_auth,
1577
2451
  _content_type=_content_type,
1578
2452
  _headers=_headers,
@@ -1580,8 +2454,7 @@ class WorkerResourceApi:
1580
2454
  )
1581
2455
 
1582
2456
  _response_types_map: Dict[str, Optional[str]] = {
1583
- '200': "object",
1584
- '400': None,
2457
+ '200': "GetWorkerStatusResponse",
1585
2458
  }
1586
2459
  response_data = self.api_client.call_api(
1587
2460
  *_param,
@@ -1595,11 +2468,10 @@ class WorkerResourceApi:
1595
2468
 
1596
2469
 
1597
2470
  @validate_call
1598
- def api_v1_workers_worker_id_runs_run_rid_resume_post_without_preload_content(
2471
+ def api_v1_workers_worker_id_runs_run_rid_status_get_without_preload_content(
1599
2472
  self,
1600
2473
  run_rid: StrictStr,
1601
2474
  worker_id: StrictStr,
1602
- post_worker_run_request: PostWorkerRunRequest,
1603
2475
  _request_timeout: Union[
1604
2476
  None,
1605
2477
  Annotated[StrictFloat, Field(gt=0)],
@@ -1613,15 +2485,13 @@ class WorkerResourceApi:
1613
2485
  _headers: Optional[Dict[StrictStr, Any]] = None,
1614
2486
  _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
1615
2487
  ) -> RESTResponseType:
1616
- """Post Resume Run
2488
+ """Get Worker Run Status
1617
2489
 
1618
2490
 
1619
2491
  :param run_rid: (required)
1620
2492
  :type run_rid: str
1621
2493
  :param worker_id: (required)
1622
2494
  :type worker_id: str
1623
- :param post_worker_run_request: (required)
1624
- :type post_worker_run_request: PostWorkerRunRequest
1625
2495
  :param _request_timeout: timeout setting for this request. If one
1626
2496
  number provided, it will be total request
1627
2497
  timeout. It can also be a pair (tuple) of
@@ -1644,10 +2514,9 @@ class WorkerResourceApi:
1644
2514
  :return: Returns the result object.
1645
2515
  """ # noqa: E501
1646
2516
 
1647
- _param = self._api_v1_workers_worker_id_runs_run_rid_resume_post_serialize(
2517
+ _param = self._api_v1_workers_worker_id_runs_run_rid_status_get_serialize(
1648
2518
  run_rid=run_rid,
1649
2519
  worker_id=worker_id,
1650
- post_worker_run_request=post_worker_run_request,
1651
2520
  _request_auth=_request_auth,
1652
2521
  _content_type=_content_type,
1653
2522
  _headers=_headers,
@@ -1655,8 +2524,7 @@ class WorkerResourceApi:
1655
2524
  )
1656
2525
 
1657
2526
  _response_types_map: Dict[str, Optional[str]] = {
1658
- '200': "object",
1659
- '400': None,
2527
+ '200': "GetWorkerStatusResponse",
1660
2528
  }
1661
2529
  response_data = self.api_client.call_api(
1662
2530
  *_param,
@@ -1665,11 +2533,10 @@ class WorkerResourceApi:
1665
2533
  return response_data.response
1666
2534
 
1667
2535
 
1668
- def _api_v1_workers_worker_id_runs_run_rid_resume_post_serialize(
2536
+ def _api_v1_workers_worker_id_runs_run_rid_status_get_serialize(
1669
2537
  self,
1670
2538
  run_rid,
1671
2539
  worker_id,
1672
- post_worker_run_request,
1673
2540
  _request_auth,
1674
2541
  _content_type,
1675
2542
  _headers,
@@ -1699,8 +2566,6 @@ class WorkerResourceApi:
1699
2566
  # process the header parameters
1700
2567
  # process the form parameters
1701
2568
  # process the body parameter
1702
- if post_worker_run_request is not None:
1703
- _body_params = post_worker_run_request
1704
2569
 
1705
2570
 
1706
2571
  # set the HTTP header `Accept`
@@ -1711,27 +2576,14 @@ class WorkerResourceApi:
1711
2576
  ]
1712
2577
  )
1713
2578
 
1714
- # set the HTTP header `Content-Type`
1715
- if _content_type:
1716
- _header_params['Content-Type'] = _content_type
1717
- else:
1718
- _default_content_type = (
1719
- self.api_client.select_header_content_type(
1720
- [
1721
- 'application/json'
1722
- ]
1723
- )
1724
- )
1725
- if _default_content_type is not None:
1726
- _header_params['Content-Type'] = _default_content_type
1727
2579
 
1728
2580
  # authentication setting
1729
2581
  _auth_settings: List[str] = [
1730
2582
  ]
1731
2583
 
1732
2584
  return self.api_client.param_serialize(
1733
- method='POST',
1734
- resource_path='/api/v1/workers/{workerId}/runs/{runRid}/resume',
2585
+ method='GET',
2586
+ resource_path='/api/v1/workers/{workerId}/runs/{runRid}/status',
1735
2587
  path_params=_path_params,
1736
2588
  query_params=_query_params,
1737
2589
  header_params=_header_params,
@@ -1748,10 +2600,12 @@ class WorkerResourceApi:
1748
2600
 
1749
2601
 
1750
2602
  @validate_call
1751
- def api_v1_workers_worker_id_runs_run_rid_status_get(
2603
+ def get_worker_run_events_v2(
1752
2604
  self,
1753
2605
  run_rid: StrictStr,
1754
2606
  worker_id: StrictStr,
2607
+ limit: Optional[Annotated[int, Field(le=200, strict=True, ge=1)]] = None,
2608
+ next_page_token: Optional[WorkerV2NextPageToken] = None,
1755
2609
  _request_timeout: Union[
1756
2610
  None,
1757
2611
  Annotated[StrictFloat, Field(gt=0)],
@@ -1764,14 +2618,19 @@ class WorkerResourceApi:
1764
2618
  _content_type: Optional[StrictStr] = None,
1765
2619
  _headers: Optional[Dict[StrictStr, Any]] = None,
1766
2620
  _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
1767
- ) -> GetWorkerStatusResponse:
1768
- """Get Worker Run Status
2621
+ ) -> GetWorkerEventsV2Response:
2622
+ """Get Worker Run Events (v2)
1769
2623
 
2624
+ Returns worker events interleaved with user inputs as a single timeline. Pagination uses nextPageToken which contains offsets for both event types.
1770
2625
 
1771
2626
  :param run_rid: (required)
1772
2627
  :type run_rid: str
1773
2628
  :param worker_id: (required)
1774
2629
  :type worker_id: str
2630
+ :param limit:
2631
+ :type limit: int
2632
+ :param next_page_token:
2633
+ :type next_page_token: WorkerV2NextPageToken
1775
2634
  :param _request_timeout: timeout setting for this request. If one
1776
2635
  number provided, it will be total request
1777
2636
  timeout. It can also be a pair (tuple) of
@@ -1794,9 +2653,11 @@ class WorkerResourceApi:
1794
2653
  :return: Returns the result object.
1795
2654
  """ # noqa: E501
1796
2655
 
1797
- _param = self._api_v1_workers_worker_id_runs_run_rid_status_get_serialize(
2656
+ _param = self._get_worker_run_events_v2_serialize(
1798
2657
  run_rid=run_rid,
1799
2658
  worker_id=worker_id,
2659
+ limit=limit,
2660
+ next_page_token=next_page_token,
1800
2661
  _request_auth=_request_auth,
1801
2662
  _content_type=_content_type,
1802
2663
  _headers=_headers,
@@ -1804,7 +2665,7 @@ class WorkerResourceApi:
1804
2665
  )
1805
2666
 
1806
2667
  _response_types_map: Dict[str, Optional[str]] = {
1807
- '200': "GetWorkerStatusResponse",
2668
+ '200': "GetWorkerEventsV2Response",
1808
2669
  }
1809
2670
  response_data = self.api_client.call_api(
1810
2671
  *_param,
@@ -1818,10 +2679,12 @@ class WorkerResourceApi:
1818
2679
 
1819
2680
 
1820
2681
  @validate_call
1821
- def api_v1_workers_worker_id_runs_run_rid_status_get_with_http_info(
2682
+ def get_worker_run_events_v2_with_http_info(
1822
2683
  self,
1823
2684
  run_rid: StrictStr,
1824
2685
  worker_id: StrictStr,
2686
+ limit: Optional[Annotated[int, Field(le=200, strict=True, ge=1)]] = None,
2687
+ next_page_token: Optional[WorkerV2NextPageToken] = None,
1825
2688
  _request_timeout: Union[
1826
2689
  None,
1827
2690
  Annotated[StrictFloat, Field(gt=0)],
@@ -1834,14 +2697,19 @@ class WorkerResourceApi:
1834
2697
  _content_type: Optional[StrictStr] = None,
1835
2698
  _headers: Optional[Dict[StrictStr, Any]] = None,
1836
2699
  _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
1837
- ) -> ApiResponse[GetWorkerStatusResponse]:
1838
- """Get Worker Run Status
2700
+ ) -> ApiResponse[GetWorkerEventsV2Response]:
2701
+ """Get Worker Run Events (v2)
1839
2702
 
2703
+ Returns worker events interleaved with user inputs as a single timeline. Pagination uses nextPageToken which contains offsets for both event types.
1840
2704
 
1841
2705
  :param run_rid: (required)
1842
2706
  :type run_rid: str
1843
2707
  :param worker_id: (required)
1844
2708
  :type worker_id: str
2709
+ :param limit:
2710
+ :type limit: int
2711
+ :param next_page_token:
2712
+ :type next_page_token: WorkerV2NextPageToken
1845
2713
  :param _request_timeout: timeout setting for this request. If one
1846
2714
  number provided, it will be total request
1847
2715
  timeout. It can also be a pair (tuple) of
@@ -1864,9 +2732,11 @@ class WorkerResourceApi:
1864
2732
  :return: Returns the result object.
1865
2733
  """ # noqa: E501
1866
2734
 
1867
- _param = self._api_v1_workers_worker_id_runs_run_rid_status_get_serialize(
2735
+ _param = self._get_worker_run_events_v2_serialize(
1868
2736
  run_rid=run_rid,
1869
2737
  worker_id=worker_id,
2738
+ limit=limit,
2739
+ next_page_token=next_page_token,
1870
2740
  _request_auth=_request_auth,
1871
2741
  _content_type=_content_type,
1872
2742
  _headers=_headers,
@@ -1874,7 +2744,7 @@ class WorkerResourceApi:
1874
2744
  )
1875
2745
 
1876
2746
  _response_types_map: Dict[str, Optional[str]] = {
1877
- '200': "GetWorkerStatusResponse",
2747
+ '200': "GetWorkerEventsV2Response",
1878
2748
  }
1879
2749
  response_data = self.api_client.call_api(
1880
2750
  *_param,
@@ -1888,10 +2758,12 @@ class WorkerResourceApi:
1888
2758
 
1889
2759
 
1890
2760
  @validate_call
1891
- def api_v1_workers_worker_id_runs_run_rid_status_get_without_preload_content(
2761
+ def get_worker_run_events_v2_without_preload_content(
1892
2762
  self,
1893
2763
  run_rid: StrictStr,
1894
2764
  worker_id: StrictStr,
2765
+ limit: Optional[Annotated[int, Field(le=200, strict=True, ge=1)]] = None,
2766
+ next_page_token: Optional[WorkerV2NextPageToken] = None,
1895
2767
  _request_timeout: Union[
1896
2768
  None,
1897
2769
  Annotated[StrictFloat, Field(gt=0)],
@@ -1905,13 +2777,18 @@ class WorkerResourceApi:
1905
2777
  _headers: Optional[Dict[StrictStr, Any]] = None,
1906
2778
  _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
1907
2779
  ) -> RESTResponseType:
1908
- """Get Worker Run Status
2780
+ """Get Worker Run Events (v2)
1909
2781
 
2782
+ Returns worker events interleaved with user inputs as a single timeline. Pagination uses nextPageToken which contains offsets for both event types.
1910
2783
 
1911
2784
  :param run_rid: (required)
1912
2785
  :type run_rid: str
1913
2786
  :param worker_id: (required)
1914
2787
  :type worker_id: str
2788
+ :param limit:
2789
+ :type limit: int
2790
+ :param next_page_token:
2791
+ :type next_page_token: WorkerV2NextPageToken
1915
2792
  :param _request_timeout: timeout setting for this request. If one
1916
2793
  number provided, it will be total request
1917
2794
  timeout. It can also be a pair (tuple) of
@@ -1934,9 +2811,11 @@ class WorkerResourceApi:
1934
2811
  :return: Returns the result object.
1935
2812
  """ # noqa: E501
1936
2813
 
1937
- _param = self._api_v1_workers_worker_id_runs_run_rid_status_get_serialize(
2814
+ _param = self._get_worker_run_events_v2_serialize(
1938
2815
  run_rid=run_rid,
1939
2816
  worker_id=worker_id,
2817
+ limit=limit,
2818
+ next_page_token=next_page_token,
1940
2819
  _request_auth=_request_auth,
1941
2820
  _content_type=_content_type,
1942
2821
  _headers=_headers,
@@ -1944,7 +2823,7 @@ class WorkerResourceApi:
1944
2823
  )
1945
2824
 
1946
2825
  _response_types_map: Dict[str, Optional[str]] = {
1947
- '200': "GetWorkerStatusResponse",
2826
+ '200': "GetWorkerEventsV2Response",
1948
2827
  }
1949
2828
  response_data = self.api_client.call_api(
1950
2829
  *_param,
@@ -1953,10 +2832,12 @@ class WorkerResourceApi:
1953
2832
  return response_data.response
1954
2833
 
1955
2834
 
1956
- def _api_v1_workers_worker_id_runs_run_rid_status_get_serialize(
2835
+ def _get_worker_run_events_v2_serialize(
1957
2836
  self,
1958
2837
  run_rid,
1959
2838
  worker_id,
2839
+ limit,
2840
+ next_page_token,
1960
2841
  _request_auth,
1961
2842
  _content_type,
1962
2843
  _headers,
@@ -1983,6 +2864,14 @@ class WorkerResourceApi:
1983
2864
  if worker_id is not None:
1984
2865
  _path_params['workerId'] = worker_id
1985
2866
  # process the query parameters
2867
+ if limit is not None:
2868
+
2869
+ _query_params.append(('limit', limit))
2870
+
2871
+ if next_page_token is not None:
2872
+
2873
+ _query_params.append(('nextPageToken', next_page_token))
2874
+
1986
2875
  # process the header parameters
1987
2876
  # process the form parameters
1988
2877
  # process the body parameter
@@ -2003,7 +2892,7 @@ class WorkerResourceApi:
2003
2892
 
2004
2893
  return self.api_client.param_serialize(
2005
2894
  method='GET',
2006
- resource_path='/api/v1/workers/{workerId}/runs/{runRid}/status',
2895
+ resource_path='/api/v2/workers/{workerId}/runs/{runRid}/events',
2007
2896
  path_params=_path_params,
2008
2897
  query_params=_query_params,
2009
2898
  header_params=_header_params,