rapidata 2.15.0__py3-none-any.whl → 2.16.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/api_client/__init__.py +17 -7
- rapidata/api_client/api/__init__.py +2 -1
- rapidata/api_client/api/campaign_api.py +554 -30
- rapidata/api_client/api/client_api.py +292 -20
- rapidata/api_client/api/coco_api.py +594 -8
- rapidata/api_client/api/compare_workflow_api.py +23 -23
- rapidata/api_client/api/datapoint_api.py +548 -26
- rapidata/api_client/api/dataset_api.py +2198 -186
- rapidata/api_client/api/feedback_api.py +306 -0
- rapidata/api_client/api/identity_api.py +1143 -78
- rapidata/api_client/api/newsletter_api.py +299 -11
- rapidata/api_client/api/order_api.py +5358 -556
- rapidata/api_client/api/pipeline_api.py +263 -524
- rapidata/api_client/api/rapid_api.py +1930 -254
- rapidata/api_client/api/simple_workflow_api.py +23 -23
- rapidata/api_client/api/validation_set_api.py +5259 -0
- rapidata/api_client/api/workflow_api.py +929 -134
- rapidata/api_client/models/__init__.py +15 -6
- rapidata/api_client/models/ab_test_selection_a_inner.py +24 -10
- rapidata/api_client/models/add_user_response_result.py +106 -0
- rapidata/api_client/models/add_user_response_result_validation_truth.py +258 -0
- rapidata/api_client/models/add_validation_rapid_model.py +3 -3
- rapidata/api_client/models/add_validation_text_rapid_model.py +3 -3
- rapidata/api_client/models/are_rapids_active_result.py +87 -0
- rapidata/api_client/models/compare_workflow_model.py +3 -3
- rapidata/api_client/models/create_datapoint_from_files_model.py +102 -0
- rapidata/api_client/models/create_datapoint_from_files_model_metadata_inner.py +168 -0
- rapidata/api_client/models/create_datapoint_from_text_sources_model.py +109 -0
- rapidata/api_client/models/create_datapoint_from_urls_model.py +4 -4
- rapidata/api_client/models/create_datapoints_from_s3_bucket_model.py +124 -0
- rapidata/api_client/models/create_rapid_result.py +87 -0
- rapidata/api_client/models/create_validation_set_model.py +87 -0
- rapidata/api_client/models/datapoint_metadata_model.py +3 -3
- rapidata/api_client/models/get_validation_rapids_query.py +123 -0
- rapidata/api_client/models/get_validation_rapids_query_paged_result.py +105 -0
- rapidata/api_client/models/pipeline_id_workflow_artifact_id_put_request.py +140 -0
- rapidata/api_client/models/query_validation_rapids_result.py +3 -3
- rapidata/api_client/models/rapid_issue.py +4 -0
- rapidata/api_client/models/report_model.py +4 -4
- rapidata/api_client/models/shuffling_selection.py +106 -0
- rapidata/api_client/models/update_dataset_name_model.py +87 -0
- rapidata/api_client/models/update_order_name_model.py +87 -0
- rapidata/api_client/models/upload_text_sources_to_dataset_model.py +3 -3
- rapidata/api_client/models/user_score_user_filter_model.py +9 -2
- rapidata/api_client_README.md +153 -88
- rapidata/rapidata_client/demographic/demographic_manager.py +1 -1
- rapidata/rapidata_client/filter/user_score_filter.py +4 -1
- rapidata/rapidata_client/order/_rapidata_dataset.py +10 -11
- rapidata/rapidata_client/order/_rapidata_order_builder.py +1 -1
- rapidata/rapidata_client/order/rapidata_order.py +5 -5
- rapidata/rapidata_client/order/rapidata_order_manager.py +1 -1
- rapidata/rapidata_client/order/rapidata_results.py +1 -1
- rapidata/rapidata_client/validation/rapidata_validation_set.py +11 -0
- rapidata/rapidata_client/validation/rapids/rapids.py +3 -5
- rapidata/rapidata_client/validation/validation_set_manager.py +36 -21
- rapidata/rapidata_client/workflow/_ranking_workflow.py +2 -2
- {rapidata-2.15.0.dist-info → rapidata-2.16.0.dist-info}/METADATA +1 -1
- {rapidata-2.15.0.dist-info → rapidata-2.16.0.dist-info}/RECORD +60 -43
- {rapidata-2.15.0.dist-info → rapidata-2.16.0.dist-info}/LICENSE +0 -0
- {rapidata-2.15.0.dist-info → rapidata-2.16.0.dist-info}/WHEEL +0 -0
|
@@ -59,7 +59,7 @@ class ClientApi:
|
|
|
59
59
|
_headers: Optional[Dict[StrictStr, Any]] = None,
|
|
60
60
|
_host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
|
|
61
61
|
) -> None:
|
|
62
|
-
"""Deletes a customers client.
|
|
62
|
+
"""Deletes a customers' client.
|
|
63
63
|
|
|
64
64
|
|
|
65
65
|
:param client_id: The id of the client to delete. (required)
|
|
@@ -125,7 +125,7 @@ class ClientApi:
|
|
|
125
125
|
_headers: Optional[Dict[StrictStr, Any]] = None,
|
|
126
126
|
_host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
|
|
127
127
|
) -> ApiResponse[None]:
|
|
128
|
-
"""Deletes a customers client.
|
|
128
|
+
"""Deletes a customers' client.
|
|
129
129
|
|
|
130
130
|
|
|
131
131
|
:param client_id: The id of the client to delete. (required)
|
|
@@ -191,7 +191,7 @@ class ClientApi:
|
|
|
191
191
|
_headers: Optional[Dict[StrictStr, Any]] = None,
|
|
192
192
|
_host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
|
|
193
193
|
) -> RESTResponseType:
|
|
194
|
-
"""Deletes a customers client.
|
|
194
|
+
"""Deletes a customers' client.
|
|
195
195
|
|
|
196
196
|
|
|
197
197
|
:param client_id: The id of the client to delete. (required)
|
|
@@ -278,7 +278,7 @@ class ClientApi:
|
|
|
278
278
|
|
|
279
279
|
return self.api_client.param_serialize(
|
|
280
280
|
method='DELETE',
|
|
281
|
-
resource_path='/
|
|
281
|
+
resource_path='/client/{clientId}',
|
|
282
282
|
path_params=_path_params,
|
|
283
283
|
query_params=_query_params,
|
|
284
284
|
header_params=_header_params,
|
|
@@ -554,7 +554,7 @@ class ClientApi:
|
|
|
554
554
|
|
|
555
555
|
return self.api_client.param_serialize(
|
|
556
556
|
method='POST',
|
|
557
|
-
resource_path='/
|
|
557
|
+
resource_path='/client',
|
|
558
558
|
path_params=_path_params,
|
|
559
559
|
query_params=_query_params,
|
|
560
560
|
header_params=_header_params,
|
|
@@ -587,7 +587,7 @@ class ClientApi:
|
|
|
587
587
|
_headers: Optional[Dict[StrictStr, Any]] = None,
|
|
588
588
|
_host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
|
|
589
589
|
) -> ClientsQueryResultPagedResult:
|
|
590
|
-
"""Gets the clients for the current customer.
|
|
590
|
+
"""(Deprecated) Gets the clients for the current customer.
|
|
591
591
|
|
|
592
592
|
A client allows a customer to authenticate with the APIs without using their own credentials. This is useful for creating service accounts or other automated processes, as when using the Rapidata Python SDK.
|
|
593
593
|
|
|
@@ -614,6 +614,7 @@ class ClientApi:
|
|
|
614
614
|
:type _host_index: int, optional
|
|
615
615
|
:return: Returns the result object.
|
|
616
616
|
""" # noqa: E501
|
|
617
|
+
warnings.warn("GET /client/query is deprecated.", DeprecationWarning)
|
|
617
618
|
|
|
618
619
|
_param = self._client_query_get_serialize(
|
|
619
620
|
request=request,
|
|
@@ -654,7 +655,7 @@ class ClientApi:
|
|
|
654
655
|
_headers: Optional[Dict[StrictStr, Any]] = None,
|
|
655
656
|
_host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
|
|
656
657
|
) -> ApiResponse[ClientsQueryResultPagedResult]:
|
|
657
|
-
"""Gets the clients for the current customer.
|
|
658
|
+
"""(Deprecated) Gets the clients for the current customer.
|
|
658
659
|
|
|
659
660
|
A client allows a customer to authenticate with the APIs without using their own credentials. This is useful for creating service accounts or other automated processes, as when using the Rapidata Python SDK.
|
|
660
661
|
|
|
@@ -681,6 +682,7 @@ class ClientApi:
|
|
|
681
682
|
:type _host_index: int, optional
|
|
682
683
|
:return: Returns the result object.
|
|
683
684
|
""" # noqa: E501
|
|
685
|
+
warnings.warn("GET /client/query is deprecated.", DeprecationWarning)
|
|
684
686
|
|
|
685
687
|
_param = self._client_query_get_serialize(
|
|
686
688
|
request=request,
|
|
@@ -721,7 +723,7 @@ class ClientApi:
|
|
|
721
723
|
_headers: Optional[Dict[StrictStr, Any]] = None,
|
|
722
724
|
_host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
|
|
723
725
|
) -> RESTResponseType:
|
|
724
|
-
"""Gets the clients for the current customer.
|
|
726
|
+
"""(Deprecated) Gets the clients for the current customer.
|
|
725
727
|
|
|
726
728
|
A client allows a customer to authenticate with the APIs without using their own credentials. This is useful for creating service accounts or other automated processes, as when using the Rapidata Python SDK.
|
|
727
729
|
|
|
@@ -748,6 +750,7 @@ class ClientApi:
|
|
|
748
750
|
:type _host_index: int, optional
|
|
749
751
|
:return: Returns the result object.
|
|
750
752
|
""" # noqa: E501
|
|
753
|
+
warnings.warn("GET /client/query is deprecated.", DeprecationWarning)
|
|
751
754
|
|
|
752
755
|
_param = self._client_query_get_serialize(
|
|
753
756
|
request=request,
|
|
@@ -820,7 +823,7 @@ class ClientApi:
|
|
|
820
823
|
|
|
821
824
|
return self.api_client.param_serialize(
|
|
822
825
|
method='GET',
|
|
823
|
-
resource_path='/
|
|
826
|
+
resource_path='/client/query',
|
|
824
827
|
path_params=_path_params,
|
|
825
828
|
query_params=_query_params,
|
|
826
829
|
header_params=_header_params,
|
|
@@ -837,7 +840,7 @@ class ClientApi:
|
|
|
837
840
|
|
|
838
841
|
|
|
839
842
|
@validate_call
|
|
840
|
-
def
|
|
843
|
+
def client_setreferrer_post(
|
|
841
844
|
self,
|
|
842
845
|
referrer: Optional[StrictStr] = None,
|
|
843
846
|
_request_timeout: Union[
|
|
@@ -853,7 +856,7 @@ class ClientApi:
|
|
|
853
856
|
_headers: Optional[Dict[StrictStr, Any]] = None,
|
|
854
857
|
_host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
|
|
855
858
|
) -> None:
|
|
856
|
-
"""Sets the referrer for the current customer.
|
|
859
|
+
"""(Deprecated) Sets the referrer for the current customer.
|
|
857
860
|
|
|
858
861
|
|
|
859
862
|
:param referrer:
|
|
@@ -879,8 +882,9 @@ class ClientApi:
|
|
|
879
882
|
:type _host_index: int, optional
|
|
880
883
|
:return: Returns the result object.
|
|
881
884
|
""" # noqa: E501
|
|
885
|
+
warnings.warn("POST /client/setreferrer is deprecated.", DeprecationWarning)
|
|
882
886
|
|
|
883
|
-
_param = self.
|
|
887
|
+
_param = self._client_setreferrer_post_serialize(
|
|
884
888
|
referrer=referrer,
|
|
885
889
|
_request_auth=_request_auth,
|
|
886
890
|
_content_type=_content_type,
|
|
@@ -903,7 +907,7 @@ class ClientApi:
|
|
|
903
907
|
|
|
904
908
|
|
|
905
909
|
@validate_call
|
|
906
|
-
def
|
|
910
|
+
def client_setreferrer_post_with_http_info(
|
|
907
911
|
self,
|
|
908
912
|
referrer: Optional[StrictStr] = None,
|
|
909
913
|
_request_timeout: Union[
|
|
@@ -919,7 +923,7 @@ class ClientApi:
|
|
|
919
923
|
_headers: Optional[Dict[StrictStr, Any]] = None,
|
|
920
924
|
_host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
|
|
921
925
|
) -> ApiResponse[None]:
|
|
922
|
-
"""Sets the referrer for the current customer.
|
|
926
|
+
"""(Deprecated) Sets the referrer for the current customer.
|
|
923
927
|
|
|
924
928
|
|
|
925
929
|
:param referrer:
|
|
@@ -945,8 +949,9 @@ class ClientApi:
|
|
|
945
949
|
:type _host_index: int, optional
|
|
946
950
|
:return: Returns the result object.
|
|
947
951
|
""" # noqa: E501
|
|
952
|
+
warnings.warn("POST /client/setreferrer is deprecated.", DeprecationWarning)
|
|
948
953
|
|
|
949
|
-
_param = self.
|
|
954
|
+
_param = self._client_setreferrer_post_serialize(
|
|
950
955
|
referrer=referrer,
|
|
951
956
|
_request_auth=_request_auth,
|
|
952
957
|
_content_type=_content_type,
|
|
@@ -969,7 +974,7 @@ class ClientApi:
|
|
|
969
974
|
|
|
970
975
|
|
|
971
976
|
@validate_call
|
|
972
|
-
def
|
|
977
|
+
def client_setreferrer_post_without_preload_content(
|
|
973
978
|
self,
|
|
974
979
|
referrer: Optional[StrictStr] = None,
|
|
975
980
|
_request_timeout: Union[
|
|
@@ -985,7 +990,7 @@ class ClientApi:
|
|
|
985
990
|
_headers: Optional[Dict[StrictStr, Any]] = None,
|
|
986
991
|
_host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
|
|
987
992
|
) -> RESTResponseType:
|
|
988
|
-
"""Sets the referrer for the current customer.
|
|
993
|
+
"""(Deprecated) Sets the referrer for the current customer.
|
|
989
994
|
|
|
990
995
|
|
|
991
996
|
:param referrer:
|
|
@@ -1011,8 +1016,9 @@ class ClientApi:
|
|
|
1011
1016
|
:type _host_index: int, optional
|
|
1012
1017
|
:return: Returns the result object.
|
|
1013
1018
|
""" # noqa: E501
|
|
1019
|
+
warnings.warn("POST /client/setreferrer is deprecated.", DeprecationWarning)
|
|
1014
1020
|
|
|
1015
|
-
_param = self.
|
|
1021
|
+
_param = self._client_setreferrer_post_serialize(
|
|
1016
1022
|
referrer=referrer,
|
|
1017
1023
|
_request_auth=_request_auth,
|
|
1018
1024
|
_content_type=_content_type,
|
|
@@ -1030,7 +1036,7 @@ class ClientApi:
|
|
|
1030
1036
|
return response_data.response
|
|
1031
1037
|
|
|
1032
1038
|
|
|
1033
|
-
def
|
|
1039
|
+
def _client_setreferrer_post_serialize(
|
|
1034
1040
|
self,
|
|
1035
1041
|
referrer,
|
|
1036
1042
|
_request_auth,
|
|
@@ -1074,7 +1080,273 @@ class ClientApi:
|
|
|
1074
1080
|
|
|
1075
1081
|
return self.api_client.param_serialize(
|
|
1076
1082
|
method='POST',
|
|
1077
|
-
resource_path='/
|
|
1083
|
+
resource_path='/client/setreferrer',
|
|
1084
|
+
path_params=_path_params,
|
|
1085
|
+
query_params=_query_params,
|
|
1086
|
+
header_params=_header_params,
|
|
1087
|
+
body=_body_params,
|
|
1088
|
+
post_params=_form_params,
|
|
1089
|
+
files=_files,
|
|
1090
|
+
auth_settings=_auth_settings,
|
|
1091
|
+
collection_formats=_collection_formats,
|
|
1092
|
+
_host=_host,
|
|
1093
|
+
_request_auth=_request_auth
|
|
1094
|
+
)
|
|
1095
|
+
|
|
1096
|
+
|
|
1097
|
+
|
|
1098
|
+
|
|
1099
|
+
@validate_call
|
|
1100
|
+
def clients_get(
|
|
1101
|
+
self,
|
|
1102
|
+
request: Optional[QueryModel] = None,
|
|
1103
|
+
_request_timeout: Union[
|
|
1104
|
+
None,
|
|
1105
|
+
Annotated[StrictFloat, Field(gt=0)],
|
|
1106
|
+
Tuple[
|
|
1107
|
+
Annotated[StrictFloat, Field(gt=0)],
|
|
1108
|
+
Annotated[StrictFloat, Field(gt=0)]
|
|
1109
|
+
]
|
|
1110
|
+
] = None,
|
|
1111
|
+
_request_auth: Optional[Dict[StrictStr, Any]] = None,
|
|
1112
|
+
_content_type: Optional[StrictStr] = None,
|
|
1113
|
+
_headers: Optional[Dict[StrictStr, Any]] = None,
|
|
1114
|
+
_host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
|
|
1115
|
+
) -> ClientsQueryResultPagedResult:
|
|
1116
|
+
"""Queries the clients for the current customer.
|
|
1117
|
+
|
|
1118
|
+
A client allows a customer to authenticate with the APIs without using their own credentials. This is useful for creating service accounts or other automated processes, as when using the Rapidata Python SDK.
|
|
1119
|
+
|
|
1120
|
+
:param request:
|
|
1121
|
+
:type request: QueryModel
|
|
1122
|
+
:param _request_timeout: timeout setting for this request. If one
|
|
1123
|
+
number provided, it will be total request
|
|
1124
|
+
timeout. It can also be a pair (tuple) of
|
|
1125
|
+
(connection, read) timeouts.
|
|
1126
|
+
:type _request_timeout: int, tuple(int, int), optional
|
|
1127
|
+
:param _request_auth: set to override the auth_settings for an a single
|
|
1128
|
+
request; this effectively ignores the
|
|
1129
|
+
authentication in the spec for a single request.
|
|
1130
|
+
:type _request_auth: dict, optional
|
|
1131
|
+
:param _content_type: force content-type for the request.
|
|
1132
|
+
:type _content_type: str, Optional
|
|
1133
|
+
:param _headers: set to override the headers for a single
|
|
1134
|
+
request; this effectively ignores the headers
|
|
1135
|
+
in the spec for a single request.
|
|
1136
|
+
:type _headers: dict, optional
|
|
1137
|
+
:param _host_index: set to override the host_index for a single
|
|
1138
|
+
request; this effectively ignores the host_index
|
|
1139
|
+
in the spec for a single request.
|
|
1140
|
+
:type _host_index: int, optional
|
|
1141
|
+
:return: Returns the result object.
|
|
1142
|
+
""" # noqa: E501
|
|
1143
|
+
|
|
1144
|
+
_param = self._clients_get_serialize(
|
|
1145
|
+
request=request,
|
|
1146
|
+
_request_auth=_request_auth,
|
|
1147
|
+
_content_type=_content_type,
|
|
1148
|
+
_headers=_headers,
|
|
1149
|
+
_host_index=_host_index
|
|
1150
|
+
)
|
|
1151
|
+
|
|
1152
|
+
_response_types_map: Dict[str, Optional[str]] = {
|
|
1153
|
+
'200': "ClientsQueryResultPagedResult",
|
|
1154
|
+
}
|
|
1155
|
+
response_data = self.api_client.call_api(
|
|
1156
|
+
*_param,
|
|
1157
|
+
_request_timeout=_request_timeout
|
|
1158
|
+
)
|
|
1159
|
+
response_data.read()
|
|
1160
|
+
return self.api_client.response_deserialize(
|
|
1161
|
+
response_data=response_data,
|
|
1162
|
+
response_types_map=_response_types_map,
|
|
1163
|
+
).data
|
|
1164
|
+
|
|
1165
|
+
|
|
1166
|
+
@validate_call
|
|
1167
|
+
def clients_get_with_http_info(
|
|
1168
|
+
self,
|
|
1169
|
+
request: Optional[QueryModel] = None,
|
|
1170
|
+
_request_timeout: Union[
|
|
1171
|
+
None,
|
|
1172
|
+
Annotated[StrictFloat, Field(gt=0)],
|
|
1173
|
+
Tuple[
|
|
1174
|
+
Annotated[StrictFloat, Field(gt=0)],
|
|
1175
|
+
Annotated[StrictFloat, Field(gt=0)]
|
|
1176
|
+
]
|
|
1177
|
+
] = None,
|
|
1178
|
+
_request_auth: Optional[Dict[StrictStr, Any]] = None,
|
|
1179
|
+
_content_type: Optional[StrictStr] = None,
|
|
1180
|
+
_headers: Optional[Dict[StrictStr, Any]] = None,
|
|
1181
|
+
_host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
|
|
1182
|
+
) -> ApiResponse[ClientsQueryResultPagedResult]:
|
|
1183
|
+
"""Queries the clients for the current customer.
|
|
1184
|
+
|
|
1185
|
+
A client allows a customer to authenticate with the APIs without using their own credentials. This is useful for creating service accounts or other automated processes, as when using the Rapidata Python SDK.
|
|
1186
|
+
|
|
1187
|
+
:param request:
|
|
1188
|
+
:type request: QueryModel
|
|
1189
|
+
:param _request_timeout: timeout setting for this request. If one
|
|
1190
|
+
number provided, it will be total request
|
|
1191
|
+
timeout. It can also be a pair (tuple) of
|
|
1192
|
+
(connection, read) timeouts.
|
|
1193
|
+
:type _request_timeout: int, tuple(int, int), optional
|
|
1194
|
+
:param _request_auth: set to override the auth_settings for an a single
|
|
1195
|
+
request; this effectively ignores the
|
|
1196
|
+
authentication in the spec for a single request.
|
|
1197
|
+
:type _request_auth: dict, optional
|
|
1198
|
+
:param _content_type: force content-type for the request.
|
|
1199
|
+
:type _content_type: str, Optional
|
|
1200
|
+
:param _headers: set to override the headers for a single
|
|
1201
|
+
request; this effectively ignores the headers
|
|
1202
|
+
in the spec for a single request.
|
|
1203
|
+
:type _headers: dict, optional
|
|
1204
|
+
:param _host_index: set to override the host_index for a single
|
|
1205
|
+
request; this effectively ignores the host_index
|
|
1206
|
+
in the spec for a single request.
|
|
1207
|
+
:type _host_index: int, optional
|
|
1208
|
+
:return: Returns the result object.
|
|
1209
|
+
""" # noqa: E501
|
|
1210
|
+
|
|
1211
|
+
_param = self._clients_get_serialize(
|
|
1212
|
+
request=request,
|
|
1213
|
+
_request_auth=_request_auth,
|
|
1214
|
+
_content_type=_content_type,
|
|
1215
|
+
_headers=_headers,
|
|
1216
|
+
_host_index=_host_index
|
|
1217
|
+
)
|
|
1218
|
+
|
|
1219
|
+
_response_types_map: Dict[str, Optional[str]] = {
|
|
1220
|
+
'200': "ClientsQueryResultPagedResult",
|
|
1221
|
+
}
|
|
1222
|
+
response_data = self.api_client.call_api(
|
|
1223
|
+
*_param,
|
|
1224
|
+
_request_timeout=_request_timeout
|
|
1225
|
+
)
|
|
1226
|
+
response_data.read()
|
|
1227
|
+
return self.api_client.response_deserialize(
|
|
1228
|
+
response_data=response_data,
|
|
1229
|
+
response_types_map=_response_types_map,
|
|
1230
|
+
)
|
|
1231
|
+
|
|
1232
|
+
|
|
1233
|
+
@validate_call
|
|
1234
|
+
def clients_get_without_preload_content(
|
|
1235
|
+
self,
|
|
1236
|
+
request: Optional[QueryModel] = None,
|
|
1237
|
+
_request_timeout: Union[
|
|
1238
|
+
None,
|
|
1239
|
+
Annotated[StrictFloat, Field(gt=0)],
|
|
1240
|
+
Tuple[
|
|
1241
|
+
Annotated[StrictFloat, Field(gt=0)],
|
|
1242
|
+
Annotated[StrictFloat, Field(gt=0)]
|
|
1243
|
+
]
|
|
1244
|
+
] = None,
|
|
1245
|
+
_request_auth: Optional[Dict[StrictStr, Any]] = None,
|
|
1246
|
+
_content_type: Optional[StrictStr] = None,
|
|
1247
|
+
_headers: Optional[Dict[StrictStr, Any]] = None,
|
|
1248
|
+
_host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
|
|
1249
|
+
) -> RESTResponseType:
|
|
1250
|
+
"""Queries the clients for the current customer.
|
|
1251
|
+
|
|
1252
|
+
A client allows a customer to authenticate with the APIs without using their own credentials. This is useful for creating service accounts or other automated processes, as when using the Rapidata Python SDK.
|
|
1253
|
+
|
|
1254
|
+
:param request:
|
|
1255
|
+
:type request: QueryModel
|
|
1256
|
+
:param _request_timeout: timeout setting for this request. If one
|
|
1257
|
+
number provided, it will be total request
|
|
1258
|
+
timeout. It can also be a pair (tuple) of
|
|
1259
|
+
(connection, read) timeouts.
|
|
1260
|
+
:type _request_timeout: int, tuple(int, int), optional
|
|
1261
|
+
:param _request_auth: set to override the auth_settings for an a single
|
|
1262
|
+
request; this effectively ignores the
|
|
1263
|
+
authentication in the spec for a single request.
|
|
1264
|
+
:type _request_auth: dict, optional
|
|
1265
|
+
:param _content_type: force content-type for the request.
|
|
1266
|
+
:type _content_type: str, Optional
|
|
1267
|
+
:param _headers: set to override the headers for a single
|
|
1268
|
+
request; this effectively ignores the headers
|
|
1269
|
+
in the spec for a single request.
|
|
1270
|
+
:type _headers: dict, optional
|
|
1271
|
+
:param _host_index: set to override the host_index for a single
|
|
1272
|
+
request; this effectively ignores the host_index
|
|
1273
|
+
in the spec for a single request.
|
|
1274
|
+
:type _host_index: int, optional
|
|
1275
|
+
:return: Returns the result object.
|
|
1276
|
+
""" # noqa: E501
|
|
1277
|
+
|
|
1278
|
+
_param = self._clients_get_serialize(
|
|
1279
|
+
request=request,
|
|
1280
|
+
_request_auth=_request_auth,
|
|
1281
|
+
_content_type=_content_type,
|
|
1282
|
+
_headers=_headers,
|
|
1283
|
+
_host_index=_host_index
|
|
1284
|
+
)
|
|
1285
|
+
|
|
1286
|
+
_response_types_map: Dict[str, Optional[str]] = {
|
|
1287
|
+
'200': "ClientsQueryResultPagedResult",
|
|
1288
|
+
}
|
|
1289
|
+
response_data = self.api_client.call_api(
|
|
1290
|
+
*_param,
|
|
1291
|
+
_request_timeout=_request_timeout
|
|
1292
|
+
)
|
|
1293
|
+
return response_data.response
|
|
1294
|
+
|
|
1295
|
+
|
|
1296
|
+
def _clients_get_serialize(
|
|
1297
|
+
self,
|
|
1298
|
+
request,
|
|
1299
|
+
_request_auth,
|
|
1300
|
+
_content_type,
|
|
1301
|
+
_headers,
|
|
1302
|
+
_host_index,
|
|
1303
|
+
) -> RequestSerialized:
|
|
1304
|
+
|
|
1305
|
+
_host = None
|
|
1306
|
+
|
|
1307
|
+
_collection_formats: Dict[str, str] = {
|
|
1308
|
+
}
|
|
1309
|
+
|
|
1310
|
+
_path_params: Dict[str, str] = {}
|
|
1311
|
+
_query_params: List[Tuple[str, str]] = []
|
|
1312
|
+
_header_params: Dict[str, Optional[str]] = _headers or {}
|
|
1313
|
+
_form_params: List[Tuple[str, str]] = []
|
|
1314
|
+
_files: Dict[
|
|
1315
|
+
str, Union[str, bytes, List[str], List[bytes], List[Tuple[str, bytes]]]
|
|
1316
|
+
] = {}
|
|
1317
|
+
_body_params: Optional[bytes] = None
|
|
1318
|
+
|
|
1319
|
+
# process the path parameters
|
|
1320
|
+
# process the query parameters
|
|
1321
|
+
if request is not None:
|
|
1322
|
+
|
|
1323
|
+
_query_params.append(('request', request))
|
|
1324
|
+
|
|
1325
|
+
# process the header parameters
|
|
1326
|
+
# process the form parameters
|
|
1327
|
+
# process the body parameter
|
|
1328
|
+
|
|
1329
|
+
|
|
1330
|
+
# set the HTTP header `Accept`
|
|
1331
|
+
if 'Accept' not in _header_params:
|
|
1332
|
+
_header_params['Accept'] = self.api_client.select_header_accept(
|
|
1333
|
+
[
|
|
1334
|
+
'text/plain',
|
|
1335
|
+
'application/json',
|
|
1336
|
+
'text/json'
|
|
1337
|
+
]
|
|
1338
|
+
)
|
|
1339
|
+
|
|
1340
|
+
|
|
1341
|
+
# authentication setting
|
|
1342
|
+
_auth_settings: List[str] = [
|
|
1343
|
+
'bearer',
|
|
1344
|
+
'oauth2'
|
|
1345
|
+
]
|
|
1346
|
+
|
|
1347
|
+
return self.api_client.param_serialize(
|
|
1348
|
+
method='GET',
|
|
1349
|
+
resource_path='/clients',
|
|
1078
1350
|
path_params=_path_params,
|
|
1079
1351
|
query_params=_query_params,
|
|
1080
1352
|
header_params=_header_params,
|