rapidata 2.38.0__py3-none-any.whl → 2.39.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.

Files changed (64) hide show
  1. rapidata/__init__.py +1 -1
  2. rapidata/api_client/__init__.py +4 -5
  3. rapidata/api_client/api/benchmark_api.py +289 -3
  4. rapidata/api_client/api/leaderboard_api.py +35 -1
  5. rapidata/api_client/api/participant_api.py +289 -3
  6. rapidata/api_client/api/validation_set_api.py +119 -400
  7. rapidata/api_client/models/__init__.py +4 -5
  8. rapidata/api_client/models/ab_test_selection_a_inner.py +1 -1
  9. rapidata/api_client/models/compare_workflow_model1.py +1 -8
  10. rapidata/api_client/models/conditional_validation_selection.py +4 -9
  11. rapidata/api_client/models/confidence_interval.py +98 -0
  12. rapidata/api_client/models/create_simple_pipeline_model_pipeline_steps_inner.py +8 -22
  13. rapidata/api_client/models/get_standing_by_id_result.py +7 -2
  14. rapidata/api_client/models/get_validation_set_by_id_result.py +4 -2
  15. rapidata/api_client/models/simple_workflow_model1.py +1 -8
  16. rapidata/api_client/models/standing_by_leaderboard.py +10 -4
  17. rapidata/api_client/models/update_benchmark_model.py +87 -0
  18. rapidata/api_client/models/update_participant_model.py +87 -0
  19. rapidata/api_client/models/update_validation_set_model.py +93 -0
  20. rapidata/api_client/models/validation_chance.py +20 -3
  21. rapidata/api_client/models/validation_set_model.py +5 -42
  22. rapidata/api_client_README.md +7 -7
  23. rapidata/rapidata_client/benchmark/rapidata_benchmark.py +53 -22
  24. rapidata/rapidata_client/benchmark/rapidata_benchmark_manager.py +60 -23
  25. rapidata/rapidata_client/config/logging_config.py +1 -1
  26. rapidata/rapidata_client/config/order_config.py +1 -1
  27. rapidata/rapidata_client/config/rapidata_config.py +1 -1
  28. rapidata/rapidata_client/config/upload_config.py +1 -1
  29. rapidata/rapidata_client/datapoints/assets/__init__.py +1 -0
  30. rapidata/rapidata_client/datapoints/assets/_base_asset.py +2 -0
  31. rapidata/rapidata_client/datapoints/assets/_text_asset.py +2 -2
  32. rapidata/rapidata_client/datapoints/assets/data_type_enum.py +1 -1
  33. rapidata/rapidata_client/datapoints/metadata/_media_asset_metadata.py +9 -8
  34. rapidata/rapidata_client/datapoints/metadata/_prompt_metadata.py +1 -2
  35. rapidata/rapidata_client/filter/models/age_group.py +4 -4
  36. rapidata/rapidata_client/filter/models/gender.py +4 -2
  37. rapidata/rapidata_client/filter/rapidata_filters.py +12 -9
  38. rapidata/rapidata_client/referee/__init__.py +1 -1
  39. rapidata/rapidata_client/referee/_base_referee.py +3 -1
  40. rapidata/rapidata_client/referee/_early_stopping_referee.py +2 -2
  41. rapidata/rapidata_client/selection/ab_test_selection.py +7 -3
  42. rapidata/rapidata_client/selection/capped_selection.py +2 -2
  43. rapidata/rapidata_client/selection/conditional_validation_selection.py +12 -6
  44. rapidata/rapidata_client/selection/demographic_selection.py +9 -6
  45. rapidata/rapidata_client/selection/rapidata_selections.py +11 -8
  46. rapidata/rapidata_client/selection/shuffling_selection.py +5 -5
  47. rapidata/rapidata_client/selection/validation_selection.py +9 -5
  48. rapidata/rapidata_client/settings/allow_neither_both.py +1 -0
  49. rapidata/rapidata_client/settings/custom_setting.py +3 -2
  50. rapidata/rapidata_client/settings/models/translation_behaviour_options.py +3 -2
  51. rapidata/rapidata_client/settings/no_shuffle.py +4 -2
  52. rapidata/rapidata_client/settings/play_video_until_the_end.py +7 -4
  53. rapidata/rapidata_client/settings/rapidata_settings.py +4 -3
  54. rapidata/rapidata_client/settings/translation_behaviour.py +7 -5
  55. rapidata/rapidata_client/validation/rapidata_validation_set.py +7 -5
  56. rapidata/rapidata_client/validation/rapids/box.py +3 -1
  57. rapidata/rapidata_client/validation/rapids/rapids_manager.py +174 -141
  58. rapidata/rapidata_client/workflow/__init__.py +1 -1
  59. rapidata/service/__init__.py +1 -1
  60. rapidata/service/local_file_service.py +9 -8
  61. {rapidata-2.38.0.dist-info → rapidata-2.39.0.dist-info}/METADATA +1 -1
  62. {rapidata-2.38.0.dist-info → rapidata-2.39.0.dist-info}/RECORD +64 -60
  63. {rapidata-2.38.0.dist-info → rapidata-2.39.0.dist-info}/LICENSE +0 -0
  64. {rapidata-2.38.0.dist-info → rapidata-2.39.0.dist-info}/WHEEL +0 -0
@@ -31,6 +31,7 @@ from rapidata.api_client.models.import_validation_set_from_file_result import Im
31
31
  from rapidata.api_client.models.query_model import QueryModel
32
32
  from rapidata.api_client.models.update_dimensions_model import UpdateDimensionsModel
33
33
  from rapidata.api_client.models.update_should_alert_model import UpdateShouldAlertModel
34
+ from rapidata.api_client.models.update_validation_set_model import UpdateValidationSetModel
34
35
  from rapidata.api_client.models.validation_set_model_paged_result import ValidationSetModelPagedResult
35
36
  from rapidata.api_client.models.validation_set_zip_post_request_blueprint import ValidationSetZipPostRequestBlueprint
36
37
 
@@ -921,7 +922,7 @@ class ValidationSetApi:
921
922
  _headers: Optional[Dict[StrictStr, Any]] = None,
922
923
  _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
923
924
  ) -> None:
924
- """Updates the dimensions of all rapids within a validation set.
925
+ """(Deprecated) Updates the dimensions of all rapids within a validation set.
925
926
 
926
927
 
927
928
  :param validation_set_id: The Id of the validation set to update the dimensions for. (required)
@@ -949,6 +950,7 @@ class ValidationSetApi:
949
950
  :type _host_index: int, optional
950
951
  :return: Returns the result object.
