rapidata 2.36.0__py3-none-any.whl → 2.36.1__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.

@@ -16,21 +16,24 @@ 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, StrictBool, 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.add_validation_rapid_model import AddValidationRapidModel
23
23
  from rapidata.api_client.models.add_validation_rapid_result import AddValidationRapidResult
24
- from rapidata.api_client.models.add_validation_text_rapid_model import AddValidationTextRapidModel
24
+ from rapidata.api_client.models.asset_type import AssetType
25
25
  from rapidata.api_client.models.create_empty_validation_set_result import CreateEmptyValidationSetResult
26
26
  from rapidata.api_client.models.create_validation_set_model import CreateValidationSetModel
27
27
  from rapidata.api_client.models.get_available_validation_sets_result import GetAvailableValidationSetsResult
28
28
  from rapidata.api_client.models.get_validation_rapids_result_paged_result import GetValidationRapidsResultPagedResult
29
29
  from rapidata.api_client.models.get_validation_set_by_id_result import GetValidationSetByIdResult
30
30
  from rapidata.api_client.models.import_validation_set_from_file_result import ImportValidationSetFromFileResult
31
+ from rapidata.api_client.models.prompt_type import PromptType
31
32
  from rapidata.api_client.models.query_model import QueryModel
33
+ from rapidata.api_client.models.rapid_modality import RapidModality
32
34
  from rapidata.api_client.models.update_dimensions_model import UpdateDimensionsModel
33
35
  from rapidata.api_client.models.update_should_alert_model import UpdateShouldAlertModel
36
+ from rapidata.api_client.models.validation_set_model import ValidationSetModel
34
37
  from rapidata.api_client.models.validation_set_model_paged_result import ValidationSetModelPagedResult
35
38
  from rapidata.api_client.models.validation_set_zip_post_request_blueprint import ValidationSetZipPostRequestBlueprint
36
39
 
@@ -328,6 +331,303 @@ class ValidationSetApi:
328
331
 
329
332
 
330
333
 
334
+ @validate_call
335
+ def validation_set_recommended_get(
336
+ self,
337
+ asset_type: Annotated[Optional[AssetType], Field(description="The types of assets that the validation set should contain. An asset type can be an image, video, audio, text, or any combination of these. <para /> This parameter is a flag, meaning that it can be null or contain multiple values. If multiple values are provided, a validation set will be chosen that contains at least one of the specified asset types.")] = None,
338
+ modality: Annotated[Optional[RapidModality], Field(description="The rapid modalities that the validation set should contain. The modality is the type of rapid such as classify, compare, locate, etc. <para /> This parameter is a flag, meaning that it can be null or contain multiple values. If multiple values are provided, a validation set will be chosen that contains at least one of the specified modalities.")] = None,
339
+ prompt_type: Annotated[Optional[PromptType], Field(description="The prompt types that the validation set should contain. A prompt type is the additional information that is presented to the user when solving a rapid. For example, a prompt type can be either text or an asset if the context is an image or video. <para /> This parameter is a flag, meaning that it can be null or contain multiple values. If multiple values are provided, a validation set will be chosen that contains at least one of the specified prompt types.")] = None,
340
+ _request_timeout: Union[
341
+ None,
342
+ Annotated[StrictFloat, Field(gt=0)],
343
+ Tuple[
344
+ Annotated[StrictFloat, Field(gt=0)],
345
+ Annotated[StrictFloat, Field(gt=0)]
346
+ ]
347
+ ] = None,
348
+ _request_auth: Optional[Dict[StrictStr, Any]] = None,
349
+ _content_type: Optional[StrictStr] = None,
350
+ _headers: Optional[Dict[StrictStr, Any]] = None,
351
+ _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
352
+ ) -> ValidationSetModel:
353
+ """Gets a validation set that is available to the user and best matches the provided parameters.
354
+
355
+
356
+ :param asset_type: The types of assets that the validation set should contain. An asset type can be an image, video, audio, text, or any combination of these. <para /> This parameter is a flag, meaning that it can be null or contain multiple values. If multiple values are provided, a validation set will be chosen that contains at least one of the specified asset types.
357
+ :type asset_type: AssetType
358
+ :param modality: The rapid modalities that the validation set should contain. The modality is the type of rapid such as classify, compare, locate, etc. <para /> This parameter is a flag, meaning that it can be null or contain multiple values. If multiple values are provided, a validation set will be chosen that contains at least one of the specified modalities.
359
+ :type modality: RapidModality
360
+ :param prompt_type: The prompt types that the validation set should contain. A prompt type is the additional information that is presented to the user when solving a rapid. For example, a prompt type can be either text or an asset if the context is an image or video. <para /> This parameter is a flag, meaning that it can be null or contain multiple values. If multiple values are provided, a validation set will be chosen that contains at least one of the specified prompt types.
361
+ :type prompt_type: PromptType
362
+ :param _request_timeout: timeout setting for this request. If one
363
+ number provided, it will be total request
364
+ timeout. It can also be a pair (tuple) of
365
+ (connection, read) timeouts.
366
+ :type _request_timeout: int, tuple(int, int), optional
367
+ :param _request_auth: set to override the auth_settings for an a single
368
+ request; this effectively ignores the
369
+ authentication in the spec for a single request.
370
+ :type _request_auth: dict, optional
371
+ :param _content_type: force content-type for the request.
372
+ :type _content_type: str, Optional
373
+ :param _headers: set to override the headers for a single
374
+ request; this effectively ignores the headers
375
+ in the spec for a single request.
376
+ :type _headers: dict, optional
377
+ :param _host_index: set to override the host_index for a single
378
+ request; this effectively ignores the host_index
379
+ in the spec for a single request.
380
+ :type _host_index: int, optional
381
+ :return: Returns the result object.
382
+ """ # noqa: E501
383
+
384
+ _param = self._validation_set_recommended_get_serialize(
385
+ asset_type=asset_type,
386
+ modality=modality,
387
+ prompt_type=prompt_type,
388
+ _request_auth=_request_auth,
389
+ _content_type=_content_type,
390
+ _headers=_headers,
391
+ _host_index=_host_index
392
+ )
393
+
394
+ _response_types_map: Dict[str, Optional[str]] = {
395
+ '200': "ValidationSetModel",
396
+ }
397
+ response_data = self.api_client.call_api(
398
+ *_param,
399
+ _request_timeout=_request_timeout
400
+ )
401
+ response_data.read()
402
+ return self.api_client.response_deserialize(
403
+ response_data=response_data,
404
+ response_types_map=_response_types_map,
405
+ ).data
406
+
407
+
408
+ @validate_call
409
+ def validation_set_recommended_get_with_http_info(
410
+ self,
411
+ asset_type: Annotated[Optional[AssetType], Field(description="The types of assets that the validation set should contain. An asset type can be an image, video, audio, text, or any combination of these. <para /> This parameter is a flag, meaning that it can be null or contain multiple values. If multiple values are provided, a validation set will be chosen that contains at least one of the specified asset types.")] = None,
412
+ modality: Annotated[Optional[RapidModality], Field(description="The rapid modalities that the validation set should contain. The modality is the type of rapid such as classify, compare, locate, etc. <para /> This parameter is a flag, meaning that it can be null or contain multiple values. If multiple values are provided, a validation set will be chosen that contains at least one of the specified modalities.")] = None,
413
+ prompt_type: Annotated[Optional[PromptType], Field(description="The prompt types that the validation set should contain. A prompt type is the additional information that is presented to the user when solving a rapid. For example, a prompt type can be either text or an asset if the context is an image or video. <para /> This parameter is a flag, meaning that it can be null or contain multiple values. If multiple values are provided, a validation set will be chosen that contains at least one of the specified prompt types.")] = None,
414
+ _request_timeout: Union[
415
+ None,
416
+ Annotated[StrictFloat, Field(gt=0)],
417
+ Tuple[
418
+ Annotated[StrictFloat, Field(gt=0)],
419
+ Annotated[StrictFloat, Field(gt=0)]
420
+ ]
421
+ ] = None,
422
+ _request_auth: Optional[Dict[StrictStr, Any]] = None,
423
+ _content_type: Optional[StrictStr] = None,
424
+ _headers: Optional[Dict[StrictStr, Any]] = None,
425
+ _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
426
+ ) -> ApiResponse[ValidationSetModel]:
427
+ """Gets a validation set that is available to the user and best matches the provided parameters.
428
+
429
+
430
+ :param asset_type: The types of assets that the validation set should contain. An asset type can be an image, video, audio, text, or any combination of these. <para /> This parameter is a flag, meaning that it can be null or contain multiple values. If multiple values are provided, a validation set will be chosen that contains at least one of the specified asset types.
431
+ :type asset_type: AssetType
432
+ :param modality: The rapid modalities that the validation set should contain. The modality is the type of rapid such as classify, compare, locate, etc. <para /> This parameter is a flag, meaning that it can be null or contain multiple values. If multiple values are provided, a validation set will be chosen that contains at least one of the specified modalities.
433
+ :type modality: RapidModality
434
+ :param prompt_type: The prompt types that the validation set should contain. A prompt type is the additional information that is presented to the user when solving a rapid. For example, a prompt type can be either text or an asset if the context is an image or video. <para /> This parameter is a flag, meaning that it can be null or contain multiple values. If multiple values are provided, a validation set will be chosen that contains at least one of the specified prompt types.
435
+ :type prompt_type: PromptType
436
+ :param _request_timeout: timeout setting for this request. If one
437
+ number provided, it will be total request
438
+ timeout. It can also be a pair (tuple) of
439
+ (connection, read) timeouts.
440
+ :type _request_timeout: int, tuple(int, int), optional
441
+ :param _request_auth: set to override the auth_settings for an a single
442
+ request; this effectively ignores the
443
+ authentication in the spec for a single request.
444
+ :type _request_auth: dict, optional
445
+ :param _content_type: force content-type for the request.
446
+ :type _content_type: str, Optional
447
+ :param _headers: set to override the headers for a single
448
+ request; this effectively ignores the headers
449
+ in the spec for a single request.
450
+ :type _headers: dict, optional
451
+ :param _host_index: set to override the host_index for a single
452
+ request; this effectively ignores the host_index
453
+ in the spec for a single request.
454
+ :type _host_index: int, optional
455
+ :return: Returns the result object.
456
+ """ # noqa: E501
457
+
458
+ _param = self._validation_set_recommended_get_serialize(
459
+ asset_type=asset_type,
460
+ modality=modality,
461
+ prompt_type=prompt_type,
462
+ _request_auth=_request_auth,
463
+ _content_type=_content_type,
464
+ _headers=_headers,
465
+ _host_index=_host_index
466
+ )
467
+
468
+ _response_types_map: Dict[str, Optional[str]] = {
469
+ '200': "ValidationSetModel",
470
+ }
471
+ response_data = self.api_client.call_api(
472
+ *_param,
473
+ _request_timeout=_request_timeout
474
+ )
475
+ response_data.read()
476
+ return self.api_client.response_deserialize(
477
+ response_data=response_data,
478
+ response_types_map=_response_types_map,
479
+ )
480
+
481
+
482
+ @validate_call
483
+ def validation_set_recommended_get_without_preload_content(
484
+ self,
485
+ asset_type: Annotated[Optional[AssetType], Field(description="The types of assets that the validation set should contain. An asset type can be an image, video, audio, text, or any combination of these. <para /> This parameter is a flag, meaning that it can be null or contain multiple values. If multiple values are provided, a validation set will be chosen that contains at least one of the specified asset types.")] = None,
486
+ modality: Annotated[Optional[RapidModality], Field(description="The rapid modalities that the validation set should contain. The modality is the type of rapid such as classify, compare, locate, etc. <para /> This parameter is a flag, meaning that it can be null or contain multiple values. If multiple values are provided, a validation set will be chosen that contains at least one of the specified modalities.")] = None,
487
+ prompt_type: Annotated[Optional[PromptType], Field(description="The prompt types that the validation set should contain. A prompt type is the additional information that is presented to the user when solving a rapid. For example, a prompt type can be either text or an asset if the context is an image or video. <para /> This parameter is a flag, meaning that it can be null or contain multiple values. If multiple values are provided, a validation set will be chosen that contains at least one of the specified prompt types.")] = None,
488
+ _request_timeout: Union[
489
+ None,
490
+ Annotated[StrictFloat, Field(gt=0)],
491
+ Tuple[
492
+ Annotated[StrictFloat, Field(gt=0)],
493
+ Annotated[StrictFloat, Field(gt=0)]
494
+ ]
495
+ ] = None,
496
+ _request_auth: Optional[Dict[StrictStr, Any]] = None,
497
+ _content_type: Optional[StrictStr] = None,
498
+ _headers: Optional[Dict[StrictStr, Any]] = None,
499
+ _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
500
+ ) -> RESTResponseType:
501
+ """Gets a validation set that is available to the user and best matches the provided parameters.
502
+
503
+
504
+ :param asset_type: The types of assets that the validation set should contain. An asset type can be an image, video, audio, text, or any combination of these. <para /> This parameter is a flag, meaning that it can be null or contain multiple values. If multiple values are provided, a validation set will be chosen that contains at least one of the specified asset types.
505
+ :type asset_type: AssetType
506
+ :param modality: The rapid modalities that the validation set should contain. The modality is the type of rapid such as classify, compare, locate, etc. <para /> This parameter is a flag, meaning that it can be null or contain multiple values. If multiple values are provided, a validation set will be chosen that contains at least one of the specified modalities.
507
+ :type modality: RapidModality
508
+ :param prompt_type: The prompt types that the validation set should contain. A prompt type is the additional information that is presented to the user when solving a rapid. For example, a prompt type can be either text or an asset if the context is an image or video. <para /> This parameter is a flag, meaning that it can be null or contain multiple values. If multiple values are provided, a validation set will be chosen that contains at least one of the specified prompt types.
509
+ :type prompt_type: PromptType
510
+ :param _request_timeout: timeout setting for this request. If one
511
+ number provided, it will be total request
512
+ timeout. It can also be a pair (tuple) of
513
+ (connection, read) timeouts.
514
+ :type _request_timeout: int, tuple(int, int), optional
515
+ :param _request_auth: set to override the auth_settings for an a single
516
+ request; this effectively ignores the
517
+ authentication in the spec for a single request.
518
+ :type _request_auth: dict, optional
519
+ :param _content_type: force content-type for the request.
520
+ :type _content_type: str, Optional
521
+ :param _headers: set to override the headers for a single
522
+ request; this effectively ignores the headers
523
+ in the spec for a single request.
524
+ :type _headers: dict, optional
525
+ :param _host_index: set to override the host_index for a single
526
+ request; this effectively ignores the host_index
527
+ in the spec for a single request.
528
+ :type _host_index: int, optional
529
+ :return: Returns the result object.
530
+ """ # noqa: E501
531
+
532
+ _param = self._validation_set_recommended_get_serialize(
533
+ asset_type=asset_type,
534
+ modality=modality,
535
+ prompt_type=prompt_type,
536
+ _request_auth=_request_auth,
537
+ _content_type=_content_type,
538
+ _headers=_headers,
539
+ _host_index=_host_index
540
+ )
541
+
542
+ _response_types_map: Dict[str, Optional[str]] = {
543
+ '200': "ValidationSetModel",
544
+ }
545
+ response_data = self.api_client.call_api(
546
+ *_param,
547
+ _request_timeout=_request_timeout
548
+ )
549
+ return response_data.response
550
+
551
+
552
+ def _validation_set_recommended_get_serialize(
553
+ self,
554
+ asset_type,
555
+ modality,
556
+ prompt_type,
557
+ _request_auth,
558
+ _content_type,
559
+ _headers,
560
+ _host_index,
561
+ ) -> RequestSerialized:
562
+
563
+ _host = None
564
+
565
+ _collection_formats: Dict[str, str] = {
566
+ }
567
+
568
+ _path_params: Dict[str, str] = {}
569
+ _query_params: List[Tuple[str, str]] = []
570
+ _header_params: Dict[str, Optional[str]] = _headers or {}
571
+ _form_params: List[Tuple[str, str]] = []
572
+ _files: Dict[
573
+ str, Union[str, bytes, List[str], List[bytes], List[Tuple[str, bytes]]]
574
+ ] = {}
575
+ _body_params: Optional[bytes] = None
576
+
577
+ # process the path parameters
578
+ # process the query parameters
579
+ if asset_type is not None:
580
+
581
+ _query_params.append(('assetType', asset_type.value))
582
+
583
+ if modality is not None:
584
+
585
+ _query_params.append(('modality', modality.value))
586
+
587
+ if prompt_type is not None:
588
+
589
+ _query_params.append(('promptType', prompt_type.value))
590
+
591
+ # process the header parameters
592
+ # process the form parameters
593
+ # process the body parameter
594
+
595
+
596
+ # set the HTTP header `Accept`
597
+ if 'Accept' not in _header_params:
598
+ _header_params['Accept'] = self.api_client.select_header_accept(
599
+ [
600
+ 'text/plain',
601
+ 'application/json',
602
+ 'text/json'
603
+ ]
604
+ )
605
+
606
+
607
+ # authentication setting
608
+ _auth_settings: List[str] = [
609
+ 'bearer',
610
+ 'oauth2'
611
+ ]
612
+
613
+ return self.api_client.param_serialize(
614
+ method='GET',
615
+ resource_path='/validation-set/recommended',
616
+ path_params=_path_params,
617
+ query_params=_query_params,
618
+ header_params=_header_params,
619
+ body=_body_params,
620
+ post_params=_form_params,
621
+ files=_files,
622
+ auth_settings=_auth_settings,
623
+ collection_formats=_collection_formats,
624
+ _host=_host,
625
+ _request_auth=_request_auth
626
+ )
627
+
628
+
629
+
630
+
331
631
  @validate_call
