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.

@@ -25,7 +25,6 @@ from rapidata.api_client.models.query_model import QueryModel
25
25
  from rapidata.api_client.models.sample_by_participant_paged_result import SampleByParticipantPagedResult
26
26
  from rapidata.api_client.models.submit_participant_result import SubmitParticipantResult
27
27
  from rapidata.api_client.models.update_participant_model import UpdateParticipantModel
28
- from rapidata.api_client.models.update_participant_name_model import UpdateParticipantNameModel
29
28
 
30
29
  from rapidata.api_client.api_client import ApiClient, RequestSerialized
31
30
  from rapidata.api_client.api_response import ApiResponse
@@ -810,291 +809,6 @@ class ParticipantApi:
810
809
 
811
810
 
812
811
 
813
- @validate_call
814
- def participant_participant_id_name_put(
815
- self,
816
- participant_id: StrictStr,
817
- update_participant_name_model: Optional[UpdateParticipantNameModel] = None,
818
- _request_timeout: Union[
819
- None,
820
- Annotated[StrictFloat, Field(gt=0)],
821
- Tuple[
822
- Annotated[StrictFloat, Field(gt=0)],
823
- Annotated[StrictFloat, Field(gt=0)]
824
- ]
825
- ] = None,
826
- _request_auth: Optional[Dict[StrictStr, Any]] = None,
827
- _content_type: Optional[StrictStr] = None,
828
- _headers: Optional[Dict[StrictStr, Any]] = None,
829
- _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
830
- ) -> None:
831
- """(Deprecated) Updates the name of a participant
832
-
833
-
834
- :param participant_id: (required)
835
- :type participant_id: str
836
- :param update_participant_name_model:
837
- :type update_participant_name_model: UpdateParticipantNameModel
838
- :param _request_timeout: timeout setting for this request. If one
839
- number provided, it will be total request
840
- timeout. It can also be a pair (tuple) of
841
- (connection, read) timeouts.
842
- :type _request_timeout: int, tuple(int, int), optional
843
- :param _request_auth: set to override the auth_settings for an a single
844
- request; this effectively ignores the
845
- authentication in the spec for a single request.
846
- :type _request_auth: dict, optional
847
- :param _content_type: force content-type for the request.
848
- :type _content_type: str, Optional
849
- :param _headers: set to override the headers for a single
850
- request; this effectively ignores the headers
851
- in the spec for a single request.
852
- :type _headers: dict, optional
853
- :param _host_index: set to override the host_index for a single
854
- request; this effectively ignores the host_index
855
- in the spec for a single request.
856
- :type _host_index: int, optional
857
- :return: Returns the result object.
858
- """ # noqa: E501
859
- warnings.warn("PUT /participant/{participantId}/name is deprecated.", DeprecationWarning)
860
-
861
- _param = self._participant_participant_id_name_put_serialize(
862
- participant_id=participant_id,
863
- update_participant_name_model=update_participant_name_model,
864
- _request_auth=_request_auth,
865
- _content_type=_content_type,
866
- _headers=_headers,
867
- _host_index=_host_index
868
- )
869
-
870
- _response_types_map: Dict[str, Optional[str]] = {
871
- '204': None,
872
- }
873
- response_data = self.api_client.call_api(
874
- *_param,
875
- _request_timeout=_request_timeout
876
- )
877
- response_data.read()
878
- return self.api_client.response_deserialize(
879
- response_data=response_data,
880
- response_types_map=_response_types_map,
881
- ).data
882
-
883
-
884
- @validate_call
885
- def participant_participant_id_name_put_with_http_info(
886
- self,
887
- participant_id: StrictStr,
888
- update_participant_name_model: Optional[UpdateParticipantNameModel] = None,
889
- _request_timeout: Union[
890
- None,
891
- Annotated[StrictFloat, Field(gt=0)],
892
- Tuple[
893
- Annotated[StrictFloat, Field(gt=0)],
894
- Annotated[StrictFloat, Field(gt=0)]
895
- ]
896
- ] = None,
897
- _request_auth: Optional[Dict[StrictStr, Any]] = None,
898
- _content_type: Optional[StrictStr] = None,
899
- _headers: Optional[Dict[StrictStr, Any]] = None,
900
- _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
901
- ) -> ApiResponse[None]:
902
- """(Deprecated) Updates the name of a participant
903
-
904
-
905
- :param participant_id: (required)
906
- :type participant_id: str
907
- :param update_participant_name_model:
908
- :type update_participant_name_model: UpdateParticipantNameModel
909
- :param _request_timeout: timeout setting for this request. If one
910
- number provided, it will be total request
911
- timeout. It can also be a pair (tuple) of
912
- (connection, read) timeouts.
913
- :type _request_timeout: int, tuple(int, int), optional
914
- :param _request_auth: set to override the auth_settings for an a single
915
- request; this effectively ignores the
916
- authentication in the spec for a single request.
917
- :type _request_auth: dict, optional
918
- :param _content_type: force content-type for the request.
919
- :type _content_type: str, Optional
920
- :param _headers: set to override the headers for a single
921
- request; this effectively ignores the headers
922
- in the spec for a single request.
923
- :type _headers: dict, optional
924
- :param _host_index: set to override the host_index for a single
925
- request; this effectively ignores the host_index
926
- in the spec for a single request.
927
- :type _host_index: int, optional
928
- :return: Returns the result object.
929
- """ # noqa: E501
930
- warnings.warn("PUT /participant/{participantId}/name is deprecated.", DeprecationWarning)
931
-
932
- _param = self._participant_participant_id_name_put_serialize(
933
- participant_id=participant_id,
934
- update_participant_name_model=update_participant_name_model,
935
- _request_auth=_request_auth,
936
- _content_type=_content_type,
937
- _headers=_headers,
938
- _host_index=_host_index
939
- )
940
-
941
- _response_types_map: Dict[str, Optional[str]] = {
942
- '204': None,
943
- }
944
- response_data = self.api_client.call_api(
945
- *_param,
946
- _request_timeout=_request_timeout
947
- )
948
- response_data.read()
949
- return self.api_client.response_deserialize(
950
- response_data=response_data,
951
- response_types_map=_response_types_map,
952
- )
953
-
954
-
955
- @validate_call
956
- def participant_participant_id_name_put_without_preload_content(
957
- self,
958
- participant_id: StrictStr,
959
- update_participant_name_model: Optional[UpdateParticipantNameModel] = None,
960
- _request_timeout: Union[
961
- None,
962
- Annotated[StrictFloat, Field(gt=0)],
963
- Tuple[
964
- Annotated[StrictFloat, Field(gt=0)],
965
- Annotated[StrictFloat, Field(gt=0)]
966
- ]
967
- ] = None,
968
- _request_auth: Optional[Dict[StrictStr, Any]] = None,
969
- _content_type: Optional[StrictStr] = None,
970
- _headers: Optional[Dict[StrictStr, Any]] = None,
971
- _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
972
- ) -> RESTResponseType:
973
- """(Deprecated) Updates the name of a participant
974
-
975
-
976
- :param participant_id: (required)
977
- :type participant_id: str
978
- :param update_participant_name_model:
979
- :type update_participant_name_model: UpdateParticipantNameModel
980
- :param _request_timeout: timeout setting for this request. If one
981
- number provided, it will be total request
982
- timeout. It can also be a pair (tuple) of
983
- (connection, read) timeouts.
984
- :type _request_timeout: int, tuple(int, int), optional
985
- :param _request_auth: set to override the auth_settings for an a single
986
- request; this effectively ignores the
987
- authentication in the spec for a single request.
988
- :type _request_auth: dict, optional
989
- :param _content_type: force content-type for the request.
990
- :type _content_type: str, Optional
991
- :param _headers: set to override the headers for a single
992
- request; this effectively ignores the headers
993
- in the spec for a single request.
994
- :type _headers: dict, optional
995
- :param _host_index: set to override the host_index for a single
996
- request; this effectively ignores the host_index
997
- in the spec for a single request.
998
- :type _host_index: int, optional
999
- :return: Returns the result object.
1000
- """ # noqa: E501
1001
- warnings.warn("PUT /participant/{participantId}/name is deprecated.", DeprecationWarning)
1002
-
1003
- _param = self._participant_participant_id_name_put_serialize(
1004
- participant_id=participant_id,
1005
- update_participant_name_model=update_participant_name_model,
1006
- _request_auth=_request_auth,
1007
- _content_type=_content_type,
1008
- _headers=_headers,
1009
- _host_index=_host_index
1010
- )
1011
-
1012
- _response_types_map: Dict[str, Optional[str]] = {
1013
- '204': None,
1014
- }
1015
- response_data = self.api_client.call_api(
1016
- *_param,
1017
- _request_timeout=_request_timeout
1018
- )
1019
- return response_data.response
1020
-
1021
-
1022
- def _participant_participant_id_name_put_serialize(
1023
- self,
1024
- participant_id,
1025
- update_participant_name_model,
1026
- _request_auth,
1027
- _content_type,
1028
- _headers,
1029
- _host_index,
1030
- ) -> RequestSerialized:
1031
-
1032
- _host = None
1033
-
1034
- _collection_formats: Dict[str, str] = {
1035
- }
1036
-
1037
- _path_params: Dict[str, str] = {}
1038
- _query_params: List[Tuple[str, str]] = []
1039
- _header_params: Dict[str, Optional[str]] = _headers or {}
1040
- _form_params: List[Tuple[str, str]] = []
1041
- _files: Dict[
1042
- str, Union[str, bytes, List[str], List[bytes], List[Tuple[str, bytes]]]
1043
- ] = {}
1044
- _body_params: Optional[bytes] = None
1045
-
1046
- # process the path parameters
1047
- if participant_id is not None:
1048
- _path_params['participantId'] = participant_id
1049
- # process the query parameters
1050
- # process the header parameters
1051
- # process the form parameters
1052
- # process the body parameter
1053
- if update_participant_name_model is not None:
1054
- _body_params = update_participant_name_model
1055
-
1056
-
1057
-
1058
- # set the HTTP header `Content-Type`
1059
- if _content_type:
1060
- _header_params['Content-Type'] = _content_type
1061
- else:
1062
- _default_content_type = (
1063
- self.api_client.select_header_content_type(
1064
- [
1065
- 'application/json',
1066
- 'text/json',
1067
- 'application/*+json'
1068
- ]
1069
- )
1070
- )
1071
- if _default_content_type is not None:
1072
- _header_params['Content-Type'] = _default_content_type
1073
-
1074
- # authentication setting
1075
- _auth_settings: List[str] = [
1076
- 'bearer',
1077
- 'oauth2'
1078
- ]
1079
-
1080
- return self.api_client.param_serialize(
1081
- method='PUT',
1082
- resource_path='/participant/{participantId}/name',
1083
- path_params=_path_params,
1084
- query_params=_query_params,
1085
- header_params=_header_params,
1086
- body=_body_params,
1087
- post_params=_form_params,
1088
- files=_files,
1089
- auth_settings=_auth_settings,
1090
- collection_formats=_collection_formats,
1091
- _host=_host,
1092
- _request_auth=_request_auth
1093
- )
1094
-
1095
-
1096
-
1097
-
1098
812
  @validate_call
1099
813
  def participant_participant_id_patch(
1100
814
  self,