951
952
  """ # noqa: E501
953
+ warnings.warn("PATCH /validation-set/{validationSetId}/dimensions is deprecated.", DeprecationWarning)
952
954
 
953
955
  _param = self._validation_set_validation_set_id_dimensions_patch_serialize(
954
956
  validation_set_id=validation_set_id,
@@ -991,7 +993,7 @@ class ValidationSetApi:
991
993
  _headers: Optional[Dict[StrictStr, Any]] = None,
992
994
  _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
993
995
  ) -> ApiResponse[None]:
994
- """Updates the dimensions of all rapids within a validation set.
996
+ """(Deprecated) Updates the dimensions of all rapids within a validation set.
995
997
 
996
998
 
997
999
  :param validation_set_id: The Id of the validation set to update the dimensions for. (required)
@@ -1019,6 +1021,7 @@ class ValidationSetApi:
1019
1021
  :type _host_index: int, optional
1020
1022
  :return: Returns the result object.
1021
1023
  """ # noqa: E501
1024
+ warnings.warn("PATCH /validation-set/{validationSetId}/dimensions is deprecated.", DeprecationWarning)
1022
1025
 
1023
1026
  _param = self._validation_set_validation_set_id_dimensions_patch_serialize(
1024
1027
  validation_set_id=validation_set_id,
@@ -1061,7 +1064,7 @@ class ValidationSetApi:
1061
1064
  _headers: Optional[Dict[StrictStr, Any]] = None,
1062
1065
  _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
1063
1066
  ) -> RESTResponseType:
1064
- """Updates the dimensions of all rapids within a validation set.
1067
+ """(Deprecated) Updates the dimensions of all rapids within a validation set.
1065
1068
 
1066
1069
 
1067
1070
  :param validation_set_id: The Id of the validation set to update the dimensions for. (required)
@@ -1089,6 +1092,7 @@ class ValidationSetApi:
1089
1092
  :type _host_index: int, optional
1090
1093
  :return: Returns the result object.
1091
1094
  """ # noqa: E501
1095
+ warnings.warn("PATCH /validation-set/{validationSetId}/dimensions is deprecated.", DeprecationWarning)
1092
1096
 
1093
1097
  _param = self._validation_set_validation_set_id_dimensions_patch_serialize(
1094
1098
  validation_set_id=validation_set_id,
@@ -1186,10 +1190,9 @@ class ValidationSetApi:
1186
1190
 
1187
1191
 
1188
1192
  @validate_call
1189
- def validation_set_validation_set_id_dimensions_put(
1193
+ def validation_set_validation_set_id_export_get(
1190
1194
  self,
1191
- validation_set_id: Annotated[StrictStr, Field(description="The Id of the validation set to update the dimensions for.")],
1192
- update_dimensions_model: Annotated[Optional[UpdateDimensionsModel], Field(description="The body request for updating the dimensions.")] = None,
1195
+ validation_set_id: StrictStr,
1193
1196
  _request_timeout: Union[
1194
1197
  None,
1195
1198
  Annotated[StrictFloat, Field(gt=0)],
@@ -1202,14 +1205,12 @@ class ValidationSetApi:
1202
1205
  _content_type: Optional[StrictStr] = None,
1203
1206
  _headers: Optional[Dict[StrictStr, Any]] = None,
1204
1207
  _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
1205
- ) -> None:
1206
- """(Deprecated) Updates the dimensions of all rapids within a validation set.
1208
+ ) -> bytearray:
1209
+ """Exports all rapids of a validation-set to a file.
1207
1210
 
1208
1211
 
1209
- :param validation_set_id: The Id of the validation set to update the dimensions for. (required)
1212
+ :param validation_set_id: (required)
1210
1213
  :type validation_set_id: str
1211
- :param update_dimensions_model: The body request for updating the dimensions.
1212
- :type update_dimensions_model: UpdateDimensionsModel
1213
1214
  :param _request_timeout: timeout setting for this request. If one
1214
1215
  number provided, it will be total request
1215
1216
  timeout. It can also be a pair (tuple) of
@@ -1231,11 +1232,9 @@ class ValidationSetApi:
1231
1232
  :type _host_index: int, optional
1232
1233
  :return: Returns the result object.
1233
1234
  """ # noqa: E501
1234
- warnings.warn("PUT /validation-set/{validationSetId}/dimensions is deprecated.", DeprecationWarning)
1235
1235
 
