rapidata 2.39.0__py3-none-any.whl → 2.40.0__py3-none-any.whl
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Potentially problematic release.
This version of rapidata might be problematic. Click here for more details.
- rapidata/__init__.py +3 -1
- rapidata/api_client/api/benchmark_api.py +0 -836
- rapidata/api_client/api/leaderboard_api.py +27 -2286
- rapidata/api_client/api/participant_api.py +0 -286
- rapidata/api_client/api/validation_set_api.py +0 -572
- rapidata/api_client_README.md +0 -14
- rapidata/rapidata_client/config/order_config.py +1 -0
- rapidata/rapidata_client/order/_rapidata_order_builder.py +34 -9
- rapidata/rapidata_client/rapidata_client.py +24 -3
- rapidata/rapidata_client/validation/rapidata_validation_set.py +10 -0
- rapidata/rapidata_client/validation/validation_set_manager.py +4 -0
- rapidata/types/__init__.py +167 -0
- {rapidata-2.39.0.dist-info → rapidata-2.40.0.dist-info}/METADATA +1 -1
- {rapidata-2.39.0.dist-info → rapidata-2.40.0.dist-info}/RECORD +16 -15
- {rapidata-2.39.0.dist-info → rapidata-2.40.0.dist-info}/LICENSE +0 -0
- {rapidata-2.39.0.dist-info → rapidata-2.40.0.dist-info}/WHEEL +0 -0
|
@@ -29,11 +29,9 @@ from rapidata.api_client.models.participant_by_benchmark_paged_result import Par
|
|
|
29
29
|
from rapidata.api_client.models.prompt_by_benchmark_result_paged_result import PromptByBenchmarkResultPagedResult
|
|
30
30
|
from rapidata.api_client.models.query_model import QueryModel
|
|
31
31
|
from rapidata.api_client.models.sample_by_identifier_paged_result import SampleByIdentifierPagedResult
|
|
32
|
-
from rapidata.api_client.models.submit_participant_result import SubmitParticipantResult
|
|
33
32
|
from rapidata.api_client.models.submit_prompt_model import SubmitPromptModel
|
|
34
33
|
from rapidata.api_client.models.tags_by_benchmark_result import TagsByBenchmarkResult
|
|
35
34
|
from rapidata.api_client.models.update_benchmark_model import UpdateBenchmarkModel
|
|
36
|
-
from rapidata.api_client.models.update_benchmark_name_model import UpdateBenchmarkNameModel
|
|
37
35
|
|
|
38
36
|
from rapidata.api_client.api_client import ApiClient, RequestSerialized
|
|
39
37
|
from rapidata.api_client.api_response import ApiResponse
|
|
@@ -566,561 +564,6 @@ class BenchmarkApi:
|
|
|
566
564
|
|
|
567
565
|
|
|
568
566
|
|
|
569
|
-
@validate_call
|
|
570
|
-
def benchmark_benchmark_id_name_put(
|
|
571
|
-
self,
|
|
572
|
-
benchmark_id: StrictStr,
|
|
573
|
-
update_benchmark_name_model: Optional[UpdateBenchmarkNameModel] = None,
|
|
574
|
-
_request_timeout: Union[
|
|
575
|
-
None,
|
|
576
|
-
Annotated[StrictFloat, Field(gt=0)],
|
|
577
|
-
Tuple[
|
|
578
|
-
Annotated[StrictFloat, Field(gt=0)],
|
|
579
|
-
Annotated[StrictFloat, Field(gt=0)]
|
|
580
|
-
]
|
|
581
|
-
] = None,
|
|
582
|
-
_request_auth: Optional[Dict[StrictStr, Any]] = None,
|
|
583
|
-
_content_type: Optional[StrictStr] = None,
|
|
584
|
-
_headers: Optional[Dict[StrictStr, Any]] = None,
|
|
585
|
-
_host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
|
|
586
|
-
) -> None:
|
|
587
|
-
"""(Deprecated) Updates the name of a benchmark.
|
|
588
|
-
|
|
589
|
-
|
|
590
|
-
:param benchmark_id: (required)
|
|
591
|
-
:type benchmark_id: str
|
|
592
|
-
:param update_benchmark_name_model:
|
|
593
|
-
:type update_benchmark_name_model: UpdateBenchmarkNameModel
|
|
594
|
-
:param _request_timeout: timeout setting for this request. If one
|
|
595
|
-
number provided, it will be total request
|
|
596
|
-
timeout. It can also be a pair (tuple) of
|
|
597
|
-
(connection, read) timeouts.
|
|
598
|
-
:type _request_timeout: int, tuple(int, int), optional
|
|
599
|
-
:param _request_auth: set to override the auth_settings for an a single
|
|
600
|
-
request; this effectively ignores the
|
|
601
|
-
authentication in the spec for a single request.
|
|
602
|
-
:type _request_auth: dict, optional
|
|
603
|
-
:param _content_type: force content-type for the request.
|
|
604
|
-
:type _content_type: str, Optional
|
|
605
|
-
:param _headers: set to override the headers for a single
|
|
606
|
-
request; this effectively ignores the headers
|
|
607
|
-
in the spec for a single request.
|
|
608
|
-
:type _headers: dict, optional
|
|
609
|
-
:param _host_index: set to override the host_index for a single
|
|
610
|
-
request; this effectively ignores the host_index
|
|
611
|
-
in the spec for a single request.
|
|
612
|
-
:type _host_index: int, optional
|
|
613
|
-
:return: Returns the result object.
|
|
614
|
-
""" # noqa: E501
|
|
615
|
-
warnings.warn("PUT /benchmark/{benchmarkId}/name is deprecated.", DeprecationWarning)
|
|
616
|
-
|
|
617
|
-
_param = self._benchmark_benchmark_id_name_put_serialize(
|
|
618
|
-
benchmark_id=benchmark_id,
|
|
619
|
-
update_benchmark_name_model=update_benchmark_name_model,
|
|
620
|
-
_request_auth=_request_auth,
|
|
621
|
-
_content_type=_content_type,
|
|
622
|
-
_headers=_headers,
|
|
623
|
-
_host_index=_host_index
|
|
624
|
-
)
|
|
625
|
-
|
|
626
|
-
_response_types_map: Dict[str, Optional[str]] = {
|
|
627
|
-
'204': 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 benchmark_benchmark_id_name_put_with_http_info(
|
|
642
|
-
self,
|
|
643
|
-
benchmark_id: StrictStr,
|
|
644
|
-
update_benchmark_name_model: Optional[UpdateBenchmarkNameModel] = None,
|
|
645
|
-
_request_timeout: Union[
|
|
646
|
-
None,
|
|
647
|
-
Annotated[StrictFloat, Field(gt=0)],
|
|
648
|
-
Tuple[
|
|
649
|
-
Annotated[StrictFloat, Field(gt=0)],
|
|
650
|
-
Annotated[StrictFloat, Field(gt=0)]
|
|
651
|
-
]
|
|
652
|
-
] = None,
|
|
653
|
-
_request_auth: Optional[Dict[StrictStr, Any]] = None,
|
|
654
|
-
_content_type: Optional[StrictStr] = None,
|
|
655
|
-
_headers: Optional[Dict[StrictStr, Any]] = None,
|
|
656
|
-
_host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
|
|
657
|
-
) -> ApiResponse[None]:
|
|
658
|
-
"""(Deprecated) Updates the name of a benchmark.
|
|
659
|
-
|
|
660
|
-
|
|
661
|
-
:param benchmark_id: (required)
|
|
662
|
-
:type benchmark_id: str
|
|
663
|
-
:param update_benchmark_name_model:
|
|
664
|
-
:type update_benchmark_name_model: UpdateBenchmarkNameModel
|
|
665
|
-
:param _request_timeout: timeout setting for this request. If one
|
|
666
|
-
number provided, it will be total request
|
|
667
|
-
timeout. It can also be a pair (tuple) of
|
|
668
|
-
(connection, read) timeouts.
|
|
669
|
-
:type _request_timeout: int, tuple(int, int), optional
|
|
670
|
-
:param _request_auth: set to override the auth_settings for an a single
|
|
671
|
-
request; this effectively ignores the
|
|
672
|
-
authentication in the spec for a single request.
|
|
673
|
-
:type _request_auth: dict, optional
|
|
674
|
-
:param _content_type: force content-type for the request.
|
|
675
|
-
:type _content_type: str, Optional
|
|
676
|
-
:param _headers: set to override the headers for a single
|
|
677
|
-
request; this effectively ignores the headers
|
|
678
|
-
in the spec for a single request.
|
|
679
|
-
:type _headers: dict, optional
|
|
680
|
-
:param _host_index: set to override the host_index for a single
|
|
681
|
-
request; this effectively ignores the host_index
|
|
682
|
-
in the spec for a single request.
|
|
683
|
-
:type _host_index: int, optional
|
|
684
|
-
:return: Returns the result object.
|
|
685
|
-
""" # noqa: E501
|
|
686
|
-
warnings.warn("PUT /benchmark/{benchmarkId}/name is deprecated.", DeprecationWarning)
|
|
687
|
-
|
|
688
|
-
_param = self._benchmark_benchmark_id_name_put_serialize(
|
|
689
|
-
benchmark_id=benchmark_id,
|
|
690
|
-
update_benchmark_name_model=update_benchmark_name_model,
|
|
691
|
-
_request_auth=_request_auth,
|
|
692
|
-
_content_type=_content_type,
|
|
693
|
-
_headers=_headers,
|
|
694
|
-
_host_index=_host_index
|
|
695
|
-
)
|
|
696
|
-
|
|
697
|
-
_response_types_map: Dict[str, Optional[str]] = {
|
|
698
|
-
'204': None,
|
|
699
|
-
}
|
|
700
|
-
response_data = self.api_client.call_api(
|
|
701
|
-
*_param,
|
|
702
|
-
_request_timeout=_request_timeout
|
|
703
|
-
)
|
|
704
|
-
response_data.read()
|
|
705
|
-
return self.api_client.response_deserialize(
|
|
706
|
-
response_data=response_data,
|
|
707
|
-
response_types_map=_response_types_map,
|
|
708
|
-
)
|
|
709
|
-
|
|
710
|
-
|
|
711
|
-
@validate_call
|
|
712
|
-
def benchmark_benchmark_id_name_put_without_preload_content(
|
|
713
|
-
self,
|
|
714
|
-
benchmark_id: StrictStr,
|
|
715
|
-
update_benchmark_name_model: Optional[UpdateBenchmarkNameModel] = None,
|
|
716
|
-
_request_timeout: Union[
|
|
717
|
-
None,
|
|
718
|
-
Annotated[StrictFloat, Field(gt=0)],
|
|
719
|
-
Tuple[
|
|
720
|
-
Annotated[StrictFloat, Field(gt=0)],
|
|
721
|
-
Annotated[StrictFloat, Field(gt=0)]
|
|
722
|
-
]
|
|
723
|
-
] = None,
|
|
724
|
-
_request_auth: Optional[Dict[StrictStr, Any]] = None,
|
|
725
|
-
_content_type: Optional[StrictStr] = None,
|
|
726
|
-
_headers: Optional[Dict[StrictStr, Any]] = None,
|
|
727
|
-
_host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
|
|
728
|
-
) -> RESTResponseType:
|
|
729
|
-
"""(Deprecated) Updates the name of a benchmark.
|
|
730
|
-
|
|
731
|
-
|
|
732
|
-
:param benchmark_id: (required)
|
|
733
|
-
:type benchmark_id: str
|
|
734
|
-
:param update_benchmark_name_model:
|
|
735
|
-
:type update_benchmark_name_model: UpdateBenchmarkNameModel
|
|
736
|
-
:param _request_timeout: timeout setting for this request. If one
|
|
737
|
-
number provided, it will be total request
|
|
738
|
-
timeout. It can also be a pair (tuple) of
|
|
739
|
-
(connection, read) timeouts.
|
|
740
|
-
:type _request_timeout: int, tuple(int, int), optional
|
|
741
|
-
:param _request_auth: set to override the auth_settings for an a single
|
|
742
|
-
request; this effectively ignores the
|
|
743
|
-
authentication in the spec for a single request.
|
|
744
|
-
:type _request_auth: dict, optional
|
|
745
|
-
:param _content_type: force content-type for the request.
|
|
746
|
-
:type _content_type: str, Optional
|
|
747
|
-
:param _headers: set to override the headers for a single
|
|
748
|
-
request; this effectively ignores the headers
|
|
749
|
-
in the spec for a single request.
|
|
750
|
-
:type _headers: dict, optional
|
|
751
|
-
:param _host_index: set to override the host_index for a single
|
|
752
|
-
request; this effectively ignores the host_index
|
|
753
|
-
in the spec for a single request.
|
|
754
|
-
:type _host_index: int, optional
|
|
755
|
-
:return: Returns the result object.
|
|
756
|
-
""" # noqa: E501
|
|
757
|
-
warnings.warn("PUT /benchmark/{benchmarkId}/name is deprecated.", DeprecationWarning)
|
|
758
|
-
|
|
759
|
-
_param = self._benchmark_benchmark_id_name_put_serialize(
|
|
760
|
-
benchmark_id=benchmark_id,
|
|
761
|
-
update_benchmark_name_model=update_benchmark_name_model,
|
|
762
|
-
_request_auth=_request_auth,
|
|
763
|
-
_content_type=_content_type,
|
|
764
|
-
_headers=_headers,
|
|
765
|
-
_host_index=_host_index
|
|
766
|
-
)
|
|
767
|
-
|
|
768
|
-
_response_types_map: Dict[str, Optional[str]] = {
|
|
769
|
-
'204': None,
|
|
770
|
-
}
|
|
771
|
-
response_data = self.api_client.call_api(
|
|
772
|
-
*_param,
|
|
773
|
-
_request_timeout=_request_timeout
|
|
774
|
-
)
|
|
775
|
-
return response_data.response
|
|
776
|
-
|
|
777
|
-
|
|
778
|
-
def _benchmark_benchmark_id_name_put_serialize(
|
|
779
|
-
self,
|
|
780
|
-
benchmark_id,
|
|
781
|
-
update_benchmark_name_model,
|
|
782
|
-
_request_auth,
|
|
783
|
-
_content_type,
|
|
784
|
-
_headers,
|
|
785
|
-
_host_index,
|
|
786
|
-
) -> RequestSerialized:
|
|
787
|
-
|
|
788
|
-
_host = None
|
|
789
|
-
|
|
790
|
-
_collection_formats: Dict[str, str] = {
|
|
791
|
-
}
|
|
792
|
-
|
|
793
|
-
_path_params: Dict[str, str] = {}
|
|
794
|
-
_query_params: List[Tuple[str, str]] = []
|
|
795
|
-
_header_params: Dict[str, Optional[str]] = _headers or {}
|
|
796
|
-
_form_params: List[Tuple[str, str]] = []
|
|
797
|
-
_files: Dict[
|
|
798
|
-
str, Union[str, bytes, List[str], List[bytes], List[Tuple[str, bytes]]]
|
|
799
|
-
] = {}
|
|
800
|
-
_body_params: Optional[bytes] = None
|
|
801
|
-
|
|
802
|
-
# process the path parameters
|
|
803
|
-
if benchmark_id is not None:
|
|
804
|
-
_path_params['benchmarkId'] = benchmark_id
|
|
805
|
-
# process the query parameters
|
|
806
|
-
# process the header parameters
|
|
807
|
-
# process the form parameters
|
|
808
|
-
# process the body parameter
|
|
809
|
-
if update_benchmark_name_model is not None:
|
|
810
|
-
_body_params = update_benchmark_name_model
|
|
811
|
-
|
|
812
|
-
|
|
813
|
-
|
|
814
|
-
# set the HTTP header `Content-Type`
|
|
815
|
-
if _content_type:
|
|
816
|
-
_header_params['Content-Type'] = _content_type
|
|
817
|
-
else:
|
|
818
|
-
_default_content_type = (
|
|
819
|
-
self.api_client.select_header_content_type(
|
|
820
|
-
[
|
|
821
|
-
'application/json',
|
|
822
|
-
'text/json',
|
|
823
|
-
'application/*+json'
|
|
824
|
-
]
|
|
825
|
-
)
|
|
826
|
-
)
|
|
827
|
-
if _default_content_type is not None:
|
|
828
|
-
_header_params['Content-Type'] = _default_content_type
|
|
829
|
-
|
|
830
|
-
# authentication setting
|
|
831
|
-
_auth_settings: List[str] = [
|
|
832
|
-
'bearer',
|
|
833
|
-
'oauth2'
|
|
834
|
-
]
|
|
835
|
-
|
|
836
|
-
return self.api_client.param_serialize(
|
|
837
|
-
method='PUT',
|
|
838
|
-
resource_path='/benchmark/{benchmarkId}/name',
|
|
839
|
-
path_params=_path_params,
|
|
840
|
-
query_params=_query_params,
|
|
841
|
-
header_params=_header_params,
|
|
842
|
-
body=_body_params,
|
|
843
|
-
post_params=_form_params,
|
|
844
|
-
files=_files,
|
|
845
|
-
auth_settings=_auth_settings,
|
|
846
|
-
collection_formats=_collection_formats,
|
|
847
|
-
_host=_host,
|
|
848
|
-
_request_auth=_request_auth
|
|
849
|
-
)
|
|
850
|
-
|
|
851
|
-
|
|
852
|
-
|
|
853
|
-
|
|
854
|
-
@validate_call
|
|
855
|
-
def benchmark_benchmark_id_participant_participant_id_delete(
|
|
856
|
-
self,
|
|
857
|
-
participant_id: StrictStr,
|
|
858
|
-
benchmark_id: StrictStr,
|
|
859
|
-
_request_timeout: Union[
|
|
860
|
-
None,
|
|
861
|
-
Annotated[StrictFloat, Field(gt=0)],
|
|
862
|
-
Tuple[
|
|
863
|
-
Annotated[StrictFloat, Field(gt=0)],
|
|
864
|
-
Annotated[StrictFloat, Field(gt=0)]
|
|
865
|
-
]
|
|
866
|
-
] = None,
|
|
867
|
-
_request_auth: Optional[Dict[StrictStr, Any]] = None,
|
|
868
|
-
_content_type: Optional[StrictStr] = None,
|
|
869
|
-
_headers: Optional[Dict[StrictStr, Any]] = None,
|
|
870
|
-
_host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
|
|
871
|
-
) -> None:
|
|
872
|
-
"""(Deprecated) Deletes a participant on a benchmark.
|
|
873
|
-
|
|
874
|
-
|
|
875
|
-
:param participant_id: (required)
|
|
876
|
-
:type participant_id: str
|
|
877
|
-
:param benchmark_id: (required)
|
|
878
|
-
:type benchmark_id: str
|
|
879
|
-
:param _request_timeout: timeout setting for this request. If one
|
|
880
|
-
number provided, it will be total request
|
|
881
|
-
timeout. It can also be a pair (tuple) of
|
|
882
|
-
(connection, read) timeouts.
|
|
883
|
-
:type _request_timeout: int, tuple(int, int), optional
|
|
884
|
-
:param _request_auth: set to override the auth_settings for an a single
|
|
885
|
-
request; this effectively ignores the
|
|
886
|
-
authentication in the spec for a single request.
|
|
887
|
-
:type _request_auth: dict, optional
|
|
888
|
-
:param _content_type: force content-type for the request.
|
|
889
|
-
:type _content_type: str, Optional
|
|
890
|
-
:param _headers: set to override the headers for a single
|
|
891
|
-
request; this effectively ignores the headers
|
|
892
|
-
in the spec for a single request.
|
|
893
|
-
:type _headers: dict, optional
|
|
894
|
-
:param _host_index: set to override the host_index for a single
|
|
895
|
-
request; this effectively ignores the host_index
|
|
896
|
-
in the spec for a single request.
|
|
897
|
-
:type _host_index: int, optional
|
|
898
|
-
:return: Returns the result object.
|
|
899
|
-
""" # noqa: E501
|
|
900
|
-
warnings.warn("DELETE /benchmark/{benchmarkId}/participant/{participantId} is deprecated.", DeprecationWarning)
|
|
901
|
-
|
|
902
|
-
_param = self._benchmark_benchmark_id_participant_participant_id_delete_serialize(
|
|
903
|
-
participant_id=participant_id,
|
|
904
|
-
benchmark_id=benchmark_id,
|
|
905
|
-
_request_auth=_request_auth,
|
|
906
|
-
_content_type=_content_type,
|
|
907
|
-
_headers=_headers,
|
|
908
|
-
_host_index=_host_index
|
|
909
|
-
)
|
|
910
|
-
|
|
911
|
-
_response_types_map: Dict[str, Optional[str]] = {
|
|
912
|
-
'204': None,
|
|
913
|
-
}
|
|
914
|
-
response_data = self.api_client.call_api(
|
|
915
|
-
*_param,
|
|
916
|
-
_request_timeout=_request_timeout
|
|
917
|
-
)
|
|
918
|
-
response_data.read()
|
|
919
|
-
return self.api_client.response_deserialize(
|
|
920
|
-
response_data=response_data,
|
|
921
|
-
response_types_map=_response_types_map,
|
|
922
|
-
).data
|
|
923
|
-
|
|
924
|
-
|
|
925
|
-
@validate_call
|
|
926
|
-
def benchmark_benchmark_id_participant_participant_id_delete_with_http_info(
|
|
927
|
-
self,
|
|
928
|
-
participant_id: StrictStr,
|
|
929
|
-
benchmark_id: StrictStr,
|
|
930
|
-
_request_timeout: Union[
|
|
931
|
-
None,
|
|
932
|
-
Annotated[StrictFloat, Field(gt=0)],
|
|
933
|
-
Tuple[
|
|
934
|
-
Annotated[StrictFloat, Field(gt=0)],
|
|
935
|
-
Annotated[StrictFloat, Field(gt=0)]
|
|
936
|
-
]
|
|
937
|
-
] = None,
|
|
938
|
-
_request_auth: Optional[Dict[StrictStr, Any]] = None,
|
|
939
|
-
_content_type: Optional[StrictStr] = None,
|
|
940
|
-
_headers: Optional[Dict[StrictStr, Any]] = None,
|
|
941
|
-
_host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
|
|
942
|
-
) -> ApiResponse[None]:
|
|
943
|
-
"""(Deprecated) Deletes a participant on a benchmark.
|
|
944
|
-
|
|
945
|
-
|
|
946
|
-
:param participant_id: (required)
|
|
947
|
-
:type participant_id: str
|
|
948
|
-
:param benchmark_id: (required)
|
|
949
|
-
:type benchmark_id: str
|
|
950
|
-
:param _request_timeout: timeout setting for this request. If one
|
|
951
|
-
number provided, it will be total request
|
|
952
|
-
timeout. It can also be a pair (tuple) of
|
|
953
|
-
(connection, read) timeouts.
|
|
954
|
-
:type _request_timeout: int, tuple(int, int), optional
|
|
955
|
-
:param _request_auth: set to override the auth_settings for an a single
|
|
956
|
-
request; this effectively ignores the
|
|
957
|
-
authentication in the spec for a single request.
|
|
958
|
-
:type _request_auth: dict, optional
|
|
959
|
-
:param _content_type: force content-type for the request.
|
|
960
|
-
:type _content_type: str, Optional
|
|
961
|
-
:param _headers: set to override the headers for a single
|
|
962
|
-
request; this effectively ignores the headers
|
|
963
|
-
in the spec for a single request.
|
|
964
|
-
:type _headers: dict, optional
|
|
965
|
-
:param _host_index: set to override the host_index for a single
|
|
966
|
-
request; this effectively ignores the host_index
|
|
967
|
-
in the spec for a single request.
|
|
968
|
-
:type _host_index: int, optional
|
|
969
|
-
:return: Returns the result object.
|
|
970
|
-
""" # noqa: E501
|
|
971
|
-
warnings.warn("DELETE /benchmark/{benchmarkId}/participant/{participantId} is deprecated.", DeprecationWarning)
|
|
972
|
-
|
|
973
|
-
_param = self._benchmark_benchmark_id_participant_participant_id_delete_serialize(
|
|
974
|
-
participant_id=participant_id,
|
|
975
|
-
benchmark_id=benchmark_id,
|
|
976
|
-
_request_auth=_request_auth,
|
|
977
|
-
_content_type=_content_type,
|
|
978
|
-
_headers=_headers,
|
|
979
|
-
_host_index=_host_index
|
|
980
|
-
)
|
|
981
|
-
|
|
982
|
-
_response_types_map: Dict[str, Optional[str]] = {
|
|
983
|
-
'204': None,
|
|
984
|
-
}
|
|
985
|
-
response_data = self.api_client.call_api(
|
|
986
|
-
*_param,
|
|
987
|
-
_request_timeout=_request_timeout
|
|
988
|
-
)
|
|
989
|
-
response_data.read()
|
|
990
|
-
return self.api_client.response_deserialize(
|
|
991
|
-
response_data=response_data,
|
|
992
|
-
response_types_map=_response_types_map,
|
|
993
|
-
)
|
|
994
|
-
|
|
995
|
-
|
|
996
|
-
@validate_call
|
|
997
|
-
def benchmark_benchmark_id_participant_participant_id_delete_without_preload_content(
|
|
998
|
-
self,
|
|
999
|
-
participant_id: StrictStr,
|
|
1000
|
-
benchmark_id: StrictStr,
|
|
1001
|
-
_request_timeout: Union[
|
|
1002
|
-
None,
|
|
1003
|
-
Annotated[StrictFloat, Field(gt=0)],
|
|
1004
|
-
Tuple[
|
|
1005
|
-
Annotated[StrictFloat, Field(gt=0)],
|
|
1006
|
-
Annotated[StrictFloat, Field(gt=0)]
|
|
1007
|
-
]
|
|
1008
|
-
] = None,
|
|
1009
|
-
_request_auth: Optional[Dict[StrictStr, Any]] = None,
|
|
1010
|
-
_content_type: Optional[StrictStr] = None,
|
|
1011
|
-
_headers: Optional[Dict[StrictStr, Any]] = None,
|
|
1012
|
-
_host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
|
|
1013
|
-
) -> RESTResponseType:
|
|
1014
|
-
"""(Deprecated) Deletes a participant on a benchmark.
|
|
1015
|
-
|
|
1016
|
-
|
|
1017
|
-
:param participant_id: (required)
|
|
1018
|
-
:type participant_id: str
|
|
1019
|
-
:param benchmark_id: (required)
|
|
1020
|
-
:type benchmark_id: str
|
|
1021
|
-
:param _request_timeout: timeout setting for this request. If one
|
|
1022
|
-
number provided, it will be total request
|
|
1023
|
-
timeout. It can also be a pair (tuple) of
|
|
1024
|
-
(connection, read) timeouts.
|
|
1025
|
-
:type _request_timeout: int, tuple(int, int), optional
|
|
1026
|
-
:param _request_auth: set to override the auth_settings for an a single
|
|
1027
|
-
request; this effectively ignores the
|
|
1028
|
-
authentication in the spec for a single request.
|
|
1029
|
-
:type _request_auth: dict, optional
|
|
1030
|
-
:param _content_type: force content-type for the request.
|
|
1031
|
-
:type _content_type: str, Optional
|
|
1032
|
-
:param _headers: set to override the headers for a single
|
|
1033
|
-
request; this effectively ignores the headers
|
|
1034
|
-
in the spec for a single request.
|
|
1035
|
-
:type _headers: dict, optional
|
|
1036
|
-
:param _host_index: set to override the host_index for a single
|
|
1037
|
-
request; this effectively ignores the host_index
|
|
1038
|
-
in the spec for a single request.
|
|
1039
|
-
:type _host_index: int, optional
|
|
1040
|
-
:return: Returns the result object.
|
|
1041
|
-
""" # noqa: E501
|
|
1042
|
-
warnings.warn("DELETE /benchmark/{benchmarkId}/participant/{participantId} is deprecated.", DeprecationWarning)
|
|
1043
|
-
|
|
1044
|
-
_param = self._benchmark_benchmark_id_participant_participant_id_delete_serialize(
|
|
1045
|
-
participant_id=participant_id,
|
|
1046
|
-
benchmark_id=benchmark_id,
|
|
1047
|
-
_request_auth=_request_auth,
|
|
1048
|
-
_content_type=_content_type,
|
|
1049
|
-
_headers=_headers,
|
|
1050
|
-
_host_index=_host_index
|
|
1051
|
-
)
|
|
1052
|
-
|
|
1053
|
-
_response_types_map: Dict[str, Optional[str]] = {
|
|
1054
|
-
'204': None,
|
|
1055
|
-
}
|
|
1056
|
-
response_data = self.api_client.call_api(
|
|
1057
|
-
*_param,
|
|
1058
|
-
_request_timeout=_request_timeout
|
|
1059
|
-
)
|
|
1060
|
-
return response_data.response
|
|
1061
|
-
|
|
1062
|
-
|
|
1063
|
-
def _benchmark_benchmark_id_participant_participant_id_delete_serialize(
|
|
1064
|
-
self,
|
|
1065
|
-
participant_id,
|
|
1066
|
-
benchmark_id,
|
|
1067
|
-
_request_auth,
|
|
1068
|
-
_content_type,
|
|
1069
|
-
_headers,
|
|
1070
|
-
_host_index,
|
|
1071
|
-
) -> RequestSerialized:
|
|
1072
|
-
|
|
1073
|
-
_host = None
|
|
1074
|
-
|
|
1075
|
-
_collection_formats: Dict[str, str] = {
|
|
1076
|
-
}
|
|
1077
|
-
|
|
1078
|
-
_path_params: Dict[str, str] = {}
|
|
1079
|
-
_query_params: List[Tuple[str, str]] = []
|
|
1080
|
-
_header_params: Dict[str, Optional[str]] = _headers or {}
|
|
1081
|
-
_form_params: List[Tuple[str, str]] = []
|
|
1082
|
-
_files: Dict[
|
|
1083
|
-
str, Union[str, bytes, List[str], List[bytes], List[Tuple[str, bytes]]]
|
|
1084
|
-
] = {}
|
|
1085
|
-
_body_params: Optional[bytes] = None
|
|
1086
|
-
|
|
1087
|
-
# process the path parameters
|
|
1088
|
-
if participant_id is not None:
|
|
1089
|
-
_path_params['participantId'] = participant_id
|
|
1090
|
-
if benchmark_id is not None:
|
|
1091
|
-
_path_params['benchmarkId'] = benchmark_id
|
|
1092
|
-
# process the query parameters
|
|
1093
|
-
# process the header parameters
|
|
1094
|
-
# process the form parameters
|
|
1095
|
-
# process the body parameter
|
|
1096
|
-
|
|
1097
|
-
|
|
1098
|
-
|
|
1099
|
-
|
|
1100
|
-
# authentication setting
|
|
1101
|
-
_auth_settings: List[str] = [
|
|
1102
|
-
'bearer',
|
|
1103
|
-
'oauth2'
|
|
1104
|
-
]
|
|
1105
|
-
|
|
1106
|
-
return self.api_client.param_serialize(
|
|
1107
|
-
method='DELETE',
|
|
1108
|
-
resource_path='/benchmark/{benchmarkId}/participant/{participantId}',
|
|
1109
|
-
path_params=_path_params,
|
|
1110
|
-
query_params=_query_params,
|
|
1111
|
-
header_params=_header_params,
|
|
1112
|
-
body=_body_params,
|
|
1113
|
-
post_params=_form_params,
|
|
1114
|
-
files=_files,
|
|
1115
|
-
auth_settings=_auth_settings,
|
|
1116
|
-
collection_formats=_collection_formats,
|
|
1117
|
-
_host=_host,
|
|
1118
|
-
_request_auth=_request_auth
|
|
1119
|
-
)
|
|
1120
|
-
|
|
1121
|
-
|
|
1122
|
-
|
|
1123
|
-
|
|
1124
567
|
@validate_call
|
|
1125
568
|
def benchmark_benchmark_id_participants_get(
|
|
1126
569
|
self,
|
|
@@ -1382,285 +825,6 @@ class BenchmarkApi:
|
|
|
1382
825
|
|
|
1383
826
|
|
|
1384
827
|
|
|
1385
|
-
@validate_call
|
|
1386
|
-
def benchmark_benchmark_id_participants_participant_id_submit_post(
|
|
1387
|
-
self,
|
|
1388
|
-
benchmark_id: StrictStr,
|
|
1389
|
-
participant_id: StrictStr,
|
|
1390
|
-
_request_timeout: Union[
|
|
1391
|
-
None,
|
|
1392
|
-
Annotated[StrictFloat, Field(gt=0)],
|
|
1393
|
-
Tuple[
|
|
1394
|
-
Annotated[StrictFloat, Field(gt=0)],
|
|
1395
|
-
Annotated[StrictFloat, Field(gt=0)]
|
|
1396
|
-
]
|
|
1397
|
-
] = None,
|
|
1398
|
-
_request_auth: Optional[Dict[StrictStr, Any]] = None,
|
|
1399
|
-
_content_type: Optional[StrictStr] = None,
|
|
1400
|
-
_headers: Optional[Dict[StrictStr, Any]] = None,
|
|
1401
|
-
_host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
|
|
1402
|
-
) -> SubmitParticipantResult:
|
|
1403
|
-
"""(Deprecated) Submits a participant to a benchmark.
|
|
1404
|
-
|
|
1405
|
-
|
|
1406
|
-
:param benchmark_id: (required)
|
|
1407
|
-
:type benchmark_id: str
|
|
1408
|
-
:param participant_id: (required)
|
|
1409
|
-
:type participant_id: str
|
|
1410
|
-
:param _request_timeout: timeout setting for this request. If one
|
|
1411
|
-
number provided, it will be total request
|
|
1412
|
-
timeout. It can also be a pair (tuple) of
|
|
1413
|
-
(connection, read) timeouts.
|
|
1414
|
-
:type _request_timeout: int, tuple(int, int), optional
|
|
1415
|
-
:param _request_auth: set to override the auth_settings for an a single
|
|
1416
|
-
request; this effectively ignores the
|
|
1417
|
-
authentication in the spec for a single request.
|
|
1418
|
-
:type _request_auth: dict, optional
|
|
1419
|
-
:param _content_type: force content-type for the request.
|
|
1420
|
-
:type _content_type: str, Optional
|
|
1421
|
-
:param _headers: set to override the headers for a single
|
|
1422
|
-
request; this effectively ignores the headers
|
|
1423
|
-
in the spec for a single request.
|
|
1424
|
-
:type _headers: dict, optional
|
|
1425
|
-
:param _host_index: set to override the host_index for a single
|
|
1426
|
-
request; this effectively ignores the host_index
|
|
1427
|
-
in the spec for a single request.
|
|
1428
|
-
:type _host_index: int, optional
|
|
1429
|
-
:return: Returns the result object.
|
|
1430
|
-
""" # noqa: E501
|
|
1431
|
-
warnings.warn("POST /benchmark/{benchmarkId}/participants/{participantId}/submit is deprecated.", DeprecationWarning)
|
|
1432
|
-
|
|
1433
|
-
_param = self._benchmark_benchmark_id_participants_participant_id_submit_post_serialize(
|
|
1434
|
-
benchmark_id=benchmark_id,
|
|
1435
|
-
participant_id=participant_id,
|
|
1436
|
-
_request_auth=_request_auth,
|
|
1437
|
-
_content_type=_content_type,
|
|
1438
|
-
_headers=_headers,
|
|
1439
|
-
_host_index=_host_index
|
|
1440
|
-
)
|
|
1441
|
-
|
|
1442
|
-
_response_types_map: Dict[str, Optional[str]] = {
|
|
1443
|
-
'200': "SubmitParticipantResult",
|
|
1444
|
-
}
|
|
1445
|
-
response_data = self.api_client.call_api(
|
|
1446
|
-
*_param,
|
|
1447
|
-
_request_timeout=_request_timeout
|
|
1448
|
-
)
|
|
1449
|
-
response_data.read()
|
|
1450
|
-
return self.api_client.response_deserialize(
|
|
1451
|
-
response_data=response_data,
|
|
1452
|
-
response_types_map=_response_types_map,
|
|
1453
|
-
).data
|
|
1454
|
-
|
|
1455
|
-
|
|
1456
|
-
@validate_call
|
|
1457
|
-
def benchmark_benchmark_id_participants_participant_id_submit_post_with_http_info(
|
|
1458
|
-
self,
|
|
1459
|
-
benchmark_id: StrictStr,
|
|
1460
|
-
participant_id: StrictStr,
|
|
1461
|
-
_request_timeout: Union[
|
|
1462
|
-
None,
|
|
1463
|
-
Annotated[StrictFloat, Field(gt=0)],
|
|
1464
|
-
Tuple[
|
|
1465
|
-
Annotated[StrictFloat, Field(gt=0)],
|
|
1466
|
-
Annotated[StrictFloat, Field(gt=0)]
|
|
1467
|
-
]
|
|
1468
|
-
] = None,
|
|
1469
|
-
_request_auth: Optional[Dict[StrictStr, Any]] = None,
|
|
1470
|
-
_content_type: Optional[StrictStr] = None,
|
|
1471
|
-
_headers: Optional[Dict[StrictStr, Any]] = None,
|
|
1472
|
-
_host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
|
|
1473
|
-
) -> ApiResponse[SubmitParticipantResult]:
|
|
1474
|
-
"""(Deprecated) Submits a participant to a benchmark.
|
|
1475
|
-
|
|
1476
|
-
|
|
1477
|
-
:param benchmark_id: (required)
|
|
1478
|
-
:type benchmark_id: str
|
|
1479
|
-
:param participant_id: (required)
|
|
1480
|
-
:type participant_id: str
|
|
1481
|
-
:param _request_timeout: timeout setting for this request. If one
|
|
1482
|
-
number provided, it will be total request
|
|
1483
|
-
timeout. It can also be a pair (tuple) of
|
|
1484
|
-
(connection, read) timeouts.
|
|
1485
|
-
:type _request_timeout: int, tuple(int, int), optional
|
|
1486
|
-
:param _request_auth: set to override the auth_settings for an a single
|
|
1487
|
-
request; this effectively ignores the
|
|
1488
|
-
authentication in the spec for a single request.
|
|
1489
|
-
:type _request_auth: dict, optional
|
|
1490
|
-
:param _content_type: force content-type for the request.
|
|
1491
|
-
:type _content_type: str, Optional
|
|
1492
|
-
:param _headers: set to override the headers for a single
|
|
1493
|
-
request; this effectively ignores the headers
|
|
1494
|
-
in the spec for a single request.
|
|
1495
|
-
:type _headers: dict, optional
|
|
1496
|
-
:param _host_index: set to override the host_index for a single
|
|
1497
|
-
request; this effectively ignores the host_index
|
|
1498
|
-
in the spec for a single request.
|
|
1499
|
-
:type _host_index: int, optional
|
|
1500
|
-
:return: Returns the result object.
|
|
1501
|
-
""" # noqa: E501
|
|
1502
|
-
warnings.warn("POST /benchmark/{benchmarkId}/participants/{participantId}/submit is deprecated.", DeprecationWarning)
|
|
1503
|
-
|
|
1504
|
-
_param = self._benchmark_benchmark_id_participants_participant_id_submit_post_serialize(
|
|
1505
|
-
benchmark_id=benchmark_id,
|
|
1506
|
-
participant_id=participant_id,
|
|
1507
|
-
_request_auth=_request_auth,
|
|
1508
|
-
_content_type=_content_type,
|
|
1509
|
-
_headers=_headers,
|
|
1510
|
-
_host_index=_host_index
|
|
1511
|
-
)
|
|
1512
|
-
|
|
1513
|
-
_response_types_map: Dict[str, Optional[str]] = {
|
|
1514
|
-
'200': "SubmitParticipantResult",
|
|
1515
|
-
}
|
|
1516
|
-
response_data = self.api_client.call_api(
|
|
1517
|
-
*_param,
|
|
1518
|
-
_request_timeout=_request_timeout
|
|
1519
|
-
)
|
|
1520
|
-
response_data.read()
|
|
1521
|
-
return self.api_client.response_deserialize(
|
|
1522
|
-
response_data=response_data,
|
|
1523
|
-
response_types_map=_response_types_map,
|
|
1524
|
-
)
|
|
1525
|
-
|
|
1526
|
-
|
|
1527
|
-
@validate_call
|
|
1528
|
-
def benchmark_benchmark_id_participants_participant_id_submit_post_without_preload_content(
|
|
1529
|
-
self,
|
|
1530
|
-
benchmark_id: StrictStr,
|
|
1531
|
-
participant_id: StrictStr,
|
|
1532
|
-
_request_timeout: Union[
|
|
1533
|
-
None,
|
|
1534
|
-
Annotated[StrictFloat, Field(gt=0)],
|
|
1535
|
-
Tuple[
|
|
1536
|
-
Annotated[StrictFloat, Field(gt=0)],
|
|
1537
|
-
Annotated[StrictFloat, Field(gt=0)]
|
|
1538
|
-
]
|
|
1539
|
-
] = None,
|
|
1540
|
-
_request_auth: Optional[Dict[StrictStr, Any]] = None,
|
|
1541
|
-
_content_type: Optional[StrictStr] = None,
|
|
1542
|
-
_headers: Optional[Dict[StrictStr, Any]] = None,
|
|
1543
|
-
_host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
|
|
1544
|
-
) -> RESTResponseType:
|
|
1545
|
-
"""(Deprecated) Submits a participant to a benchmark.
|
|
1546
|
-
|
|
1547
|
-
|
|
1548
|
-
:param benchmark_id: (required)
|
|
1549
|
-
:type benchmark_id: str
|
|
1550
|
-
:param participant_id: (required)
|
|
1551
|
-
:type participant_id: str
|
|
1552
|
-
:param _request_timeout: timeout setting for this request. If one
|
|
1553
|
-
number provided, it will be total request
|
|
1554
|
-
timeout. It can also be a pair (tuple) of
|
|
1555
|
-
(connection, read) timeouts.
|
|
1556
|
-
:type _request_timeout: int, tuple(int, int), optional
|
|
1557
|
-
:param _request_auth: set to override the auth_settings for an a single
|
|
1558
|
-
request; this effectively ignores the
|
|
1559
|
-
authentication in the spec for a single request.
|
|
1560
|
-
:type _request_auth: dict, optional
|
|
1561
|
-
:param _content_type: force content-type for the request.
|
|
1562
|
-
:type _content_type: str, Optional
|
|
1563
|
-
:param _headers: set to override the headers for a single
|
|
1564
|
-
request; this effectively ignores the headers
|
|
1565
|
-
in the spec for a single request.
|
|
1566
|
-
:type _headers: dict, optional
|
|
1567
|
-
:param _host_index: set to override the host_index for a single
|
|
1568
|
-
request; this effectively ignores the host_index
|
|
1569
|
-
in the spec for a single request.
|
|
1570
|
-
:type _host_index: int, optional
|
|
1571
|
-
:return: Returns the result object.
|
|
1572
|
-
""" # noqa: E501
|
|
1573
|
-
warnings.warn("POST /benchmark/{benchmarkId}/participants/{participantId}/submit is deprecated.", DeprecationWarning)
|
|
1574
|
-
|
|
1575
|
-
_param = self._benchmark_benchmark_id_participants_participant_id_submit_post_serialize(
|
|
1576
|
-
benchmark_id=benchmark_id,
|
|
1577
|
-
participant_id=participant_id,
|
|
1578
|
-
_request_auth=_request_auth,
|
|
1579
|
-
_content_type=_content_type,
|
|
1580
|
-
_headers=_headers,
|
|
1581
|
-
_host_index=_host_index
|
|
1582
|
-
)
|
|
1583
|
-
|
|
1584
|
-
_response_types_map: Dict[str, Optional[str]] = {
|
|
1585
|
-
'200': "SubmitParticipantResult",
|
|
1586
|
-
}
|
|
1587
|
-
response_data = self.api_client.call_api(
|
|
1588
|
-
*_param,
|
|
1589
|
-
_request_timeout=_request_timeout
|
|
1590
|
-
)
|
|
1591
|
-
return response_data.response
|
|
1592
|
-
|
|
1593
|
-
|
|
1594
|
-
def _benchmark_benchmark_id_participants_participant_id_submit_post_serialize(
|
|
1595
|
-
self,
|
|
1596
|
-
benchmark_id,
|
|
1597
|
-
participant_id,
|
|
1598
|
-
_request_auth,
|
|
1599
|
-
_content_type,
|
|
1600
|
-
_headers,
|
|
1601
|
-
_host_index,
|
|
1602
|
-
) -> RequestSerialized:
|
|
1603
|
-
|
|
1604
|
-
_host = None
|
|
1605
|
-
|
|
1606
|
-
_collection_formats: Dict[str, str] = {
|
|
1607
|
-
}
|
|
1608
|
-
|
|
1609
|
-
_path_params: Dict[str, str] = {}
|
|
1610
|
-
_query_params: List[Tuple[str, str]] = []
|
|
1611
|
-
_header_params: Dict[str, Optional[str]] = _headers or {}
|
|
1612
|
-
_form_params: List[Tuple[str, str]] = []
|
|
1613
|
-
_files: Dict[
|
|
1614
|
-
str, Union[str, bytes, List[str], List[bytes], List[Tuple[str, bytes]]]
|
|
1615
|
-
] = {}
|
|
1616
|
-
_body_params: Optional[bytes] = None
|
|
1617
|
-
|
|
1618
|
-
# process the path parameters
|
|
1619
|
-
if benchmark_id is not None:
|
|
1620
|
-
_path_params['benchmarkId'] = benchmark_id
|
|
1621
|
-
if participant_id is not None:
|
|
1622
|
-
_path_params['participantId'] = participant_id
|
|
1623
|
-
# process the query parameters
|
|
1624
|
-
# process the header parameters
|
|
1625
|
-
# process the form parameters
|
|
1626
|
-
# process the body parameter
|
|
1627
|
-
|
|
1628
|
-
|
|
1629
|
-
# set the HTTP header `Accept`
|
|
1630
|
-
if 'Accept' not in _header_params:
|
|
1631
|
-
_header_params['Accept'] = self.api_client.select_header_accept(
|
|
1632
|
-
[
|
|
1633
|
-
'text/plain',
|
|
1634
|
-
'application/json',
|
|
1635
|
-
'text/json'
|
|
1636
|
-
]
|
|
1637
|
-
)
|
|
1638
|
-
|
|
1639
|
-
|
|
1640
|
-
# authentication setting
|
|
1641
|
-
_auth_settings: List[str] = [
|
|
1642
|
-
'bearer',
|
|
1643
|
-
'oauth2'
|
|
1644
|
-
]
|
|
1645
|
-
|
|
1646
|
-
return self.api_client.param_serialize(
|
|
1647
|
-
method='POST',
|
|
1648
|
-
resource_path='/benchmark/{benchmarkId}/participants/{participantId}/submit',
|
|
1649
|
-
path_params=_path_params,
|
|
1650
|
-
query_params=_query_params,
|
|
1651
|
-
header_params=_header_params,
|
|
1652
|
-
body=_body_params,
|
|
1653
|
-
post_params=_form_params,
|
|
1654
|
-
files=_files,
|
|
1655
|
-
auth_settings=_auth_settings,
|
|
1656
|
-
collection_formats=_collection_formats,
|
|
1657
|
-
_host=_host,
|
|
1658
|
-
_request_auth=_request_auth
|
|
1659
|
-
)
|
|
1660
|
-
|
|
1661
|
-
|
|
1662
|
-
|
|
1663
|
-
|
|
1664
828
|
@validate_call
|
|
1665
829
|
def benchmark_benchmark_id_participants_post(
|
|
1666
830
|
self,
|