rapidata 2.28.4__py3-none-any.whl → 2.28.5__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 +1 -1
- rapidata/api_client/__init__.py +3 -9
- rapidata/api_client/api/campaign_api.py +0 -780
- rapidata/api_client/api/coco_api.py +0 -571
- rapidata/api_client/api/datapoint_api.py +0 -524
- rapidata/api_client/api/dataset_api.py +579 -2276
- rapidata/api_client/api/feedback_api.py +0 -270
- rapidata/api_client/api/identity_api.py +74 -888
- rapidata/api_client/api/leaderboard_api.py +267 -6
- rapidata/api_client/api/order_api.py +617 -5692
- rapidata/api_client/api/pipeline_api.py +31 -334
- rapidata/api_client/api/validation_set_api.py +469 -3356
- rapidata/api_client/api/workflow_api.py +0 -799
- rapidata/api_client/models/__init__.py +3 -9
- rapidata/api_client/models/add_validation_rapid_model.py +1 -3
- rapidata/api_client/models/add_validation_text_rapid_model.py +1 -3
- rapidata/api_client/models/clone_order_model.py +2 -4
- rapidata/api_client/models/get_participant_by_id_result.py +6 -2
- rapidata/api_client/models/get_validation_rapids_result.py +3 -3
- rapidata/api_client/models/get_workflow_results_result.py +3 -3
- rapidata/api_client/models/participant_by_leaderboard.py +6 -2
- rapidata/api_client/models/pipeline_id_workflow_config_put_request.py +140 -0
- rapidata/api_client/models/rapid_model.py +3 -3
- rapidata/api_client/models/simple_workflow_config.py +3 -3
- rapidata/api_client/models/simple_workflow_model1.py +3 -3
- rapidata/api_client/models/submit_coco_model.py +1 -3
- rapidata/api_client/models/validation_set_zip_post_request_blueprint.py +252 -0
- rapidata/api_client_README.md +6 -61
- rapidata/rapidata_client/order/rapidata_order.py +1 -1
- rapidata/rapidata_client/validation/rapidata_validation_set.py +1 -1
- rapidata/rapidata_client/validation/rapids/rapids.py +4 -6
- {rapidata-2.28.4.dist-info → rapidata-2.28.5.dist-info}/METADATA +1 -1
- {rapidata-2.28.4.dist-info → rapidata-2.28.5.dist-info}/RECORD +35 -33
- {rapidata-2.28.4.dist-info → rapidata-2.28.5.dist-info}/LICENSE +0 -0
- {rapidata-2.28.4.dist-info → rapidata-2.28.5.dist-info}/WHEEL +0 -0
|
@@ -619,574 +619,3 @@ class CocoApi:
|
|
|
619
619
|
)
|
|
620
620
|
|
|
621
621
|
|
|
622
|
-
|
|
623
|
-
|
|
624
|
-
@validate_call
|
|
625
|
-
def coco_submit_post(
|
|
626
|
-
self,
|
|
627
|
-
submit_coco_model: Annotated[Optional[SubmitCocoModel], Field(description="The model containing the information needed to create the validation set.")] = None,
|
|
628
|
-
_request_timeout: Union[
|
|
629
|
-
None,
|
|
630
|
-
Annotated[StrictFloat, Field(gt=0)],
|
|
631
|
-
Tuple[
|
|
632
|
-
Annotated[StrictFloat, Field(gt=0)],
|
|
633
|
-
Annotated[StrictFloat, Field(gt=0)]
|
|
634
|
-
]
|
|
635
|
-
] = None,
|
|
636
|
-
_request_auth: Optional[Dict[StrictStr, Any]] = None,
|
|
637
|
-
_content_type: Optional[StrictStr] = None,
|
|
638
|
-
_headers: Optional[Dict[StrictStr, Any]] = None,
|
|
639
|
-
_host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
|
|
640
|
-
) -> SubmitCocoResult:
|
|
641
|
-
"""(Deprecated) Creates a new validation set based on a previously uploaded CoCo set.
|
|
642
|
-
|
|
643
|
-
|
|
644
|
-
:param submit_coco_model: The model containing the information needed to create the validation set.
|
|
645
|
-
:type submit_coco_model: SubmitCocoModel
|
|
646
|
-
:param _request_timeout: timeout setting for this request. If one
|
|
647
|
-
number provided, it will be total request
|
|
648
|
-
timeout. It can also be a pair (tuple) of
|
|
649
|
-
(connection, read) timeouts.
|
|
650
|
-
:type _request_timeout: int, tuple(int, int), optional
|
|
651
|
-
:param _request_auth: set to override the auth_settings for an a single
|
|
652
|
-
request; this effectively ignores the
|
|
653
|
-
authentication in the spec for a single request.
|
|
654
|
-
:type _request_auth: dict, optional
|
|
655
|
-
:param _content_type: force content-type for the request.
|
|
656
|
-
:type _content_type: str, Optional
|
|
657
|
-
:param _headers: set to override the headers for a single
|
|
658
|
-
request; this effectively ignores the headers
|
|
659
|
-
in the spec for a single request.
|
|
660
|
-
:type _headers: dict, optional
|
|
661
|
-
:param _host_index: set to override the host_index for a single
|
|
662
|
-
request; this effectively ignores the host_index
|
|
663
|
-
in the spec for a single request.
|
|
664
|
-
:type _host_index: int, optional
|
|
665
|
-
:return: Returns the result object.
|
|
666
|
-
""" # noqa: E501
|
|
667
|
-
warnings.warn("POST /coco/submit is deprecated.", DeprecationWarning)
|
|
668
|
-
|
|
669
|
-
_param = self._coco_submit_post_serialize(
|
|
670
|
-
submit_coco_model=submit_coco_model,
|
|
671
|
-
_request_auth=_request_auth,
|
|
672
|
-
_content_type=_content_type,
|
|
673
|
-
_headers=_headers,
|
|
674
|
-
_host_index=_host_index
|
|
675
|
-
)
|
|
676
|
-
|
|
677
|
-
_response_types_map: Dict[str, Optional[str]] = {
|
|
678
|
-
'200': "SubmitCocoResult",
|
|
679
|
-
}
|
|
680
|
-
response_data = self.api_client.call_api(
|
|
681
|
-
*_param,
|
|
682
|
-
_request_timeout=_request_timeout
|
|
683
|
-
)
|
|
684
|
-
response_data.read()
|
|
685
|
-
return self.api_client.response_deserialize(
|
|
686
|
-
response_data=response_data,
|
|
687
|
-
response_types_map=_response_types_map,
|
|
688
|
-
).data
|
|
689
|
-
|
|
690
|
-
|
|
691
|
-
@validate_call
|
|
692
|
-
def coco_submit_post_with_http_info(
|
|
693
|
-
self,
|
|
694
|
-
submit_coco_model: Annotated[Optional[SubmitCocoModel], Field(description="The model containing the information needed to create the validation set.")] = None,
|
|
695
|
-
_request_timeout: Union[
|
|
696
|
-
None,
|
|
697
|
-
Annotated[StrictFloat, Field(gt=0)],
|
|
698
|
-
Tuple[
|
|
699
|
-
Annotated[StrictFloat, Field(gt=0)],
|
|
700
|
-
Annotated[StrictFloat, Field(gt=0)]
|
|
701
|
-
]
|
|
702
|
-
] = None,
|
|
703
|
-
_request_auth: Optional[Dict[StrictStr, Any]] = None,
|
|
704
|
-
_content_type: Optional[StrictStr] = None,
|
|
705
|
-
_headers: Optional[Dict[StrictStr, Any]] = None,
|
|
706
|
-
_host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
|
|
707
|
-
) -> ApiResponse[SubmitCocoResult]:
|
|
708
|
-
"""(Deprecated) Creates a new validation set based on a previously uploaded CoCo set.
|
|
709
|
-
|
|
710
|
-
|
|
711
|
-
:param submit_coco_model: The model containing the information needed to create the validation set.
|
|
712
|
-
:type submit_coco_model: SubmitCocoModel
|
|
713
|
-
:param _request_timeout: timeout setting for this request. If one
|
|
714
|
-
number provided, it will be total request
|
|
715
|
-
timeout. It can also be a pair (tuple) of
|
|
716
|
-
(connection, read) timeouts.
|
|
717
|
-
:type _request_timeout: int, tuple(int, int), optional
|
|
718
|
-
:param _request_auth: set to override the auth_settings for an a single
|
|
719
|
-
request; this effectively ignores the
|
|
720
|
-
authentication in the spec for a single request.
|
|
721
|
-
:type _request_auth: dict, optional
|
|
722
|
-
:param _content_type: force content-type for the request.
|
|
723
|
-
:type _content_type: str, Optional
|
|
724
|
-
:param _headers: set to override the headers for a single
|
|
725
|
-
request; this effectively ignores the headers
|
|
726
|
-
in the spec for a single request.
|
|
727
|
-
:type _headers: dict, optional
|
|
728
|
-
:param _host_index: set to override the host_index for a single
|
|
729
|
-
request; this effectively ignores the host_index
|
|
730
|
-
in the spec for a single request.
|
|
731
|
-
:type _host_index: int, optional
|
|
732
|
-
:return: Returns the result object.
|
|
733
|
-
""" # noqa: E501
|
|
734
|
-
warnings.warn("POST /coco/submit is deprecated.", DeprecationWarning)
|
|
735
|
-
|
|
736
|
-
_param = self._coco_submit_post_serialize(
|
|
737
|
-
submit_coco_model=submit_coco_model,
|
|
738
|
-
_request_auth=_request_auth,
|
|
739
|
-
_content_type=_content_type,
|
|
740
|
-
_headers=_headers,
|
|
741
|
-
_host_index=_host_index
|
|
742
|
-
)
|
|
743
|
-
|
|
744
|
-
_response_types_map: Dict[str, Optional[str]] = {
|
|
745
|
-
'200': "SubmitCocoResult",
|
|
746
|
-
}
|
|
747
|
-
response_data = self.api_client.call_api(
|
|
748
|
-
*_param,
|
|
749
|
-
_request_timeout=_request_timeout
|
|
750
|
-
)
|
|
751
|
-
response_data.read()
|
|
752
|
-
return self.api_client.response_deserialize(
|
|
753
|
-
response_data=response_data,
|
|
754
|
-
response_types_map=_response_types_map,
|
|
755
|
-
)
|
|
756
|
-
|
|
757
|
-
|
|
758
|
-
@validate_call
|
|
759
|
-
def coco_submit_post_without_preload_content(
|
|
760
|
-
self,
|
|
761
|
-
submit_coco_model: Annotated[Optional[SubmitCocoModel], Field(description="The model containing the information needed to create the validation set.")] = None,
|
|
762
|
-
_request_timeout: Union[
|
|
763
|
-
None,
|
|
764
|
-
Annotated[StrictFloat, Field(gt=0)],
|
|
765
|
-
Tuple[
|
|
766
|
-
Annotated[StrictFloat, Field(gt=0)],
|
|
767
|
-
Annotated[StrictFloat, Field(gt=0)]
|
|
768
|
-
]
|
|
769
|
-
] = None,
|
|
770
|
-
_request_auth: Optional[Dict[StrictStr, Any]] = None,
|
|
771
|
-
_content_type: Optional[StrictStr] = None,
|
|
772
|
-
_headers: Optional[Dict[StrictStr, Any]] = None,
|
|
773
|
-
_host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
|
|
774
|
-
) -> RESTResponseType:
|
|
775
|
-
"""(Deprecated) Creates a new validation set based on a previously uploaded CoCo set.
|
|
776
|
-
|
|
777
|
-
|
|
778
|
-
:param submit_coco_model: The model containing the information needed to create the validation set.
|
|
779
|
-
:type submit_coco_model: SubmitCocoModel
|
|
780
|
-
:param _request_timeout: timeout setting for this request. If one
|
|
781
|
-
number provided, it will be total request
|
|
782
|
-
timeout. It can also be a pair (tuple) of
|
|
783
|
-
(connection, read) timeouts.
|
|
784
|
-
:type _request_timeout: int, tuple(int, int), optional
|
|
785
|
-
:param _request_auth: set to override the auth_settings for an a single
|
|
786
|
-
request; this effectively ignores the
|
|
787
|
-
authentication in the spec for a single request.
|
|
788
|
-
:type _request_auth: dict, optional
|
|
789
|
-
:param _content_type: force content-type for the request.
|
|
790
|
-
:type _content_type: str, Optional
|
|
791
|
-
:param _headers: set to override the headers for a single
|
|
792
|
-
request; this effectively ignores the headers
|
|
793
|
-
in the spec for a single request.
|
|
794
|
-
:type _headers: dict, optional
|
|
795
|
-
:param _host_index: set to override the host_index for a single
|
|
796
|
-
request; this effectively ignores the host_index
|
|
797
|
-
in the spec for a single request.
|
|
798
|
-
:type _host_index: int, optional
|
|
799
|
-
:return: Returns the result object.
|
|
800
|
-
""" # noqa: E501
|
|
801
|
-
warnings.warn("POST /coco/submit is deprecated.", DeprecationWarning)
|
|
802
|
-
|
|
803
|
-
_param = self._coco_submit_post_serialize(
|
|
804
|
-
submit_coco_model=submit_coco_model,
|
|
805
|
-
_request_auth=_request_auth,
|
|
806
|
-
_content_type=_content_type,
|
|
807
|
-
_headers=_headers,
|
|
808
|
-
_host_index=_host_index
|
|
809
|
-
)
|
|
810
|
-
|
|
811
|
-
_response_types_map: Dict[str, Optional[str]] = {
|
|
812
|
-
'200': "SubmitCocoResult",
|
|
813
|
-
}
|
|
814
|
-
response_data = self.api_client.call_api(
|
|
815
|
-
*_param,
|
|
816
|
-
_request_timeout=_request_timeout
|
|
817
|
-
)
|
|
818
|
-
return response_data.response
|
|
819
|
-
|
|
820
|
-
|
|
821
|
-
def _coco_submit_post_serialize(
|
|
822
|
-
self,
|
|
823
|
-
submit_coco_model,
|
|
824
|
-
_request_auth,
|
|
825
|
-
_content_type,
|
|
826
|
-
_headers,
|
|
827
|
-
_host_index,
|
|
828
|
-
) -> RequestSerialized:
|
|
829
|
-
|
|
830
|
-
_host = None
|
|
831
|
-
|
|
832
|
-
_collection_formats: Dict[str, str] = {
|
|
833
|
-
}
|
|
834
|
-
|
|
835
|
-
_path_params: Dict[str, str] = {}
|
|
836
|
-
_query_params: List[Tuple[str, str]] = []
|
|
837
|
-
_header_params: Dict[str, Optional[str]] = _headers or {}
|
|
838
|
-
_form_params: List[Tuple[str, str]] = []
|
|
839
|
-
_files: Dict[
|
|
840
|
-
str, Union[str, bytes, List[str], List[bytes], List[Tuple[str, bytes]]]
|
|
841
|
-
] = {}
|
|
842
|
-
_body_params: Optional[bytes] = None
|
|
843
|
-
|
|
844
|
-
# process the path parameters
|
|
845
|
-
# process the query parameters
|
|
846
|
-
# process the header parameters
|
|
847
|
-
# process the form parameters
|
|
848
|
-
# process the body parameter
|
|
849
|
-
if submit_coco_model is not None:
|
|
850
|
-
_body_params = submit_coco_model
|
|
851
|
-
|
|
852
|
-
|
|
853
|
-
# set the HTTP header `Accept`
|
|
854
|
-
if 'Accept' not in _header_params:
|
|
855
|
-
_header_params['Accept'] = self.api_client.select_header_accept(
|
|
856
|
-
[
|
|
857
|
-
'text/plain',
|
|
858
|
-
'application/json',
|
|
859
|
-
'text/json'
|
|
860
|
-
]
|
|
861
|
-
)
|
|
862
|
-
|
|
863
|
-
# set the HTTP header `Content-Type`
|
|
864
|
-
if _content_type:
|
|
865
|
-
_header_params['Content-Type'] = _content_type
|
|
866
|
-
else:
|
|
867
|
-
_default_content_type = (
|
|
868
|
-
self.api_client.select_header_content_type(
|
|
869
|
-
[
|
|
870
|
-
'application/json',
|
|
871
|
-
'text/json',
|
|
872
|
-
'application/*+json'
|
|
873
|
-
]
|
|
874
|
-
)
|
|
875
|
-
)
|
|
876
|
-
if _default_content_type is not None:
|
|
877
|
-
_header_params['Content-Type'] = _default_content_type
|
|
878
|
-
|
|
879
|
-
# authentication setting
|
|
880
|
-
_auth_settings: List[str] = [
|
|
881
|
-
'bearer',
|
|
882
|
-
'oauth2'
|
|
883
|
-
]
|
|
884
|
-
|
|
885
|
-
return self.api_client.param_serialize(
|
|
886
|
-
method='POST',
|
|
887
|
-
resource_path='/coco/submit',
|
|
888
|
-
path_params=_path_params,
|
|
889
|
-
query_params=_query_params,
|
|
890
|
-
header_params=_header_params,
|
|
891
|
-
body=_body_params,
|
|
892
|
-
post_params=_form_params,
|
|
893
|
-
files=_files,
|
|
894
|
-
auth_settings=_auth_settings,
|
|
895
|
-
collection_formats=_collection_formats,
|
|
896
|
-
_host=_host,
|
|
897
|
-
_request_auth=_request_auth
|
|
898
|
-
)
|
|
899
|
-
|
|
900
|
-
|
|
901
|
-
|
|
902
|
-
|
|
903
|
-
@validate_call
|
|
904
|
-
def coco_upload_post(
|
|
905
|
-
self,
|
|
906
|
-
name: Optional[StrictStr] = None,
|
|
907
|
-
title: Optional[StrictStr] = None,
|
|
908
|
-
_request_timeout: Union[
|
|
909
|
-
None,
|
|
910
|
-
Annotated[StrictFloat, Field(gt=0)],
|
|
911
|
-
Tuple[
|
|
912
|
-
Annotated[StrictFloat, Field(gt=0)],
|
|
913
|
-
Annotated[StrictFloat, Field(gt=0)]
|
|
914
|
-
]
|
|
915
|
-
] = None,
|
|
916
|
-
_request_auth: Optional[Dict[StrictStr, Any]] = None,
|
|
917
|
-
_content_type: Optional[StrictStr] = None,
|
|
918
|
-
_headers: Optional[Dict[StrictStr, Any]] = None,
|
|
919
|
-
_host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
|
|
920
|
-
) -> UploadCocoResult:
|
|
921
|
-
"""(Deprecated) Uploads a CoCo set to the system.
|
|
922
|
-
|
|
923
|
-
|
|
924
|
-
:param name:
|
|
925
|
-
:type name: str
|
|
926
|
-
:param title:
|
|
927
|
-
:type title: str
|
|
928
|
-
:param _request_timeout: timeout setting for this request. If one
|
|
929
|
-
number provided, it will be total request
|
|
930
|
-
timeout. It can also be a pair (tuple) of
|
|
931
|
-
(connection, read) timeouts.
|
|
932
|
-
:type _request_timeout: int, tuple(int, int), optional
|
|
933
|
-
:param _request_auth: set to override the auth_settings for an a single
|
|
934
|
-
request; this effectively ignores the
|
|
935
|
-
authentication in the spec for a single request.
|
|
936
|
-
:type _request_auth: dict, optional
|
|
937
|
-
:param _content_type: force content-type for the request.
|
|
938
|
-
:type _content_type: str, Optional
|
|
939
|
-
:param _headers: set to override the headers for a single
|
|
940
|
-
request; this effectively ignores the headers
|
|
941
|
-
in the spec for a single request.
|
|
942
|
-
:type _headers: dict, optional
|
|
943
|
-
:param _host_index: set to override the host_index for a single
|
|
944
|
-
request; this effectively ignores the host_index
|
|
945
|
-
in the spec for a single request.
|
|
946
|
-
:type _host_index: int, optional
|
|
947
|
-
:return: Returns the result object.
|
|
948
|
-
""" # noqa: E501
|
|
949
|
-
warnings.warn("POST /coco/upload is deprecated.", DeprecationWarning)
|
|
950
|
-
|
|
951
|
-
_param = self._coco_upload_post_serialize(
|
|
952
|
-
name=name,
|
|
953
|
-
title=title,
|
|
954
|
-
_request_auth=_request_auth,
|
|
955
|
-
_content_type=_content_type,
|
|
956
|
-
_headers=_headers,
|
|
957
|
-
_host_index=_host_index
|
|
958
|
-
)
|
|
959
|
-
|
|
960
|
-
_response_types_map: Dict[str, Optional[str]] = {
|
|
961
|
-
'200': "UploadCocoResult",
|
|
962
|
-
}
|
|
963
|
-
response_data = self.api_client.call_api(
|
|
964
|
-
*_param,
|
|
965
|
-
_request_timeout=_request_timeout
|
|
966
|
-
)
|
|
967
|
-
response_data.read()
|
|
968
|
-
return self.api_client.response_deserialize(
|
|
969
|
-
response_data=response_data,
|
|
970
|
-
response_types_map=_response_types_map,
|
|
971
|
-
).data
|
|
972
|
-
|
|
973
|
-
|
|
974
|
-
@validate_call
|
|
975
|
-
def coco_upload_post_with_http_info(
|
|
976
|
-
self,
|
|
977
|
-
name: Optional[StrictStr] = None,
|
|
978
|
-
title: Optional[StrictStr] = None,
|
|
979
|
-
_request_timeout: Union[
|
|
980
|
-
None,
|
|
981
|
-
Annotated[StrictFloat, Field(gt=0)],
|
|
982
|
-
Tuple[
|
|
983
|
-
Annotated[StrictFloat, Field(gt=0)],
|
|
984
|
-
Annotated[StrictFloat, Field(gt=0)]
|
|
985
|
-
]
|
|
986
|
-
] = None,
|
|
987
|
-
_request_auth: Optional[Dict[StrictStr, Any]] = None,
|
|
988
|
-
_content_type: Optional[StrictStr] = None,
|
|
989
|
-
_headers: Optional[Dict[StrictStr, Any]] = None,
|
|
990
|
-
_host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
|
|
991
|
-
) -> ApiResponse[UploadCocoResult]:
|
|
992
|
-
"""(Deprecated) Uploads a CoCo set to the system.
|
|
993
|
-
|
|
994
|
-
|
|
995
|
-
:param name:
|
|
996
|
-
:type name: str
|
|
997
|
-
:param title:
|
|
998
|
-
:type title: str
|
|
999
|
-
:param _request_timeout: timeout setting for this request. If one
|
|
1000
|
-
number provided, it will be total request
|
|
1001
|
-
timeout. It can also be a pair (tuple) of
|
|
1002
|
-
(connection, read) timeouts.
|
|
1003
|
-
:type _request_timeout: int, tuple(int, int), optional
|
|
1004
|
-
:param _request_auth: set to override the auth_settings for an a single
|
|
1005
|
-
request; this effectively ignores the
|
|
1006
|
-
authentication in the spec for a single request.
|
|
1007
|
-
:type _request_auth: dict, optional
|
|
1008
|
-
:param _content_type: force content-type for the request.
|
|
1009
|
-
:type _content_type: str, Optional
|
|
1010
|
-
:param _headers: set to override the headers for a single
|
|
1011
|
-
request; this effectively ignores the headers
|
|
1012
|
-
in the spec for a single request.
|
|
1013
|
-
:type _headers: dict, optional
|
|
1014
|
-
:param _host_index: set to override the host_index for a single
|
|
1015
|
-
request; this effectively ignores the host_index
|
|
1016
|
-
in the spec for a single request.
|
|
1017
|
-
:type _host_index: int, optional
|
|
1018
|
-
:return: Returns the result object.
|
|
1019
|
-
""" # noqa: E501
|
|
1020
|
-
warnings.warn("POST /coco/upload is deprecated.", DeprecationWarning)
|
|
1021
|
-
|
|
1022
|
-
_param = self._coco_upload_post_serialize(
|
|
1023
|
-
name=name,
|
|
1024
|
-
title=title,
|
|
1025
|
-
_request_auth=_request_auth,
|
|
1026
|
-
_content_type=_content_type,
|
|
1027
|
-
_headers=_headers,
|
|
1028
|
-
_host_index=_host_index
|
|
1029
|
-
)
|
|
1030
|
-
|
|
1031
|
-
_response_types_map: Dict[str, Optional[str]] = {
|
|
1032
|
-
'200': "UploadCocoResult",
|
|
1033
|
-
}
|
|
1034
|
-
response_data = self.api_client.call_api(
|
|
1035
|
-
*_param,
|
|
1036
|
-
_request_timeout=_request_timeout
|
|
1037
|
-
)
|
|
1038
|
-
response_data.read()
|
|
1039
|
-
return self.api_client.response_deserialize(
|
|
1040
|
-
response_data=response_data,
|
|
1041
|
-
response_types_map=_response_types_map,
|
|
1042
|
-
)
|
|
1043
|
-
|
|
1044
|
-
|
|
1045
|
-
@validate_call
|
|
1046
|
-
def coco_upload_post_without_preload_content(
|
|
1047
|
-
self,
|
|
1048
|
-
name: Optional[StrictStr] = None,
|
|
1049
|
-
title: Optional[StrictStr] = None,
|
|
1050
|
-
_request_timeout: Union[
|
|
1051
|
-
None,
|
|
1052
|
-
Annotated[StrictFloat, Field(gt=0)],
|
|
1053
|
-
Tuple[
|
|
1054
|
-
Annotated[StrictFloat, Field(gt=0)],
|
|
1055
|
-
Annotated[StrictFloat, Field(gt=0)]
|
|
1056
|
-
]
|
|
1057
|
-
] = None,
|
|
1058
|
-
_request_auth: Optional[Dict[StrictStr, Any]] = None,
|
|
1059
|
-
_content_type: Optional[StrictStr] = None,
|
|
1060
|
-
_headers: Optional[Dict[StrictStr, Any]] = None,
|
|
1061
|
-
_host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
|
|
1062
|
-
) -> RESTResponseType:
|
|
1063
|
-
"""(Deprecated) Uploads a CoCo set to the system.
|
|
1064
|
-
|
|
1065
|
-
|
|
1066
|
-
:param name:
|
|
1067
|
-
:type name: str
|
|
1068
|
-
:param title:
|
|
1069
|
-
:type title: str
|
|
1070
|
-
:param _request_timeout: timeout setting for this request. If one
|
|
1071
|
-
number provided, it will be total request
|
|
1072
|
-
timeout. It can also be a pair (tuple) of
|
|
1073
|
-
(connection, read) timeouts.
|
|
1074
|
-
:type _request_timeout: int, tuple(int, int), optional
|
|
1075
|
-
:param _request_auth: set to override the auth_settings for an a single
|
|
1076
|
-
request; this effectively ignores the
|
|
1077
|
-
authentication in the spec for a single request.
|
|
1078
|
-
:type _request_auth: dict, optional
|
|
1079
|
-
:param _content_type: force content-type for the request.
|
|
1080
|
-
:type _content_type: str, Optional
|
|
1081
|
-
:param _headers: set to override the headers for a single
|
|
1082
|
-
request; this effectively ignores the headers
|
|
1083
|
-
in the spec for a single request.
|
|
1084
|
-
:type _headers: dict, optional
|
|
1085
|
-
:param _host_index: set to override the host_index for a single
|
|
1086
|
-
request; this effectively ignores the host_index
|
|
1087
|
-
in the spec for a single request.
|
|
1088
|
-
:type _host_index: int, optional
|
|
1089
|
-
:return: Returns the result object.
|
|
1090
|
-
""" # noqa: E501
|
|
1091
|
-
warnings.warn("POST /coco/upload is deprecated.", DeprecationWarning)
|
|
1092
|
-
|
|
1093
|
-
_param = self._coco_upload_post_serialize(
|
|
1094
|
-
name=name,
|
|
1095
|
-
title=title,
|
|
1096
|
-
_request_auth=_request_auth,
|
|
1097
|
-
_content_type=_content_type,
|
|
1098
|
-
_headers=_headers,
|
|
1099
|
-
_host_index=_host_index
|
|
1100
|
-
)
|
|
1101
|
-
|
|
1102
|
-
_response_types_map: Dict[str, Optional[str]] = {
|
|
1103
|
-
'200': "UploadCocoResult",
|
|
1104
|
-
}
|
|
1105
|
-
response_data = self.api_client.call_api(
|
|
1106
|
-
*_param,
|
|
1107
|
-
_request_timeout=_request_timeout
|
|
1108
|
-
)
|
|
1109
|
-
return response_data.response
|
|
1110
|
-
|
|
1111
|
-
|
|
1112
|
-
def _coco_upload_post_serialize(
|
|
1113
|
-
self,
|
|
1114
|
-
name,
|
|
1115
|
-
title,
|
|
1116
|
-
_request_auth,
|
|
1117
|
-
_content_type,
|
|
1118
|
-
_headers,
|
|
1119
|
-
_host_index,
|
|
1120
|
-
) -> RequestSerialized:
|
|
1121
|
-
|
|
1122
|
-
_host = None
|
|
1123
|
-
|
|
1124
|
-
_collection_formats: Dict[str, str] = {
|
|
1125
|
-
}
|
|
1126
|
-
|
|
1127
|
-
_path_params: Dict[str, str] = {}
|
|
1128
|
-
_query_params: List[Tuple[str, str]] = []
|
|
1129
|
-
_header_params: Dict[str, Optional[str]] = _headers or {}
|
|
1130
|
-
_form_params: List[Tuple[str, str]] = []
|
|
1131
|
-
_files: Dict[
|
|
1132
|
-
str, Union[str, bytes, List[str], List[bytes], List[Tuple[str, bytes]]]
|
|
1133
|
-
] = {}
|
|
1134
|
-
_body_params: Optional[bytes] = None
|
|
1135
|
-
|
|
1136
|
-
# process the path parameters
|
|
1137
|
-
# process the query parameters
|
|
1138
|
-
# process the header parameters
|
|
1139
|
-
# process the form parameters
|
|
1140
|
-
if name is not None:
|
|
1141
|
-
_form_params.append(('Name', name))
|
|
1142
|
-
if title is not None:
|
|
1143
|
-
_form_params.append(('Title', title))
|
|
1144
|
-
# process the body parameter
|
|
1145
|
-
|
|
1146
|
-
|
|
1147
|
-
# set the HTTP header `Accept`
|
|
1148
|
-
if 'Accept' not in _header_params:
|
|
1149
|
-
_header_params['Accept'] = self.api_client.select_header_accept(
|
|
1150
|
-
[
|
|
1151
|
-
'text/plain',
|
|
1152
|
-
'application/json',
|
|
1153
|
-
'text/json'
|
|
1154
|
-
]
|
|
1155
|
-
)
|
|
1156
|
-
|
|
1157
|
-
# set the HTTP header `Content-Type`
|
|
1158
|
-
if _content_type:
|
|
1159
|
-
_header_params['Content-Type'] = _content_type
|
|
1160
|
-
else:
|
|
1161
|
-
_default_content_type = (
|
|
1162
|
-
self.api_client.select_header_content_type(
|
|
1163
|
-
[
|
|
1164
|
-
'multipart/form-data'
|
|
1165
|
-
]
|
|
1166
|
-
)
|
|
1167
|
-
)
|
|
1168
|
-
if _default_content_type is not None:
|
|
1169
|
-
_header_params['Content-Type'] = _default_content_type
|
|
1170
|
-
|
|
1171
|
-
# authentication setting
|
|
1172
|
-
_auth_settings: List[str] = [
|
|
1173
|
-
'bearer',
|
|
1174
|
-
'oauth2'
|
|
1175
|
-
]
|
|
1176
|
-
|
|
1177
|
-
return self.api_client.param_serialize(
|
|
1178
|
-
method='POST',
|
|
1179
|
-
resource_path='/coco/upload',
|
|
1180
|
-
path_params=_path_params,
|
|
1181
|
-
query_params=_query_params,
|
|
1182
|
-
header_params=_header_params,
|
|
1183
|
-
body=_body_params,
|
|
1184
|
-
post_params=_form_params,
|
|
1185
|
-
files=_files,
|
|
1186
|
-
auth_settings=_auth_settings,
|
|
1187
|
-
collection_formats=_collection_formats,
|
|
1188
|
-
_host=_host,
|
|
1189
|
-
_request_auth=_request_auth
|
|
1190
|
-
)
|
|
1191
|
-
|
|
1192
|
-
|