1236
- _param = self._validation_set_validation_set_id_dimensions_put_serialize(
1236
+ _param = self._validation_set_validation_set_id_export_get_serialize(
1237
1237
  validation_set_id=validation_set_id,
1238
- update_dimensions_model=update_dimensions_model,
1239
1238
  _request_auth=_request_auth,
1240
1239
  _content_type=_content_type,
1241
1240
  _headers=_headers,
@@ -1243,7 +1242,7 @@ class ValidationSetApi:
1243
1242
  )
1244
1243
 
1245
1244
  _response_types_map: Dict[str, Optional[str]] = {
1246
- '204': None,
1245
+ '200': "bytearray",
1247
1246
  }
1248
1247
  response_data = self.api_client.call_api(
1249
1248
  *_param,
@@ -1257,10 +1256,9 @@ class ValidationSetApi:
1257
1256
 
1258
1257
 
1259
1258
  @validate_call
1260
- def validation_set_validation_set_id_dimensions_put_with_http_info(
1259
+ def validation_set_validation_set_id_export_get_with_http_info(
1261
1260
  self,
1262
- validation_set_id: Annotated[StrictStr, Field(description="The Id of the validation set to update the dimensions for.")],
1263
- update_dimensions_model: Annotated[Optional[UpdateDimensionsModel], Field(description="The body request for updating the dimensions.")] = None,
1261
+ validation_set_id: StrictStr,
1264
1262
  _request_timeout: Union[
1265
1263
  None,
1266
1264
  Annotated[StrictFloat, Field(gt=0)],
@@ -1273,14 +1271,12 @@ class ValidationSetApi:
1273
1271
  _content_type: Optional[StrictStr] = None,
1274
1272
  _headers: Optional[Dict[StrictStr, Any]] = None,
1275
1273
  _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
1276
- ) -> ApiResponse[None]:
1277
- """(Deprecated) Updates the dimensions of all rapids within a validation set.
1274
+ ) -> ApiResponse[bytearray]:
1275
+ """Exports all rapids of a validation-set to a file.
1278
1276
 
1279
1277
 
1280
- :param validation_set_id: The Id of the validation set to update the dimensions for. (required)
1278
+ :param validation_set_id: (required)
1281
1279
  :type validation_set_id: str
1282
- :param update_dimensions_model: The body request for updating the dimensions.
1283
- :type update_dimensions_model: UpdateDimensionsModel
1284
1280
  :param _request_timeout: timeout setting for this request. If one
1285
1281
  number provided, it will be total request
1286
1282
  timeout. It can also be a pair (tuple) of
@@ -1302,11 +1298,9 @@ class ValidationSetApi:
1302
1298
  :type _host_index: int, optional
1303
1299
  :return: Returns the result object.
1304
1300
  """ # noqa: E501
1305
- warnings.warn("PUT /validation-set/{validationSetId}/dimensions is deprecated.", DeprecationWarning)
1306
1301
 
1307
- _param = self._validation_set_validation_set_id_dimensions_put_serialize(
1302
+ _param = self._validation_set_validation_set_id_export_get_serialize(
1308
1303
  validation_set_id=validation_set_id,
1309
- update_dimensions_model=update_dimensions_model,
1310
1304
  _request_auth=_request_auth,
1311
1305
  _content_type=_content_type,
1312
1306
  _headers=_headers,
@@ -1314,7 +1308,7 @@ class ValidationSetApi:
1314
1308
  )
1315
1309
 
1316
1310
  _response_types_map: Dict[str, Optional[str]] = {
1317
- '204': None,
1311
+ '200': "bytearray",
1318
1312
  }
1319
1313
  response_data = self.api_client.call_api(
1320
1314
  *_param,
@@ -1328,10 +1322,9 @@ class ValidationSetApi:
1328
1322
 
1329
1323
 
1330
1324
  @validate_call
1331
- def validation_set_validation_set_id_dimensions_put_without_preload_content(
1325
+ def validation_set_validation_set_id_export_get_without_preload_content(
1332
1326
  self,
1333
- validation_set_id: Annotated[StrictStr, Field(description="The Id of the validation set to update the dimensions for.")],
1334
- update_dimensions_model: Annotated[Optional[UpdateDimensionsModel], Field(description="The body request for updating the dimensions.")] = None,
1327
+ validation_set_id: StrictStr,
1335
1328
  _request_timeout: Union[
1336
1329
  None,
1337
1330
  Annotated[StrictFloat, Field(gt=0)],
@@ -1345,13 +1338,11 @@ class ValidationSetApi:
1345
1338
  _headers: Optional[Dict[StrictStr, Any]] = None,
1346
1339
  _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
1347
1340
  ) -> RESTResponseType:
1348
- """(Deprecated) Updates the dimensions of all rapids within a validation set.
1341
+ """Exports all rapids of a validation-set to a file.
1349
1342
 
1350
1343
 
1351
- :param validation_set_id: The Id of the validation set to update the dimensions for. (required)
1344
+ :param validation_set_id: (required)
1352
1345
  :type validation_set_id: str
1353
- :param update_dimensions_model: The body request for updating the dimensions.
1354
- :type update_dimensions_model: UpdateDimensionsModel
1355
1346
  :param _request_timeout: timeout setting for this request. If one
1356
1347
  number provided, it will be total request
1357
1348
  timeout. It can also be a pair (tuple) of
@@ -1373,11 +1364,9 @@ class ValidationSetApi:
1373
1364
  :type _host_index: int, optional
1374
1365
  :return: Returns the result object.
1375
1366
  """ # noqa: E501
1376
- warnings.warn("PUT /validation-set/{validationSetId}/dimensions is deprecated.", DeprecationWarning)
1377
1367
 
1378
- _param = self._validation_set_validation_set_id_dimensions_put_serialize(
1368
+ _param = self._validation_set_validation_set_id_export_get_serialize(
1379
1369
  validation_set_id=validation_set_id,
1380
- update_dimensions_model=update_dimensions_model,
1381
1370
  _request_auth=_request_auth,
1382
1371
  _content_type=_content_type,
1383
1372
  _headers=_headers,
@@ -1385,7 +1374,7 @@ class ValidationSetApi:
1385
1374
  )
1386
1375
 
1387
1376
  _response_types_map: Dict[str, Optional[str]] = {
1388
- '204': None,
1377
+ '200': "bytearray",
1389
1378
  }
1390
1379
  response_data = self.api_client.call_api(
1391
1380
  *_param,
@@ -1394,10 +1383,9 @@ class ValidationSetApi:
1394
1383
  return response_data.response
1395
1384
 
1396
1385
 
1397
- def _validation_set_validation_set_id_dimensions_put_serialize(
1386
+ def _validation_set_validation_set_id_export_get_serialize(
1398
1387
  self,
1399
1388
  validation_set_id,
1400
- update_dimensions_model,
1401
1389
  _request_auth,
1402
1390
  _content_type,
1403
1391
  _headers,
@@ -1425,26 +1413,18 @@ class ValidationSetApi:
1425
1413
  # process the header parameters
1426
1414
  # process the form parameters
1427
1415
  # process the body parameter
1428
- if update_dimensions_model is not None:
1429
- _body_params = update_dimensions_model
1430
-
1431
1416
 
1432
1417
 
1433
- # set the HTTP header `Content-Type`
1434
- if _content_type:
1435
- _header_params['Content-Type'] = _content_type
1436
- else:
1437
- _default_content_type = (
1438
- self.api_client.select_header_content_type(
1439
- [
1440
- 'application/json',
1441
- 'text/json',
1442
- 'application/*+json'
1443
- ]
1444
- )
1418
+ # set the HTTP header `Accept`
1419
+ if 'Accept' not in _header_params:
1420
+ _header_params['Accept'] = self.api_client.select_header_accept(
1421
+ [
1422
+ 'text/plain',
1423
+ 'application/json',
1424
+ 'text/json'
1425
+ ]
1445
1426
  )
1446
- if _default_content_type is not None:
1447
- _header_params['Content-Type'] = _default_content_type
1427
+
1448
1428
 
1449
1429
  # authentication setting
1450
1430
  _auth_settings: List[str] = [
@@ -1453,8 +1433,8 @@ class ValidationSetApi:
1453
1433
  ]
1454
1434
 
1455
1435
  return self.api_client.param_serialize(
1456
- method='PUT',
1457
- resource_path='/validation-set/{validationSetId}/dimensions',
1436
+ method='GET',
1437
+ resource_path='/validation-set/{validationSetId}/export',
1458
1438
  path_params=_path_params,
1459
1439
  query_params=_query_params,
1460
1440
  header_params=_header_params,
@@ -1471,9 +1451,9 @@ class ValidationSetApi:
1471
1451
 
1472
1452
 
1473
1453
  @validate_call
1474
- def validation_set_validation_set_id_export_get(
1454
+ def validation_set_validation_set_id_get(
1475
1455
  self,
1476
- validation_set_id: StrictStr,
1456
+ validation_set_id: Annotated[StrictStr, Field(description="The id of the validation set to get.")],
1477
1457
  _request_timeout: Union[
1478
1458
  None,
1479
1459
  Annotated[StrictFloat, Field(gt=0)],
@@ -1486,11 +1466,11 @@ class ValidationSetApi:
1486
1466
  _content_type: Optional[StrictStr] = None,
1487
1467
  _headers: Optional[Dict[StrictStr, Any]] = None,
1488
1468
  _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
1489
- ) -> bytearray:
1490
- """Exports all rapids of a validation-set to a file.
1469
+ ) -> GetValidationSetByIdResult:
1470
+ """Gets a validation set by the id.
1491
1471
 
1492
1472
 
1493
- :param validation_set_id: (required)
1473
+ :param validation_set_id: The id of the validation set to get. (required)
1494
1474
  :type validation_set_id: str
1495
1475
  :param _request_timeout: timeout setting for this request. If one
1496
1476
  number provided, it will be total request
@@ -1514,7 +1494,7 @@ class ValidationSetApi:
1514
1494
  :return: Returns the result object.
1515
1495
  """ # noqa: E501
1516
1496
 
1517
- _param = self._validation_set_validation_set_id_export_get_serialize(
1497
+ _param = self._validation_set_validation_set_id_get_serialize(
1518
1498
  validation_set_id=validation_set_id,
1519
1499
  _request_auth=_request_auth,
1520
1500
  _content_type=_content_type,
@@ -1523,7 +1503,7 @@ class ValidationSetApi:
1523
1503
  )
1524
1504
 
1525
1505
  _response_types_map: Dict[str, Optional[str]] = {
1526
- '200': "bytearray",
1506
+ '200': "GetValidationSetByIdResult",
1527
1507
  }
1528
1508
  response_data = self.api_client.call_api(
1529
1509
  *_param,
@@ -1537,9 +1517,9 @@ class ValidationSetApi:
1537
1517
 
1538
1518
 
1539
1519
  @validate_call
1540
- def validation_set_validation_set_id_export_get_with_http_info(
1520
+ def validation_set_validation_set_id_get_with_http_info(
1541
1521
  self,
1542
- validation_set_id: StrictStr,
1522
+ validation_set_id: Annotated[StrictStr, Field(description="The id of the validation set to get.")],
1543
1523
  _request_timeout: Union[
1544
1524
  None,
1545
1525
  Annotated[StrictFloat, Field(gt=0)],
@@ -1552,11 +1532,11 @@ class ValidationSetApi:
1552
1532
  _content_type: Optional[StrictStr] = None,
1553
1533
  _headers: Optional[Dict[StrictStr, Any]] = None,
1554
1534
  _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
1555
- ) -> ApiResponse[bytearray]:
1556
- """Exports all rapids of a validation-set to a file.
1535
+ ) -> ApiResponse[GetValidationSetByIdResult]:
1536
+ """Gets a validation set by the id.
1557
1537
 
1558
1538
 
1559
- :param validation_set_id: (required)
1539
+ :param validation_set_id: The id of the validation set to get. (required)
1560
1540
  :type validation_set_id: str
1561
1541
  :param _request_timeout: timeout setting for this request. If one
1562
1542
  number provided, it will be total request
@@ -1580,7 +1560,7 @@ class ValidationSetApi:
1580
1560
  :return: Returns the result object.
1581
1561
  """ # noqa: E501
1582
1562
 
1583
- _param = self._validation_set_validation_set_id_export_get_serialize(
1563
+ _param = self._validation_set_validation_set_id_get_serialize(
1584
1564
  validation_set_id=validation_set_id,
1585
1565
  _request_auth=_request_auth,
1586
1566
  _content_type=_content_type,
@@ -1589,7 +1569,7 @@ class ValidationSetApi:
1589
1569
  )
1590
1570
 
1591
1571
  _response_types_map: Dict[str, Optional[str]] = {
1592
- '200': "bytearray",
1572
+ '200': "GetValidationSetByIdResult",
1593
1573
  }
1594
1574
  response_data = self.api_client.call_api(
1595
1575
  *_param,
@@ -1603,9 +1583,9 @@ class ValidationSetApi:
1603
1583
 
1604
1584
 
1605
1585
  @validate_call
1606
- def validation_set_validation_set_id_export_get_without_preload_content(
1586
+ def validation_set_validation_set_id_get_without_preload_content(
1607
1587
  self,
1608
- validation_set_id: StrictStr,
1588
+ validation_set_id: Annotated[StrictStr, Field(description="The id of the validation set to get.")],
1609
1589
  _request_timeout: Union[
1610
1590
  None,
1611
1591
  Annotated[StrictFloat, Field(gt=0)],
@@ -1619,10 +1599,10 @@ class ValidationSetApi:
1619
1599
  _headers: Optional[Dict[StrictStr, Any]] = None,
1620
1600
  _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
1621
1601
  ) -> RESTResponseType:
1622
- """Exports all rapids of a validation-set to a file.
1602
+ """Gets a validation set by the id.
1623
1603
 
1624
1604
 
1625
- :param validation_set_id: (required)
1605
+ :param validation_set_id: The id of the validation set to get. (required)
1626
1606
  :type validation_set_id: str
1627
1607
  :param _request_timeout: timeout setting for this request. If one
1628
1608
  number provided, it will be total request
@@ -1646,7 +1626,7 @@ class ValidationSetApi:
1646
1626
  :return: Returns the result object.
1647
1627
  """ # noqa: E501
1648
1628
 
1649
- _param = self._validation_set_validation_set_id_export_get_serialize(
1629
+ _param = self._validation_set_validation_set_id_get_serialize(
1650
1630
  validation_set_id=validation_set_id,
1651
1631
  _request_auth=_request_auth,
1652
1632
  _content_type=_content_type,
@@ -1655,7 +1635,7 @@ class ValidationSetApi:
1655
1635
  )
1656
1636
 
1657
1637
  _response_types_map: Dict[str, Optional[str]] = {
1658
- '200': "bytearray",
1638
+ '200': "GetValidationSetByIdResult",
1659
1639
  }
1660
1640
  response_data = self.api_client.call_api(
1661
1641
  *_param,
@@ -1664,7 +1644,7 @@ class ValidationSetApi:
1664
1644
  return response_data.response
1665
1645
 
1666
1646
 
1667
- def _validation_set_validation_set_id_export_get_serialize(
1647
+ def _validation_set_validation_set_id_get_serialize(
1668
1648
  self,
1669
1649
  validation_set_id,
1670
1650
  _request_auth,
@@ -1715,7 +1695,7 @@ class ValidationSetApi:
1715
1695
 
1716
1696
  return self.api_client.param_serialize(
1717
1697
  method='GET',
1718
- resource_path='/validation-set/{validationSetId}/export',
1698
+ resource_path='/validation-set/{validationSetId}',
1719
1699
  path_params=_path_params,
1720
1700
  query_params=_query_params,
1721
1701
  header_params=_header_params,
@@ -1732,9 +1712,10 @@ class ValidationSetApi:
1732
1712
 
1733
1713
 
1734
1714
  @validate_call
1735
- def validation_set_validation_set_id_get(
1715
+ def validation_set_validation_set_id_patch(
1736
1716
  self,
1737
- validation_set_id: Annotated[StrictStr, Field(description="The id of the validation set to get.")],
1717
+ validation_set_id: Annotated[StrictStr, Field(description="The Id of the validation set to update the dimensions for.")],
1718
+ update_validation_set_model: Annotated[Optional[UpdateValidationSetModel], Field(description="The body request for updating the shouldAlert property.")] = None,
1738
1719
  _request_timeout: Union[
1739
1720
  None,
1740
1721
  Annotated[StrictFloat, Field(gt=0)],
@@ -1747,12 +1728,14 @@ class ValidationSetApi:
1747
1728
  _content_type: Optional[StrictStr] = None,
1748
1729
  _headers: Optional[Dict[StrictStr, Any]] = None,
1749
1730
  _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
1750
- ) -> GetValidationSetByIdResult:
1751
- """Gets a validation set by the id.
1731
+ ) -> None:
1732
+ """Updates different characteristics of a validation set.
1752
1733
 
1753
1734
 
1754
- :param validation_set_id: The id of the validation set to get. (required)
1735
+ :param validation_set_id: The Id of the validation set to update the dimensions for. (required)
1755
1736
  :type validation_set_id: str
1737
+ :param update_validation_set_model: The body request for updating the shouldAlert property.
1738
+ :type update_validation_set_model: UpdateValidationSetModel
1756
1739
  :param _request_timeout: timeout setting for this request. If one
1757
1740
  number provided, it will be total request
1758
1741
  timeout. It can also be a pair (tuple) of
@@ -1775,8 +1758,9 @@ class ValidationSetApi:
1775
1758
  :return: Returns the result object.
1776
1759
  """ # noqa: E501
1777
1760
 
1778
- _param = self._validation_set_validation_set_id_get_serialize(
1761
+ _param = self._validation_set_validation_set_id_patch_serialize(
1779
1762
  validation_set_id=validation_set_id,
1763
+ update_validation_set_model=update_validation_set_model,
1780
1764
  _request_auth=_request_auth,
1781
1765
  _content_type=_content_type,
1782
1766
  _headers=_headers,
@@ -1784,7 +1768,7 @@ class ValidationSetApi:
1784
1768
  )
1785
1769
 
1786
1770
  _response_types_map: Dict[str, Optional[str]] = {
1787
- '200': "GetValidationSetByIdResult",
1771
+ '204': None,
1788
1772
  }
1789
1773
  response_data = self.api_client.call_api(
1790
1774
  *_param,
@@ -1798,9 +1782,10 @@ class ValidationSetApi:
1798
1782
 
1799
1783
 
1800
1784
  @validate_call
1801
- def validation_set_validation_set_id_get_with_http_info(
1785
+ def validation_set_validation_set_id_patch_with_http_info(
1802
1786
  self,
1803
- validation_set_id: Annotated[StrictStr, Field(description="The id of the validation set to get.")],
1787
+ validation_set_id: Annotated[StrictStr, Field(description="The Id of the validation set to update the dimensions for.")],
1788
+ update_validation_set_model: Annotated[Optional[UpdateValidationSetModel], Field(description="The body request for updating the shouldAlert property.")] = None,
1804
1789
  _request_timeout: Union[
1805
1790
  None,
1806
1791
  Annotated[StrictFloat, Field(gt=0)],
@@ -1813,12 +1798,14 @@ class ValidationSetApi:
1813
1798
  _content_type: Optional[StrictStr] = None,
1814
1799
  _headers: Optional[Dict[StrictStr, Any]] = None,
1815
1800
  _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
1816
- ) -> ApiResponse[GetValidationSetByIdResult]:
1817
- """Gets a validation set by the id.
1801
+ ) -> ApiResponse[None]:
1802
+ """Updates different characteristics of a validation set.
1818
1803
 
1819
1804
 
1820
- :param validation_set_id: The id of the validation set to get. (required)
1805
+ :param validation_set_id: The Id of the validation set to update the dimensions for. (required)
1821
1806
  :type validation_set_id: str
1807
+ :param update_validation_set_model: The body request for updating the shouldAlert property.
1808
+ :type update_validation_set_model: UpdateValidationSetModel
1822
1809
  :param _request_timeout: timeout setting for this request. If one
1823
1810
  number provided, it will be total request
1824
1811
  timeout. It can also be a pair (tuple) of
@@ -1841,8 +1828,9 @@ class ValidationSetApi:
1841
1828
  :return: Returns the result object.
1842
1829
  """ # noqa: E501
1843
1830
 
1844
- _param = self._validation_set_validation_set_id_get_serialize(
1831
+ _param = self._validation_set_validation_set_id_patch_serialize(
1845
1832
  validation_set_id=validation_set_id,
1833
+ update_validation_set_model=update_validation_set_model,
1846
1834
  _request_auth=_request_auth,
1847
1835
  _content_type=_content_type,
1848
1836
  _headers=_headers,
@@ -1850,7 +1838,7 @@ class ValidationSetApi:
1850
1838
  )
1851
1839
 
1852
1840
  _response_types_map: Dict[str, Optional[str]] = {
1853
- '200': "GetValidationSetByIdResult",
1841
+ '204': None,
1854
1842
  }
1855
1843
  response_data = self.api_client.call_api(
1856
1844
  *_param,
@@ -1864,9 +1852,10 @@ class ValidationSetApi:
1864
1852
 
1865
1853
 
1866
1854
  @validate_call
1867
- def validation_set_validation_set_id_get_without_preload_content(
1855
+ def validation_set_validation_set_id_patch_without_preload_content(
1868
1856
  self,
1869
- validation_set_id: Annotated[StrictStr, Field(description="The id of the validation set to get.")],
1857
+ validation_set_id: Annotated[StrictStr, Field(description="The Id of the validation set to update the dimensions for.")],
1858
+ update_validation_set_model: Annotated[Optional[UpdateValidationSetModel], Field(description="The body request for updating the shouldAlert property.")] = None,
1870
1859
  _request_timeout: Union[
1871
1860
  None,
1872
1861
  Annotated[StrictFloat, Field(gt=0)],
@@ -1880,11 +1869,13 @@ class ValidationSetApi:
1880
1869
  _headers: Optional[Dict[StrictStr, Any]] = None,
1881
1870
  _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
1882
1871
  ) -> RESTResponseType:
1883
- """Gets a validation set by the id.
1872
+ """Updates different characteristics of a validation set.
1884
1873
 
1885
1874
 
1886
- :param validation_set_id: The id of the validation set to get. (required)
1875
+ :param validation_set_id: The Id of the validation set to update the dimensions for. (required)
1887
1876
  :type validation_set_id: str
1877
+ :param update_validation_set_model: The body request for updating the shouldAlert property.
1878
+ :type update_validation_set_model: UpdateValidationSetModel
1888
1879
  :param _request_timeout: timeout setting for this request. If one
1889
1880
  number provided, it will be total request
1890
1881
  timeout. It can also be a pair (tuple) of
@@ -1907,8 +1898,9 @@ class ValidationSetApi:
1907
1898
  :return: Returns the result object.
1908
1899
  """ # noqa: E501
1909
1900
 
1910
- _param = self._validation_set_validation_set_id_get_serialize(
1901
+ _param = self._validation_set_validation_set_id_patch_serialize(
1911
1902
  validation_set_id=validation_set_id,
1903
+ update_validation_set_model=update_validation_set_model,
1912
1904
  _request_auth=_request_auth,
1913
1905
  _content_type=_content_type,
1914
1906
  _headers=_headers,
@@ -1916,7 +1908,7 @@ class ValidationSetApi:
1916
1908
  )
1917
1909
 
1918
1910
  _response_types_map: Dict[str, Optional[str]] = {
1919
- '200': "GetValidationSetByIdResult",
1911
+ '204': None,
1920
1912
  }
1921
1913
  response_data = self.api_client.call_api(
1922
1914
  *_param,
@@ -1925,9 +1917,10 @@ class ValidationSetApi:
1925
1917
  return response_data.response
1926
1918
 
1927
1919
 
1928
- def _validation_set_validation_set_id_get_serialize(
1920
+ def _validation_set_validation_set_id_patch_serialize(
1929
1921
  self,
1930
1922
  validation_set_id,
1923
+ update_validation_set_model,
1931
1924
  _request_auth,
1932
1925
  _content_type,
1933
1926
  _headers,
@@ -1955,18 +1948,26 @@ class ValidationSetApi:
1955
1948
  # process the header parameters
1956
1949
  # process the form parameters
1957
1950
  # process the body parameter
1951
+ if update_validation_set_model is not None:
1952
+ _body_params = update_validation_set_model
1958
1953
 
1959
1954
 
1960
- # set the HTTP header `Accept`
1961
- if 'Accept' not in _header_params:
1962
- _header_params['Accept'] = self.api_client.select_header_accept(
1963
- [
1964
- 'text/plain',
1965
- 'application/json',
1966
- 'text/json'
1967
- ]
1968
- )
1969
1955
 
1956
+ # set the HTTP header `Content-Type`
1957
+ if _content_type:
1958
+ _header_params['Content-Type'] = _content_type
1959
+ else:
1960
+ _default_content_type = (
1961
+ self.api_client.select_header_content_type(
1962
+ [
1963
+ 'application/json',
1964
+ 'text/json',
1965
+ 'application/*+json'
1966
+ ]
1967
+ )
1968
+ )
1969
+ if _default_content_type is not None:
1970
+ _header_params['Content-Type'] = _default_content_type
1970
1971
 
1971
1972
  # authentication setting
1972
1973
  _auth_settings: List[str] = [
@@ -1975,7 +1976,7 @@ class ValidationSetApi:
1975
1976
  ]
1976
1977
 
1977
1978
  return self.api_client.param_serialize(
1978
- method='GET',
1979
+ method='PATCH',
1979
1980
  resource_path='/validation-set/{validationSetId}',
1980
1981
  path_params=_path_params,
1981
1982
  query_params=_query_params,
@@ -2625,7 +2626,7 @@ class ValidationSetApi:
2625
2626
  _headers: Optional[Dict[StrictStr, Any]] = None,
2626
2627
  _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
2627
2628
  ) -> None:
2628
- """Updates the dimensions of all rapids within a validation set.
2629
+ """(Deprecated) Updates the dimensions of all rapids within a validation set.
2629
2630
 
2630
2631
 
2631
2632
  :param validation_set_id: The Id of the validation set to update the dimensions for. (required)
@@ -2653,6 +2654,7 @@ class ValidationSetApi:
2653
2654
  :type _host_index: int, optional
2654
2655
  :return: Returns the result object.
2655
2656
  """ # noqa: E501
2657
+ warnings.warn("PATCH /validation-set/{validationSetId}/shouldalert is deprecated.", DeprecationWarning)
2656
2658
 
2657
2659
  _param = self._validation_set_validation_set_id_shouldalert_patch_serialize(
2658
2660
  validation_set_id=validation_set_id,
@@ -2695,7 +2697,7 @@ class ValidationSetApi:
2695
2697
  _headers: Optional[Dict[StrictStr, Any]] = None,
2696
2698
  _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
2697
2699
  ) -> ApiResponse[None]:
2698
- """Updates the dimensions of all rapids within a validation set.
2700
+ """(Deprecated) Updates the dimensions of all rapids within a validation set.
2699
2701
 
2700
2702
 
2701
2703
  :param validation_set_id: The Id of the validation set to update the dimensions for. (required)
@@ -2723,6 +2725,7 @@ class ValidationSetApi:
2723
2725
  :type _host_index: int, optional
2724
2726
  :return: Returns the result object.
2725
2727
  """ # noqa: E501
2728
+ warnings.warn("PATCH /validation-set/{validationSetId}/shouldalert is deprecated.", DeprecationWarning)
2726
2729
 
2727
2730
  _param = self._validation_set_validation_set_id_shouldalert_patch_serialize(
2728
2731
  validation_set_id=validation_set_id,
@@ -2765,7 +2768,7 @@ class ValidationSetApi:
2765
2768
  _headers: Optional[Dict[StrictStr, Any]] = None,
2766
2769
  _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
2767
2770
  ) -> RESTResponseType:
2768
- """Updates the dimensions of all rapids within a validation set.
2771
+ """(Deprecated) Updates the dimensions of all rapids within a validation set.
2769
2772
 
2770
2773
 
2771
2774
  :param validation_set_id: The Id of the validation set to update the dimensions for. (required)
@@ -2793,6 +2796,7 @@ class ValidationSetApi:
2793
2796
  :type _host_index: int, optional
2794
2797
  :return: Returns the result object.
2795
2798
  """ # noqa: E501
2799
+ warnings.warn("PATCH /validation-set/{validationSetId}/shouldalert is deprecated.", DeprecationWarning)
2796
2800
 
2797
2801
  _param = self._validation_set_validation_set_id_shouldalert_patch_serialize(
2798
2802
  validation_set_id=validation_set_id,
@@ -2889,291 +2893,6 @@ class ValidationSetApi:
2889
2893
 
2890
2894
 
2891
2895
 
2892
- @validate_call
2893
- def validation_set_validation_set_id_shouldalert_put(
2894
- self,
2895
- validation_set_id: Annotated[StrictStr, Field(description="The Id of the validation set to update the dimensions for.")],
2896
- update_should_alert_model: Annotated[Optional[UpdateShouldAlertModel], Field(description="The body request for updating the shouldAlert property.")] = None,
2897
- _request_timeout: Union[
2898
- None,
2899
- Annotated[StrictFloat, Field(gt=0)],
2900
- Tuple[
2901
- Annotated[StrictFloat, Field(gt=0)],
2902
- Annotated[StrictFloat, Field(gt=0)]
2903
- ]
2904
- ] = None,
2905
- _request_auth: Optional[Dict[StrictStr, Any]] = None,
2906
- _content_type: Optional[StrictStr] = None,
2907
- _headers: Optional[Dict[StrictStr, Any]] = None,
2908
- _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
2909
- ) -> None:
2910
- """(Deprecated) Updates the of all rapshouldAlert property of all rapids within a validation set.
2911
-
2912
-
2913
- :param validation_set_id: The Id of the validation set to update the dimensions for. (required)
2914
- :type validation_set_id: str
2915
- :param update_should_alert_model: The body request for updating the shouldAlert property.
2916
- :type update_should_alert_model: UpdateShouldAlertModel
2917
- :param _request_timeout: timeout setting for this request. If one
2918
- number provided, it will be total request
2919
- timeout. It can also be a pair (tuple) of
2920
- (connection, read) timeouts.
2921
- :type _request_timeout: int, tuple(int, int), optional
2922
- :param _request_auth: set to override the auth_settings for an a single
2923
- request; this effectively ignores the
2924
- authentication in the spec for a single request.
2925
- :type _request_auth: dict, optional
2926
- :param _content_type: force content-type for the request.
2927
- :type _content_type: str, Optional
2928
- :param _headers: set to override the headers for a single
2929
- request; this effectively ignores the headers
2930
- in the spec for a single request.
2931
- :type _headers: dict, optional
2932
- :param _host_index: set to override the host_index for a single
2933
- request; this effectively ignores the host_index
2934
- in the spec for a single request.
2935
- :type _host_index: int, optional
2936
- :return: Returns the result object.
2937
- """ # noqa: E501
2938
- warnings.warn("PUT /validation-set/{validationSetId}/shouldalert is deprecated.", DeprecationWarning)
2939
-
2940
- _param = self._validation_set_validation_set_id_shouldalert_put_serialize(
2941
- validation_set_id=validation_set_id,
2942
- update_should_alert_model=update_should_alert_model,
2943
- _request_auth=_request_auth,
2944
- _content_type=_content_type,
2945
- _headers=_headers,
2946
- _host_index=_host_index
2947
- )
2948
-
2949
- _response_types_map: Dict[str, Optional[str]] = {
2950
- '204': None,
2951
- }
2952
- response_data = self.api_client.call_api(
2953
- *_param,
2954
- _request_timeout=_request_timeout
2955
- )
2956
- response_data.read()
2957
- return self.api_client.response_deserialize(
2958
- response_data=response_data,
2959
- response_types_map=_response_types_map,
2960
- ).data
2961
-
2962
-
2963
- @validate_call
2964
- def validation_set_validation_set_id_shouldalert_put_with_http_info(
2965
- self,
2966
- validation_set_id: Annotated[StrictStr, Field(description="The Id of the validation set to update the dimensions for.")],
2967
- update_should_alert_model: Annotated[Optional[UpdateShouldAlertModel], Field(description="The body request for updating the shouldAlert property.")] = None,
2968
- _request_timeout: Union[
2969
- None,
2970
- Annotated[StrictFloat, Field(gt=0)],
2971
- Tuple[
2972
- Annotated[StrictFloat, Field(gt=0)],
2973
- Annotated[StrictFloat, Field(gt=0)]
2974
- ]
2975
- ] = None,
2976
- _request_auth: Optional[Dict[StrictStr, Any]] = None,
2977
- _content_type: Optional[StrictStr] = None,
2978
- _headers: Optional[Dict[StrictStr, Any]] = None,
2979
- _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
2980
- ) -> ApiResponse[None]:
2981
- """(Deprecated) Updates the of all rapshouldAlert property of all rapids within a validation set.
2982
-
2983
-
2984
- :param validation_set_id: The Id of the validation set to update the dimensions for. (required)
2985
- :type validation_set_id: str
2986
- :param update_should_alert_model: The body request for updating the shouldAlert property.
2987
- :type update_should_alert_model: UpdateShouldAlertModel
2988
- :param _request_timeout: timeout setting for this request. If one
2989
- number provided, it will be total request
2990
- timeout. It can also be a pair (tuple) of
2991
- (connection, read) timeouts.
2992
- :type _request_timeout: int, tuple(int, int), optional
2993
- :param _request_auth: set to override the auth_settings for an a single
2994
- request; this effectively ignores the
2995
- authentication in the spec for a single request.
2996
- :type _request_auth: dict, optional
2997
- :param _content_type: force content-type for the request.
2998
- :type _content_type: str, Optional
2999
- :param _headers: set to override the headers for a single
3000
- request; this effectively ignores the headers
3001
- in the spec for a single request.
3002
- :type _headers: dict, optional
3003
- :param _host_index: set to override the host_index for a single
3004
- request; this effectively ignores the host_index
3005
- in the spec for a single request.
3006
- :type _host_index: int, optional
3007
- :return: Returns the result object.
3008
- """ # noqa: E501
3009
- warnings.warn("PUT /validation-set/{validationSetId}/shouldalert is deprecated.", DeprecationWarning)
3010
-
3011
- _param = self._validation_set_validation_set_id_shouldalert_put_serialize(
3012
- validation_set_id=validation_set_id,
3013
- update_should_alert_model=update_should_alert_model,
3014
- _request_auth=_request_auth,
3015
- _content_type=_content_type,
3016
- _headers=_headers,
3017
- _host_index=_host_index
3018
- )
3019
-
3020
- _response_types_map: Dict[str, Optional[str]] = {
3021
- '204': None,
3022
- }
3023
- response_data = self.api_client.call_api(
3024
- *_param,
3025
- _request_timeout=_request_timeout
3026
- )
3027
- response_data.read()
3028
- return self.api_client.response_deserialize(
3029
- response_data=response_data,
3030
- response_types_map=_response_types_map,
3031
- )
3032
-
3033
-
3034
- @validate_call
3035
- def validation_set_validation_set_id_shouldalert_put_without_preload_content(
3036
- self,
3037
- validation_set_id: Annotated[StrictStr, Field(description="The Id of the validation set to update the dimensions for.")],
3038
- update_should_alert_model: Annotated[Optional[UpdateShouldAlertModel], Field(description="The body request for updating the shouldAlert property.")] = None,
3039
- _request_timeout: Union[
3040
- None,
3041
- Annotated[StrictFloat, Field(gt=0)],
3042
- Tuple[
3043
- Annotated[StrictFloat, Field(gt=0)],
3044
- Annotated[StrictFloat, Field(gt=0)]
3045
- ]
3046
- ] = None,
3047
- _request_auth: Optional[Dict[StrictStr, Any]] = None,
3048
- _content_type: Optional[StrictStr] = None,
3049
- _headers: Optional[Dict[StrictStr, Any]] = None,
3050
- _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
3051
- ) -> RESTResponseType:
3052
- """(Deprecated) Updates the of all rapshouldAlert property of all rapids within a validation set.
3053
-
3054
-
3055
- :param validation_set_id: The Id of the validation set to update the dimensions for. (required)
3056
- :type validation_set_id: str
3057
- :param update_should_alert_model: The body request for updating the shouldAlert property.
3058
- :type update_should_alert_model: UpdateShouldAlertModel
3059
- :param _request_timeout: timeout setting for this request. If one
3060
- number provided, it will be total request
3061
- timeout. It can also be a pair (tuple) of
3062
- (connection, read) timeouts.
3063
- :type _request_timeout: int, tuple(int, int), optional
3064
- :param _request_auth: set to override the auth_settings for an a single
3065
- request; this effectively ignores the
3066
- authentication in the spec for a single request.
3067
- :type _request_auth: dict, optional
3068
- :param _content_type: force content-type for the request.
3069
- :type _content_type: str, Optional
3070
- :param _headers: set to override the headers for a single
3071
- request; this effectively ignores the headers
3072
- in the spec for a single request.
3073
- :type _headers: dict, optional
3074
- :param _host_index: set to override the host_index for a single
3075
- request; this effectively ignores the host_index
3076
- in the spec for a single request.
3077
- :type _host_index: int, optional
3078
- :return: Returns the result object.
3079
- """ # noqa: E501
3080
- warnings.warn("PUT /validation-set/{validationSetId}/shouldalert is deprecated.", DeprecationWarning)
3081
-
3082
- _param = self._validation_set_validation_set_id_shouldalert_put_serialize(
3083
- validation_set_id=validation_set_id,
3084
- update_should_alert_model=update_should_alert_model,
3085
- _request_auth=_request_auth,
3086
- _content_type=_content_type,
3087
- _headers=_headers,
3088
- _host_index=_host_index
3089
- )
3090
-
3091
- _response_types_map: Dict[str, Optional[str]] = {
3092
- '204': None,
3093
- }
3094
- response_data = self.api_client.call_api(
3095
- *_param,
3096
- _request_timeout=_request_timeout
3097
- )
3098
- return response_data.response
3099
-
3100
-
3101
- def _validation_set_validation_set_id_shouldalert_put_serialize(
3102
- self,
3103
- validation_set_id,
3104
- update_should_alert_model,
3105
- _request_auth,
3106
- _content_type,
3107
- _headers,
3108
- _host_index,
3109
- ) -> RequestSerialized:
3110
-
3111
- _host = None
3112
-
3113
- _collection_formats: Dict[str, str] = {
3114
- }
3115
-
3116
- _path_params: Dict[str, str] = {}
3117
- _query_params: List[Tuple[str, str]] = []
3118
- _header_params: Dict[str, Optional[str]] = _headers or {}
3119
- _form_params: List[Tuple[str, str]] = []
3120
- _files: Dict[
3121
- str, Union[str, bytes, List[str], List[bytes], List[Tuple[str, bytes]]]
3122
- ] = {}
3123
- _body_params: Optional[bytes] = None
3124
-
3125
- # process the path parameters
3126
- if validation_set_id is not None:
3127
- _path_params['validationSetId'] = validation_set_id
3128
- # process the query parameters
3129
- # process the header parameters
3130
- # process the form parameters
3131
- # process the body parameter
3132
- if update_should_alert_model is not None:
3133
- _body_params = update_should_alert_model
3134
-
3135
-
3136
-
3137
- # set the HTTP header `Content-Type`
3138
- if _content_type:
3139
- _header_params['Content-Type'] = _content_type
3140
- else:
3141
- _default_content_type = (
3142
- self.api_client.select_header_content_type(
3143
- [
3144
- 'application/json',
3145
- 'text/json',
3146
- 'application/*+json'
3147
- ]
3148
- )
3149
- )
3150
- if _default_content_type is not None:
3151
- _header_params['Content-Type'] = _default_content_type
3152
-
3153
- # authentication setting
3154
- _auth_settings: List[str] = [
3155
- 'bearer',
3156
- 'oauth2'
3157
- ]
3158
-
3159
- return self.api_client.param_serialize(
3160
- method='PUT',
3161
- resource_path='/validation-set/{validationSetId}/shouldalert',
3162
- path_params=_path_params,
3163
- query_params=_query_params,
3164
- header_params=_header_params,
3165
- body=_body_params,
3166
- post_params=_form_params,
3167
- files=_files,
3168
- auth_settings=_auth_settings,
3169
- collection_formats=_collection_formats,
3170
- _host=_host,
3171
- _request_auth=_request_auth
3172
- )
3173
-
3174
-
3175
-
3176
-
3177
2896
  @validate_call
3178
2897
  def validation_set_validation_set_id_update_labeling_hints_post(
3179
2898
  self,