rapidata 2.14.0__py3-none-any.whl → 2.15.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 +13 -0
- rapidata/api_client/api/campaign_api.py +252 -0
- rapidata/api_client/api/order_api.py +252 -0
- rapidata/api_client/api/rapid_api.py +262 -0
- rapidata/api_client/api/validation_api.py +283 -0
- rapidata/api_client/api/workflow_api.py +3 -3
- rapidata/api_client/models/__init__.py +13 -0
- rapidata/api_client/models/add_campaign_model.py +9 -2
- rapidata/api_client/models/campaign_query_result.py +2 -2
- rapidata/api_client/models/campaign_status.py +1 -0
- rapidata/api_client/models/classification_metadata.py +2 -4
- rapidata/api_client/models/compare_workflow_config.py +17 -2
- rapidata/api_client/models/compare_workflow_config_metadata_value.py +238 -0
- rapidata/api_client/models/compare_workflow_config_model.py +17 -2
- rapidata/api_client/models/compare_workflow_model.py +17 -2
- rapidata/api_client/models/count_metadata.py +1 -3
- rapidata/api_client/models/create_order_model.py +15 -1
- rapidata/api_client/models/early_stopping_referee_model.py +1 -1
- rapidata/api_client/models/evaluation_workflow_model.py +1 -1
- rapidata/api_client/models/get_rapid_responses_result.py +112 -0
- rapidata/api_client/models/get_simple_workflow_results_result.py +7 -1
- rapidata/api_client/models/image_dimension_metadata.py +1 -3
- rapidata/api_client/models/location_metadata.py +2 -4
- rapidata/api_client/models/metadata_visibilities.py +1 -0
- rapidata/api_client/models/order_model.py +2 -2
- rapidata/api_client/models/order_state.py +1 -0
- rapidata/api_client/models/original_filename_metadata.py +2 -4
- rapidata/api_client/models/prompt_metadata.py +1 -3
- rapidata/api_client/models/scrub_result.py +4 -4
- rapidata/api_client/models/source_url_metadata.py +98 -0
- rapidata/api_client/models/text_metadata.py +3 -5
- rapidata/api_client/models/transcription_metadata.py +1 -3
- rapidata/api_client/models/update_dimensions_model.py +87 -0
- rapidata/api_client_README.md +22 -4
- rapidata/rapidata_client/demographic/demographic_manager.py +35 -0
- rapidata/rapidata_client/filter/rapidata_filters.py +10 -2
- rapidata/rapidata_client/order/_rapidata_order_builder.py +7 -5
- rapidata/rapidata_client/order/rapidata_order.py +3 -5
- rapidata/rapidata_client/order/rapidata_order_manager.py +20 -20
- rapidata/rapidata_client/order/rapidata_results.py +2 -1
- rapidata/rapidata_client/rapidata_client.py +4 -0
- rapidata/rapidata_client/selection/rapidata_selections.py +10 -9
- rapidata/rapidata_client/settings/no_shuffle.py +2 -2
- rapidata/rapidata_client/settings/rapidata_settings.py +8 -0
- rapidata/rapidata_client/workflow/_ranking_workflow.py +15 -4
- rapidata/service/credential_manager.py +7 -0
- rapidata/service/openapi_service.py +6 -6
- {rapidata-2.14.0.dist-info → rapidata-2.15.0.dist-info}/METADATA +1 -1
- {rapidata-2.14.0.dist-info → rapidata-2.15.0.dist-info}/RECORD +51 -47
- {rapidata-2.14.0.dist-info → rapidata-2.15.0.dist-info}/LICENSE +0 -0
- {rapidata-2.14.0.dist-info → rapidata-2.15.0.dist-info}/WHEEL +0 -0
|
@@ -20,6 +20,7 @@ from pydantic import Field, StrictBytes, 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
|
+
from rapidata.api_client.models.get_rapid_responses_result import GetRapidResponsesResult
|
|
23
24
|
from rapidata.api_client.models.inspect_report_result import InspectReportResult
|
|
24
25
|
from rapidata.api_client.models.query_model import QueryModel
|
|
25
26
|
from rapidata.api_client.models.query_validation_rapids_result_paged_result import QueryValidationRapidsResultPagedResult
|
|
@@ -1126,6 +1127,267 @@ class RapidApi:
|
|
|
1126
1127
|
|
|
1127
1128
|
|
|
1128
1129
|
|
|
1130
|
+
@validate_call
|
|
1131
|
+
def rapid_rapid_id_responses_get(
|
|
1132
|
+
self,
|
|
1133
|
+
rapid_id: Annotated[StrictStr, Field(description="The rapid to get the responses for.")],
|
|
1134
|
+
_request_timeout: Union[
|
|
1135
|
+
None,
|
|
1136
|
+
Annotated[StrictFloat, Field(gt=0)],
|
|
1137
|
+
Tuple[
|
|
1138
|
+
Annotated[StrictFloat, Field(gt=0)],
|
|
1139
|
+
Annotated[StrictFloat, Field(gt=0)]
|
|
1140
|
+
]
|
|
1141
|
+
] = None,
|
|
1142
|
+
_request_auth: Optional[Dict[StrictStr, Any]] = None,
|
|
1143
|
+
_content_type: Optional[StrictStr] = None,
|
|
1144
|
+
_headers: Optional[Dict[StrictStr, Any]] = None,
|
|
1145
|
+
_host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
|
|
1146
|
+
) -> GetRapidResponsesResult:
|
|
1147
|
+
"""Gets all responses for a given rapid.
|
|
1148
|
+
|
|
1149
|
+
|
|
1150
|
+
:param rapid_id: The rapid to get the responses for. (required)
|
|
1151
|
+
:type rapid_id: str
|
|
1152
|
+
:param _request_timeout: timeout setting for this request. If one
|
|
1153
|
+
number provided, it will be total request
|
|
1154
|
+
timeout. It can also be a pair (tuple) of
|
|
1155
|
+
(connection, read) timeouts.
|
|
1156
|
+
:type _request_timeout: int, tuple(int, int), optional
|
|
1157
|
+
:param _request_auth: set to override the auth_settings for an a single
|
|
1158
|
+
request; this effectively ignores the
|
|
1159
|
+
authentication in the spec for a single request.
|
|
1160
|
+
:type _request_auth: dict, optional
|
|
1161
|
+
:param _content_type: force content-type for the request.
|
|
1162
|
+
:type _content_type: str, Optional
|
|
1163
|
+
:param _headers: set to override the headers for a single
|
|
1164
|
+
request; this effectively ignores the headers
|
|
1165
|
+
in the spec for a single request.
|
|
1166
|
+
:type _headers: dict, optional
|
|
1167
|
+
:param _host_index: set to override the host_index for a single
|
|
1168
|
+
request; this effectively ignores the host_index
|
|
1169
|
+
in the spec for a single request.
|
|
1170
|
+
:type _host_index: int, optional
|
|
1171
|
+
:return: Returns the result object.
|
|
1172
|
+
""" # noqa: E501
|
|
1173
|
+
|
|
1174
|
+
_param = self._rapid_rapid_id_responses_get_serialize(
|
|
1175
|
+
rapid_id=rapid_id,
|
|
1176
|
+
_request_auth=_request_auth,
|
|
1177
|
+
_content_type=_content_type,
|
|
1178
|
+
_headers=_headers,
|
|
1179
|
+
_host_index=_host_index
|
|
1180
|
+
)
|
|
1181
|
+
|
|
1182
|
+
_response_types_map: Dict[str, Optional[str]] = {
|
|
1183
|
+
'200': "GetRapidResponsesResult",
|
|
1184
|
+
}
|
|
1185
|
+
response_data = self.api_client.call_api(
|
|
1186
|
+
*_param,
|
|
1187
|
+
_request_timeout=_request_timeout
|
|
1188
|
+
)
|
|
1189
|
+
response_data.read()
|
|
1190
|
+
return self.api_client.response_deserialize(
|
|
1191
|
+
response_data=response_data,
|
|
1192
|
+
response_types_map=_response_types_map,
|
|
1193
|
+
).data
|
|
1194
|
+
|
|
1195
|
+
|
|
1196
|
+
@validate_call
|
|
1197
|
+
def rapid_rapid_id_responses_get_with_http_info(
|
|
1198
|
+
self,
|
|
1199
|
+
rapid_id: Annotated[StrictStr, Field(description="The rapid to get the responses for.")],
|
|
1200
|
+
_request_timeout: Union[
|
|
1201
|
+
None,
|
|
1202
|
+
Annotated[StrictFloat, Field(gt=0)],
|
|
1203
|
+
Tuple[
|
|
1204
|
+
Annotated[StrictFloat, Field(gt=0)],
|
|
1205
|
+
Annotated[StrictFloat, Field(gt=0)]
|
|
1206
|
+
]
|
|
1207
|
+
] = None,
|
|
1208
|
+
_request_auth: Optional[Dict[StrictStr, Any]] = None,
|
|
1209
|
+
_content_type: Optional[StrictStr] = None,
|
|
1210
|
+
_headers: Optional[Dict[StrictStr, Any]] = None,
|
|
1211
|
+
_host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
|
|
1212
|
+
) -> ApiResponse[GetRapidResponsesResult]:
|
|
1213
|
+
"""Gets all responses for a given rapid.
|
|
1214
|
+
|
|
1215
|
+
|
|
1216
|
+
:param rapid_id: The rapid to get the responses for. (required)
|
|
1217
|
+
:type rapid_id: str
|
|
1218
|
+
:param _request_timeout: timeout setting for this request. If one
|
|
1219
|
+
number provided, it will be total request
|
|
1220
|
+
timeout. It can also be a pair (tuple) of
|
|
1221
|
+
(connection, read) timeouts.
|
|
1222
|
+
:type _request_timeout: int, tuple(int, int), optional
|
|
1223
|
+
:param _request_auth: set to override the auth_settings for an a single
|
|
1224
|
+
request; this effectively ignores the
|
|
1225
|
+
authentication in the spec for a single request.
|
|
1226
|
+
:type _request_auth: dict, optional
|
|
1227
|
+
:param _content_type: force content-type for the request.
|
|
1228
|
+
:type _content_type: str, Optional
|
|
1229
|
+
:param _headers: set to override the headers for a single
|
|
1230
|
+
request; this effectively ignores the headers
|
|
1231
|
+
in the spec for a single request.
|
|
1232
|
+
:type _headers: dict, optional
|
|
1233
|
+
:param _host_index: set to override the host_index for a single
|
|
1234
|
+
request; this effectively ignores the host_index
|
|
1235
|
+
in the spec for a single request.
|
|
1236
|
+
:type _host_index: int, optional
|
|
1237
|
+
:return: Returns the result object.
|
|
1238
|
+
""" # noqa: E501
|
|
1239
|
+
|
|
1240
|
+
_param = self._rapid_rapid_id_responses_get_serialize(
|
|
1241
|
+
rapid_id=rapid_id,
|
|
1242
|
+
_request_auth=_request_auth,
|
|
1243
|
+
_content_type=_content_type,
|
|
1244
|
+
_headers=_headers,
|
|
1245
|
+
_host_index=_host_index
|
|
1246
|
+
)
|
|
1247
|
+
|
|
1248
|
+
_response_types_map: Dict[str, Optional[str]] = {
|
|
1249
|
+
'200': "GetRapidResponsesResult",
|
|
1250
|
+
}
|
|
1251
|
+
response_data = self.api_client.call_api(
|
|
1252
|
+
*_param,
|
|
1253
|
+
_request_timeout=_request_timeout
|
|
1254
|
+
)
|
|
1255
|
+
response_data.read()
|
|
1256
|
+
return self.api_client.response_deserialize(
|
|
1257
|
+
response_data=response_data,
|
|
1258
|
+
response_types_map=_response_types_map,
|
|
1259
|
+
)
|
|
1260
|
+
|
|
1261
|
+
|
|
1262
|
+
@validate_call
|
|
1263
|
+
def rapid_rapid_id_responses_get_without_preload_content(
|
|
1264
|
+
self,
|
|
1265
|
+
rapid_id: Annotated[StrictStr, Field(description="The rapid to get the responses for.")],
|
|
1266
|
+
_request_timeout: Union[
|
|
1267
|
+
None,
|
|
1268
|
+
Annotated[StrictFloat, Field(gt=0)],
|
|
1269
|
+
Tuple[
|
|
1270
|
+
Annotated[StrictFloat, Field(gt=0)],
|
|
1271
|
+
Annotated[StrictFloat, Field(gt=0)]
|
|
1272
|
+
]
|
|
1273
|
+
] = None,
|
|
1274
|
+
_request_auth: Optional[Dict[StrictStr, Any]] = None,
|
|
1275
|
+
_content_type: Optional[StrictStr] = None,
|
|
1276
|
+
_headers: Optional[Dict[StrictStr, Any]] = None,
|
|
1277
|
+
_host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
|
|
1278
|
+
) -> RESTResponseType:
|
|
1279
|
+
"""Gets all responses for a given rapid.
|
|
1280
|
+
|
|
1281
|
+
|
|
1282
|
+
:param rapid_id: The rapid to get the responses for. (required)
|
|
1283
|
+
:type rapid_id: str
|
|
1284
|
+
:param _request_timeout: timeout setting for this request. If one
|
|
1285
|
+
number provided, it will be total request
|
|
1286
|
+
timeout. It can also be a pair (tuple) of
|
|
1287
|
+
(connection, read) timeouts.
|
|
1288
|
+
:type _request_timeout: int, tuple(int, int), optional
|
|
1289
|
+
:param _request_auth: set to override the auth_settings for an a single
|
|
1290
|
+
request; this effectively ignores the
|
|
1291
|
+
authentication in the spec for a single request.
|
|
1292
|
+
:type _request_auth: dict, optional
|
|
1293
|
+
:param _content_type: force content-type for the request.
|
|
1294
|
+
:type _content_type: str, Optional
|
|
1295
|
+
:param _headers: set to override the headers for a single
|
|
1296
|
+
request; this effectively ignores the headers
|
|
1297
|
+
in the spec for a single request.
|
|
1298
|
+
:type _headers: dict, optional
|
|
1299
|
+
:param _host_index: set to override the host_index for a single
|
|
1300
|
+
request; this effectively ignores the host_index
|
|
1301
|
+
in the spec for a single request.
|
|
1302
|
+
:type _host_index: int, optional
|
|
1303
|
+
:return: Returns the result object.
|
|
1304
|
+
""" # noqa: E501
|
|
1305
|
+
|
|
1306
|
+
_param = self._rapid_rapid_id_responses_get_serialize(
|
|
1307
|
+
rapid_id=rapid_id,
|
|
1308
|
+
_request_auth=_request_auth,
|
|
1309
|
+
_content_type=_content_type,
|
|
1310
|
+
_headers=_headers,
|
|
1311
|
+
_host_index=_host_index
|
|
1312
|
+
)
|
|
1313
|
+
|
|
1314
|
+
_response_types_map: Dict[str, Optional[str]] = {
|
|
1315
|
+
'200': "GetRapidResponsesResult",
|
|
1316
|
+
}
|
|
1317
|
+
response_data = self.api_client.call_api(
|
|
1318
|
+
*_param,
|
|
1319
|
+
_request_timeout=_request_timeout
|
|
1320
|
+
)
|
|
1321
|
+
return response_data.response
|
|
1322
|
+
|
|
1323
|
+
|
|
1324
|
+
def _rapid_rapid_id_responses_get_serialize(
|
|
1325
|
+
self,
|
|
1326
|
+
rapid_id,
|
|
1327
|
+
_request_auth,
|
|
1328
|
+
_content_type,
|
|
1329
|
+
_headers,
|
|
1330
|
+
_host_index,
|
|
1331
|
+
) -> RequestSerialized:
|
|
1332
|
+
|
|
1333
|
+
_host = None
|
|
1334
|
+
|
|
1335
|
+
_collection_formats: Dict[str, str] = {
|
|
1336
|
+
}
|
|
1337
|
+
|
|
1338
|
+
_path_params: Dict[str, str] = {}
|
|
1339
|
+
_query_params: List[Tuple[str, str]] = []
|
|
1340
|
+
_header_params: Dict[str, Optional[str]] = _headers or {}
|
|
1341
|
+
_form_params: List[Tuple[str, str]] = []
|
|
1342
|
+
_files: Dict[
|
|
1343
|
+
str, Union[str, bytes, List[str], List[bytes], List[Tuple[str, bytes]]]
|
|
1344
|
+
] = {}
|
|
1345
|
+
_body_params: Optional[bytes] = None
|
|
1346
|
+
|
|
1347
|
+
# process the path parameters
|
|
1348
|
+
if rapid_id is not None:
|
|
1349
|
+
_path_params['rapidId'] = rapid_id
|
|
1350
|
+
# process the query parameters
|
|
1351
|
+
# process the header parameters
|
|
1352
|
+
# process the form parameters
|
|
1353
|
+
# process the body parameter
|
|
1354
|
+
|
|
1355
|
+
|
|
1356
|
+
# set the HTTP header `Accept`
|
|
1357
|
+
if 'Accept' not in _header_params:
|
|
1358
|
+
_header_params['Accept'] = self.api_client.select_header_accept(
|
|
1359
|
+
[
|
|
1360
|
+
'text/plain',
|
|
1361
|
+
'application/json',
|
|
1362
|
+
'text/json'
|
|
1363
|
+
]
|
|
1364
|
+
)
|
|
1365
|
+
|
|
1366
|
+
|
|
1367
|
+
# authentication setting
|
|
1368
|
+
_auth_settings: List[str] = [
|
|
1369
|
+
'bearer',
|
|
1370
|
+
'oauth2'
|
|
1371
|
+
]
|
|
1372
|
+
|
|
1373
|
+
return self.api_client.param_serialize(
|
|
1374
|
+
method='GET',
|
|
1375
|
+
resource_path='/rapid/{rapidId}/responses',
|
|
1376
|
+
path_params=_path_params,
|
|
1377
|
+
query_params=_query_params,
|
|
1378
|
+
header_params=_header_params,
|
|
1379
|
+
body=_body_params,
|
|
1380
|
+
post_params=_form_params,
|
|
1381
|
+
files=_files,
|
|
1382
|
+
auth_settings=_auth_settings,
|
|
1383
|
+
collection_formats=_collection_formats,
|
|
1384
|
+
_host=_host,
|
|
1385
|
+
_request_auth=_request_auth
|
|
1386
|
+
)
|
|
1387
|
+
|
|
1388
|
+
|
|
1389
|
+
|
|
1390
|
+
|
|
1129
1391
|
@validate_call
|
|
1130
1392
|
def rapid_report_id_get(
|
|
1131
1393
|
self,
|
|
@@ -27,6 +27,7 @@ from rapidata.api_client.models.get_available_validation_sets_result import GetA
|
|
|
27
27
|
from rapidata.api_client.models.get_validation_set_by_id_result import GetValidationSetByIdResult
|
|
28
28
|
from rapidata.api_client.models.import_validation_set_from_file_result import ImportValidationSetFromFileResult
|
|
29
29
|
from rapidata.api_client.models.query_model import QueryModel
|
|
30
|
+
from rapidata.api_client.models.update_dimensions_model import UpdateDimensionsModel
|
|
30
31
|
from rapidata.api_client.models.validation_import_post_request_blueprint import ValidationImportPostRequestBlueprint
|
|
31
32
|
from rapidata.api_client.models.validation_set_model_paged_result import ValidationSetModelPagedResult
|
|
32
33
|
|
|
@@ -2195,3 +2196,285 @@ class ValidationApi:
|
|
|
2195
2196
|
)
|
|
2196
2197
|
|
|
2197
2198
|
|
|
2199
|
+
|
|
2200
|
+
|
|
2201
|
+
@validate_call
|
|
2202
|
+
def validation_validation_set_id_dimensions_patch(
|
|
2203
|
+
self,
|
|
2204
|
+
validation_set_id: StrictStr,
|
|
2205
|
+
update_dimensions_model: Annotated[Optional[UpdateDimensionsModel], Field(description="The model containing the dimensions")] = None,
|
|
2206
|
+
_request_timeout: Union[
|
|
2207
|
+
None,
|
|
2208
|
+
Annotated[StrictFloat, Field(gt=0)],
|
|
2209
|
+
Tuple[
|
|
2210
|
+
Annotated[StrictFloat, Field(gt=0)],
|
|
2211
|
+
Annotated[StrictFloat, Field(gt=0)]
|
|
2212
|
+
]
|
|
2213
|
+
] = None,
|
|
2214
|
+
_request_auth: Optional[Dict[StrictStr, Any]] = None,
|
|
2215
|
+
_content_type: Optional[StrictStr] = None,
|
|
2216
|
+
_headers: Optional[Dict[StrictStr, Any]] = None,
|
|
2217
|
+
_host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
|
|
2218
|
+
) -> None:
|
|
2219
|
+
"""Updates the dimensions of all rapids within a validation set.
|
|
2220
|
+
|
|
2221
|
+
|
|
2222
|
+
:param validation_set_id: (required)
|
|
2223
|
+
:type validation_set_id: str
|
|
2224
|
+
:param update_dimensions_model: The model containing the dimensions
|
|
2225
|
+
:type update_dimensions_model: UpdateDimensionsModel
|
|
2226
|
+
:param _request_timeout: timeout setting for this request. If one
|
|
2227
|
+
number provided, it will be total request
|
|
2228
|
+
timeout. It can also be a pair (tuple) of
|
|
2229
|
+
(connection, read) timeouts.
|
|
2230
|
+
:type _request_timeout: int, tuple(int, int), optional
|
|
2231
|
+
:param _request_auth: set to override the auth_settings for an a single
|
|
2232
|
+
request; this effectively ignores the
|
|
2233
|
+
authentication in the spec for a single request.
|
|
2234
|
+
:type _request_auth: dict, optional
|
|
2235
|
+
:param _content_type: force content-type for the request.
|
|
2236
|
+
:type _content_type: str, Optional
|
|
2237
|
+
:param _headers: set to override the headers for a single
|
|
2238
|
+
request; this effectively ignores the headers
|
|
2239
|
+
in the spec for a single request.
|
|
2240
|
+
:type _headers: dict, optional
|
|
2241
|
+
:param _host_index: set to override the host_index for a single
|
|
2242
|
+
request; this effectively ignores the host_index
|
|
2243
|
+
in the spec for a single request.
|
|
2244
|
+
:type _host_index: int, optional
|
|
2245
|
+
:return: Returns the result object.
|
|
2246
|
+
""" # noqa: E501
|
|
2247
|
+
|
|
2248
|
+
_param = self._validation_validation_set_id_dimensions_patch_serialize(
|
|
2249
|
+
validation_set_id=validation_set_id,
|
|
2250
|
+
update_dimensions_model=update_dimensions_model,
|
|
2251
|
+
_request_auth=_request_auth,
|
|
2252
|
+
_content_type=_content_type,
|
|
2253
|
+
_headers=_headers,
|
|
2254
|
+
_host_index=_host_index
|
|
2255
|
+
)
|
|
2256
|
+
|
|
2257
|
+
_response_types_map: Dict[str, Optional[str]] = {
|
|
2258
|
+
'200': None,
|
|
2259
|
+
}
|
|
2260
|
+
response_data = self.api_client.call_api(
|
|
2261
|
+
*_param,
|
|
2262
|
+
_request_timeout=_request_timeout
|
|
2263
|
+
)
|
|
2264
|
+
response_data.read()
|
|
2265
|
+
return self.api_client.response_deserialize(
|
|
2266
|
+
response_data=response_data,
|
|
2267
|
+
response_types_map=_response_types_map,
|
|
2268
|
+
).data
|
|
2269
|
+
|
|
2270
|
+
|
|
2271
|
+
@validate_call
|
|
2272
|
+
def validation_validation_set_id_dimensions_patch_with_http_info(
|
|
2273
|
+
self,
|
|
2274
|
+
validation_set_id: StrictStr,
|
|
2275
|
+
update_dimensions_model: Annotated[Optional[UpdateDimensionsModel], Field(description="The model containing the dimensions")] = None,
|
|
2276
|
+
_request_timeout: Union[
|
|
2277
|
+
None,
|
|
2278
|
+
Annotated[StrictFloat, Field(gt=0)],
|
|
2279
|
+
Tuple[
|
|
2280
|
+
Annotated[StrictFloat, Field(gt=0)],
|
|
2281
|
+
Annotated[StrictFloat, Field(gt=0)]
|
|
2282
|
+
]
|
|
2283
|
+
] = None,
|
|
2284
|
+
_request_auth: Optional[Dict[StrictStr, Any]] = None,
|
|
2285
|
+
_content_type: Optional[StrictStr] = None,
|
|
2286
|
+
_headers: Optional[Dict[StrictStr, Any]] = None,
|
|
2287
|
+
_host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
|
|
2288
|
+
) -> ApiResponse[None]:
|
|
2289
|
+
"""Updates the dimensions of all rapids within a validation set.
|
|
2290
|
+
|
|
2291
|
+
|
|
2292
|
+
:param validation_set_id: (required)
|
|
2293
|
+
:type validation_set_id: str
|
|
2294
|
+
:param update_dimensions_model: The model containing the dimensions
|
|
2295
|
+
:type update_dimensions_model: UpdateDimensionsModel
|
|
2296
|
+
:param _request_timeout: timeout setting for this request. If one
|
|
2297
|
+
number provided, it will be total request
|
|
2298
|
+
timeout. It can also be a pair (tuple) of
|
|
2299
|
+
(connection, read) timeouts.
|
|
2300
|
+
:type _request_timeout: int, tuple(int, int), optional
|
|
2301
|
+
:param _request_auth: set to override the auth_settings for an a single
|
|
2302
|
+
request; this effectively ignores the
|
|
2303
|
+
authentication in the spec for a single request.
|
|
2304
|
+
:type _request_auth: dict, optional
|
|
2305
|
+
:param _content_type: force content-type for the request.
|
|
2306
|
+
:type _content_type: str, Optional
|
|
2307
|
+
:param _headers: set to override the headers for a single
|
|
2308
|
+
request; this effectively ignores the headers
|
|
2309
|
+
in the spec for a single request.
|
|
2310
|
+
:type _headers: dict, optional
|
|
2311
|
+
:param _host_index: set to override the host_index for a single
|
|
2312
|
+
request; this effectively ignores the host_index
|
|
2313
|
+
in the spec for a single request.
|
|
2314
|
+
:type _host_index: int, optional
|
|
2315
|
+
:return: Returns the result object.
|
|
2316
|
+
""" # noqa: E501
|
|
2317
|
+
|
|
2318
|
+
_param = self._validation_validation_set_id_dimensions_patch_serialize(
|
|
2319
|
+
validation_set_id=validation_set_id,
|
|
2320
|
+
update_dimensions_model=update_dimensions_model,
|
|
2321
|
+
_request_auth=_request_auth,
|
|
2322
|
+
_content_type=_content_type,
|
|
2323
|
+
_headers=_headers,
|
|
2324
|
+
_host_index=_host_index
|
|
2325
|
+
)
|
|
2326
|
+
|
|
2327
|
+
_response_types_map: Dict[str, Optional[str]] = {
|
|
2328
|
+
'200': None,
|
|
2329
|
+
}
|
|
2330
|
+
response_data = self.api_client.call_api(
|
|
2331
|
+
*_param,
|
|
2332
|
+
_request_timeout=_request_timeout
|
|
2333
|
+
)
|
|
2334
|
+
response_data.read()
|
|
2335
|
+
return self.api_client.response_deserialize(
|
|
2336
|
+
response_data=response_data,
|
|
2337
|
+
response_types_map=_response_types_map,
|
|
2338
|
+
)
|
|
2339
|
+
|
|
2340
|
+
|
|
2341
|
+
@validate_call
|
|
2342
|
+
def validation_validation_set_id_dimensions_patch_without_preload_content(
|
|
2343
|
+
self,
|
|
2344
|
+
validation_set_id: StrictStr,
|
|
2345
|
+
update_dimensions_model: Annotated[Optional[UpdateDimensionsModel], Field(description="The model containing the dimensions")] = None,
|
|
2346
|
+
_request_timeout: Union[
|
|
2347
|
+
None,
|
|
2348
|
+
Annotated[StrictFloat, Field(gt=0)],
|
|
2349
|
+
Tuple[
|
|
2350
|
+
Annotated[StrictFloat, Field(gt=0)],
|
|
2351
|
+
Annotated[StrictFloat, Field(gt=0)]
|
|
2352
|
+
]
|
|
2353
|
+
] = None,
|
|
2354
|
+
_request_auth: Optional[Dict[StrictStr, Any]] = None,
|
|
2355
|
+
_content_type: Optional[StrictStr] = None,
|
|
2356
|
+
_headers: Optional[Dict[StrictStr, Any]] = None,
|
|
2357
|
+
_host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
|
|
2358
|
+
) -> RESTResponseType:
|
|
2359
|
+
"""Updates the dimensions of all rapids within a validation set.
|
|
2360
|
+
|
|
2361
|
+
|
|
2362
|
+
:param validation_set_id: (required)
|
|
2363
|
+
:type validation_set_id: str
|
|
2364
|
+
:param update_dimensions_model: The model containing the dimensions
|
|
2365
|
+
:type update_dimensions_model: UpdateDimensionsModel
|
|
2366
|
+
:param _request_timeout: timeout setting for this request. If one
|
|
2367
|
+
number provided, it will be total request
|
|
2368
|
+
timeout. It can also be a pair (tuple) of
|
|
2369
|
+
(connection, read) timeouts.
|
|
2370
|
+
:type _request_timeout: int, tuple(int, int), optional
|
|
2371
|
+
:param _request_auth: set to override the auth_settings for an a single
|
|
2372
|
+
request; this effectively ignores the
|
|
2373
|
+
authentication in the spec for a single request.
|
|
2374
|
+
:type _request_auth: dict, optional
|
|
2375
|
+
:param _content_type: force content-type for the request.
|
|
2376
|
+
:type _content_type: str, Optional
|
|
2377
|
+
:param _headers: set to override the headers for a single
|
|
2378
|
+
request; this effectively ignores the headers
|
|
2379
|
+
in the spec for a single request.
|
|
2380
|
+
:type _headers: dict, optional
|
|
2381
|
+
:param _host_index: set to override the host_index for a single
|
|
2382
|
+
request; this effectively ignores the host_index
|
|
2383
|
+
in the spec for a single request.
|
|
2384
|
+
:type _host_index: int, optional
|
|
2385
|
+
:return: Returns the result object.
|
|
2386
|
+
""" # noqa: E501
|
|
2387
|
+
|
|
2388
|
+
_param = self._validation_validation_set_id_dimensions_patch_serialize(
|
|
2389
|
+
validation_set_id=validation_set_id,
|
|
2390
|
+
update_dimensions_model=update_dimensions_model,
|
|
2391
|
+
_request_auth=_request_auth,
|
|
2392
|
+
_content_type=_content_type,
|
|
2393
|
+
_headers=_headers,
|
|
2394
|
+
_host_index=_host_index
|
|
2395
|
+
)
|
|
2396
|
+
|
|
2397
|
+
_response_types_map: Dict[str, Optional[str]] = {
|
|
2398
|
+
'200': None,
|
|
2399
|
+
}
|
|
2400
|
+
response_data = self.api_client.call_api(
|
|
2401
|
+
*_param,
|
|
2402
|
+
_request_timeout=_request_timeout
|
|
2403
|
+
)
|
|
2404
|
+
return response_data.response
|
|
2405
|
+
|
|
2406
|
+
|
|
2407
|
+
def _validation_validation_set_id_dimensions_patch_serialize(
|
|
2408
|
+
self,
|
|
2409
|
+
validation_set_id,
|
|
2410
|
+
update_dimensions_model,
|
|
2411
|
+
_request_auth,
|
|
2412
|
+
_content_type,
|
|
2413
|
+
_headers,
|
|
2414
|
+
_host_index,
|
|
2415
|
+
) -> RequestSerialized:
|
|
2416
|
+
|
|
2417
|
+
_host = None
|
|
2418
|
+
|
|
2419
|
+
_collection_formats: Dict[str, str] = {
|
|
2420
|
+
}
|
|
2421
|
+
|
|
2422
|
+
_path_params: Dict[str, str] = {}
|
|
2423
|
+
_query_params: List[Tuple[str, str]] = []
|
|
2424
|
+
_header_params: Dict[str, Optional[str]] = _headers or {}
|
|
2425
|
+
_form_params: List[Tuple[str, str]] = []
|
|
2426
|
+
_files: Dict[
|
|
2427
|
+
str, Union[str, bytes, List[str], List[bytes], List[Tuple[str, bytes]]]
|
|
2428
|
+
] = {}
|
|
2429
|
+
_body_params: Optional[bytes] = None
|
|
2430
|
+
|
|
2431
|
+
# process the path parameters
|
|
2432
|
+
if validation_set_id is not None:
|
|
2433
|
+
_path_params['validationSetId'] = validation_set_id
|
|
2434
|
+
# process the query parameters
|
|
2435
|
+
# process the header parameters
|
|
2436
|
+
# process the form parameters
|
|
2437
|
+
# process the body parameter
|
|
2438
|
+
if update_dimensions_model is not None:
|
|
2439
|
+
_body_params = update_dimensions_model
|
|
2440
|
+
|
|
2441
|
+
|
|
2442
|
+
|
|
2443
|
+
# set the HTTP header `Content-Type`
|
|
2444
|
+
if _content_type:
|
|
2445
|
+
_header_params['Content-Type'] = _content_type
|
|
2446
|
+
else:
|
|
2447
|
+
_default_content_type = (
|
|
2448
|
+
self.api_client.select_header_content_type(
|
|
2449
|
+
[
|
|
2450
|
+
'application/json',
|
|
2451
|
+
'text/json',
|
|
2452
|
+
'application/*+json'
|
|
2453
|
+
]
|
|
2454
|
+
)
|
|
2455
|
+
)
|
|
2456
|
+
if _default_content_type is not None:
|
|
2457
|
+
_header_params['Content-Type'] = _default_content_type
|
|
2458
|
+
|
|
2459
|
+
# authentication setting
|
|
2460
|
+
_auth_settings: List[str] = [
|
|
2461
|
+
'bearer',
|
|
2462
|
+
'oauth2'
|
|
2463
|
+
]
|
|
2464
|
+
|
|
2465
|
+
return self.api_client.param_serialize(
|
|
2466
|
+
method='PATCH',
|
|
2467
|
+
resource_path='/validation/{validationSetId}/dimensions',
|
|
2468
|
+
path_params=_path_params,
|
|
2469
|
+
query_params=_query_params,
|
|
2470
|
+
header_params=_header_params,
|
|
2471
|
+
body=_body_params,
|
|
2472
|
+
post_params=_form_params,
|
|
2473
|
+
files=_files,
|
|
2474
|
+
auth_settings=_auth_settings,
|
|
2475
|
+
collection_formats=_collection_formats,
|
|
2476
|
+
_host=_host,
|
|
2477
|
+
_request_auth=_request_auth
|
|
2478
|
+
)
|
|
2479
|
+
|
|
2480
|
+
|
|
@@ -1122,7 +1122,7 @@ class WorkflowApi:
|
|
|
1122
1122
|
_headers: Optional[Dict[StrictStr, Any]] = None,
|
|
1123
1123
|
_host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
|
|
1124
1124
|
) -> GetResponsesResult:
|
|
1125
|
-
"""Gets the
|
|
1125
|
+
"""Gets the limit most recent or oldest responses for a workflow. The responses are not guaranteed to be of any specific rapid. Instead, this endpoint returns all responses to any rapid in the workflow.
|
|
1126
1126
|
|
|
1127
1127
|
|
|
1128
1128
|
:param id: The ID of the workflow to get the responses for. (required)
|
|
@@ -1196,7 +1196,7 @@ class WorkflowApi:
|
|
|
1196
1196
|
_headers: Optional[Dict[StrictStr, Any]] = None,
|
|
1197
1197
|
_host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
|
|
1198
1198
|
) -> ApiResponse[GetResponsesResult]:
|
|
1199
|
-
"""Gets the
|
|
1199
|
+
"""Gets the limit most recent or oldest responses for a workflow. The responses are not guaranteed to be of any specific rapid. Instead, this endpoint returns all responses to any rapid in the workflow.
|
|
1200
1200
|
|
|
1201
1201
|
|
|
1202
1202
|
:param id: The ID of the workflow to get the responses for. (required)
|
|
@@ -1270,7 +1270,7 @@ class WorkflowApi:
|
|
|
1270
1270
|
_headers: Optional[Dict[StrictStr, Any]] = None,
|
|
1271
1271
|
_host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
|
|
1272
1272
|
) -> RESTResponseType:
|
|
1273
|
-
"""Gets the
|
|
1273
|
+
"""Gets the limit most recent or oldest responses for a workflow. The responses are not guaranteed to be of any specific rapid. Instead, this endpoint returns all responses to any rapid in the workflow.
|
|
1274
1274
|
|
|
1275
1275
|
|
|
1276
1276
|
:param id: The ID of the workflow to get the responses for. (required)
|