332
632
  def validation_set_validation_set_id_delete(
333
633
  self,
@@ -1670,11 +1970,13 @@ class ValidationSetApi:
1670
1970
 
1671
1971
 
1672
1972
  @validate_call
1673
- def validation_set_validation_set_id_rapid_files_post(
1973
+ def validation_set_validation_set_id_rapid_post(
1674
1974
  self,
1675
1975
  validation_set_id: Annotated[StrictStr, Field(description="The ID of the validation set to add the rapid to.")],
1676
1976
  model: Optional[AddValidationRapidModel] = None,
1677
1977
  files: Optional[List[Union[StrictBytes, StrictStr, Tuple[StrictStr, StrictBytes]]]] = None,
1978
+ texts: Annotated[Optional[List[StrictStr]], Field(description="The texts to use for the rapid.")] = None,
1979
+ urls: Annotated[Optional[List[StrictStr]], Field(description="The urls to use for the rapid")] = None,
1678
1980
  _request_timeout: Union[
1679
1981
  None,
1680
1982
  Annotated[StrictFloat, Field(gt=0)],
@@ -1688,7 +1990,7 @@ class ValidationSetApi:
1688
1990
  _headers: Optional[Dict[StrictStr, Any]] = None,
1689
1991
  _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
1690
1992
  ) -> AddValidationRapidResult:
1691
- """(Deprecated) Adds a new validation rapid to the specified validation set using files to create the assets.
1993
+ """Adds a new validation rapid to the specified validation set using files to create the assets.
1692
1994
 
1693
1995
 
1694
1996
  :param validation_set_id: The ID of the validation set to add the rapid to. (required)
@@ -1697,6 +1999,10 @@ class ValidationSetApi:
1697
1999
  :type model: AddValidationRapidModel
1698
2000
  :param files:
1699
2001
  :type files: List[bytearray]
2002
+ :param texts: The texts to use for the rapid.
2003
+ :type texts: List[str]
2004
+ :param urls: The urls to use for the rapid
2005
+ :type urls: List[str]
1700
2006
  :param _request_timeout: timeout setting for this request. If one
1701
2007
  number provided, it will be total request
1702
2008
  timeout. It can also be a pair (tuple) of
@@ -1718,12 +2024,13 @@ class ValidationSetApi:
1718
2024
  :type _host_index: int, optional
1719
2025
  :return: Returns the result object.
1720
2026
  """ # noqa: E501
1721
- warnings.warn("POST /validation-set/{validationSetId}/rapid/files is deprecated.", DeprecationWarning)
1722
2027
 
1723
- _param = self._validation_set_validation_set_id_rapid_files_post_serialize(
2028
+ _param = self._validation_set_validation_set_id_rapid_post_serialize(
1724
2029
  validation_set_id=validation_set_id,
1725
2030
  model=model,
1726
2031
  files=files,
2032
+ texts=texts,
2033
+ urls=urls,
1727
2034
  _request_auth=_request_auth,
1728
2035
  _content_type=_content_type,
1729
2036
  _headers=_headers,
@@ -1745,11 +2052,13 @@ class ValidationSetApi:
1745
2052
 
1746
2053
 
1747
2054
  @validate_call
1748
- def validation_set_validation_set_id_rapid_files_post_with_http_info(
2055
+ def validation_set_validation_set_id_rapid_post_with_http_info(
1749
2056
  self,
1750
2057
  validation_set_id: Annotated[StrictStr, Field(description="The ID of the validation set to add the rapid to.")],
1751
2058
  model: Optional[AddValidationRapidModel] = None,
1752
2059
  files: Optional[List[Union[StrictBytes, StrictStr, Tuple[StrictStr, StrictBytes]]]] = None,
2060
+ texts: Annotated[Optional[List[StrictStr]], Field(description="The texts to use for the rapid.")] = None,
2061
+ urls: Annotated[Optional[List[StrictStr]], Field(description="The urls to use for the rapid")] = None,
1753
2062
  _request_timeout: Union[
1754
2063
  None,
1755
2064
  Annotated[StrictFloat, Field(gt=0)],
@@ -1763,7 +2072,7 @@ class ValidationSetApi:
1763
2072
  _headers: Optional[Dict[StrictStr, Any]] = None,
1764
2073
  _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
1765
2074
  ) -> ApiResponse[AddValidationRapidResult]:
1766
- """(Deprecated) Adds a new validation rapid to the specified validation set using files to create the assets.
2075
+ """Adds a new validation rapid to the specified validation set using files to create the assets.
1767
2076
 
1768
2077
 
1769
2078
  :param validation_set_id: The ID of the validation set to add the rapid to. (required)
@@ -1772,6 +2081,10 @@ class ValidationSetApi:
1772
2081
  :type model: AddValidationRapidModel
1773
2082
  :param files:
1774
2083
  :type files: List[bytearray]
2084
+ :param texts: The texts to use for the rapid.
2085
+ :type texts: List[str]
2086
+ :param urls: The urls to use for the rapid
2087
+ :type urls: List[str]
1775
2088
  :param _request_timeout: timeout setting for this request. If one
1776
2089
  number provided, it will be total request
1777
2090
  timeout. It can also be a pair (tuple) of
@@ -1793,12 +2106,13 @@ class ValidationSetApi:
1793
2106
  :type _host_index: int, optional
1794
2107
  :return: Returns the result object.
1795
2108
  """ # noqa: E501
1796
- warnings.warn("POST /validation-set/{validationSetId}/rapid/files is deprecated.", DeprecationWarning)
1797
2109
 
1798
- _param = self._validation_set_validation_set_id_rapid_files_post_serialize(
2110
+ _param = self._validation_set_validation_set_id_rapid_post_serialize(
1799
2111
  validation_set_id=validation_set_id,
1800
2112
  model=model,
1801
2113
  files=files,
2114
+ texts=texts,
2115
+ urls=urls,
1802
2116
  _request_auth=_request_auth,
1803
2117
  _content_type=_content_type,
1804
2118
  _headers=_headers,
@@ -1820,11 +2134,13 @@ class ValidationSetApi:
1820
2134
 
1821
2135
 
1822
2136
  @validate_call
1823
- def validation_set_validation_set_id_rapid_files_post_without_preload_content(
2137
+ def validation_set_validation_set_id_rapid_post_without_preload_content(
1824
2138
  self,
1825
2139
  validation_set_id: Annotated[StrictStr, Field(description="The ID of the validation set to add the rapid to.")],
1826
2140
  model: Optional[AddValidationRapidModel] = None,
1827
2141
  files: Optional[List[Union[StrictBytes, StrictStr, Tuple[StrictStr, StrictBytes]]]] = None,
2142
+ texts: Annotated[Optional[List[StrictStr]], Field(description="The texts to use for the rapid.")] = None,
2143
+ urls: Annotated[Optional[List[StrictStr]], Field(description="The urls to use for the rapid")] = None,
1828
2144
  _request_timeout: Union[
1829
2145
  None,
1830
2146
  Annotated[StrictFloat, Field(gt=0)],
@@ -1838,7 +2154,7 @@ class ValidationSetApi:
1838
2154
  _headers: Optional[Dict[StrictStr, Any]] = None,
1839
2155
  _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
1840
2156
  ) -> RESTResponseType:
1841
- """(Deprecated) Adds a new validation rapid to the specified validation set using files to create the assets.
2157
+ """Adds a new validation rapid to the specified validation set using files to create the assets.
1842
2158
 
1843
2159
 
1844
2160
  :param validation_set_id: The ID of the validation set to add the rapid to. (required)
@@ -1847,6 +2163,10 @@ class ValidationSetApi:
1847
2163
  :type model: AddValidationRapidModel
1848
2164
  :param files:
1849
2165
  :type files: List[bytearray]
2166
+ :param texts: The texts to use for the rapid.
2167
+ :type texts: List[str]
2168
+ :param urls: The urls to use for the rapid
2169
+ :type urls: List[str]
1850
2170
  :param _request_timeout: timeout setting for this request. If one
1851
2171
  number provided, it will be total request
1852
2172
  timeout. It can also be a pair (tuple) of
@@ -1868,12 +2188,13 @@ class ValidationSetApi:
1868
2188
  :type _host_index: int, optional
1869
2189
  :return: Returns the result object.
1870
2190
  """ # noqa: E501
1871
- warnings.warn("POST /validation-set/{validationSetId}/rapid/files is deprecated.", DeprecationWarning)
1872
2191
 
1873
- _param = self._validation_set_validation_set_id_rapid_files_post_serialize(
2192
+ _param = self._validation_set_validation_set_id_rapid_post_serialize(
1874
2193
  validation_set_id=validation_set_id,
1875
2194
  model=model,
1876
2195
  files=files,
2196
+ texts=texts,
2197
+ urls=urls,
1877
2198
  _request_auth=_request_auth,
1878
2199
  _content_type=_content_type,
1879
2200
  _headers=_headers,
@@ -1890,11 +2211,13 @@ class ValidationSetApi:
1890
2211
  return response_data.response
1891
2212
 
1892
2213
 
1893
- def _validation_set_validation_set_id_rapid_files_post_serialize(
2214
+ def _validation_set_validation_set_id_rapid_post_serialize(
1894
2215
  self,
1895
2216
  validation_set_id,
1896
2217
  model,
1897
2218
  files,
2219
+ texts,
2220
+ urls,
1898
2221
  _request_auth,
1899
2222
  _content_type,
1900
2223
  _headers,
@@ -1905,6 +2228,8 @@ class ValidationSetApi:
1905
2228
 
1906
2229
  _collection_formats: Dict[str, str] = {
1907
2230
  'files': 'multi',
2231
+ 'texts': 'multi',
2232
+ 'urls': 'multi',
1908
2233
  }
1909
2234
 
1910
2235
  _path_params: Dict[str, str] = {}
@@ -1926,6 +2251,10 @@ class ValidationSetApi:
1926
2251
  _form_params.append(('model', model))
1927
2252
  if files is not None:
1928
2253
  _files['files'] = files
2254
+ if texts is not None:
2255
+ _form_params.append(('texts', texts))
2256
+ if urls is not None:
2257
+ _form_params.append(('urls', urls))
1929
2258
  # process the body parameter
1930
2259
 
1931
2260
 
@@ -1961,7 +2290,7 @@ class ValidationSetApi:
1961
2290
 
1962
2291
  return self.api_client.param_serialize(
1963
2292
  method='POST',
1964
- resource_path='/validation-set/{validationSetId}/rapid/files',
2293
+ resource_path='/validation-set/{validationSetId}/rapid',
1965
2294
  path_params=_path_params,
1966
2295
  query_params=_query_params,
1967
2296
  header_params=_header_params,
@@ -1978,13 +2307,10 @@ class ValidationSetApi:
1978
2307
 
1979
2308
 
1980
2309
  @validate_call
1981
- def validation_set_validation_set_id_rapid_post(
2310
+ def validation_set_validation_set_id_rapids_get(
1982
2311
  self,
1983
- validation_set_id: Annotated[StrictStr, Field(description="The ID of the validation set to add the rapid to.")],
1984
- model: Optional[AddValidationRapidModel] = None,
1985
- files: Optional[List[Union[StrictBytes, StrictStr, Tuple[StrictStr, StrictBytes]]]] = None,
1986
- texts: Annotated[Optional[List[StrictStr]], Field(description="The texts to use for the rapid.")] = None,
1987
- urls: Annotated[Optional[List[StrictStr]], Field(description="The urls to use for the rapid")] = None,
2312
+ validation_set_id: Annotated[StrictStr, Field(description="The validation set to query.")],
2313
+ model: Annotated[Optional[QueryModel], Field(description="The request formatted as a JSON in the query parameters.")] = None,
1988
2314
  _request_timeout: Union[
1989
2315
  None,
1990
2316
  Annotated[StrictFloat, Field(gt=0)],
@@ -1997,20 +2323,14 @@ class ValidationSetApi:
1997
2323
  _content_type: Optional[StrictStr] = None,
1998
2324
  _headers: Optional[Dict[StrictStr, Any]] = None,
1999
2325
  _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
2000
- ) -> AddValidationRapidResult:
2001
- """Adds a new validation rapid to the specified validation set using files to create the assets.
2326
+ ) -> GetValidationRapidsResultPagedResult:
2327
+ """Queries the validation rapids for a specific validation set.
2002
2328
 
2003
2329
 
2004
- :param validation_set_id: The ID of the validation set to add the rapid to. (required)
2330
+ :param validation_set_id: The validation set to query. (required)
2005
2331
  :type validation_set_id: str
2006
- :param model:
2007
- :type model: AddValidationRapidModel
2008
- :param files:
2009
- :type files: List[bytearray]
2010
- :param texts: The texts to use for the rapid.
2011
- :type texts: List[str]
2012
- :param urls: The urls to use for the rapid
2013
- :type urls: List[str]
2332
+ :param model: The request formatted as a JSON in the query parameters.
2333
+ :type model: QueryModel
2014
2334
  :param _request_timeout: timeout setting for this request. If one
2015
2335
  number provided, it will be total request
2016
2336
  timeout. It can also be a pair (tuple) of
@@ -2033,12 +2353,9 @@ class ValidationSetApi:
2033
2353
  :return: Returns the result object.
2034
2354
  """ # noqa: E501
2035
2355
 
2036
- _param = self._validation_set_validation_set_id_rapid_post_serialize(
2356
+ _param = self._validation_set_validation_set_id_rapids_get_serialize(
2037
2357
  validation_set_id=validation_set_id,
2038
2358
  model=model,
2039
- files=files,
2040
- texts=texts,
2041
- urls=urls,
2042
2359
  _request_auth=_request_auth,
2043
2360
  _content_type=_content_type,
2044
2361
  _headers=_headers,
@@ -2046,7 +2363,7 @@ class ValidationSetApi:
2046
2363
  )
2047
2364
 
2048
2365
  _response_types_map: Dict[str, Optional[str]] = {
2049
- '200': "AddValidationRapidResult",
2366
+ '200': "GetValidationRapidsResultPagedResult",
2050
2367
  }
2051
2368
  response_data = self.api_client.call_api(
2052
2369
  *_param,
@@ -2060,13 +2377,10 @@ class ValidationSetApi:
2060
2377
 
2061
2378
 
2062
2379
  @validate_call
2063
- def validation_set_validation_set_id_rapid_post_with_http_info(
2380
+ def validation_set_validation_set_id_rapids_get_with_http_info(
2064
2381
  self,
2065
- validation_set_id: Annotated[StrictStr, Field(description="The ID of the validation set to add the rapid to.")],
2066
- model: Optional[AddValidationRapidModel] = None,
2067
- files: Optional[List[Union[StrictBytes, StrictStr, Tuple[StrictStr, StrictBytes]]]] = None,
2068
- texts: Annotated[Optional[List[StrictStr]], Field(description="The texts to use for the rapid.")] = None,
2069
- urls: Annotated[Optional[List[StrictStr]], Field(description="The urls to use for the rapid")] = None,
2382
+ validation_set_id: Annotated[StrictStr, Field(description="The validation set to query.")],
2383
+ model: Annotated[Optional[QueryModel], Field(description="The request formatted as a JSON in the query parameters.")] = None,
2070
2384
  _request_timeout: Union[
2071
2385
  None,
2072
2386
  Annotated[StrictFloat, Field(gt=0)],
@@ -2079,20 +2393,14 @@ class ValidationSetApi:
2079
2393
  _content_type: Optional[StrictStr] = None,
2080
2394
  _headers: Optional[Dict[StrictStr, Any]] = None,
2081
2395
  _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
2082
- ) -> ApiResponse[AddValidationRapidResult]:
2083
- """Adds a new validation rapid to the specified validation set using files to create the assets.
2396
+ ) -> ApiResponse[GetValidationRapidsResultPagedResult]:
2397
+ """Queries the validation rapids for a specific validation set.
2084
2398
 
2085
2399
 
2086
- :param validation_set_id: The ID of the validation set to add the rapid to. (required)
2400
+ :param validation_set_id: The validation set to query. (required)
2087
2401
  :type validation_set_id: str
2088
- :param model:
2089
- :type model: AddValidationRapidModel
2090
- :param files:
2091
- :type files: List[bytearray]
2092
- :param texts: The texts to use for the rapid.
2093
- :type texts: List[str]
2094
- :param urls: The urls to use for the rapid
2095
- :type urls: List[str]
2402
+ :param model: The request formatted as a JSON in the query parameters.
2403
+ :type model: QueryModel
2096
2404
  :param _request_timeout: timeout setting for this request. If one
2097
2405
  number provided, it will be total request
2098
2406
  timeout. It can also be a pair (tuple) of
@@ -2115,12 +2423,9 @@ class ValidationSetApi:
2115
2423
  :return: Returns the result object.
2116
2424
  """ # noqa: E501
2117
2425
 
2118
- _param = self._validation_set_validation_set_id_rapid_post_serialize(
2426
+ _param = self._validation_set_validation_set_id_rapids_get_serialize(
2119
2427
  validation_set_id=validation_set_id,
2120
2428
  model=model,
2121
- files=files,
2122
- texts=texts,
2123
- urls=urls,
2124
2429
  _request_auth=_request_auth,
2125
2430
  _content_type=_content_type,
2126
2431
  _headers=_headers,
@@ -2128,7 +2433,7 @@ class ValidationSetApi:
2128
2433
  )
2129
2434
 
2130
2435
  _response_types_map: Dict[str, Optional[str]] = {
2131
- '200': "AddValidationRapidResult",
2436
+ '200': "GetValidationRapidsResultPagedResult",
2132
2437
  }
2133
2438
  response_data = self.api_client.call_api(
2134
2439
  *_param,
@@ -2142,13 +2447,10 @@ class ValidationSetApi:
2142
2447
 
2143
2448
 
2144
2449
  @validate_call
2145
- def validation_set_validation_set_id_rapid_post_without_preload_content(
2450
+ def validation_set_validation_set_id_rapids_get_without_preload_content(
2146
2451
  self,
2147
- validation_set_id: Annotated[StrictStr, Field(description="The ID of the validation set to add the rapid to.")],
2148
- model: Optional[AddValidationRapidModel] = None,
2149
- files: Optional[List[Union[StrictBytes, StrictStr, Tuple[StrictStr, StrictBytes]]]] = None,
2150
- texts: Annotated[Optional[List[StrictStr]], Field(description="The texts to use for the rapid.")] = None,
2151
- urls: Annotated[Optional[List[StrictStr]], Field(description="The urls to use for the rapid")] = None,
2452
+ validation_set_id: Annotated[StrictStr, Field(description="The validation set to query.")],
2453
+ model: Annotated[Optional[QueryModel], Field(description="The request formatted as a JSON in the query parameters.")] = None,
2152
2454
  _request_timeout: Union[
2153
2455
  None,
2154
2456
  Annotated[StrictFloat, Field(gt=0)],
@@ -2162,19 +2464,13 @@ class ValidationSetApi:
2162
2464
  _headers: Optional[Dict[StrictStr, Any]] = None,
2163
2465
  _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
2164
2466
  ) -> RESTResponseType:
2165
- """Adds a new validation rapid to the specified validation set using files to create the assets.
2467
+ """Queries the validation rapids for a specific validation set.
2166
2468
 
2167
2469
 
2168
- :param validation_set_id: The ID of the validation set to add the rapid to. (required)
2470
+ :param validation_set_id: The validation set to query. (required)
2169
2471
  :type validation_set_id: str
2170
- :param model:
2171
- :type model: AddValidationRapidModel
2172
- :param files:
2173
- :type files: List[bytearray]
2174
- :param texts: The texts to use for the rapid.
2175
- :type texts: List[str]
2176
- :param urls: The urls to use for the rapid
2177
- :type urls: List[str]
2472
+ :param model: The request formatted as a JSON in the query parameters.
2473
+ :type model: QueryModel
2178
2474
  :param _request_timeout: timeout setting for this request. If one
2179
2475
  number provided, it will be total request
2180
2476
  timeout. It can also be a pair (tuple) of
@@ -2197,12 +2493,9 @@ class ValidationSetApi:
2197
2493
  :return: Returns the result object.
2198
2494
  """ # noqa: E501
2199
2495
 
2200
- _param = self._validation_set_validation_set_id_rapid_post_serialize(
2496
+ _param = self._validation_set_validation_set_id_rapids_get_serialize(
2201
2497
  validation_set_id=validation_set_id,
2202
2498
  model=model,
2203
- files=files,
2204
- texts=texts,
2205
- urls=urls,
2206
2499
  _request_auth=_request_auth,
2207
2500
  _content_type=_content_type,
2208
2501
  _headers=_headers,
@@ -2210,7 +2503,7 @@ class ValidationSetApi:
2210
2503
  )
2211
2504
 
2212
2505
  _response_types_map: Dict[str, Optional[str]] = {
2213
- '200': "AddValidationRapidResult",
2506
+ '200': "GetValidationRapidsResultPagedResult",
2214
2507
  }
2215
2508
  response_data = self.api_client.call_api(
2216
2509
  *_param,
@@ -2219,13 +2512,10 @@ class ValidationSetApi:
2219
2512
  return response_data.response
2220
2513
 
2221
2514
 
2222
- def _validation_set_validation_set_id_rapid_post_serialize(
2515
+ def _validation_set_validation_set_id_rapids_get_serialize(
2223
2516
  self,
2224
2517
  validation_set_id,
2225
2518
  model,
2226
- files,
2227
- texts,
2228
- urls,
2229
2519
  _request_auth,
2230
2520
  _content_type,
2231
2521
  _headers,
@@ -2235,9 +2525,6 @@ class ValidationSetApi:
2235
2525
  _host = None
2236
2526
 
2237
2527
  _collection_formats: Dict[str, str] = {
2238
- 'files': 'multi',
2239
- 'texts': 'multi',
2240
- 'urls': 'multi',
2241
2528
  }
2242
2529
 
2243
2530
  _path_params: Dict[str, str] = {}
@@ -2253,16 +2540,12 @@ class ValidationSetApi:
2253
2540
  if validation_set_id is not None:
2254
2541
  _path_params['validationSetId'] = validation_set_id
2255
2542
  # process the query parameters
2543
+ if model is not None:
2544
+
2545
+ _query_params.append(('model', model))
2546
+
2256
2547
  # process the header parameters
2257
2548
  # process the form parameters
2258
- if model is not None:
2259
- _form_params.append(('model', model))
2260
- if files is not None:
2261
- _files['files'] = files
2262
- if texts is not None:
2263
- _form_params.append(('texts', texts))
2264
- if urls is not None:
2265
- _form_params.append(('urls', urls))
2266
2549
  # process the body parameter
2267
2550
 
2268
2551
 
@@ -2276,19 +2559,6 @@ class ValidationSetApi:
2276
2559
  ]
2277
2560
  )
2278
2561
 
2279
- # set the HTTP header `Content-Type`
2280
- if _content_type:
2281
- _header_params['Content-Type'] = _content_type
2282
- else:
2283
- _default_content_type = (
2284
- self.api_client.select_header_content_type(
2285
- [
2286
- 'multipart/form-data'
2287
- ]
2288
- )
2289
- )
2290
- if _default_content_type is not None:
2291
- _header_params['Content-Type'] = _default_content_type
2292
2562
 
2293
2563
  # authentication setting
2294
2564
  _auth_settings: List[str] = [
@@ -2297,8 +2567,8 @@ class ValidationSetApi:
2297
2567
  ]
2298
2568
 
2299
2569
  return self.api_client.param_serialize(
2300
- method='POST',
2301
- resource_path='/validation-set/{validationSetId}/rapid',
2570
+ method='GET',
2571
+ resource_path='/validation-set/{validationSetId}/rapids',
2302
2572
  path_params=_path_params,
2303
2573
  query_params=_query_params,
2304
2574
  header_params=_header_params,
@@ -2315,10 +2585,10 @@ class ValidationSetApi:
2315
2585
 
2316
2586
 
2317
2587
  @validate_call
2318
- def validation_set_validation_set_id_rapid_texts_post(
2588
+ def validation_set_validation_set_id_shouldalert_patch(
2319
2589
  self,
2320
- validation_set_id: Annotated[StrictStr, Field(description="The ID of the validation set to add the rapid to.")],
2321
- add_validation_text_rapid_model: Annotated[Optional[AddValidationTextRapidModel], Field(description="The model containing the information needed to add the validation rapid.")] = None,
2590
+ validation_set_id: Annotated[StrictStr, Field(description="The Id of the validation set to update the dimensions for.")],
2591
+ update_should_alert_model: Annotated[Optional[UpdateShouldAlertModel], Field(description="The body request for updating the shouldAlert property.")] = None,
2322
2592
  _request_timeout: Union[
2323
2593
  None,
2324
2594
  Annotated[StrictFloat, Field(gt=0)],
@@ -2331,14 +2601,14 @@ class ValidationSetApi:
2331
2601
  _content_type: Optional[StrictStr] = None,
2332
2602
  _headers: Optional[Dict[StrictStr, Any]] = None,
2333
2603
  _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
2334
- ) -> AddValidationRapidResult:
2335
- """(Deprecated) Adds a new validation rapid to the specified validation set using text sources to create the assets.
2604
+ ) -> None:
2605
+ """Updates the dimensions of all rapids within a validation set.
2336
2606
 
2337
2607
 
2338
- :param validation_set_id: The ID of the validation set to add the rapid to. (required)
2608
+ :param validation_set_id: The Id of the validation set to update the dimensions for. (required)
2339
2609
  :type validation_set_id: str
2340
- :param add_validation_text_rapid_model: The model containing the information needed to add the validation rapid.
2341
- :type add_validation_text_rapid_model: AddValidationTextRapidModel
2610
+ :param update_should_alert_model: The body request for updating the shouldAlert property.
2611
+ :type update_should_alert_model: UpdateShouldAlertModel
2342
2612
  :param _request_timeout: timeout setting for this request. If one
2343
2613
  number provided, it will be total request
2344
2614
  timeout. It can also be a pair (tuple) of
@@ -2360,11 +2630,10 @@ class ValidationSetApi:
2360
2630
  :type _host_index: int, optional
2361
2631
  :return: Returns the result object.
2362
2632
  """ # noqa: E501
2363
- warnings.warn("POST /validation-set/{validationSetId}/rapid/texts is deprecated.", DeprecationWarning)
2364
2633
 
2365
- _param = self._validation_set_validation_set_id_rapid_texts_post_serialize(
2634
+ _param = self._validation_set_validation_set_id_shouldalert_patch_serialize(
2366
2635
  validation_set_id=validation_set_id,
2367
- add_validation_text_rapid_model=add_validation_text_rapid_model,
2636
+ update_should_alert_model=update_should_alert_model,
2368
2637
  _request_auth=_request_auth,
2369
2638
  _content_type=_content_type,
2370
2639
  _headers=_headers,
@@ -2372,7 +2641,7 @@ class ValidationSetApi:
2372
2641
  )
2373
2642
 
2374
2643
  _response_types_map: Dict[str, Optional[str]] = {
2375
- '200': "AddValidationRapidResult",
2644
+ '204': None,
2376
2645
  }
2377
2646
  response_data = self.api_client.call_api(
2378
2647
  *_param,
@@ -2386,10 +2655,10 @@ class ValidationSetApi:
2386
2655
 
2387
2656
 
2388
2657
  @validate_call
2389
- def validation_set_validation_set_id_rapid_texts_post_with_http_info(
2658
+ def validation_set_validation_set_id_shouldalert_patch_with_http_info(
2390
2659
  self,
2391
- validation_set_id: Annotated[StrictStr, Field(description="The ID of the validation set to add the rapid to.")],
2392
- add_validation_text_rapid_model: Annotated[Optional[AddValidationTextRapidModel], Field(description="The model containing the information needed to add the validation rapid.")] = None,
2660
+ validation_set_id: Annotated[StrictStr, Field(description="The Id of the validation set to update the dimensions for.")],
2661
+ update_should_alert_model: Annotated[Optional[UpdateShouldAlertModel], Field(description="The body request for updating the shouldAlert property.")] = None,
2393
2662
  _request_timeout: Union[
2394
2663
  None,
2395
2664
  Annotated[StrictFloat, Field(gt=0)],
@@ -2402,14 +2671,14 @@ class ValidationSetApi:
2402
2671
  _content_type: Optional[StrictStr] = None,
2403
2672
  _headers: Optional[Dict[StrictStr, Any]] = None,
2404
2673
  _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
2405
- ) -> ApiResponse[AddValidationRapidResult]:
2406
- """(Deprecated) Adds a new validation rapid to the specified validation set using text sources to create the assets.
2674
+ ) -> ApiResponse[None]:
2675
+ """Updates the dimensions of all rapids within a validation set.
2407
2676
 
2408
2677
 
2409
- :param validation_set_id: The ID of the validation set to add the rapid to. (required)
2678
+ :param validation_set_id: The Id of the validation set to update the dimensions for. (required)
2410
2679
  :type validation_set_id: str
2411
- :param add_validation_text_rapid_model: The model containing the information needed to add the validation rapid.
2412
- :type add_validation_text_rapid_model: AddValidationTextRapidModel
2680
+ :param update_should_alert_model: The body request for updating the shouldAlert property.
2681
+ :type update_should_alert_model: UpdateShouldAlertModel
2413
2682
  :param _request_timeout: timeout setting for this request. If one
2414
2683
  number provided, it will be total request
2415
2684
  timeout. It can also be a pair (tuple) of
@@ -2431,11 +2700,10 @@ class ValidationSetApi:
2431
2700
  :type _host_index: int, optional
2432
2701
  :return: Returns the result object.
2433
2702
  """ # noqa: E501
2434
- warnings.warn("POST /validation-set/{validationSetId}/rapid/texts is deprecated.", DeprecationWarning)
2435
2703
 
2436
- _param = self._validation_set_validation_set_id_rapid_texts_post_serialize(
2704
+ _param = self._validation_set_validation_set_id_shouldalert_patch_serialize(
2437
2705
  validation_set_id=validation_set_id,
2438
- add_validation_text_rapid_model=add_validation_text_rapid_model,
2706
+ update_should_alert_model=update_should_alert_model,
2439
2707
  _request_auth=_request_auth,
2440
2708
  _content_type=_content_type,
2441
2709
  _headers=_headers,
@@ -2443,7 +2711,7 @@ class ValidationSetApi:
2443
2711
  )
2444
2712
 
2445
2713
  _response_types_map: Dict[str, Optional[str]] = {
2446
- '200': "AddValidationRapidResult",
2714
+ '204': None,
2447
2715
  }
2448
2716
  response_data = self.api_client.call_api(
2449
2717
  *_param,
@@ -2457,10 +2725,10 @@ class ValidationSetApi:
2457
2725
 
2458
2726
 
2459
2727
  @validate_call
2460
- def validation_set_validation_set_id_rapid_texts_post_without_preload_content(
2728
+ def validation_set_validation_set_id_shouldalert_patch_without_preload_content(
2461
2729
  self,
2462
- validation_set_id: Annotated[StrictStr, Field(description="The ID of the validation set to add the rapid to.")],
2463
- add_validation_text_rapid_model: Annotated[Optional[AddValidationTextRapidModel], Field(description="The model containing the information needed to add the validation rapid.")] = None,
2730
+ validation_set_id: Annotated[StrictStr, Field(description="The Id of the validation set to update the dimensions for.")],
2731
+ update_should_alert_model: Annotated[Optional[UpdateShouldAlertModel], Field(description="The body request for updating the shouldAlert property.")] = None,
2464
2732
  _request_timeout: Union[
2465
2733
  None,
2466
2734
  Annotated[StrictFloat, Field(gt=0)],
@@ -2474,13 +2742,13 @@ class ValidationSetApi:
2474
2742
  _headers: Optional[Dict[StrictStr, Any]] = None,
2475
2743
  _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
2476
2744
  ) -> RESTResponseType:
2477
- """(Deprecated) Adds a new validation rapid to the specified validation set using text sources to create the assets.
2745
+ """Updates the dimensions of all rapids within a validation set.
2478
2746
 
2479
2747
 
2480
- :param validation_set_id: The ID of the validation set to add the rapid to. (required)
2748
+ :param validation_set_id: The Id of the validation set to update the dimensions for. (required)
2481
2749
  :type validation_set_id: str
2482
- :param add_validation_text_rapid_model: The model containing the information needed to add the validation rapid.
2483
- :type add_validation_text_rapid_model: AddValidationTextRapidModel
2750
+ :param update_should_alert_model: The body request for updating the shouldAlert property.
2751
+ :type update_should_alert_model: UpdateShouldAlertModel
2484
2752
  :param _request_timeout: timeout setting for this request. If one
2485
2753
  number provided, it will be total request
2486
2754
  timeout. It can also be a pair (tuple) of
@@ -2502,11 +2770,10 @@ class ValidationSetApi:
2502
2770
  :type _host_index: int, optional
2503
2771
  :return: Returns the result object.
2504
2772
  """ # noqa: E501
2505
- warnings.warn("POST /validation-set/{validationSetId}/rapid/texts is deprecated.", DeprecationWarning)
2506
2773
 
2507
- _param = self._validation_set_validation_set_id_rapid_texts_post_serialize(
2774
+ _param = self._validation_set_validation_set_id_shouldalert_patch_serialize(
2508
2775
  validation_set_id=validation_set_id,
2509
- add_validation_text_rapid_model=add_validation_text_rapid_model,
2776
+ update_should_alert_model=update_should_alert_model,
2510
2777
  _request_auth=_request_auth,
2511
2778
  _content_type=_content_type,
2512
2779
  _headers=_headers,
@@ -2514,7 +2781,7 @@ class ValidationSetApi:
2514
2781
  )
2515
2782
 
2516
2783
  _response_types_map: Dict[str, Optional[str]] = {
2517
- '200': "AddValidationRapidResult",
2784
+ '204': None,
2518
2785
  }
2519
2786
  response_data = self.api_client.call_api(
2520
2787
  *_param,
@@ -2523,10 +2790,10 @@ class ValidationSetApi:
2523
2790
  return response_data.response
2524
2791
 
2525
2792
 
2526
- def _validation_set_validation_set_id_rapid_texts_post_serialize(
2793
+ def _validation_set_validation_set_id_shouldalert_patch_serialize(
2527
2794
  self,
2528
2795
  validation_set_id,
2529
- add_validation_text_rapid_model,
2796
+ update_should_alert_model,
2530
2797
  _request_auth,
2531
2798
  _content_type,
2532
2799
  _headers,
@@ -2554,19 +2821,10 @@ class ValidationSetApi:
2554
2821
  # process the header parameters
2555
2822
  # process the form parameters
2556
2823
  # process the body parameter
2557
- if add_validation_text_rapid_model is not None:
2558
- _body_params = add_validation_text_rapid_model
2824
+ if update_should_alert_model is not None:
2825
+ _body_params = update_should_alert_model
2559
2826
 
2560
2827
 
2561
- # set the HTTP header `Accept`
2562
- if 'Accept' not in _header_params:
2563
- _header_params['Accept'] = self.api_client.select_header_accept(
2564
- [
2565
- 'text/plain',
2566
- 'application/json',
2567
- 'text/json'
2568
- ]
2569
- )
2570
2828
 
2571
2829
  # set the HTTP header `Content-Type`
2572
2830
  if _content_type:
@@ -2591,8 +2849,8 @@ class ValidationSetApi:
2591
2849
  ]
2592
2850
 
2593
2851
  return self.api_client.param_serialize(
2594
- method='POST',
2595
- resource_path='/validation-set/{validationSetId}/rapid/texts',
2852
+ method='PATCH',
2853
+ resource_path='/validation-set/{validationSetId}/shouldalert',
2596
2854
  path_params=_path_params,
2597
2855
  query_params=_query_params,
2598
2856
  header_params=_header_params,
@@ -2609,10 +2867,10 @@ class ValidationSetApi:
2609
2867
 
2610
2868
 
2611
2869
  @validate_call
2612
- def validation_set_validation_set_id_rapids_get(
2870
+ def validation_set_validation_set_id_shouldalert_put(
2613
2871
  self,
2614
- validation_set_id: Annotated[StrictStr, Field(description="The validation set to query.")],
2615
- model: Annotated[Optional[QueryModel], Field(description="The request formatted as a JSON in the query parameters.")] = None,
2872
+ validation_set_id: Annotated[StrictStr, Field(description="The Id of the validation set to update the dimensions for.")],
2873
+ update_should_alert_model: Annotated[Optional[UpdateShouldAlertModel], Field(description="The body request for updating the shouldAlert property.")] = None,
2616
2874
  _request_timeout: Union[
2617
2875
  None,
2618
2876
  Annotated[StrictFloat, Field(gt=0)],
@@ -2625,14 +2883,14 @@ class ValidationSetApi:
2625
2883
  _content_type: Optional[StrictStr] = None,
2626
2884
  _headers: Optional[Dict[StrictStr, Any]] = None,
2627
2885
  _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
2628
- ) -> GetValidationRapidsResultPagedResult:
2629
- """Queries the validation rapids for a specific validation set.
2886
+ ) -> None:
2887
+ """(Deprecated) Updates the of all rapshouldAlert property of all rapids within a validation set.
2630
2888
 
2631
2889
 
2632
- :param validation_set_id: The validation set to query. (required)
2890
+ :param validation_set_id: The Id of the validation set to update the dimensions for. (required)
2633
2891
  :type validation_set_id: str
2634
- :param model: The request formatted as a JSON in the query parameters.
2635
- :type model: QueryModel
2892
+ :param update_should_alert_model: The body request for updating the shouldAlert property.
2893
+ :type update_should_alert_model: UpdateShouldAlertModel
2636
2894
  :param _request_timeout: timeout setting for this request. If one
2637
2895
  number provided, it will be total request
2638
2896
  timeout. It can also be a pair (tuple) of
@@ -2654,10 +2912,11 @@ class ValidationSetApi:
2654
2912
  :type _host_index: int, optional
2655
2913
  :return: Returns the result object.
2656
2914
  """ # noqa: E501
2915
+ warnings.warn("PUT /validation-set/{validationSetId}/shouldalert is deprecated.", DeprecationWarning)
2657
2916
 
2658
- _param = self._validation_set_validation_set_id_rapids_get_serialize(
2917
+ _param = self._validation_set_validation_set_id_shouldalert_put_serialize(
2659
2918
  validation_set_id=validation_set_id,
2660
- model=model,
2919
+ update_should_alert_model=update_should_alert_model,
2661
2920
  _request_auth=_request_auth,
2662
2921
  _content_type=_content_type,
2663
2922
  _headers=_headers,
@@ -2665,7 +2924,7 @@ class ValidationSetApi:
2665
2924
  )
2666
2925
 
2667
2926
  _response_types_map: Dict[str, Optional[str]] = {
2668
- '200': "GetValidationRapidsResultPagedResult",
2927
+ '204': None,
2669
2928
  }
2670
2929
  response_data = self.api_client.call_api(
2671
2930
  *_param,
@@ -2679,10 +2938,10 @@ class ValidationSetApi:
2679
2938
 
2680
2939
 
2681
2940
  @validate_call
2682
- def validation_set_validation_set_id_rapids_get_with_http_info(
2941
+ def validation_set_validation_set_id_shouldalert_put_with_http_info(
2683
2942
  self,
2684
- validation_set_id: Annotated[StrictStr, Field(description="The validation set to query.")],
2685
- model: Annotated[Optional[QueryModel], Field(description="The request formatted as a JSON in the query parameters.")] = None,
2943
+ validation_set_id: Annotated[StrictStr, Field(description="The Id of the validation set to update the dimensions for.")],
2944
+ update_should_alert_model: Annotated[Optional[UpdateShouldAlertModel], Field(description="The body request for updating the shouldAlert property.")] = None,
2686
2945
  _request_timeout: Union[
2687
2946
  None,
2688
2947
  Annotated[StrictFloat, Field(gt=0)],
@@ -2695,14 +2954,14 @@ class ValidationSetApi:
2695
2954
  _content_type: Optional[StrictStr] = None,
2696
2955
  _headers: Optional[Dict[StrictStr, Any]] = None,
2697
2956
  _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
2698
- ) -> ApiResponse[GetValidationRapidsResultPagedResult]:
2699
- """Queries the validation rapids for a specific validation set.
2957
+ ) -> ApiResponse[None]:
2958
+ """(Deprecated) Updates the of all rapshouldAlert property of all rapids within a validation set.
2700
2959
 
2701
2960
 
2702
- :param validation_set_id: The validation set to query. (required)
2961
+ :param validation_set_id: The Id of the validation set to update the dimensions for. (required)
2703
2962
  :type validation_set_id: str
2704
- :param model: The request formatted as a JSON in the query parameters.
2705
- :type model: QueryModel
2963
+ :param update_should_alert_model: The body request for updating the shouldAlert property.
2964
+ :type update_should_alert_model: UpdateShouldAlertModel
2706
2965
  :param _request_timeout: timeout setting for this request. If one
2707
2966
  number provided, it will be total request
2708
2967
  timeout. It can also be a pair (tuple) of
@@ -2724,10 +2983,11 @@ class ValidationSetApi:
2724
2983
  :type _host_index: int, optional
2725
2984
  :return: Returns the result object.
2726
2985
  """ # noqa: E501
2986
+ warnings.warn("PUT /validation-set/{validationSetId}/shouldalert is deprecated.", DeprecationWarning)
2727
2987
 
2728
- _param = self._validation_set_validation_set_id_rapids_get_serialize(
2988
+ _param = self._validation_set_validation_set_id_shouldalert_put_serialize(
2729
2989
  validation_set_id=validation_set_id,
2730
- model=model,
2990
+ update_should_alert_model=update_should_alert_model,
2731
2991
  _request_auth=_request_auth,
2732
2992
  _content_type=_content_type,
2733
2993
  _headers=_headers,
@@ -2735,7 +2995,7 @@ class ValidationSetApi:
2735
2995
  )
2736
2996
 
2737
2997
  _response_types_map: Dict[str, Optional[str]] = {
2738
- '200': "GetValidationRapidsResultPagedResult",
2998
+ '204': None,
2739
2999
  }
2740
3000
  response_data = self.api_client.call_api(
2741
3001
  *_param,
@@ -2749,10 +3009,10 @@ class ValidationSetApi:
2749
3009
 
2750
3010
 
2751
3011
  @validate_call
2752
- def validation_set_validation_set_id_rapids_get_without_preload_content(
3012
+ def validation_set_validation_set_id_shouldalert_put_without_preload_content(
2753
3013
  self,
2754
- validation_set_id: Annotated[StrictStr, Field(description="The validation set to query.")],
2755
- model: Annotated[Optional[QueryModel], Field(description="The request formatted as a JSON in the query parameters.")] = None,
3014
+ validation_set_id: Annotated[StrictStr, Field(description="The Id of the validation set to update the dimensions for.")],
3015
+ update_should_alert_model: Annotated[Optional[UpdateShouldAlertModel], Field(description="The body request for updating the shouldAlert property.")] = None,
2756
3016
  _request_timeout: Union[
2757
3017
  None,
2758
3018
  Annotated[StrictFloat, Field(gt=0)],
@@ -2766,13 +3026,13 @@ class ValidationSetApi:
2766
3026
  _headers: Optional[Dict[StrictStr, Any]] = None,
2767
3027
  _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
2768
3028
  ) -> RESTResponseType:
2769
- """Queries the validation rapids for a specific validation set.
3029
+ """(Deprecated) Updates the of all rapshouldAlert property of all rapids within a validation set.
2770
3030
 
2771
3031
 
2772
- :param validation_set_id: The validation set to query. (required)
3032
+ :param validation_set_id: The Id of the validation set to update the dimensions for. (required)
2773
3033
  :type validation_set_id: str
2774
- :param model: The request formatted as a JSON in the query parameters.
2775
- :type model: QueryModel
3034
+ :param update_should_alert_model: The body request for updating the shouldAlert property.
3035
+ :type update_should_alert_model: UpdateShouldAlertModel
2776
3036
  :param _request_timeout: timeout setting for this request. If one
2777
3037
  number provided, it will be total request
2778
3038
  timeout. It can also be a pair (tuple) of
@@ -2794,10 +3054,11 @@ class ValidationSetApi:
2794
3054
  :type _host_index: int, optional
2795
3055
  :return: Returns the result object.
2796
3056
  """ # noqa: E501
3057
+ warnings.warn("PUT /validation-set/{validationSetId}/shouldalert is deprecated.", DeprecationWarning)
2797
3058
 
2798
- _param = self._validation_set_validation_set_id_rapids_get_serialize(
3059
+ _param = self._validation_set_validation_set_id_shouldalert_put_serialize(
2799
3060
  validation_set_id=validation_set_id,
2800
- model=model,
3061
+ update_should_alert_model=update_should_alert_model,
2801
3062
  _request_auth=_request_auth,
2802
3063
  _content_type=_content_type,
2803
3064
  _headers=_headers,
@@ -2805,7 +3066,7 @@ class ValidationSetApi:
2805
3066
  )
2806
3067
 
2807
3068
  _response_types_map: Dict[str, Optional[str]] = {
2808
- '200': "GetValidationRapidsResultPagedResult",
3069
+ '204': None,
2809
3070
  }
2810
3071
  response_data = self.api_client.call_api(
2811
3072
  *_param,
@@ -2814,10 +3075,10 @@ class ValidationSetApi:
2814
3075
  return response_data.response
2815
3076
 
2816
3077
 
2817
- def _validation_set_validation_set_id_rapids_get_serialize(
3078
+ def _validation_set_validation_set_id_shouldalert_put_serialize(
2818
3079
  self,
2819
3080
  validation_set_id,
2820
- model,
3081
+ update_should_alert_model,
2821
3082
  _request_auth,
2822
3083
  _content_type,
2823
3084
  _headers,
@@ -2842,25 +3103,29 @@ class ValidationSetApi:
2842
3103
  if validation_set_id is not None:
2843
3104
  _path_params['validationSetId'] = validation_set_id
2844
3105
  # process the query parameters
2845
- if model is not None:
2846
-
2847
- _query_params.append(('model', model))
2848
-
2849
3106
  # process the header parameters
2850
3107
  # process the form parameters
2851
3108
  # process the body parameter
3109
+ if update_should_alert_model is not None:
3110
+ _body_params = update_should_alert_model
2852
3111
 
2853
3112
 
2854
- # set the HTTP header `Accept`
2855
- if 'Accept' not in _header_params:
2856
- _header_params['Accept'] = self.api_client.select_header_accept(
2857
- [
2858
- 'text/plain',
2859
- 'application/json',
2860
- 'text/json'
2861
- ]
2862
- )
2863
3113
 
3114
+ # set the HTTP header `Content-Type`
3115
+ if _content_type:
3116
+ _header_params['Content-Type'] = _content_type
3117
+ else:
3118
+ _default_content_type = (
3119
+ self.api_client.select_header_content_type(
3120
+ [
3121
+ 'application/json',
3122
+ 'text/json',
3123
+ 'application/*+json'
3124
+ ]
3125
+ )
3126
+ )
3127
+ if _default_content_type is not None:
3128
+ _header_params['Content-Type'] = _default_content_type
2864
3129
 
2865
3130
  # authentication setting
2866
3131
  _auth_settings: List[str] = [
@@ -2869,8 +3134,8 @@ class ValidationSetApi:
2869
3134
  ]
2870
3135
 
2871
3136
  return self.api_client.param_serialize(
2872
- method='GET',
2873
- resource_path='/validation-set/{validationSetId}/rapids',
3137
+ method='PUT',
3138
+ resource_path='/validation-set/{validationSetId}/shouldalert',
2874
3139
  path_params=_path_params,
2875
3140
  query_params=_query_params,
2876
3141
  header_params=_header_params,
@@ -2887,10 +3152,9 @@ class ValidationSetApi:
2887
3152
 
2888
3153
 
2889
3154
  @validate_call
2890
- def validation_set_validation_set_id_shouldalert_patch(
3155
+ def validation_set_validation_set_id_update_labeling_hints_post(
2891
3156
  self,
2892
- validation_set_id: Annotated[StrictStr, Field(description="The Id of the validation set to update the dimensions for.")],
2893
- update_should_alert_model: Annotated[Optional[UpdateShouldAlertModel], Field(description="The body request for updating the shouldAlert property.")] = None,
3157
+ validation_set_id: Annotated[StrictStr, Field(description="The id of the validation set to update the labeling hints for.")],
2894
3158
  _request_timeout: Union[
2895
3159
  None,
2896
3160
  Annotated[StrictFloat, Field(gt=0)],
@@ -2904,13 +3168,12 @@ class ValidationSetApi:
2904
3168
  _headers: Optional[Dict[StrictStr, Any]] = None,
2905
3169
  _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
2906
3170
  ) -> None:
2907
- """Updates the dimensions of all rapids within a validation set.
3171
+ """Refreshes the labeling hints for a validation set.
2908
3172
 
3173
+ This will sample the rapids in the validation set and update the labeling hints based on the sampled rapids.
2909
3174
 
2910
- :param validation_set_id: The Id of the validation set to update the dimensions for. (required)
3175
+ :param validation_set_id: The id of the validation set to update the labeling hints for. (required)
2911
3176
  :type validation_set_id: str
2912
- :param update_should_alert_model: The body request for updating the shouldAlert property.
2913
- :type update_should_alert_model: UpdateShouldAlertModel
2914
3177
  :param _request_timeout: timeout setting for this request. If one
2915
3178
  number provided, it will be total request
2916
3179
  timeout. It can also be a pair (tuple) of
@@ -2933,9 +3196,8 @@ class ValidationSetApi:
2933
3196
  :return: Returns the result object.
2934
3197
  """ # noqa: E501
2935
3198
 
2936
- _param = self._validation_set_validation_set_id_shouldalert_patch_serialize(
3199
+ _param = self._validation_set_validation_set_id_update_labeling_hints_post_serialize(
2937
3200
  validation_set_id=validation_set_id,
2938
- update_should_alert_model=update_should_alert_model,
2939
3201
  _request_auth=_request_auth,
2940
3202
  _content_type=_content_type,
2941
3203
  _headers=_headers,
@@ -2957,10 +3219,9 @@ class ValidationSetApi:
2957
3219
 
2958
3220
 
2959
3221
  @validate_call
2960
- def validation_set_validation_set_id_shouldalert_patch_with_http_info(
3222
+ def validation_set_validation_set_id_update_labeling_hints_post_with_http_info(
2961
3223
  self,
2962
- validation_set_id: Annotated[StrictStr, Field(description="The Id of the validation set to update the dimensions for.")],
2963
- update_should_alert_model: Annotated[Optional[UpdateShouldAlertModel], Field(description="The body request for updating the shouldAlert property.")] = None,
3224
+ validation_set_id: Annotated[StrictStr, Field(description="The id of the validation set to update the labeling hints for.")],
2964
3225
  _request_timeout: Union[
2965
3226
  None,
2966
3227
  Annotated[StrictFloat, Field(gt=0)],
@@ -2974,13 +3235,12 @@ class ValidationSetApi:
2974
3235
  _headers: Optional[Dict[StrictStr, Any]] = None,
2975
3236
  _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
2976
3237
  ) -> ApiResponse[None]:
2977
- """Updates the dimensions of all rapids within a validation set.
3238
+ """Refreshes the labeling hints for a validation set.
2978
3239
 
3240
+ This will sample the rapids in the validation set and update the labeling hints based on the sampled rapids.
2979
3241
 
2980
- :param validation_set_id: The Id of the validation set to update the dimensions for. (required)
3242
+ :param validation_set_id: The id of the validation set to update the labeling hints for. (required)
2981
3243
  :type validation_set_id: str
2982
- :param update_should_alert_model: The body request for updating the shouldAlert property.
2983
- :type update_should_alert_model: UpdateShouldAlertModel
2984
3244
  :param _request_timeout: timeout setting for this request. If one
2985
3245
  number provided, it will be total request
2986
3246
  timeout. It can also be a pair (tuple) of
@@ -3003,9 +3263,8 @@ class ValidationSetApi:
3003
3263
  :return: Returns the result object.
3004
3264
  """ # noqa: E501
3005
3265
 
3006
- _param = self._validation_set_validation_set_id_shouldalert_patch_serialize(
3266
+ _param = self._validation_set_validation_set_id_update_labeling_hints_post_serialize(
3007
3267
  validation_set_id=validation_set_id,
3008
- update_should_alert_model=update_should_alert_model,
3009
3268
  _request_auth=_request_auth,
3010
3269
  _content_type=_content_type,
3011
3270
  _headers=_headers,
@@ -3027,10 +3286,9 @@ class ValidationSetApi:
3027
3286
 
3028
3287
 
3029
3288
  @validate_call
3030
- def validation_set_validation_set_id_shouldalert_patch_without_preload_content(
3289
+ def validation_set_validation_set_id_update_labeling_hints_post_without_preload_content(
3031
3290
  self,
3032
- validation_set_id: Annotated[StrictStr, Field(description="The Id of the validation set to update the dimensions for.")],
3033
- update_should_alert_model: Annotated[Optional[UpdateShouldAlertModel], Field(description="The body request for updating the shouldAlert property.")] = None,
3291
+ validation_set_id: Annotated[StrictStr, Field(description="The id of the validation set to update the labeling hints for.")],
3034
3292
  _request_timeout: Union[
3035
3293
  None,
3036
3294
  Annotated[StrictFloat, Field(gt=0)],
@@ -3044,13 +3302,12 @@ class ValidationSetApi:
3044
3302
  _headers: Optional[Dict[StrictStr, Any]] = None,
3045
3303
  _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
3046
3304
  ) -> RESTResponseType:
3047
- """Updates the dimensions of all rapids within a validation set.
3305
+ """Refreshes the labeling hints for a validation set.
3048
3306
 
3307
+ This will sample the rapids in the validation set and update the labeling hints based on the sampled rapids.
3049
3308
 
3050
- :param validation_set_id: The Id of the validation set to update the dimensions for. (required)
3309
+ :param validation_set_id: The id of the validation set to update the labeling hints for. (required)
3051
3310
  :type validation_set_id: str
3052
- :param update_should_alert_model: The body request for updating the shouldAlert property.
3053
- :type update_should_alert_model: UpdateShouldAlertModel
3054
3311
  :param _request_timeout: timeout setting for this request. If one
3055
3312
  number provided, it will be total request
3056
3313
  timeout. It can also be a pair (tuple) of
@@ -3073,9 +3330,8 @@ class ValidationSetApi:
3073
3330
  :return: Returns the result object.
3074
3331
  """ # noqa: E501
3075
3332
 
3076
- _param = self._validation_set_validation_set_id_shouldalert_patch_serialize(
3333
+ _param = self._validation_set_validation_set_id_update_labeling_hints_post_serialize(
3077
3334
  validation_set_id=validation_set_id,
3078
- update_should_alert_model=update_should_alert_model,
3079
3335
  _request_auth=_request_auth,
3080
3336
  _content_type=_content_type,
3081
3337
  _headers=_headers,
@@ -3092,10 +3348,9 @@ class ValidationSetApi:
3092
3348
  return response_data.response
3093
3349
 
3094
3350
 
3095
- def _validation_set_validation_set_id_shouldalert_patch_serialize(
3351
+ def _validation_set_validation_set_id_update_labeling_hints_post_serialize(
3096
3352
  self,
3097
3353
  validation_set_id,
3098
- update_should_alert_model,
3099
3354
  _request_auth,
3100
3355
  _content_type,
3101
3356
  _headers,
@@ -3123,26 +3378,9 @@ class ValidationSetApi:
3123
3378
  # process the header parameters
3124
3379
  # process the form parameters
3125
3380
  # process the body parameter
3126
- if update_should_alert_model is not None:
3127
- _body_params = update_should_alert_model
3128
3381
 
3129
3382
 
3130
3383
 
3131
- # set the HTTP header `Content-Type`
3132
- if _content_type:
3133
- _header_params['Content-Type'] = _content_type
3134
- else:
3135
- _default_content_type = (
3136
- self.api_client.select_header_content_type(
3137
- [
3138
- 'application/json',
3139
- 'text/json',
3140
- 'application/*+json'
3141
- ]
3142
- )
3143
- )
3144
- if _default_content_type is not None:
3145
- _header_params['Content-Type'] = _default_content_type
3146
3384
 
3147
3385
  # authentication setting
3148
3386
  _auth_settings: List[str] = [
@@ -3151,8 +3389,8 @@ class ValidationSetApi:
3151
3389
  ]
3152
3390
 
3153
3391
  return self.api_client.param_serialize(
3154
- method='PATCH',
3155
- resource_path='/validation-set/{validationSetId}/shouldalert',
3392
+ method='POST',
3393
+ resource_path='/validation-set/{validationSetId}/update-labeling-hints',
3156
3394
  path_params=_path_params,
3157
3395
  query_params=_query_params,
3158
3396
  header_params=_header_params,
@@ -3169,10 +3407,10 @@ class ValidationSetApi:
3169
3407
 
3170
3408
 
3171
3409
  @validate_call
3172
- def validation_set_validation_set_id_shouldalert_put(
3410
+ def validation_set_validation_set_id_visibility_patch(
3173
3411
  self,
3174
- validation_set_id: Annotated[StrictStr, Field(description="The Id of the validation set to update the dimensions for.")],
3175
- update_should_alert_model: Annotated[Optional[UpdateShouldAlertModel], Field(description="The body request for updating the shouldAlert property.")] = None,
3412
+ validation_set_id: Annotated[StrictStr, Field(description="The id of the validation set to update the visibility for.")],
3413
+ is_public: Annotated[Optional[StrictBool], Field(description="Whether the validation set should be public or private.")] = None,
3176
3414
  _request_timeout: Union[
3177
3415
  None,
3178
3416
  Annotated[StrictFloat, Field(gt=0)],
@@ -3186,13 +3424,14 @@ class ValidationSetApi:
3186
3424
  _headers: Optional[Dict[StrictStr, Any]] = None,
3187
3425
  _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
3188
3426
  ) -> None:
3189
- """(Deprecated) Updates the of all rapshouldAlert property of all rapids within a validation set.
3427
+ """Updates the visibility of a validation set.
3190
3428
 
3429
+ Public validation sets are used to automatically add a validation set to an order if no validation set is specified. If the validation set is made public, the labeling hints will be updated automatically.
3191
3430
 
3192
- :param validation_set_id: The Id of the validation set to update the dimensions for. (required)
3431
+ :param validation_set_id: The id of the validation set to update the visibility for. (required)
3193
3432
  :type validation_set_id: str
3194
- :param update_should_alert_model: The body request for updating the shouldAlert property.
3195
- :type update_should_alert_model: UpdateShouldAlertModel
3433
+ :param is_public: Whether the validation set should be public or private.
3434
+ :type is_public: bool
3196
3435
  :param _request_timeout: timeout setting for this request. If one
3197
3436
  number provided, it will be total request
3198
3437
  timeout. It can also be a pair (tuple) of
@@ -3214,11 +3453,10 @@ class ValidationSetApi:
3214
3453
  :type _host_index: int, optional
3215
3454
  :return: Returns the result object.
3216
3455
  """ # noqa: E501
3217
- warnings.warn("PUT /validation-set/{validationSetId}/shouldalert is deprecated.", DeprecationWarning)
3218
3456
 
3219
- _param = self._validation_set_validation_set_id_shouldalert_put_serialize(
3457
+ _param = self._validation_set_validation_set_id_visibility_patch_serialize(
3220
3458
  validation_set_id=validation_set_id,
3221
- update_should_alert_model=update_should_alert_model,
3459
+ is_public=is_public,
3222
3460
  _request_auth=_request_auth,
3223
3461
  _content_type=_content_type,
3224
3462
  _headers=_headers,
@@ -3240,10 +3478,10 @@ class ValidationSetApi:
3240
3478
 
3241
3479
 
3242
3480
  @validate_call
3243
- def validation_set_validation_set_id_shouldalert_put_with_http_info(
3481
+ def validation_set_validation_set_id_visibility_patch_with_http_info(
3244
3482
  self,
3245
- validation_set_id: Annotated[StrictStr, Field(description="The Id of the validation set to update the dimensions for.")],
3246
- update_should_alert_model: Annotated[Optional[UpdateShouldAlertModel], Field(description="The body request for updating the shouldAlert property.")] = None,
3483
+ validation_set_id: Annotated[StrictStr, Field(description="The id of the validation set to update the visibility for.")],
3484
+ is_public: Annotated[Optional[StrictBool], Field(description="Whether the validation set should be public or private.")] = None,
3247
3485
  _request_timeout: Union[
3248
3486
  None,
3249
3487
  Annotated[StrictFloat, Field(gt=0)],
@@ -3257,13 +3495,14 @@ class ValidationSetApi:
3257
3495
  _headers: Optional[Dict[StrictStr, Any]] = None,
3258
3496
  _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
3259
3497
  ) -> ApiResponse[None]:
3260
- """(Deprecated) Updates the of all rapshouldAlert property of all rapids within a validation set.
3498
+ """Updates the visibility of a validation set.
3261
3499
 
3500
+ Public validation sets are used to automatically add a validation set to an order if no validation set is specified. If the validation set is made public, the labeling hints will be updated automatically.
3262
3501
 
3263
- :param validation_set_id: The Id of the validation set to update the dimensions for. (required)
3502
+ :param validation_set_id: The id of the validation set to update the visibility for. (required)
3264
3503
  :type validation_set_id: str
3265
- :param update_should_alert_model: The body request for updating the shouldAlert property.
3266
- :type update_should_alert_model: UpdateShouldAlertModel
3504
+ :param is_public: Whether the validation set should be public or private.
3505
+ :type is_public: bool
3267
3506
  :param _request_timeout: timeout setting for this request. If one
3268
3507
  number provided, it will be total request
3269
3508
  timeout. It can also be a pair (tuple) of
@@ -3285,11 +3524,10 @@ class ValidationSetApi:
3285
3524
  :type _host_index: int, optional
3286
3525
  :return: Returns the result object.
3287
3526
  """ # noqa: E501
3288
- warnings.warn("PUT /validation-set/{validationSetId}/shouldalert is deprecated.", DeprecationWarning)
3289
3527
 
3290
- _param = self._validation_set_validation_set_id_shouldalert_put_serialize(
3528
+ _param = self._validation_set_validation_set_id_visibility_patch_serialize(
3291
3529
  validation_set_id=validation_set_id,
3292
- update_should_alert_model=update_should_alert_model,
3530
+ is_public=is_public,
3293
3531
  _request_auth=_request_auth,
3294
3532
  _content_type=_content_type,
3295
3533
  _headers=_headers,
@@ -3311,10 +3549,10 @@ class ValidationSetApi:
3311
3549
 
3312
3550
 
3313
3551
  @validate_call
3314
- def validation_set_validation_set_id_shouldalert_put_without_preload_content(
3552
+ def validation_set_validation_set_id_visibility_patch_without_preload_content(
3315
3553
  self,
3316
- validation_set_id: Annotated[StrictStr, Field(description="The Id of the validation set to update the dimensions for.")],
3317
- update_should_alert_model: Annotated[Optional[UpdateShouldAlertModel], Field(description="The body request for updating the shouldAlert property.")] = None,
3554
+ validation_set_id: Annotated[StrictStr, Field(description="The id of the validation set to update the visibility for.")],
3555
+ is_public: Annotated[Optional[StrictBool], Field(description="Whether the validation set should be public or private.")] = None,
3318
3556
  _request_timeout: Union[
3319
3557
  None,
3320
3558
  Annotated[StrictFloat, Field(gt=0)],
@@ -3328,13 +3566,14 @@ class ValidationSetApi:
3328
3566
  _headers: Optional[Dict[StrictStr, Any]] = None,
3329
3567
  _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
3330
3568
  ) -> RESTResponseType:
3331
- """(Deprecated) Updates the of all rapshouldAlert property of all rapids within a validation set.
3569
+ """Updates the visibility of a validation set.
3332
3570
 
3571
+ Public validation sets are used to automatically add a validation set to an order if no validation set is specified. If the validation set is made public, the labeling hints will be updated automatically.
3333
3572
 
3334
- :param validation_set_id: The Id of the validation set to update the dimensions for. (required)
3573
+ :param validation_set_id: The id of the validation set to update the visibility for. (required)
3335
3574
  :type validation_set_id: str
3336
- :param update_should_alert_model: The body request for updating the shouldAlert property.
3337
- :type update_should_alert_model: UpdateShouldAlertModel
3575
+ :param is_public: Whether the validation set should be public or private.
3576
+ :type is_public: bool
3338
3577
  :param _request_timeout: timeout setting for this request. If one
3339
3578
  number provided, it will be total request
3340
3579
  timeout. It can also be a pair (tuple) of
@@ -3356,11 +3595,10 @@ class ValidationSetApi:
3356
3595
  :type _host_index: int, optional
3357
3596
  :return: Returns the result object.
3358
3597
  """ # noqa: E501
3359
- warnings.warn("PUT /validation-set/{validationSetId}/shouldalert is deprecated.", DeprecationWarning)
3360
3598
 
3361
- _param = self._validation_set_validation_set_id_shouldalert_put_serialize(
3599
+ _param = self._validation_set_validation_set_id_visibility_patch_serialize(
3362
3600
  validation_set_id=validation_set_id,
3363
- update_should_alert_model=update_should_alert_model,
3601
+ is_public=is_public,
3364
3602
  _request_auth=_request_auth,
3365
3603
  _content_type=_content_type,
3366
3604
  _headers=_headers,
@@ -3377,10 +3615,10 @@ class ValidationSetApi:
3377
3615
  return response_data.response
3378
3616
 
3379
3617
 
3380
- def _validation_set_validation_set_id_shouldalert_put_serialize(
3618
+ def _validation_set_validation_set_id_visibility_patch_serialize(
3381
3619
  self,
3382
3620
  validation_set_id,
3383
- update_should_alert_model,
3621
+ is_public,
3384
3622
  _request_auth,
3385
3623
  _content_type,
3386
3624
  _headers,
@@ -3405,29 +3643,16 @@ class ValidationSetApi:
3405
3643
  if validation_set_id is not None:
3406
3644
  _path_params['validationSetId'] = validation_set_id
3407
3645
  # process the query parameters
3646
+ if is_public is not None:
3647
+
3648
+ _query_params.append(('isPublic', is_public))
3649
+
3408
3650
  # process the header parameters
3409
3651
  # process the form parameters
3410
3652
  # process the body parameter
3411
- if update_should_alert_model is not None:
3412
- _body_params = update_should_alert_model
3413
3653
 
3414
3654
 
3415
3655
 
3416
- # set the HTTP header `Content-Type`
3417
- if _content_type:
3418
- _header_params['Content-Type'] = _content_type
3419
- else:
3420
- _default_content_type = (
3421
- self.api_client.select_header_content_type(
3422
- [
3423
- 'application/json',
3424
- 'text/json',
3425
- 'application/*+json'
3426
- ]
3427
- )
3428
- )
3429
- if _default_content_type is not None:
3430
- _header_params['Content-Type'] = _default_content_type
3431
3656
 
3432
3657
  # authentication setting
3433
3658
  _auth_settings: List[str] = [
@@ -3436,8 +3661,8 @@ class ValidationSetApi:
3436
3661
  ]
3437
3662
 
3438
3663
  return self.api_client.param_serialize(
3439
- method='PUT',
3440
- resource_path='/validation-set/{validationSetId}/shouldalert',
3664
+ method='PATCH',
3665
+ resource_path='/validation-set/{validationSetId}/visibility',
3441
3666
  path_params=_path_params,
3442
3667
  query_params=_query_params,
3443
3668
  header_params=_header_params,
@@ -4264,7 +4489,7 @@ class ValidationSetApi:
4264
4489
  _headers: Optional[Dict[StrictStr, Any]] = None,
4265
4490
  _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
4266
4491
  ) -> ValidationSetModelPagedResult:
4267
- """Queries validation sets based on the provided filter, paging and sorting criteria.
4492
+ """Queries available validation sets based on the provided filter, paging and sorting criteria.
4268
4493
 
4269
4494
 
4270
4495
  :param model: The model containing the query parameters.
@@ -4330,7 +4555,7 @@ class ValidationSetApi:
4330
4555
  _headers: Optional[Dict[StrictStr, Any]] = None,
4331
4556
  _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
4332
4557
  ) -> ApiResponse[ValidationSetModelPagedResult]:
4333
- """Queries validation sets based on the provided filter, paging and sorting criteria.
4558
+ """Queries available validation sets based on the provided filter, paging and sorting criteria.
4334
4559
 
4335
4560
 
4336
4561
  :param model: The model containing the query parameters.
@@ -4396,7 +4621,7 @@ class ValidationSetApi:
4396
4621
  _headers: Optional[Dict[StrictStr, Any]] = None,
4397
4622
  _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
4398
4623
  ) -> RESTResponseType:
4399
- """Queries validation sets based on the provided filter, paging and sorting criteria.
4624
+ """Queries available validation sets based on the provided filter, paging and sorting criteria.
4400
4625
 
4401
4626
 
4402
4627
  :param model: The model containing the query parameters.