rapidata 2.28.4__py3-none-any.whl → 2.29.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 +1 -1
- rapidata/api_client/__init__.py +44 -17
- rapidata/api_client/api/__init__.py +1 -0
- rapidata/api_client/api/benchmark_api.py +2766 -0
- rapidata/api_client/api/campaign_api.py +0 -780
- rapidata/api_client/api/coco_api.py +0 -571
- rapidata/api_client/api/customer_rapid_api.py +332 -1
- rapidata/api_client/api/datapoint_api.py +0 -524
- rapidata/api_client/api/dataset_api.py +595 -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 +1642 -259
- 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 +43 -17
- rapidata/api_client/models/add_campaign_model.py +3 -3
- 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/and_user_filter_model.py +106 -0
- rapidata/api_client/models/and_user_filter_model_filters_inner.py +282 -0
- rapidata/api_client/models/benchmark_query_result.py +94 -0
- rapidata/api_client/models/benchmark_query_result_paged_result.py +105 -0
- rapidata/api_client/models/boost_leaderboard_model.py +89 -0
- rapidata/api_client/models/clone_order_model.py +2 -4
- rapidata/api_client/models/create_benchmark_model.py +87 -0
- rapidata/api_client/models/create_benchmark_participant_model.py +87 -0
- rapidata/api_client/models/create_benchmark_participant_result.py +89 -0
- rapidata/api_client/models/create_benchmark_result.py +87 -0
- rapidata/api_client/models/create_datapoint_result.py +4 -16
- rapidata/api_client/models/create_leaderboard_model.py +18 -2
- rapidata/api_client/models/create_leaderboard_result.py +5 -3
- rapidata/api_client/models/create_order_model.py +3 -3
- rapidata/api_client/models/file_asset_input.py +104 -0
- rapidata/api_client/models/file_asset_input1.py +104 -0
- rapidata/api_client/models/file_asset_input1_file.py +168 -0
- rapidata/api_client/models/file_asset_input2.py +104 -0
- rapidata/api_client/models/file_asset_input_file.py +182 -0
- rapidata/api_client/models/form_file_wrapper.py +120 -0
- rapidata/api_client/models/get_benchmark_by_id_query.py +96 -0
- rapidata/api_client/models/get_benchmark_by_id_query_result.py +94 -0
- rapidata/api_client/models/get_benchmark_by_id_query_result_paged_result.py +105 -0
- rapidata/api_client/models/get_benchmark_by_id_result.py +94 -0
- rapidata/api_client/models/get_participant_by_id_result.py +6 -22
- rapidata/api_client/models/get_standing_by_id_result.py +113 -0
- 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/local_file_wrapper.py +120 -0
- rapidata/api_client/models/multi_asset_input.py +110 -0
- rapidata/api_client/models/multi_asset_input1.py +110 -0
- rapidata/api_client/models/multi_asset_input1_assets_inner.py +170 -0
- rapidata/api_client/models/multi_asset_input2.py +110 -0
- rapidata/api_client/models/multi_asset_input_assets_inner.py +170 -0
- rapidata/api_client/models/not_user_filter_model.py +3 -3
- rapidata/api_client/models/or_user_filter_model.py +3 -3
- rapidata/api_client/models/participant_by_benchmark.py +102 -0
- rapidata/api_client/models/participant_by_benchmark_paged_result.py +105 -0
- rapidata/api_client/models/participant_by_leaderboard.py +6 -2
- rapidata/api_client/models/participant_status.py +1 -4
- rapidata/api_client/models/pipeline_id_workflow_config_put_request.py +140 -0
- rapidata/api_client/models/potential_validation_rapid.py +103 -0
- rapidata/api_client/models/potential_validation_rapid_paged_result.py +105 -0
- rapidata/api_client/models/potential_validation_rapid_truth.py +280 -0
- rapidata/api_client/models/prompt_asset_metadata_input.py +3 -3
- rapidata/api_client/models/prompt_asset_metadata_input_asset.py +170 -0
- rapidata/api_client/models/prompt_by_benchmark_result.py +92 -0
- rapidata/api_client/models/prompt_by_benchmark_result_paged_result.py +105 -0
- rapidata/api_client/models/prompt_metadata_input.py +5 -3
- rapidata/api_client/models/proxy_file_wrapper.py +114 -0
- rapidata/api_client/models/query_validation_model.py +97 -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/standing_by_leaderboard.py +113 -0
- rapidata/api_client/models/standing_by_leaderboard_paged_result.py +105 -0
- rapidata/api_client/models/standing_status.py +38 -0
- rapidata/api_client/models/stream_file_wrapper.py +116 -0
- rapidata/api_client/models/submit_coco_model.py +1 -3
- rapidata/api_client/models/submit_prompt_model.py +89 -0
- rapidata/api_client/models/text_asset_input.py +100 -0
- rapidata/api_client/models/transcription_metadata_input.py +5 -3
- rapidata/api_client/models/validation_set_zip_post_request_blueprint.py +252 -0
- rapidata/api_client/models/zip_entry_file_wrapper.py +120 -0
- rapidata/api_client_README.md +67 -76
- rapidata/rapidata_client/benchmark/leaderboard/__init__.py +0 -0
- rapidata/rapidata_client/benchmark/leaderboard/rapidata_leaderboard.py +62 -0
- rapidata/rapidata_client/benchmark/rapidata_benchmark.py +227 -0
- rapidata/rapidata_client/benchmark/rapidata_benchmark_manager.py +83 -0
- rapidata/rapidata_client/filter/not_filter.py +2 -2
- rapidata/rapidata_client/filter/or_filter.py +2 -2
- rapidata/rapidata_client/metadata/__init__.py +1 -0
- rapidata/rapidata_client/metadata/_media_asset_metadata.py +8 -1
- rapidata/rapidata_client/metadata/_prompt_identifier_metadata.py +15 -0
- rapidata/rapidata_client/order/_rapidata_dataset.py +6 -6
- rapidata/rapidata_client/order/_rapidata_order_builder.py +4 -4
- rapidata/rapidata_client/order/rapidata_order.py +1 -1
- rapidata/rapidata_client/rapidata_client.py +3 -3
- rapidata/rapidata_client/validation/rapidata_validation_set.py +1 -1
- rapidata/rapidata_client/validation/rapids/rapids.py +4 -6
- rapidata/service/openapi_service.py +5 -0
- {rapidata-2.28.4.dist-info → rapidata-2.29.0.dist-info}/METADATA +1 -1
- {rapidata-2.28.4.dist-info → rapidata-2.29.0.dist-info}/RECORD +106 -57
- rapidata/rapidata_client/leaderboard/rapidata_leaderboard.py +0 -127
- rapidata/rapidata_client/leaderboard/rapidata_leaderboard_manager.py +0 -92
- /rapidata/rapidata_client/{leaderboard → benchmark}/__init__.py +0 -0
- {rapidata-2.28.4.dist-info → rapidata-2.29.0.dist-info}/LICENSE +0 -0
- {rapidata-2.28.4.dist-info → rapidata-2.29.0.dist-info}/WHEEL +0 -0
|
@@ -16,13 +16,15 @@ from pydantic import validate_call, Field, StrictFloat, StrictStr, StrictInt
|
|
|
16
16
|
from typing import Any, Dict, List, Optional, Tuple, Union
|
|
17
17
|
from typing_extensions import Annotated
|
|
18
18
|
|
|
19
|
-
from pydantic import Field, StrictBytes, StrictStr
|
|
19
|
+
from pydantic import Field, StrictBytes, StrictFloat, StrictInt, StrictStr
|
|
20
20
|
from typing import List, Optional, Tuple, Union
|
|
21
21
|
from typing_extensions import Annotated
|
|
22
22
|
from rapidata.api_client.models.create_demographic_rapid_model import CreateDemographicRapidModel
|
|
23
23
|
from rapidata.api_client.models.create_rapid_result import CreateRapidResult
|
|
24
24
|
from rapidata.api_client.models.get_rapid_responses_result import GetRapidResponsesResult
|
|
25
|
+
from rapidata.api_client.models.potential_validation_rapid_paged_result import PotentialValidationRapidPagedResult
|
|
25
26
|
from rapidata.api_client.models.query_model import QueryModel
|
|
27
|
+
from rapidata.api_client.models.query_validation_model import QueryValidationModel
|
|
26
28
|
from rapidata.api_client.models.rapid_model_paged_result import RapidModelPagedResult
|
|
27
29
|
from rapidata.api_client.models.update_validation_rapid_model import UpdateValidationRapidModel
|
|
28
30
|
|
|
@@ -44,6 +46,335 @@ class CustomerRapidApi:
|
|
|
44
46
|
self.api_client = api_client
|
|
45
47
|
|
|
46
48
|
|
|
49
|
+
@validate_call
|
|
50
|
+
def rapid_correlation_id_validation_potential_get(
|
|
51
|
+
self,
|
|
52
|
+
correlation_id: Annotated[StrictStr, Field(description="The correlation id of the rapids to query, usually a workflow id.")],
|
|
53
|
+
request: Annotated[QueryValidationModel, Field(description="The query model containing the paging, filtering, and sorting information.")],
|
|
54
|
+
min_responses: Annotated[Optional[StrictInt], Field(description="The minimum number of responses a rapid should have to be considered eligible.")] = None,
|
|
55
|
+
min_confidence: Annotated[Optional[Union[StrictFloat, StrictInt]], Field(description="The minimum confidence a rapid should have to be considered eligible.")] = None,
|
|
56
|
+
target_group_id: Annotated[Optional[StrictStr], Field(description="A specific subgroup of rapids to target.")] = None,
|
|
57
|
+
_request_timeout: Union[
|
|
58
|
+
None,
|
|
59
|
+
Annotated[StrictFloat, Field(gt=0)],
|
|
60
|
+
Tuple[
|
|
61
|
+
Annotated[StrictFloat, Field(gt=0)],
|
|
62
|
+
Annotated[StrictFloat, Field(gt=0)]
|
|
63
|
+
]
|
|
64
|
+
] = None,
|
|
65
|
+
_request_auth: Optional[Dict[StrictStr, Any]] = None,
|
|
66
|
+
_content_type: Optional[StrictStr] = None,
|
|
67
|
+
_headers: Optional[Dict[StrictStr, Any]] = None,
|
|
68
|
+
_host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
|
|
69
|
+
) -> PotentialValidationRapidPagedResult:
|
|
70
|
+
"""Queries rapids that are potentially eligible for validation set creation.
|
|
71
|
+
|
|
72
|
+
|
|
73
|
+
:param correlation_id: The correlation id of the rapids to query, usually a workflow id. (required)
|
|
74
|
+
:type correlation_id: str
|
|
75
|
+
:param request: The query model containing the paging, filtering, and sorting information. (required)
|
|
76
|
+
:type request: QueryValidationModel
|
|
77
|
+
:param min_responses: The minimum number of responses a rapid should have to be considered eligible.
|
|
78
|
+
:type min_responses: int
|
|
79
|
+
:param min_confidence: The minimum confidence a rapid should have to be considered eligible.
|
|
80
|
+
:type min_confidence: float
|
|
81
|
+
:param target_group_id: A specific subgroup of rapids to target.
|
|
82
|
+
:type target_group_id: str
|
|
83
|
+
:param _request_timeout: timeout setting for this request. If one
|
|
84
|
+
number provided, it will be total request
|
|
85
|
+
timeout. It can also be a pair (tuple) of
|
|
86
|
+
(connection, read) timeouts.
|
|
87
|
+
:type _request_timeout: int, tuple(int, int), optional
|
|
88
|
+
:param _request_auth: set to override the auth_settings for an a single
|
|
89
|
+
request; this effectively ignores the
|
|
90
|
+
authentication in the spec for a single request.
|
|
91
|
+
:type _request_auth: dict, optional
|
|
92
|
+
:param _content_type: force content-type for the request.
|
|
93
|
+
:type _content_type: str, Optional
|
|
94
|
+
:param _headers: set to override the headers for a single
|
|
95
|
+
request; this effectively ignores the headers
|
|
96
|
+
in the spec for a single request.
|
|
97
|
+
:type _headers: dict, optional
|
|
98
|
+
:param _host_index: set to override the host_index for a single
|
|
99
|
+
request; this effectively ignores the host_index
|
|
100
|
+
in the spec for a single request.
|
|
101
|
+
:type _host_index: int, optional
|
|
102
|
+
:return: Returns the result object.
|
|
103
|
+
""" # noqa: E501
|
|
104
|
+
|
|
105
|
+
_param = self._rapid_correlation_id_validation_potential_get_serialize(
|
|
106
|
+
correlation_id=correlation_id,
|
|
107
|
+
request=request,
|
|
108
|
+
min_responses=min_responses,
|
|
109
|
+
min_confidence=min_confidence,
|
|
110
|
+
target_group_id=target_group_id,
|
|
111
|
+
_request_auth=_request_auth,
|
|
112
|
+
_content_type=_content_type,
|
|
113
|
+
_headers=_headers,
|
|
114
|
+
_host_index=_host_index
|
|
115
|
+
)
|
|
116
|
+
|
|
117
|
+
_response_types_map: Dict[str, Optional[str]] = {
|
|
118
|
+
'200': "PotentialValidationRapidPagedResult",
|
|
119
|
+
}
|
|
120
|
+
response_data = self.api_client.call_api(
|
|
121
|
+
*_param,
|
|
122
|
+
_request_timeout=_request_timeout
|
|
123
|
+
)
|
|
124
|
+
response_data.read()
|
|
125
|
+
return self.api_client.response_deserialize(
|
|
126
|
+
response_data=response_data,
|
|
127
|
+
response_types_map=_response_types_map,
|
|
128
|
+
).data
|
|
129
|
+
|
|
130
|
+
|
|
131
|
+
@validate_call
|
|
132
|
+
def rapid_correlation_id_validation_potential_get_with_http_info(
|
|
133
|
+
self,
|
|
134
|
+
correlation_id: Annotated[StrictStr, Field(description="The correlation id of the rapids to query, usually a workflow id.")],
|
|
135
|
+
request: Annotated[QueryValidationModel, Field(description="The query model containing the paging, filtering, and sorting information.")],
|
|
136
|
+
min_responses: Annotated[Optional[StrictInt], Field(description="The minimum number of responses a rapid should have to be considered eligible.")] = None,
|
|
137
|
+
min_confidence: Annotated[Optional[Union[StrictFloat, StrictInt]], Field(description="The minimum confidence a rapid should have to be considered eligible.")] = None,
|
|
138
|
+
target_group_id: Annotated[Optional[StrictStr], Field(description="A specific subgroup of rapids to target.")] = None,
|
|
139
|
+
_request_timeout: Union[
|
|
140
|
+
None,
|
|
141
|
+
Annotated[StrictFloat, Field(gt=0)],
|
|
142
|
+
Tuple[
|
|
143
|
+
Annotated[StrictFloat, Field(gt=0)],
|
|
144
|
+
Annotated[StrictFloat, Field(gt=0)]
|
|
145
|
+
]
|
|
146
|
+
] = None,
|
|
147
|
+
_request_auth: Optional[Dict[StrictStr, Any]] = None,
|
|
148
|
+
_content_type: Optional[StrictStr] = None,
|
|
149
|
+
_headers: Optional[Dict[StrictStr, Any]] = None,
|
|
150
|
+
_host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
|
|
151
|
+
) -> ApiResponse[PotentialValidationRapidPagedResult]:
|
|
152
|
+
"""Queries rapids that are potentially eligible for validation set creation.
|
|
153
|
+
|
|
154
|
+
|
|
155
|
+
:param correlation_id: The correlation id of the rapids to query, usually a workflow id. (required)
|
|
156
|
+
:type correlation_id: str
|
|
157
|
+
:param request: The query model containing the paging, filtering, and sorting information. (required)
|
|
158
|
+
:type request: QueryValidationModel
|
|
159
|
+
:param min_responses: The minimum number of responses a rapid should have to be considered eligible.
|
|
160
|
+
:type min_responses: int
|
|
161
|
+
:param min_confidence: The minimum confidence a rapid should have to be considered eligible.
|
|
162
|
+
:type min_confidence: float
|
|
163
|
+
:param target_group_id: A specific subgroup of rapids to target.
|
|
164
|
+
:type target_group_id: str
|
|
165
|
+
:param _request_timeout: timeout setting for this request. If one
|
|
166
|
+
number provided, it will be total request
|
|
167
|
+
timeout. It can also be a pair (tuple) of
|
|
168
|
+
(connection, read) timeouts.
|
|
169
|
+
:type _request_timeout: int, tuple(int, int), optional
|
|
170
|
+
:param _request_auth: set to override the auth_settings for an a single
|
|
171
|
+
request; this effectively ignores the
|
|
172
|
+
authentication in the spec for a single request.
|
|
173
|
+
:type _request_auth: dict, optional
|
|
174
|
+
:param _content_type: force content-type for the request.
|
|
175
|
+
:type _content_type: str, Optional
|
|
176
|
+
:param _headers: set to override the headers for a single
|
|
177
|
+
request; this effectively ignores the headers
|
|
178
|
+
in the spec for a single request.
|
|
179
|
+
:type _headers: dict, optional
|
|
180
|
+
:param _host_index: set to override the host_index for a single
|
|
181
|
+
request; this effectively ignores the host_index
|
|
182
|
+
in the spec for a single request.
|
|
183
|
+
:type _host_index: int, optional
|
|
184
|
+
:return: Returns the result object.
|
|
185
|
+
""" # noqa: E501
|
|
186
|
+
|
|
187
|
+
_param = self._rapid_correlation_id_validation_potential_get_serialize(
|
|
188
|
+
correlation_id=correlation_id,
|
|
189
|
+
request=request,
|
|
190
|
+
min_responses=min_responses,
|
|
191
|
+
min_confidence=min_confidence,
|
|
192
|
+
target_group_id=target_group_id,
|
|
193
|
+
_request_auth=_request_auth,
|
|
194
|
+
_content_type=_content_type,
|
|
195
|
+
_headers=_headers,
|
|
196
|
+
_host_index=_host_index
|
|
197
|
+
)
|
|
198
|
+
|
|
199
|
+
_response_types_map: Dict[str, Optional[str]] = {
|
|
200
|
+
'200': "PotentialValidationRapidPagedResult",
|
|
201
|
+
}
|
|
202
|
+
response_data = self.api_client.call_api(
|
|
203
|
+
*_param,
|
|
204
|
+
_request_timeout=_request_timeout
|
|
205
|
+
)
|
|
206
|
+
response_data.read()
|
|
207
|
+
return self.api_client.response_deserialize(
|
|
208
|
+
response_data=response_data,
|
|
209
|
+
response_types_map=_response_types_map,
|
|
210
|
+
)
|
|
211
|
+
|
|
212
|
+
|
|
213
|
+
@validate_call
|
|
214
|
+
def rapid_correlation_id_validation_potential_get_without_preload_content(
|
|
215
|
+
self,
|
|
216
|
+
correlation_id: Annotated[StrictStr, Field(description="The correlation id of the rapids to query, usually a workflow id.")],
|
|
217
|
+
request: Annotated[QueryValidationModel, Field(description="The query model containing the paging, filtering, and sorting information.")],
|
|
218
|
+
min_responses: Annotated[Optional[StrictInt], Field(description="The minimum number of responses a rapid should have to be considered eligible.")] = None,
|
|
219
|
+
min_confidence: Annotated[Optional[Union[StrictFloat, StrictInt]], Field(description="The minimum confidence a rapid should have to be considered eligible.")] = None,
|
|
220
|
+
target_group_id: Annotated[Optional[StrictStr], Field(description="A specific subgroup of rapids to target.")] = None,
|
|
221
|
+
_request_timeout: Union[
|
|
222
|
+
None,
|
|
223
|
+
Annotated[StrictFloat, Field(gt=0)],
|
|
224
|
+
Tuple[
|
|
225
|
+
Annotated[StrictFloat, Field(gt=0)],
|
|
226
|
+
Annotated[StrictFloat, Field(gt=0)]
|
|
227
|
+
]
|
|
228
|
+
] = None,
|
|
229
|
+
_request_auth: Optional[Dict[StrictStr, Any]] = None,
|
|
230
|
+
_content_type: Optional[StrictStr] = None,
|
|
231
|
+
_headers: Optional[Dict[StrictStr, Any]] = None,
|
|
232
|
+
_host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
|
|
233
|
+
) -> RESTResponseType:
|
|
234
|
+
"""Queries rapids that are potentially eligible for validation set creation.
|
|
235
|
+
|
|
236
|
+
|
|
237
|
+
:param correlation_id: The correlation id of the rapids to query, usually a workflow id. (required)
|
|
238
|
+
:type correlation_id: str
|
|
239
|
+
:param request: The query model containing the paging, filtering, and sorting information. (required)
|
|
240
|
+
:type request: QueryValidationModel
|
|
241
|
+
:param min_responses: The minimum number of responses a rapid should have to be considered eligible.
|
|
242
|
+
:type min_responses: int
|
|
243
|
+
:param min_confidence: The minimum confidence a rapid should have to be considered eligible.
|
|
244
|
+
:type min_confidence: float
|
|
245
|
+
:param target_group_id: A specific subgroup of rapids to target.
|
|
246
|
+
:type target_group_id: str
|
|
247
|
+
:param _request_timeout: timeout setting for this request. If one
|
|
248
|
+
number provided, it will be total request
|
|
249
|
+
timeout. It can also be a pair (tuple) of
|
|
250
|
+
(connection, read) timeouts.
|
|
251
|
+
:type _request_timeout: int, tuple(int, int), optional
|
|
252
|
+
:param _request_auth: set to override the auth_settings for an a single
|
|
253
|
+
request; this effectively ignores the
|
|
254
|
+
authentication in the spec for a single request.
|
|
255
|
+
:type _request_auth: dict, optional
|
|
256
|
+
:param _content_type: force content-type for the request.
|
|
257
|
+
:type _content_type: str, Optional
|
|
258
|
+
:param _headers: set to override the headers for a single
|
|
259
|
+
request; this effectively ignores the headers
|
|
260
|
+
in the spec for a single request.
|
|
261
|
+
:type _headers: dict, optional
|
|
262
|
+
:param _host_index: set to override the host_index for a single
|
|
263
|
+
request; this effectively ignores the host_index
|
|
264
|
+
in the spec for a single request.
|
|
265
|
+
:type _host_index: int, optional
|
|
266
|
+
:return: Returns the result object.
|
|
267
|
+
""" # noqa: E501
|
|
268
|
+
|
|
269
|
+
_param = self._rapid_correlation_id_validation_potential_get_serialize(
|
|
270
|
+
correlation_id=correlation_id,
|
|
271
|
+
request=request,
|
|
272
|
+
min_responses=min_responses,
|
|
273
|
+
min_confidence=min_confidence,
|
|
274
|
+
target_group_id=target_group_id,
|
|
275
|
+
_request_auth=_request_auth,
|
|
276
|
+
_content_type=_content_type,
|
|
277
|
+
_headers=_headers,
|
|
278
|
+
_host_index=_host_index
|
|
279
|
+
)
|
|
280
|
+
|
|
281
|
+
_response_types_map: Dict[str, Optional[str]] = {
|
|
282
|
+
'200': "PotentialValidationRapidPagedResult",
|
|
283
|
+
}
|
|
284
|
+
response_data = self.api_client.call_api(
|
|
285
|
+
*_param,
|
|
286
|
+
_request_timeout=_request_timeout
|
|
287
|
+
)
|
|
288
|
+
return response_data.response
|
|
289
|
+
|
|
290
|
+
|
|
291
|
+
def _rapid_correlation_id_validation_potential_get_serialize(
|
|
292
|
+
self,
|
|
293
|
+
correlation_id,
|
|
294
|
+
request,
|
|
295
|
+
min_responses,
|
|
296
|
+
min_confidence,
|
|
297
|
+
target_group_id,
|
|
298
|
+
_request_auth,
|
|
299
|
+
_content_type,
|
|
300
|
+
_headers,
|
|
301
|
+
_host_index,
|
|
302
|
+
) -> RequestSerialized:
|
|
303
|
+
|
|
304
|
+
_host = None
|
|
305
|
+
|
|
306
|
+
_collection_formats: Dict[str, str] = {
|
|
307
|
+
}
|
|
308
|
+
|
|
309
|
+
_path_params: Dict[str, str] = {}
|
|
310
|
+
_query_params: List[Tuple[str, str]] = []
|
|
311
|
+
_header_params: Dict[str, Optional[str]] = _headers or {}
|
|
312
|
+
_form_params: List[Tuple[str, str]] = []
|
|
313
|
+
_files: Dict[
|
|
314
|
+
str, Union[str, bytes, List[str], List[bytes], List[Tuple[str, bytes]]]
|
|
315
|
+
] = {}
|
|
316
|
+
_body_params: Optional[bytes] = None
|
|
317
|
+
|
|
318
|
+
# process the path parameters
|
|
319
|
+
if correlation_id is not None:
|
|
320
|
+
_path_params['CorrelationId'] = correlation_id
|
|
321
|
+
# process the query parameters
|
|
322
|
+
if request is not None:
|
|
323
|
+
|
|
324
|
+
_query_params.append(('Request', request))
|
|
325
|
+
|
|
326
|
+
if min_responses is not None:
|
|
327
|
+
|
|
328
|
+
_query_params.append(('MinResponses', min_responses))
|
|
329
|
+
|
|
330
|
+
if min_confidence is not None:
|
|
331
|
+
|
|
332
|
+
_query_params.append(('MinConfidence', min_confidence))
|
|
333
|
+
|
|
334
|
+
if target_group_id is not None:
|
|
335
|
+
|
|
336
|
+
_query_params.append(('TargetGroupId', target_group_id))
|
|
337
|
+
|
|
338
|
+
# process the header parameters
|
|
339
|
+
# process the form parameters
|
|
340
|
+
# process the body parameter
|
|
341
|
+
|
|
342
|
+
|
|
343
|
+
# set the HTTP header `Accept`
|
|
344
|
+
if 'Accept' not in _header_params:
|
|
345
|
+
_header_params['Accept'] = self.api_client.select_header_accept(
|
|
346
|
+
[
|
|
347
|
+
'text/plain',
|
|
348
|
+
'application/json',
|
|
349
|
+
'text/json'
|
|
350
|
+
]
|
|
351
|
+
)
|
|
352
|
+
|
|
353
|
+
|
|
354
|
+
# authentication setting
|
|
355
|
+
_auth_settings: List[str] = [
|
|
356
|
+
'bearer',
|
|
357
|
+
'oauth2'
|
|
358
|
+
]
|
|
359
|
+
|
|
360
|
+
return self.api_client.param_serialize(
|
|
361
|
+
method='GET',
|
|
362
|
+
resource_path='/rapid/{correlationId}/validation-potential',
|
|
363
|
+
path_params=_path_params,
|
|
364
|
+
query_params=_query_params,
|
|
365
|
+
header_params=_header_params,
|
|
366
|
+
body=_body_params,
|
|
367
|
+
post_params=_form_params,
|
|
368
|
+
files=_files,
|
|
369
|
+
auth_settings=_auth_settings,
|
|
370
|
+
collection_formats=_collection_formats,
|
|
371
|
+
_host=_host,
|
|
372
|
+
_request_auth=_request_auth
|
|
373
|
+
)
|
|
374
|
+
|
|
375
|
+
|
|
376
|
+
|
|
377
|
+
|
|
47
378
|
@validate_call
|
|
48
379
|
def rapid_demographic_post(
|
|
49
380
|
self,
|