rapidata 2.32.0__py3-none-any.whl → 2.33.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.
- rapidata/__init__.py +1 -1
- rapidata/api_client/__init__.py +6 -0
- rapidata/api_client/api/benchmark_api.py +194 -200
- rapidata/api_client/api/order_api.py +68 -6
- rapidata/api_client/api/participant_api.py +945 -130
- rapidata/api_client/api/validation_set_api.py +1106 -253
- rapidata/api_client/models/__init__.py +6 -0
- rapidata/api_client/models/benchmark_query_result.py +4 -2
- rapidata/api_client/models/preview_order_model.py +87 -0
- rapidata/api_client/models/prompt_by_benchmark_result.py +4 -2
- rapidata/api_client/models/sample_by_participant.py +120 -0
- rapidata/api_client/models/sample_by_participant_paged_result.py +105 -0
- rapidata/api_client/models/submit_order_model.py +87 -0
- rapidata/api_client/models/submit_prompt_model.py +9 -2
- rapidata/api_client/models/update_participant_name_model.py +87 -0
- rapidata/api_client/models/update_should_alert_model.py +87 -0
- rapidata/api_client_README.md +13 -1
- rapidata/rapidata_client/exceptions/failed_upload_exception.py +35 -1
- rapidata/rapidata_client/order/_rapidata_order_builder.py +20 -7
- rapidata/rapidata_client/order/rapidata_order.py +4 -2
- rapidata/rapidata_client/order/rapidata_order_manager.py +14 -0
- rapidata/rapidata_client/validation/rapidata_validation_set.py +17 -1
- {rapidata-2.32.0.dist-info → rapidata-2.33.1.dist-info}/METADATA +1 -1
- {rapidata-2.32.0.dist-info → rapidata-2.33.1.dist-info}/RECORD +26 -20
- {rapidata-2.32.0.dist-info → rapidata-2.33.1.dist-info}/LICENSE +0 -0
- {rapidata-2.32.0.dist-info → rapidata-2.33.1.dist-info}/WHEEL +0 -0
|
@@ -30,6 +30,7 @@ from rapidata.api_client.models.get_validation_set_by_id_result import GetValida
|
|
|
30
30
|
from rapidata.api_client.models.import_validation_set_from_file_result import ImportValidationSetFromFileResult
|
|
31
31
|
from rapidata.api_client.models.query_model import QueryModel
|
|
32
32
|
from rapidata.api_client.models.update_dimensions_model import UpdateDimensionsModel
|
|
33
|
+
from rapidata.api_client.models.update_should_alert_model import UpdateShouldAlertModel
|
|
33
34
|
from rapidata.api_client.models.validation_set_model_paged_result import ValidationSetModelPagedResult
|
|
34
35
|
from rapidata.api_client.models.validation_set_zip_post_request_blueprint import ValidationSetZipPostRequestBlueprint
|
|
35
36
|
|
|
@@ -580,9 +581,9 @@ class ValidationSetApi:
|
|
|
580
581
|
|
|
581
582
|
|
|
582
583
|
@validate_call
|
|
583
|
-
def
|
|
584
|
+
def validation_set_validation_set_id_dimensions_patch(
|
|
584
585
|
self,
|
|
585
|
-
validation_set_id: Annotated[StrictStr, Field(description="The
|
|
586
|
+
validation_set_id: Annotated[StrictStr, Field(description="The Id of the validation set to update the dimensions for.")],
|
|
586
587
|
update_dimensions_model: Annotated[Optional[UpdateDimensionsModel], Field(description="The body request for updating the dimensions.")] = None,
|
|
587
588
|
_request_timeout: Union[
|
|
588
589
|
None,
|
|
@@ -600,7 +601,7 @@ class ValidationSetApi:
|
|
|
600
601
|
"""Updates the dimensions of all rapids within a validation set.
|
|
601
602
|
|
|
602
603
|
|
|
603
|
-
:param validation_set_id: The
|
|
604
|
+
:param validation_set_id: The Id of the validation set to update the dimensions for. (required)
|
|
604
605
|
:type validation_set_id: str
|
|
605
606
|
:param update_dimensions_model: The body request for updating the dimensions.
|
|
606
607
|
:type update_dimensions_model: UpdateDimensionsModel
|
|
@@ -626,7 +627,7 @@ class ValidationSetApi:
|
|
|
626
627
|
:return: Returns the result object.
|
|
627
628
|
""" # noqa: E501
|
|
628
629
|
|
|
629
|
-
_param = self.
|
|
630
|
+
_param = self._validation_set_validation_set_id_dimensions_patch_serialize(
|
|
630
631
|
validation_set_id=validation_set_id,
|
|
631
632
|
update_dimensions_model=update_dimensions_model,
|
|
632
633
|
_request_auth=_request_auth,
|
|
@@ -650,9 +651,9 @@ class ValidationSetApi:
|
|
|
650
651
|
|
|
651
652
|
|
|
652
653
|
@validate_call
|
|
653
|
-
def
|
|
654
|
+
def validation_set_validation_set_id_dimensions_patch_with_http_info(
|
|
654
655
|
self,
|
|
655
|
-
validation_set_id: Annotated[StrictStr, Field(description="The
|
|
656
|
+
validation_set_id: Annotated[StrictStr, Field(description="The Id of the validation set to update the dimensions for.")],
|
|
656
657
|
update_dimensions_model: Annotated[Optional[UpdateDimensionsModel], Field(description="The body request for updating the dimensions.")] = None,
|
|
657
658
|
_request_timeout: Union[
|
|
658
659
|
None,
|
|
@@ -670,7 +671,7 @@ class ValidationSetApi:
|
|
|
670
671
|
"""Updates the dimensions of all rapids within a validation set.
|
|
671
672
|
|
|
672
673
|
|
|
673
|
-
:param validation_set_id: The
|
|
674
|
+
:param validation_set_id: The Id of the validation set to update the dimensions for. (required)
|
|
674
675
|
:type validation_set_id: str
|
|
675
676
|
:param update_dimensions_model: The body request for updating the dimensions.
|
|
676
677
|
:type update_dimensions_model: UpdateDimensionsModel
|
|
@@ -696,7 +697,7 @@ class ValidationSetApi:
|
|
|
696
697
|
:return: Returns the result object.
|
|
697
698
|
""" # noqa: E501
|
|
698
699
|
|
|
699
|
-
_param = self.
|
|
700
|
+
_param = self._validation_set_validation_set_id_dimensions_patch_serialize(
|
|
700
701
|
validation_set_id=validation_set_id,
|
|
701
702
|
update_dimensions_model=update_dimensions_model,
|
|
702
703
|
_request_auth=_request_auth,
|
|
@@ -720,9 +721,9 @@ class ValidationSetApi:
|
|
|
720
721
|
|
|
721
722
|
|
|
722
723
|
@validate_call
|
|
723
|
-
def
|
|
724
|
+
def validation_set_validation_set_id_dimensions_patch_without_preload_content(
|
|
724
725
|
self,
|
|
725
|
-
validation_set_id: Annotated[StrictStr, Field(description="The
|
|
726
|
+
validation_set_id: Annotated[StrictStr, Field(description="The Id of the validation set to update the dimensions for.")],
|
|
726
727
|
update_dimensions_model: Annotated[Optional[UpdateDimensionsModel], Field(description="The body request for updating the dimensions.")] = None,
|
|
727
728
|
_request_timeout: Union[
|
|
728
729
|
None,
|
|
@@ -740,7 +741,7 @@ class ValidationSetApi:
|
|
|
740
741
|
"""Updates the dimensions of all rapids within a validation set.
|
|
741
742
|
|
|
742
743
|
|
|
743
|
-
:param validation_set_id: The
|
|
744
|
+
:param validation_set_id: The Id of the validation set to update the dimensions for. (required)
|
|
744
745
|
:type validation_set_id: str
|
|
745
746
|
:param update_dimensions_model: The body request for updating the dimensions.
|
|
746
747
|
:type update_dimensions_model: UpdateDimensionsModel
|
|
@@ -766,7 +767,7 @@ class ValidationSetApi:
|
|
|
766
767
|
:return: Returns the result object.
|
|
767
768
|
""" # noqa: E501
|
|
768
769
|
|
|
769
|
-
_param = self.
|
|
770
|
+
_param = self._validation_set_validation_set_id_dimensions_patch_serialize(
|
|
770
771
|
validation_set_id=validation_set_id,
|
|
771
772
|
update_dimensions_model=update_dimensions_model,
|
|
772
773
|
_request_auth=_request_auth,
|
|
@@ -785,7 +786,7 @@ class ValidationSetApi:
|
|
|
785
786
|
return response_data.response
|
|
786
787
|
|
|
787
788
|
|
|
788
|
-
def
|
|
789
|
+
def _validation_set_validation_set_id_dimensions_patch_serialize(
|
|
789
790
|
self,
|
|
790
791
|
validation_set_id,
|
|
791
792
|
update_dimensions_model,
|
|
@@ -844,7 +845,7 @@ class ValidationSetApi:
|
|
|
844
845
|
]
|
|
845
846
|
|
|
846
847
|
return self.api_client.param_serialize(
|
|
847
|
-
method='
|
|
848
|
+
method='PATCH',
|
|
848
849
|
resource_path='/validation-set/{validationSetId}/dimensions',
|
|
849
850
|
path_params=_path_params,
|
|
850
851
|
query_params=_query_params,
|
|
@@ -862,9 +863,10 @@ class ValidationSetApi:
|
|
|
862
863
|
|
|
863
864
|
|
|
864
865
|
@validate_call
|
|
865
|
-
def
|
|
866
|
+
def validation_set_validation_set_id_dimensions_put(
|
|
866
867
|
self,
|
|
867
|
-
validation_set_id: StrictStr,
|
|
868
|
+
validation_set_id: Annotated[StrictStr, Field(description="The Id of the validation set to update the dimensions for.")],
|
|
869
|
+
update_dimensions_model: Annotated[Optional[UpdateDimensionsModel], Field(description="The body request for updating the dimensions.")] = None,
|
|
868
870
|
_request_timeout: Union[
|
|
869
871
|
None,
|
|
870
872
|
Annotated[StrictFloat, Field(gt=0)],
|
|
@@ -877,12 +879,14 @@ class ValidationSetApi:
|
|
|
877
879
|
_content_type: Optional[StrictStr] = None,
|
|
878
880
|
_headers: Optional[Dict[StrictStr, Any]] = None,
|
|
879
881
|
_host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
|
|
880
|
-
) ->
|
|
881
|
-
"""
|
|
882
|
+
) -> None:
|
|
883
|
+
"""(Deprecated) Updates the dimensions of all rapids within a validation set.
|
|
882
884
|
|
|
883
885
|
|
|
884
|
-
:param validation_set_id:
|
|
886
|
+
:param validation_set_id: The Id of the validation set to update the dimensions for. (required)
|
|
885
887
|
:type validation_set_id: str
|
|
888
|
+
:param update_dimensions_model: The body request for updating the dimensions.
|
|
889
|
+
:type update_dimensions_model: UpdateDimensionsModel
|
|
886
890
|
:param _request_timeout: timeout setting for this request. If one
|
|
887
891
|
number provided, it will be total request
|
|
888
892
|
timeout. It can also be a pair (tuple) of
|
|
@@ -904,9 +908,11 @@ class ValidationSetApi:
|
|
|
904
908
|
:type _host_index: int, optional
|
|
905
909
|
:return: Returns the result object.
|
|
906
910
|
""" # noqa: E501
|
|
911
|
+
warnings.warn("PUT /validation-set/{validationSetId}/dimensions is deprecated.", DeprecationWarning)
|
|
907
912
|
|
|
908
|
-
_param = self.
|
|
913
|
+
_param = self._validation_set_validation_set_id_dimensions_put_serialize(
|
|
909
914
|
validation_set_id=validation_set_id,
|
|
915
|
+
update_dimensions_model=update_dimensions_model,
|
|
910
916
|
_request_auth=_request_auth,
|
|
911
917
|
_content_type=_content_type,
|
|
912
918
|
_headers=_headers,
|
|
@@ -914,7 +920,7 @@ class ValidationSetApi:
|
|
|
914
920
|
)
|
|
915
921
|
|
|
916
922
|
_response_types_map: Dict[str, Optional[str]] = {
|
|
917
|
-
'
|
|
923
|
+
'204': None,
|
|
918
924
|
}
|
|
919
925
|
response_data = self.api_client.call_api(
|
|
920
926
|
*_param,
|
|
@@ -928,9 +934,10 @@ class ValidationSetApi:
|
|
|
928
934
|
|
|
929
935
|
|
|
930
936
|
@validate_call
|
|
931
|
-
def
|
|
937
|
+
def validation_set_validation_set_id_dimensions_put_with_http_info(
|
|
932
938
|
self,
|
|
933
|
-
validation_set_id: StrictStr,
|
|
939
|
+
validation_set_id: Annotated[StrictStr, Field(description="The Id of the validation set to update the dimensions for.")],
|
|
940
|
+
update_dimensions_model: Annotated[Optional[UpdateDimensionsModel], Field(description="The body request for updating the dimensions.")] = None,
|
|
934
941
|
_request_timeout: Union[
|
|
935
942
|
None,
|
|
936
943
|
Annotated[StrictFloat, Field(gt=0)],
|
|
@@ -943,12 +950,14 @@ class ValidationSetApi:
|
|
|
943
950
|
_content_type: Optional[StrictStr] = None,
|
|
944
951
|
_headers: Optional[Dict[StrictStr, Any]] = None,
|
|
945
952
|
_host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
|
|
946
|
-
) -> ApiResponse[
|
|
947
|
-
"""
|
|
953
|
+
) -> ApiResponse[None]:
|
|
954
|
+
"""(Deprecated) Updates the dimensions of all rapids within a validation set.
|
|
948
955
|
|
|
949
956
|
|
|
950
|
-
:param validation_set_id:
|
|
957
|
+
:param validation_set_id: The Id of the validation set to update the dimensions for. (required)
|
|
951
958
|
:type validation_set_id: str
|
|
959
|
+
:param update_dimensions_model: The body request for updating the dimensions.
|
|
960
|
+
:type update_dimensions_model: UpdateDimensionsModel
|
|
952
961
|
:param _request_timeout: timeout setting for this request. If one
|
|
953
962
|
number provided, it will be total request
|
|
954
963
|
timeout. It can also be a pair (tuple) of
|
|
@@ -970,9 +979,11 @@ class ValidationSetApi:
|
|
|
970
979
|
:type _host_index: int, optional
|
|
971
980
|
:return: Returns the result object.
|
|
972
981
|
""" # noqa: E501
|
|
982
|
+
warnings.warn("PUT /validation-set/{validationSetId}/dimensions is deprecated.", DeprecationWarning)
|
|
973
983
|
|
|
974
|
-
_param = self.
|
|
984
|
+
_param = self._validation_set_validation_set_id_dimensions_put_serialize(
|
|
975
985
|
validation_set_id=validation_set_id,
|
|
986
|
+
update_dimensions_model=update_dimensions_model,
|
|
976
987
|
_request_auth=_request_auth,
|
|
977
988
|
_content_type=_content_type,
|
|
978
989
|
_headers=_headers,
|
|
@@ -980,7 +991,7 @@ class ValidationSetApi:
|
|
|
980
991
|
)
|
|
981
992
|
|
|
982
993
|
_response_types_map: Dict[str, Optional[str]] = {
|
|
983
|
-
'
|
|
994
|
+
'204': None,
|
|
984
995
|
}
|
|
985
996
|
response_data = self.api_client.call_api(
|
|
986
997
|
*_param,
|
|
@@ -994,9 +1005,10 @@ class ValidationSetApi:
|
|
|
994
1005
|
|
|
995
1006
|
|
|
996
1007
|
@validate_call
|
|
997
|
-
def
|
|
1008
|
+
def validation_set_validation_set_id_dimensions_put_without_preload_content(
|
|
998
1009
|
self,
|
|
999
|
-
validation_set_id: StrictStr,
|
|
1010
|
+
validation_set_id: Annotated[StrictStr, Field(description="The Id of the validation set to update the dimensions for.")],
|
|
1011
|
+
update_dimensions_model: Annotated[Optional[UpdateDimensionsModel], Field(description="The body request for updating the dimensions.")] = None,
|
|
1000
1012
|
_request_timeout: Union[
|
|
1001
1013
|
None,
|
|
1002
1014
|
Annotated[StrictFloat, Field(gt=0)],
|
|
@@ -1010,11 +1022,13 @@ class ValidationSetApi:
|
|
|
1010
1022
|
_headers: Optional[Dict[StrictStr, Any]] = None,
|
|
1011
1023
|
_host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
|
|
1012
1024
|
) -> RESTResponseType:
|
|
1013
|
-
"""
|
|
1025
|
+
"""(Deprecated) Updates the dimensions of all rapids within a validation set.
|
|
1014
1026
|
|
|
1015
1027
|
|
|
1016
|
-
:param validation_set_id:
|
|
1028
|
+
:param validation_set_id: The Id of the validation set to update the dimensions for. (required)
|
|
1017
1029
|
:type validation_set_id: str
|
|
1030
|
+
:param update_dimensions_model: The body request for updating the dimensions.
|
|
1031
|
+
:type update_dimensions_model: UpdateDimensionsModel
|
|
1018
1032
|
:param _request_timeout: timeout setting for this request. If one
|
|
1019
1033
|
number provided, it will be total request
|
|
1020
1034
|
timeout. It can also be a pair (tuple) of
|
|
@@ -1036,9 +1050,11 @@ class ValidationSetApi:
|
|
|
1036
1050
|
:type _host_index: int, optional
|
|
1037
1051
|
:return: Returns the result object.
|
|
1038
1052
|
""" # noqa: E501
|
|
1053
|
+
warnings.warn("PUT /validation-set/{validationSetId}/dimensions is deprecated.", DeprecationWarning)
|
|
1039
1054
|
|
|
1040
|
-
_param = self.
|
|
1055
|
+
_param = self._validation_set_validation_set_id_dimensions_put_serialize(
|
|
1041
1056
|
validation_set_id=validation_set_id,
|
|
1057
|
+
update_dimensions_model=update_dimensions_model,
|
|
1042
1058
|
_request_auth=_request_auth,
|
|
1043
1059
|
_content_type=_content_type,
|
|
1044
1060
|
_headers=_headers,
|
|
@@ -1046,7 +1062,7 @@ class ValidationSetApi:
|
|
|
1046
1062
|
)
|
|
1047
1063
|
|
|
1048
1064
|
_response_types_map: Dict[str, Optional[str]] = {
|
|
1049
|
-
'
|
|
1065
|
+
'204': None,
|
|
1050
1066
|
}
|
|
1051
1067
|
response_data = self.api_client.call_api(
|
|
1052
1068
|
*_param,
|
|
@@ -1055,9 +1071,10 @@ class ValidationSetApi:
|
|
|
1055
1071
|
return response_data.response
|
|
1056
1072
|
|
|
1057
1073
|
|
|
1058
|
-
def
|
|
1074
|
+
def _validation_set_validation_set_id_dimensions_put_serialize(
|
|
1059
1075
|
self,
|
|
1060
1076
|
validation_set_id,
|
|
1077
|
+
update_dimensions_model,
|
|
1061
1078
|
_request_auth,
|
|
1062
1079
|
_content_type,
|
|
1063
1080
|
_headers,
|
|
@@ -1085,18 +1102,26 @@ class ValidationSetApi:
|
|
|
1085
1102
|
# process the header parameters
|
|
1086
1103
|
# process the form parameters
|
|
1087
1104
|
# process the body parameter
|
|
1105
|
+
if update_dimensions_model is not None:
|
|
1106
|
+
_body_params = update_dimensions_model
|
|
1088
1107
|
|
|
1089
1108
|
|
|
1090
|
-
# set the HTTP header `Accept`
|
|
1091
|
-
if 'Accept' not in _header_params:
|
|
1092
|
-
_header_params['Accept'] = self.api_client.select_header_accept(
|
|
1093
|
-
[
|
|
1094
|
-
'text/plain',
|
|
1095
|
-
'application/json',
|
|
1096
|
-
'text/json'
|
|
1097
|
-
]
|
|
1098
|
-
)
|
|
1099
1109
|
|
|
1110
|
+
# set the HTTP header `Content-Type`
|
|
1111
|
+
if _content_type:
|
|
1112
|
+
_header_params['Content-Type'] = _content_type
|
|
1113
|
+
else:
|
|
1114
|
+
_default_content_type = (
|
|
1115
|
+
self.api_client.select_header_content_type(
|
|
1116
|
+
[
|
|
1117
|
+
'application/json',
|
|
1118
|
+
'text/json',
|
|
1119
|
+
'application/*+json'
|
|
1120
|
+
]
|
|
1121
|
+
)
|
|
1122
|
+
)
|
|
1123
|
+
if _default_content_type is not None:
|
|
1124
|
+
_header_params['Content-Type'] = _default_content_type
|
|
1100
1125
|
|
|
1101
1126
|
# authentication setting
|
|
1102
1127
|
_auth_settings: List[str] = [
|
|
@@ -1105,8 +1130,8 @@ class ValidationSetApi:
|
|
|
1105
1130
|
]
|
|
1106
1131
|
|
|
1107
1132
|
return self.api_client.param_serialize(
|
|
1108
|
-
method='
|
|
1109
|
-
resource_path='/validation-set/{validationSetId}/
|
|
1133
|
+
method='PUT',
|
|
1134
|
+
resource_path='/validation-set/{validationSetId}/dimensions',
|
|
1110
1135
|
path_params=_path_params,
|
|
1111
1136
|
query_params=_query_params,
|
|
1112
1137
|
header_params=_header_params,
|
|
@@ -1123,9 +1148,9 @@ class ValidationSetApi:
|
|
|
1123
1148
|
|
|
1124
1149
|
|
|
1125
1150
|
@validate_call
|
|
1126
|
-
def
|
|
1151
|
+
def validation_set_validation_set_id_export_get(
|
|
1127
1152
|
self,
|
|
1128
|
-
validation_set_id:
|
|
1153
|
+
validation_set_id: StrictStr,
|
|
1129
1154
|
_request_timeout: Union[
|
|
1130
1155
|
None,
|
|
1131
1156
|
Annotated[StrictFloat, Field(gt=0)],
|
|
@@ -1138,11 +1163,11 @@ class ValidationSetApi:
|
|
|
1138
1163
|
_content_type: Optional[StrictStr] = None,
|
|
1139
1164
|
_headers: Optional[Dict[StrictStr, Any]] = None,
|
|
1140
1165
|
_host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
|
|
1141
|
-
) ->
|
|
1142
|
-
"""
|
|
1166
|
+
) -> bytearray:
|
|
1167
|
+
"""Exports all rapids of a validation-set to a file.
|
|
1143
1168
|
|
|
1144
1169
|
|
|
1145
|
-
:param validation_set_id:
|
|
1170
|
+
:param validation_set_id: (required)
|
|
1146
1171
|
:type validation_set_id: str
|
|
1147
1172
|
:param _request_timeout: timeout setting for this request. If one
|
|
1148
1173
|
number provided, it will be total request
|
|
@@ -1166,7 +1191,7 @@ class ValidationSetApi:
|
|
|
1166
1191
|
:return: Returns the result object.
|
|
1167
1192
|
""" # noqa: E501
|
|
1168
1193
|
|
|
1169
|
-
_param = self.
|
|
1194
|
+
_param = self._validation_set_validation_set_id_export_get_serialize(
|
|
1170
1195
|
validation_set_id=validation_set_id,
|
|
1171
1196
|
_request_auth=_request_auth,
|
|
1172
1197
|
_content_type=_content_type,
|
|
@@ -1175,7 +1200,7 @@ class ValidationSetApi:
|
|
|
1175
1200
|
)
|
|
1176
1201
|
|
|
1177
1202
|
_response_types_map: Dict[str, Optional[str]] = {
|
|
1178
|
-
'200': "
|
|
1203
|
+
'200': "bytearray",
|
|
1179
1204
|
}
|
|
1180
1205
|
response_data = self.api_client.call_api(
|
|
1181
1206
|
*_param,
|
|
@@ -1189,9 +1214,9 @@ class ValidationSetApi:
|
|
|
1189
1214
|
|
|
1190
1215
|
|
|
1191
1216
|
@validate_call
|
|
1192
|
-
def
|
|
1217
|
+
def validation_set_validation_set_id_export_get_with_http_info(
|
|
1193
1218
|
self,
|
|
1194
|
-
validation_set_id:
|
|
1219
|
+
validation_set_id: StrictStr,
|
|
1195
1220
|
_request_timeout: Union[
|
|
1196
1221
|
None,
|
|
1197
1222
|
Annotated[StrictFloat, Field(gt=0)],
|
|
@@ -1204,11 +1229,11 @@ class ValidationSetApi:
|
|
|
1204
1229
|
_content_type: Optional[StrictStr] = None,
|
|
1205
1230
|
_headers: Optional[Dict[StrictStr, Any]] = None,
|
|
1206
1231
|
_host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
|
|
1207
|
-
) -> ApiResponse[
|
|
1208
|
-
"""
|
|
1232
|
+
) -> ApiResponse[bytearray]:
|
|
1233
|
+
"""Exports all rapids of a validation-set to a file.
|
|
1209
1234
|
|
|
1210
1235
|
|
|
1211
|
-
:param validation_set_id:
|
|
1236
|
+
:param validation_set_id: (required)
|
|
1212
1237
|
:type validation_set_id: str
|
|
1213
1238
|
:param _request_timeout: timeout setting for this request. If one
|
|
1214
1239
|
number provided, it will be total request
|
|
@@ -1232,7 +1257,7 @@ class ValidationSetApi:
|
|
|
1232
1257
|
:return: Returns the result object.
|
|
1233
1258
|
""" # noqa: E501
|
|
1234
1259
|
|
|
1235
|
-
_param = self.
|
|
1260
|
+
_param = self._validation_set_validation_set_id_export_get_serialize(
|
|
1236
1261
|
validation_set_id=validation_set_id,
|
|
1237
1262
|
_request_auth=_request_auth,
|
|
1238
1263
|
_content_type=_content_type,
|
|
@@ -1241,7 +1266,7 @@ class ValidationSetApi:
|
|
|
1241
1266
|
)
|
|
1242
1267
|
|
|
1243
1268
|
_response_types_map: Dict[str, Optional[str]] = {
|
|
1244
|
-
'200': "
|
|
1269
|
+
'200': "bytearray",
|
|
1245
1270
|
}
|
|
1246
1271
|
response_data = self.api_client.call_api(
|
|
1247
1272
|
*_param,
|
|
@@ -1255,9 +1280,9 @@ class ValidationSetApi:
|
|
|
1255
1280
|
|
|
1256
1281
|
|
|
1257
1282
|
@validate_call
|
|
1258
|
-
def
|
|
1283
|
+
def validation_set_validation_set_id_export_get_without_preload_content(
|
|
1259
1284
|
self,
|
|
1260
|
-
validation_set_id:
|
|
1285
|
+
validation_set_id: StrictStr,
|
|
1261
1286
|
_request_timeout: Union[
|
|
1262
1287
|
None,
|
|
1263
1288
|
Annotated[StrictFloat, Field(gt=0)],
|
|
@@ -1271,10 +1296,10 @@ class ValidationSetApi:
|
|
|
1271
1296
|
_headers: Optional[Dict[StrictStr, Any]] = None,
|
|
1272
1297
|
_host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
|
|
1273
1298
|
) -> RESTResponseType:
|
|
1274
|
-
"""
|
|
1299
|
+
"""Exports all rapids of a validation-set to a file.
|
|
1275
1300
|
|
|
1276
1301
|
|
|
1277
|
-
:param validation_set_id:
|
|
1302
|
+
:param validation_set_id: (required)
|
|
1278
1303
|
:type validation_set_id: str
|
|
1279
1304
|
:param _request_timeout: timeout setting for this request. If one
|
|
1280
1305
|
number provided, it will be total request
|
|
@@ -1298,7 +1323,7 @@ class ValidationSetApi:
|
|
|
1298
1323
|
:return: Returns the result object.
|
|
1299
1324
|
""" # noqa: E501
|
|
1300
1325
|
|
|
1301
|
-
_param = self.
|
|
1326
|
+
_param = self._validation_set_validation_set_id_export_get_serialize(
|
|
1302
1327
|
validation_set_id=validation_set_id,
|
|
1303
1328
|
_request_auth=_request_auth,
|
|
1304
1329
|
_content_type=_content_type,
|
|
@@ -1307,7 +1332,7 @@ class ValidationSetApi:
|
|
|
1307
1332
|
)
|
|
1308
1333
|
|
|
1309
1334
|
_response_types_map: Dict[str, Optional[str]] = {
|
|
1310
|
-
'200': "
|
|
1335
|
+
'200': "bytearray",
|
|
1311
1336
|
}
|
|
1312
1337
|
response_data = self.api_client.call_api(
|
|
1313
1338
|
*_param,
|
|
@@ -1316,7 +1341,7 @@ class ValidationSetApi:
|
|
|
1316
1341
|
return response_data.response
|
|
1317
1342
|
|
|
1318
1343
|
|
|
1319
|
-
def
|
|
1344
|
+
def _validation_set_validation_set_id_export_get_serialize(
|
|
1320
1345
|
self,
|
|
1321
1346
|
validation_set_id,
|
|
1322
1347
|
_request_auth,
|
|
@@ -1367,7 +1392,7 @@ class ValidationSetApi:
|
|
|
1367
1392
|
|
|
1368
1393
|
return self.api_client.param_serialize(
|
|
1369
1394
|
method='GET',
|
|
1370
|
-
resource_path='/validation-set/{validationSetId}',
|
|
1395
|
+
resource_path='/validation-set/{validationSetId}/export',
|
|
1371
1396
|
path_params=_path_params,
|
|
1372
1397
|
query_params=_query_params,
|
|
1373
1398
|
header_params=_header_params,
|
|
@@ -1384,11 +1409,9 @@ class ValidationSetApi:
|
|
|
1384
1409
|
|
|
1385
1410
|
|
|
1386
1411
|
@validate_call
|
|
1387
|
-
def
|
|
1412
|
+
def validation_set_validation_set_id_get(
|
|
1388
1413
|
self,
|
|
1389
|
-
validation_set_id: Annotated[StrictStr, Field(description="The
|
|
1390
|
-
model: Optional[AddValidationRapidModel] = None,
|
|
1391
|
-
files: Optional[List[Union[StrictBytes, StrictStr, Tuple[StrictStr, StrictBytes]]]] = None,
|
|
1414
|
+
validation_set_id: Annotated[StrictStr, Field(description="The id of the validation set to get.")],
|
|
1392
1415
|
_request_timeout: Union[
|
|
1393
1416
|
None,
|
|
1394
1417
|
Annotated[StrictFloat, Field(gt=0)],
|
|
@@ -1401,16 +1424,12 @@ class ValidationSetApi:
|
|
|
1401
1424
|
_content_type: Optional[StrictStr] = None,
|
|
1402
1425
|
_headers: Optional[Dict[StrictStr, Any]] = None,
|
|
1403
1426
|
_host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
|
|
1404
|
-
) ->
|
|
1405
|
-
"""
|
|
1427
|
+
) -> GetValidationSetByIdResult:
|
|
1428
|
+
"""Gets a validation set by the id.
|
|
1406
1429
|
|
|
1407
1430
|
|
|
1408
|
-
:param validation_set_id: The
|
|
1431
|
+
:param validation_set_id: The id of the validation set to get. (required)
|
|
1409
1432
|
:type validation_set_id: str
|
|
1410
|
-
:param model:
|
|
1411
|
-
:type model: AddValidationRapidModel
|
|
1412
|
-
:param files:
|
|
1413
|
-
:type files: List[bytearray]
|
|
1414
1433
|
:param _request_timeout: timeout setting for this request. If one
|
|
1415
1434
|
number provided, it will be total request
|
|
1416
1435
|
timeout. It can also be a pair (tuple) of
|
|
@@ -1432,12 +1451,9 @@ class ValidationSetApi:
|
|
|
1432
1451
|
:type _host_index: int, optional
|
|
1433
1452
|
:return: Returns the result object.
|
|
1434
1453
|
""" # noqa: E501
|
|
1435
|
-
warnings.warn("POST /validation-set/{validationSetId}/rapid/files is deprecated.", DeprecationWarning)
|
|
1436
1454
|
|
|
1437
|
-
_param = self.
|
|
1455
|
+
_param = self._validation_set_validation_set_id_get_serialize(
|
|
1438
1456
|
validation_set_id=validation_set_id,
|
|
1439
|
-
model=model,
|
|
1440
|
-
files=files,
|
|
1441
1457
|
_request_auth=_request_auth,
|
|
1442
1458
|
_content_type=_content_type,
|
|
1443
1459
|
_headers=_headers,
|
|
@@ -1445,7 +1461,7 @@ class ValidationSetApi:
|
|
|
1445
1461
|
)
|
|
1446
1462
|
|
|
1447
1463
|
_response_types_map: Dict[str, Optional[str]] = {
|
|
1448
|
-
'200': "
|
|
1464
|
+
'200': "GetValidationSetByIdResult",
|
|
1449
1465
|
}
|
|
1450
1466
|
response_data = self.api_client.call_api(
|
|
1451
1467
|
*_param,
|
|
@@ -1459,11 +1475,9 @@ class ValidationSetApi:
|
|
|
1459
1475
|
|
|
1460
1476
|
|
|
1461
1477
|
@validate_call
|
|
1462
|
-
def
|
|
1478
|
+
def validation_set_validation_set_id_get_with_http_info(
|
|
1463
1479
|
self,
|
|
1464
|
-
validation_set_id: Annotated[StrictStr, Field(description="The
|
|
1465
|
-
model: Optional[AddValidationRapidModel] = None,
|
|
1466
|
-
files: Optional[List[Union[StrictBytes, StrictStr, Tuple[StrictStr, StrictBytes]]]] = None,
|
|
1480
|
+
validation_set_id: Annotated[StrictStr, Field(description="The id of the validation set to get.")],
|
|
1467
1481
|
_request_timeout: Union[
|
|
1468
1482
|
None,
|
|
1469
1483
|
Annotated[StrictFloat, Field(gt=0)],
|
|
@@ -1476,16 +1490,12 @@ class ValidationSetApi:
|
|
|
1476
1490
|
_content_type: Optional[StrictStr] = None,
|
|
1477
1491
|
_headers: Optional[Dict[StrictStr, Any]] = None,
|
|
1478
1492
|
_host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
|
|
1479
|
-
) -> ApiResponse[
|
|
1480
|
-
"""
|
|
1493
|
+
) -> ApiResponse[GetValidationSetByIdResult]:
|
|
1494
|
+
"""Gets a validation set by the id.
|
|
1481
1495
|
|
|
1482
1496
|
|
|
1483
|
-
:param validation_set_id: The
|
|
1497
|
+
:param validation_set_id: The id of the validation set to get. (required)
|
|
1484
1498
|
:type validation_set_id: str
|
|
1485
|
-
:param model:
|
|
1486
|
-
:type model: AddValidationRapidModel
|
|
1487
|
-
:param files:
|
|
1488
|
-
:type files: List[bytearray]
|
|
1489
1499
|
:param _request_timeout: timeout setting for this request. If one
|
|
1490
1500
|
number provided, it will be total request
|
|
1491
1501
|
timeout. It can also be a pair (tuple) of
|
|
@@ -1507,12 +1517,9 @@ class ValidationSetApi:
|
|
|
1507
1517
|
:type _host_index: int, optional
|
|
1508
1518
|
:return: Returns the result object.
|
|
1509
1519
|
""" # noqa: E501
|
|
1510
|
-
warnings.warn("POST /validation-set/{validationSetId}/rapid/files is deprecated.", DeprecationWarning)
|
|
1511
1520
|
|
|
1512
|
-
_param = self.
|
|
1521
|
+
_param = self._validation_set_validation_set_id_get_serialize(
|
|
1513
1522
|
validation_set_id=validation_set_id,
|
|
1514
|
-
model=model,
|
|
1515
|
-
files=files,
|
|
1516
1523
|
_request_auth=_request_auth,
|
|
1517
1524
|
_content_type=_content_type,
|
|
1518
1525
|
_headers=_headers,
|
|
@@ -1520,7 +1527,7 @@ class ValidationSetApi:
|
|
|
1520
1527
|
)
|
|
1521
1528
|
|
|
1522
1529
|
_response_types_map: Dict[str, Optional[str]] = {
|
|
1523
|
-
'200': "
|
|
1530
|
+
'200': "GetValidationSetByIdResult",
|
|
1524
1531
|
}
|
|
1525
1532
|
response_data = self.api_client.call_api(
|
|
1526
1533
|
*_param,
|
|
@@ -1534,11 +1541,9 @@ class ValidationSetApi:
|
|
|
1534
1541
|
|
|
1535
1542
|
|
|
1536
1543
|
@validate_call
|
|
1537
|
-
def
|
|
1544
|
+
def validation_set_validation_set_id_get_without_preload_content(
|
|
1538
1545
|
self,
|
|
1539
|
-
validation_set_id: Annotated[StrictStr, Field(description="The
|
|
1540
|
-
model: Optional[AddValidationRapidModel] = None,
|
|
1541
|
-
files: Optional[List[Union[StrictBytes, StrictStr, Tuple[StrictStr, StrictBytes]]]] = None,
|
|
1546
|
+
validation_set_id: Annotated[StrictStr, Field(description="The id of the validation set to get.")],
|
|
1542
1547
|
_request_timeout: Union[
|
|
1543
1548
|
None,
|
|
1544
1549
|
Annotated[StrictFloat, Field(gt=0)],
|
|
@@ -1552,15 +1557,11 @@ class ValidationSetApi:
|
|
|
1552
1557
|
_headers: Optional[Dict[StrictStr, Any]] = None,
|
|
1553
1558
|
_host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
|
|
1554
1559
|
) -> RESTResponseType:
|
|
1555
|
-
"""
|
|
1560
|
+
"""Gets a validation set by the id.
|
|
1556
1561
|
|
|
1557
1562
|
|
|
1558
|
-
:param validation_set_id: The
|
|
1563
|
+
:param validation_set_id: The id of the validation set to get. (required)
|
|
1559
1564
|
:type validation_set_id: str
|
|
1560
|
-
:param model:
|
|
1561
|
-
:type model: AddValidationRapidModel
|
|
1562
|
-
:param files:
|
|
1563
|
-
:type files: List[bytearray]
|
|
1564
1565
|
:param _request_timeout: timeout setting for this request. If one
|
|
1565
1566
|
number provided, it will be total request
|
|
1566
1567
|
timeout. It can also be a pair (tuple) of
|
|
@@ -1582,12 +1583,9 @@ class ValidationSetApi:
|
|
|
1582
1583
|
:type _host_index: int, optional
|
|
1583
1584
|
:return: Returns the result object.
|
|
1584
1585
|
""" # noqa: E501
|
|
1585
|
-
warnings.warn("POST /validation-set/{validationSetId}/rapid/files is deprecated.", DeprecationWarning)
|
|
1586
1586
|
|
|
1587
|
-
_param = self.
|
|
1587
|
+
_param = self._validation_set_validation_set_id_get_serialize(
|
|
1588
1588
|
validation_set_id=validation_set_id,
|
|
1589
|
-
model=model,
|
|
1590
|
-
files=files,
|
|
1591
1589
|
_request_auth=_request_auth,
|
|
1592
1590
|
_content_type=_content_type,
|
|
1593
1591
|
_headers=_headers,
|
|
@@ -1595,7 +1593,7 @@ class ValidationSetApi:
|
|
|
1595
1593
|
)
|
|
1596
1594
|
|
|
1597
1595
|
_response_types_map: Dict[str, Optional[str]] = {
|
|
1598
|
-
'200': "
|
|
1596
|
+
'200': "GetValidationSetByIdResult",
|
|
1599
1597
|
}
|
|
1600
1598
|
response_data = self.api_client.call_api(
|
|
1601
1599
|
*_param,
|
|
@@ -1604,11 +1602,9 @@ class ValidationSetApi:
|
|
|
1604
1602
|
return response_data.response
|
|
1605
1603
|
|
|
1606
1604
|
|
|
1607
|
-
def
|
|
1605
|
+
def _validation_set_validation_set_id_get_serialize(
|
|
1608
1606
|
self,
|
|
1609
1607
|
validation_set_id,
|
|
1610
|
-
model,
|
|
1611
|
-
files,
|
|
1612
1608
|
_request_auth,
|
|
1613
1609
|
_content_type,
|
|
1614
1610
|
_headers,
|
|
@@ -1618,7 +1614,6 @@ class ValidationSetApi:
|
|
|
1618
1614
|
_host = None
|
|
1619
1615
|
|
|
1620
1616
|
_collection_formats: Dict[str, str] = {
|
|
1621
|
-
'files': 'multi',
|
|
1622
1617
|
}
|
|
1623
1618
|
|
|
1624
1619
|
_path_params: Dict[str, str] = {}
|
|
@@ -1636,10 +1631,6 @@ class ValidationSetApi:
|
|
|
1636
1631
|
# process the query parameters
|
|
1637
1632
|
# process the header parameters
|
|
1638
1633
|
# process the form parameters
|
|
1639
|
-
if model is not None:
|
|
1640
|
-
_form_params.append(('model', model))
|
|
1641
|
-
if files is not None:
|
|
1642
|
-
_files['files'] = files
|
|
1643
1634
|
# process the body parameter
|
|
1644
1635
|
|
|
1645
1636
|
|
|
@@ -1653,19 +1644,6 @@ class ValidationSetApi:
|
|
|
1653
1644
|
]
|
|
1654
1645
|
)
|
|
1655
1646
|
|
|
1656
|
-
# set the HTTP header `Content-Type`
|
|
1657
|
-
if _content_type:
|
|
1658
|
-
_header_params['Content-Type'] = _content_type
|
|
1659
|
-
else:
|
|
1660
|
-
_default_content_type = (
|
|
1661
|
-
self.api_client.select_header_content_type(
|
|
1662
|
-
[
|
|
1663
|
-
'multipart/form-data'
|
|
1664
|
-
]
|
|
1665
|
-
)
|
|
1666
|
-
)
|
|
1667
|
-
if _default_content_type is not None:
|
|
1668
|
-
_header_params['Content-Type'] = _default_content_type
|
|
1669
1647
|
|
|
1670
1648
|
# authentication setting
|
|
1671
1649
|
_auth_settings: List[str] = [
|
|
@@ -1674,8 +1652,8 @@ class ValidationSetApi:
|
|
|
1674
1652
|
]
|
|
1675
1653
|
|
|
1676
1654
|
return self.api_client.param_serialize(
|
|
1677
|
-
method='
|
|
1678
|
-
resource_path='/validation-set/{validationSetId}
|
|
1655
|
+
method='GET',
|
|
1656
|
+
resource_path='/validation-set/{validationSetId}',
|
|
1679
1657
|
path_params=_path_params,
|
|
1680
1658
|
query_params=_query_params,
|
|
1681
1659
|
header_params=_header_params,
|
|
@@ -1692,13 +1670,11 @@ class ValidationSetApi:
|
|
|
1692
1670
|
|
|
1693
1671
|
|
|
1694
1672
|
@validate_call
|
|
1695
|
-
def
|
|
1673
|
+
def validation_set_validation_set_id_rapid_files_post(
|
|
1696
1674
|
self,
|
|
1697
1675
|
validation_set_id: Annotated[StrictStr, Field(description="The ID of the validation set to add the rapid to.")],
|
|
1698
1676
|
model: Optional[AddValidationRapidModel] = None,
|
|
1699
1677
|
files: Optional[List[Union[StrictBytes, StrictStr, Tuple[StrictStr, StrictBytes]]]] = None,
|
|
1700
|
-
texts: Annotated[Optional[List[StrictStr]], Field(description="The texts to use for the rapid.")] = None,
|
|
1701
|
-
urls: Annotated[Optional[List[StrictStr]], Field(description="The urls to use for the rapid")] = None,
|
|
1702
1678
|
_request_timeout: Union[
|
|
1703
1679
|
None,
|
|
1704
1680
|
Annotated[StrictFloat, Field(gt=0)],
|
|
@@ -1712,7 +1688,7 @@ class ValidationSetApi:
|
|
|
1712
1688
|
_headers: Optional[Dict[StrictStr, Any]] = None,
|
|
1713
1689
|
_host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
|
|
1714
1690
|
) -> AddValidationRapidResult:
|
|
1715
|
-
"""Adds a new validation rapid to the specified validation set using files to create the assets.
|
|
1691
|
+
"""(Deprecated) Adds a new validation rapid to the specified validation set using files to create the assets.
|
|
1716
1692
|
|
|
1717
1693
|
|
|
1718
1694
|
:param validation_set_id: The ID of the validation set to add the rapid to. (required)
|
|
@@ -1721,10 +1697,6 @@ class ValidationSetApi:
|
|
|
1721
1697
|
:type model: AddValidationRapidModel
|
|
1722
1698
|
:param files:
|
|
1723
1699
|
:type files: List[bytearray]
|
|
1724
|
-
:param texts: The texts to use for the rapid.
|
|
1725
|
-
:type texts: List[str]
|
|
1726
|
-
:param urls: The urls to use for the rapid
|
|
1727
|
-
:type urls: List[str]
|
|
1728
1700
|
:param _request_timeout: timeout setting for this request. If one
|
|
1729
1701
|
number provided, it will be total request
|
|
1730
1702
|
timeout. It can also be a pair (tuple) of
|
|
@@ -1746,13 +1718,12 @@ class ValidationSetApi:
|
|
|
1746
1718
|
:type _host_index: int, optional
|
|
1747
1719
|
:return: Returns the result object.
|
|
1748
1720
|
""" # noqa: E501
|
|
1721
|
+
warnings.warn("POST /validation-set/{validationSetId}/rapid/files is deprecated.", DeprecationWarning)
|
|
1749
1722
|
|
|
1750
|
-
_param = self.
|
|
1723
|
+
_param = self._validation_set_validation_set_id_rapid_files_post_serialize(
|
|
1751
1724
|
validation_set_id=validation_set_id,
|
|
1752
1725
|
model=model,
|
|
1753
1726
|
files=files,
|
|
1754
|
-
texts=texts,
|
|
1755
|
-
urls=urls,
|
|
1756
1727
|
_request_auth=_request_auth,
|
|
1757
1728
|
_content_type=_content_type,
|
|
1758
1729
|
_headers=_headers,
|
|
@@ -1774,13 +1745,11 @@ class ValidationSetApi:
|
|
|
1774
1745
|
|
|
1775
1746
|
|
|
1776
1747
|
@validate_call
|
|
1777
|
-
def
|
|
1748
|
+
def validation_set_validation_set_id_rapid_files_post_with_http_info(
|
|
1778
1749
|
self,
|
|
1779
1750
|
validation_set_id: Annotated[StrictStr, Field(description="The ID of the validation set to add the rapid to.")],
|
|
1780
1751
|
model: Optional[AddValidationRapidModel] = None,
|
|
1781
1752
|
files: Optional[List[Union[StrictBytes, StrictStr, Tuple[StrictStr, StrictBytes]]]] = None,
|
|
1782
|
-
texts: Annotated[Optional[List[StrictStr]], Field(description="The texts to use for the rapid.")] = None,
|
|
1783
|
-
urls: Annotated[Optional[List[StrictStr]], Field(description="The urls to use for the rapid")] = None,
|
|
1784
1753
|
_request_timeout: Union[
|
|
1785
1754
|
None,
|
|
1786
1755
|
Annotated[StrictFloat, Field(gt=0)],
|
|
@@ -1794,7 +1763,7 @@ class ValidationSetApi:
|
|
|
1794
1763
|
_headers: Optional[Dict[StrictStr, Any]] = None,
|
|
1795
1764
|
_host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
|
|
1796
1765
|
) -> ApiResponse[AddValidationRapidResult]:
|
|
1797
|
-
"""Adds a new validation rapid to the specified validation set using files to create the assets.
|
|
1766
|
+
"""(Deprecated) Adds a new validation rapid to the specified validation set using files to create the assets.
|
|
1798
1767
|
|
|
1799
1768
|
|
|
1800
1769
|
:param validation_set_id: The ID of the validation set to add the rapid to. (required)
|
|
@@ -1803,10 +1772,6 @@ class ValidationSetApi:
|
|
|
1803
1772
|
:type model: AddValidationRapidModel
|
|
1804
1773
|
:param files:
|
|
1805
1774
|
:type files: List[bytearray]
|
|
1806
|
-
:param texts: The texts to use for the rapid.
|
|
1807
|
-
:type texts: List[str]
|
|
1808
|
-
:param urls: The urls to use for the rapid
|
|
1809
|
-
:type urls: List[str]
|
|
1810
1775
|
:param _request_timeout: timeout setting for this request. If one
|
|
1811
1776
|
number provided, it will be total request
|
|
1812
1777
|
timeout. It can also be a pair (tuple) of
|
|
@@ -1828,13 +1793,12 @@ class ValidationSetApi:
|
|
|
1828
1793
|
:type _host_index: int, optional
|
|
1829
1794
|
:return: Returns the result object.
|
|
1830
1795
|
""" # noqa: E501
|
|
1796
|
+
warnings.warn("POST /validation-set/{validationSetId}/rapid/files is deprecated.", DeprecationWarning)
|
|
1831
1797
|
|
|
1832
|
-
_param = self.
|
|
1798
|
+
_param = self._validation_set_validation_set_id_rapid_files_post_serialize(
|
|
1833
1799
|
validation_set_id=validation_set_id,
|
|
1834
1800
|
model=model,
|
|
1835
1801
|
files=files,
|
|
1836
|
-
texts=texts,
|
|
1837
|
-
urls=urls,
|
|
1838
1802
|
_request_auth=_request_auth,
|
|
1839
1803
|
_content_type=_content_type,
|
|
1840
1804
|
_headers=_headers,
|
|
@@ -1856,13 +1820,11 @@ class ValidationSetApi:
|
|
|
1856
1820
|
|
|
1857
1821
|
|
|
1858
1822
|
@validate_call
|
|
1859
|
-
def
|
|
1823
|
+
def validation_set_validation_set_id_rapid_files_post_without_preload_content(
|
|
1860
1824
|
self,
|
|
1861
1825
|
validation_set_id: Annotated[StrictStr, Field(description="The ID of the validation set to add the rapid to.")],
|
|
1862
1826
|
model: Optional[AddValidationRapidModel] = None,
|
|
1863
1827
|
files: Optional[List[Union[StrictBytes, StrictStr, Tuple[StrictStr, StrictBytes]]]] = None,
|
|
1864
|
-
texts: Annotated[Optional[List[StrictStr]], Field(description="The texts to use for the rapid.")] = None,
|
|
1865
|
-
urls: Annotated[Optional[List[StrictStr]], Field(description="The urls to use for the rapid")] = None,
|
|
1866
1828
|
_request_timeout: Union[
|
|
1867
1829
|
None,
|
|
1868
1830
|
Annotated[StrictFloat, Field(gt=0)],
|
|
@@ -1876,7 +1838,7 @@ class ValidationSetApi:
|
|
|
1876
1838
|
_headers: Optional[Dict[StrictStr, Any]] = None,
|
|
1877
1839
|
_host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
|
|
1878
1840
|
) -> RESTResponseType:
|
|
1879
|
-
"""Adds a new validation rapid to the specified validation set using files to create the assets.
|
|
1841
|
+
"""(Deprecated) Adds a new validation rapid to the specified validation set using files to create the assets.
|
|
1880
1842
|
|
|
1881
1843
|
|
|
1882
1844
|
:param validation_set_id: The ID of the validation set to add the rapid to. (required)
|
|
@@ -1885,10 +1847,6 @@ class ValidationSetApi:
|
|
|
1885
1847
|
:type model: AddValidationRapidModel
|
|
1886
1848
|
:param files:
|
|
1887
1849
|
:type files: List[bytearray]
|
|
1888
|
-
:param texts: The texts to use for the rapid.
|
|
1889
|
-
:type texts: List[str]
|
|
1890
|
-
:param urls: The urls to use for the rapid
|
|
1891
|
-
:type urls: List[str]
|
|
1892
1850
|
:param _request_timeout: timeout setting for this request. If one
|
|
1893
1851
|
number provided, it will be total request
|
|
1894
1852
|
timeout. It can also be a pair (tuple) of
|
|
@@ -1910,13 +1868,12 @@ class ValidationSetApi:
|
|
|
1910
1868
|
:type _host_index: int, optional
|
|
1911
1869
|
:return: Returns the result object.
|
|
1912
1870
|
""" # noqa: E501
|
|
1871
|
+
warnings.warn("POST /validation-set/{validationSetId}/rapid/files is deprecated.", DeprecationWarning)
|
|
1913
1872
|
|
|
1914
|
-
_param = self.
|
|
1873
|
+
_param = self._validation_set_validation_set_id_rapid_files_post_serialize(
|
|
1915
1874
|
validation_set_id=validation_set_id,
|
|
1916
1875
|
model=model,
|
|
1917
1876
|
files=files,
|
|
1918
|
-
texts=texts,
|
|
1919
|
-
urls=urls,
|
|
1920
1877
|
_request_auth=_request_auth,
|
|
1921
1878
|
_content_type=_content_type,
|
|
1922
1879
|
_headers=_headers,
|
|
@@ -1933,13 +1890,11 @@ class ValidationSetApi:
|
|
|
1933
1890
|
return response_data.response
|
|
1934
1891
|
|
|
1935
1892
|
|
|
1936
|
-
def
|
|
1893
|
+
def _validation_set_validation_set_id_rapid_files_post_serialize(
|
|
1937
1894
|
self,
|
|
1938
1895
|
validation_set_id,
|
|
1939
1896
|
model,
|
|
1940
1897
|
files,
|
|
1941
|
-
texts,
|
|
1942
|
-
urls,
|
|
1943
1898
|
_request_auth,
|
|
1944
1899
|
_content_type,
|
|
1945
1900
|
_headers,
|
|
@@ -1950,8 +1905,6 @@ class ValidationSetApi:
|
|
|
1950
1905
|
|
|
1951
1906
|
_collection_formats: Dict[str, str] = {
|
|
1952
1907
|
'files': 'multi',
|
|
1953
|
-
'texts': 'multi',
|
|
1954
|
-
'urls': 'multi',
|
|
1955
1908
|
}
|
|
1956
1909
|
|
|
1957
1910
|
_path_params: Dict[str, str] = {}
|
|
@@ -1973,10 +1926,6 @@ class ValidationSetApi:
|
|
|
1973
1926
|
_form_params.append(('model', model))
|
|
1974
1927
|
if files is not None:
|
|
1975
1928
|
_files['files'] = files
|
|
1976
|
-
if texts is not None:
|
|
1977
|
-
_form_params.append(('texts', texts))
|
|
1978
|
-
if urls is not None:
|
|
1979
|
-
_form_params.append(('urls', urls))
|
|
1980
1929
|
# process the body parameter
|
|
1981
1930
|
|
|
1982
1931
|
|
|
@@ -2012,7 +1961,7 @@ class ValidationSetApi:
|
|
|
2012
1961
|
|
|
2013
1962
|
return self.api_client.param_serialize(
|
|
2014
1963
|
method='POST',
|
|
2015
|
-
resource_path='/validation-set/{validationSetId}/rapid',
|
|
1964
|
+
resource_path='/validation-set/{validationSetId}/rapid/files',
|
|
2016
1965
|
path_params=_path_params,
|
|
2017
1966
|
query_params=_query_params,
|
|
2018
1967
|
header_params=_header_params,
|
|
@@ -2029,10 +1978,13 @@ class ValidationSetApi:
|
|
|
2029
1978
|
|
|
2030
1979
|
|
|
2031
1980
|
@validate_call
|
|
2032
|
-
def
|
|
1981
|
+
def validation_set_validation_set_id_rapid_post(
|
|
2033
1982
|
self,
|
|
2034
1983
|
validation_set_id: Annotated[StrictStr, Field(description="The ID of the validation set to add the rapid to.")],
|
|
2035
|
-
|
|
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,
|
|
2036
1988
|
_request_timeout: Union[
|
|
2037
1989
|
None,
|
|
2038
1990
|
Annotated[StrictFloat, Field(gt=0)],
|
|
@@ -2046,13 +1998,19 @@ class ValidationSetApi:
|
|
|
2046
1998
|
_headers: Optional[Dict[StrictStr, Any]] = None,
|
|
2047
1999
|
_host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
|
|
2048
2000
|
) -> AddValidationRapidResult:
|
|
2049
|
-
"""
|
|
2001
|
+
"""Adds a new validation rapid to the specified validation set using files to create the assets.
|
|
2050
2002
|
|
|
2051
2003
|
|
|
2052
2004
|
:param validation_set_id: The ID of the validation set to add the rapid to. (required)
|
|
2053
2005
|
:type validation_set_id: str
|
|
2054
|
-
:param
|
|
2055
|
-
:type
|
|
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]
|
|
2056
2014
|
:param _request_timeout: timeout setting for this request. If one
|
|
2057
2015
|
number provided, it will be total request
|
|
2058
2016
|
timeout. It can also be a pair (tuple) of
|
|
@@ -2074,11 +2032,13 @@ class ValidationSetApi:
|
|
|
2074
2032
|
:type _host_index: int, optional
|
|
2075
2033
|
:return: Returns the result object.
|
|
2076
2034
|
""" # noqa: E501
|
|
2077
|
-
warnings.warn("POST /validation-set/{validationSetId}/rapid/texts is deprecated.", DeprecationWarning)
|
|
2078
2035
|
|
|
2079
|
-
_param = self.
|
|
2036
|
+
_param = self._validation_set_validation_set_id_rapid_post_serialize(
|
|
2080
2037
|
validation_set_id=validation_set_id,
|
|
2081
|
-
|
|
2038
|
+
model=model,
|
|
2039
|
+
files=files,
|
|
2040
|
+
texts=texts,
|
|
2041
|
+
urls=urls,
|
|
2082
2042
|
_request_auth=_request_auth,
|
|
2083
2043
|
_content_type=_content_type,
|
|
2084
2044
|
_headers=_headers,
|
|
@@ -2100,10 +2060,13 @@ class ValidationSetApi:
|
|
|
2100
2060
|
|
|
2101
2061
|
|
|
2102
2062
|
@validate_call
|
|
2103
|
-
def
|
|
2063
|
+
def validation_set_validation_set_id_rapid_post_with_http_info(
|
|
2104
2064
|
self,
|
|
2105
2065
|
validation_set_id: Annotated[StrictStr, Field(description="The ID of the validation set to add the rapid to.")],
|
|
2106
|
-
|
|
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,
|
|
2107
2070
|
_request_timeout: Union[
|
|
2108
2071
|
None,
|
|
2109
2072
|
Annotated[StrictFloat, Field(gt=0)],
|
|
@@ -2117,13 +2080,19 @@ class ValidationSetApi:
|
|
|
2117
2080
|
_headers: Optional[Dict[StrictStr, Any]] = None,
|
|
2118
2081
|
_host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
|
|
2119
2082
|
) -> ApiResponse[AddValidationRapidResult]:
|
|
2120
|
-
"""
|
|
2083
|
+
"""Adds a new validation rapid to the specified validation set using files to create the assets.
|
|
2121
2084
|
|
|
2122
2085
|
|
|
2123
2086
|
:param validation_set_id: The ID of the validation set to add the rapid to. (required)
|
|
2124
2087
|
:type validation_set_id: str
|
|
2125
|
-
:param
|
|
2126
|
-
:type
|
|
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]
|
|
2127
2096
|
:param _request_timeout: timeout setting for this request. If one
|
|
2128
2097
|
number provided, it will be total request
|
|
2129
2098
|
timeout. It can also be a pair (tuple) of
|
|
@@ -2145,11 +2114,13 @@ class ValidationSetApi:
|
|
|
2145
2114
|
:type _host_index: int, optional
|
|
2146
2115
|
:return: Returns the result object.
|
|
2147
2116
|
""" # noqa: E501
|
|
2148
|
-
warnings.warn("POST /validation-set/{validationSetId}/rapid/texts is deprecated.", DeprecationWarning)
|
|
2149
2117
|
|
|
2150
|
-
_param = self.
|
|
2118
|
+
_param = self._validation_set_validation_set_id_rapid_post_serialize(
|
|
2151
2119
|
validation_set_id=validation_set_id,
|
|
2152
|
-
|
|
2120
|
+
model=model,
|
|
2121
|
+
files=files,
|
|
2122
|
+
texts=texts,
|
|
2123
|
+
urls=urls,
|
|
2153
2124
|
_request_auth=_request_auth,
|
|
2154
2125
|
_content_type=_content_type,
|
|
2155
2126
|
_headers=_headers,
|
|
@@ -2171,10 +2142,13 @@ class ValidationSetApi:
|
|
|
2171
2142
|
|
|
2172
2143
|
|
|
2173
2144
|
@validate_call
|
|
2174
|
-
def
|
|
2145
|
+
def validation_set_validation_set_id_rapid_post_without_preload_content(
|
|
2175
2146
|
self,
|
|
2176
2147
|
validation_set_id: Annotated[StrictStr, Field(description="The ID of the validation set to add the rapid to.")],
|
|
2177
|
-
|
|
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,
|
|
2178
2152
|
_request_timeout: Union[
|
|
2179
2153
|
None,
|
|
2180
2154
|
Annotated[StrictFloat, Field(gt=0)],
|
|
@@ -2188,13 +2162,19 @@ class ValidationSetApi:
|
|
|
2188
2162
|
_headers: Optional[Dict[StrictStr, Any]] = None,
|
|
2189
2163
|
_host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
|
|
2190
2164
|
) -> RESTResponseType:
|
|
2191
|
-
"""
|
|
2165
|
+
"""Adds a new validation rapid to the specified validation set using files to create the assets.
|
|
2192
2166
|
|
|
2193
2167
|
|
|
2194
2168
|
:param validation_set_id: The ID of the validation set to add the rapid to. (required)
|
|
2195
2169
|
:type validation_set_id: str
|
|
2196
|
-
:param
|
|
2197
|
-
:type
|
|
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]
|
|
2198
2178
|
:param _request_timeout: timeout setting for this request. If one
|
|
2199
2179
|
number provided, it will be total request
|
|
2200
2180
|
timeout. It can also be a pair (tuple) of
|
|
@@ -2216,11 +2196,13 @@ class ValidationSetApi:
|
|
|
2216
2196
|
:type _host_index: int, optional
|
|
2217
2197
|
:return: Returns the result object.
|
|
2218
2198
|
""" # noqa: E501
|
|
2219
|
-
warnings.warn("POST /validation-set/{validationSetId}/rapid/texts is deprecated.", DeprecationWarning)
|
|
2220
2199
|
|
|
2221
|
-
_param = self.
|
|
2200
|
+
_param = self._validation_set_validation_set_id_rapid_post_serialize(
|
|
2222
2201
|
validation_set_id=validation_set_id,
|
|
2223
|
-
|
|
2202
|
+
model=model,
|
|
2203
|
+
files=files,
|
|
2204
|
+
texts=texts,
|
|
2205
|
+
urls=urls,
|
|
2224
2206
|
_request_auth=_request_auth,
|
|
2225
2207
|
_content_type=_content_type,
|
|
2226
2208
|
_headers=_headers,
|
|
@@ -2237,10 +2219,13 @@ class ValidationSetApi:
|
|
|
2237
2219
|
return response_data.response
|
|
2238
2220
|
|
|
2239
2221
|
|
|
2240
|
-
def
|
|
2222
|
+
def _validation_set_validation_set_id_rapid_post_serialize(
|
|
2241
2223
|
self,
|
|
2242
2224
|
validation_set_id,
|
|
2243
|
-
|
|
2225
|
+
model,
|
|
2226
|
+
files,
|
|
2227
|
+
texts,
|
|
2228
|
+
urls,
|
|
2244
2229
|
_request_auth,
|
|
2245
2230
|
_content_type,
|
|
2246
2231
|
_headers,
|
|
@@ -2250,6 +2235,9 @@ class ValidationSetApi:
|
|
|
2250
2235
|
_host = None
|
|
2251
2236
|
|
|
2252
2237
|
_collection_formats: Dict[str, str] = {
|
|
2238
|
+
'files': 'multi',
|
|
2239
|
+
'texts': 'multi',
|
|
2240
|
+
'urls': 'multi',
|
|
2253
2241
|
}
|
|
2254
2242
|
|
|
2255
2243
|
_path_params: Dict[str, str] = {}
|
|
@@ -2267,9 +2255,15 @@ class ValidationSetApi:
|
|
|
2267
2255
|
# process the query parameters
|
|
2268
2256
|
# process the header parameters
|
|
2269
2257
|
# 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))
|
|
2270
2266
|
# process the body parameter
|
|
2271
|
-
if add_validation_text_rapid_model is not None:
|
|
2272
|
-
_body_params = add_validation_text_rapid_model
|
|
2273
2267
|
|
|
2274
2268
|
|
|
2275
2269
|
# set the HTTP header `Accept`
|
|
@@ -2289,9 +2283,7 @@ class ValidationSetApi:
|
|
|
2289
2283
|
_default_content_type = (
|
|
2290
2284
|
self.api_client.select_header_content_type(
|
|
2291
2285
|
[
|
|
2292
|
-
'
|
|
2293
|
-
'text/json',
|
|
2294
|
-
'application/*+json'
|
|
2286
|
+
'multipart/form-data'
|
|
2295
2287
|
]
|
|
2296
2288
|
)
|
|
2297
2289
|
)
|
|
@@ -2306,7 +2298,7 @@ class ValidationSetApi:
|
|
|
2306
2298
|
|
|
2307
2299
|
return self.api_client.param_serialize(
|
|
2308
2300
|
method='POST',
|
|
2309
|
-
resource_path='/validation-set/{validationSetId}/rapid
|
|
2301
|
+
resource_path='/validation-set/{validationSetId}/rapid',
|
|
2310
2302
|
path_params=_path_params,
|
|
2311
2303
|
query_params=_query_params,
|
|
2312
2304
|
header_params=_header_params,
|
|
@@ -2323,10 +2315,10 @@ class ValidationSetApi:
|
|
|
2323
2315
|
|
|
2324
2316
|
|
|
2325
2317
|
@validate_call
|
|
2326
|
-
def
|
|
2318
|
+
def validation_set_validation_set_id_rapid_texts_post(
|
|
2327
2319
|
self,
|
|
2328
|
-
validation_set_id: Annotated[StrictStr, Field(description="The validation set to
|
|
2329
|
-
|
|
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,
|
|
2330
2322
|
_request_timeout: Union[
|
|
2331
2323
|
None,
|
|
2332
2324
|
Annotated[StrictFloat, Field(gt=0)],
|
|
@@ -2339,14 +2331,14 @@ class ValidationSetApi:
|
|
|
2339
2331
|
_content_type: Optional[StrictStr] = None,
|
|
2340
2332
|
_headers: Optional[Dict[StrictStr, Any]] = None,
|
|
2341
2333
|
_host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
|
|
2342
|
-
) ->
|
|
2343
|
-
"""
|
|
2334
|
+
) -> AddValidationRapidResult:
|
|
2335
|
+
"""(Deprecated) Adds a new validation rapid to the specified validation set using text sources to create the assets.
|
|
2344
2336
|
|
|
2345
2337
|
|
|
2346
|
-
:param validation_set_id: The validation set to
|
|
2338
|
+
:param validation_set_id: The ID of the validation set to add the rapid to. (required)
|
|
2347
2339
|
:type validation_set_id: str
|
|
2348
|
-
:param
|
|
2349
|
-
:type
|
|
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
|
|
2350
2342
|
:param _request_timeout: timeout setting for this request. If one
|
|
2351
2343
|
number provided, it will be total request
|
|
2352
2344
|
timeout. It can also be a pair (tuple) of
|
|
@@ -2368,10 +2360,11 @@ class ValidationSetApi:
|
|
|
2368
2360
|
:type _host_index: int, optional
|
|
2369
2361
|
:return: Returns the result object.
|
|
2370
2362
|
""" # noqa: E501
|
|
2363
|
+
warnings.warn("POST /validation-set/{validationSetId}/rapid/texts is deprecated.", DeprecationWarning)
|
|
2371
2364
|
|
|
2372
|
-
_param = self.
|
|
2365
|
+
_param = self._validation_set_validation_set_id_rapid_texts_post_serialize(
|
|
2373
2366
|
validation_set_id=validation_set_id,
|
|
2374
|
-
|
|
2367
|
+
add_validation_text_rapid_model=add_validation_text_rapid_model,
|
|
2375
2368
|
_request_auth=_request_auth,
|
|
2376
2369
|
_content_type=_content_type,
|
|
2377
2370
|
_headers=_headers,
|
|
@@ -2379,7 +2372,7 @@ class ValidationSetApi:
|
|
|
2379
2372
|
)
|
|
2380
2373
|
|
|
2381
2374
|
_response_types_map: Dict[str, Optional[str]] = {
|
|
2382
|
-
'200': "
|
|
2375
|
+
'200': "AddValidationRapidResult",
|
|
2383
2376
|
}
|
|
2384
2377
|
response_data = self.api_client.call_api(
|
|
2385
2378
|
*_param,
|
|
@@ -2393,10 +2386,10 @@ class ValidationSetApi:
|
|
|
2393
2386
|
|
|
2394
2387
|
|
|
2395
2388
|
@validate_call
|
|
2396
|
-
def
|
|
2389
|
+
def validation_set_validation_set_id_rapid_texts_post_with_http_info(
|
|
2397
2390
|
self,
|
|
2398
|
-
validation_set_id: Annotated[StrictStr, Field(description="The validation set to
|
|
2399
|
-
|
|
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,
|
|
2400
2393
|
_request_timeout: Union[
|
|
2401
2394
|
None,
|
|
2402
2395
|
Annotated[StrictFloat, Field(gt=0)],
|
|
@@ -2409,14 +2402,14 @@ class ValidationSetApi:
|
|
|
2409
2402
|
_content_type: Optional[StrictStr] = None,
|
|
2410
2403
|
_headers: Optional[Dict[StrictStr, Any]] = None,
|
|
2411
2404
|
_host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
|
|
2412
|
-
) -> ApiResponse[
|
|
2413
|
-
"""
|
|
2405
|
+
) -> ApiResponse[AddValidationRapidResult]:
|
|
2406
|
+
"""(Deprecated) Adds a new validation rapid to the specified validation set using text sources to create the assets.
|
|
2414
2407
|
|
|
2415
2408
|
|
|
2416
|
-
:param validation_set_id: The validation set to
|
|
2409
|
+
:param validation_set_id: The ID of the validation set to add the rapid to. (required)
|
|
2417
2410
|
:type validation_set_id: str
|
|
2418
|
-
:param
|
|
2419
|
-
:type
|
|
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
|
|
2420
2413
|
:param _request_timeout: timeout setting for this request. If one
|
|
2421
2414
|
number provided, it will be total request
|
|
2422
2415
|
timeout. It can also be a pair (tuple) of
|
|
@@ -2438,10 +2431,11 @@ class ValidationSetApi:
|
|
|
2438
2431
|
:type _host_index: int, optional
|
|
2439
2432
|
:return: Returns the result object.
|
|
2440
2433
|
""" # noqa: E501
|
|
2434
|
+
warnings.warn("POST /validation-set/{validationSetId}/rapid/texts is deprecated.", DeprecationWarning)
|
|
2441
2435
|
|
|
2442
|
-
_param = self.
|
|
2436
|
+
_param = self._validation_set_validation_set_id_rapid_texts_post_serialize(
|
|
2443
2437
|
validation_set_id=validation_set_id,
|
|
2444
|
-
|
|
2438
|
+
add_validation_text_rapid_model=add_validation_text_rapid_model,
|
|
2445
2439
|
_request_auth=_request_auth,
|
|
2446
2440
|
_content_type=_content_type,
|
|
2447
2441
|
_headers=_headers,
|
|
@@ -2449,7 +2443,7 @@ class ValidationSetApi:
|
|
|
2449
2443
|
)
|
|
2450
2444
|
|
|
2451
2445
|
_response_types_map: Dict[str, Optional[str]] = {
|
|
2452
|
-
'200': "
|
|
2446
|
+
'200': "AddValidationRapidResult",
|
|
2453
2447
|
}
|
|
2454
2448
|
response_data = self.api_client.call_api(
|
|
2455
2449
|
*_param,
|
|
@@ -2463,10 +2457,10 @@ class ValidationSetApi:
|
|
|
2463
2457
|
|
|
2464
2458
|
|
|
2465
2459
|
@validate_call
|
|
2466
|
-
def
|
|
2460
|
+
def validation_set_validation_set_id_rapid_texts_post_without_preload_content(
|
|
2467
2461
|
self,
|
|
2468
|
-
validation_set_id: Annotated[StrictStr, Field(description="The validation set to
|
|
2469
|
-
|
|
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,
|
|
2470
2464
|
_request_timeout: Union[
|
|
2471
2465
|
None,
|
|
2472
2466
|
Annotated[StrictFloat, Field(gt=0)],
|
|
@@ -2480,13 +2474,13 @@ class ValidationSetApi:
|
|
|
2480
2474
|
_headers: Optional[Dict[StrictStr, Any]] = None,
|
|
2481
2475
|
_host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
|
|
2482
2476
|
) -> RESTResponseType:
|
|
2483
|
-
"""
|
|
2477
|
+
"""(Deprecated) Adds a new validation rapid to the specified validation set using text sources to create the assets.
|
|
2484
2478
|
|
|
2485
2479
|
|
|
2486
|
-
:param validation_set_id: The validation set to
|
|
2480
|
+
:param validation_set_id: The ID of the validation set to add the rapid to. (required)
|
|
2487
2481
|
:type validation_set_id: str
|
|
2488
|
-
:param
|
|
2489
|
-
:type
|
|
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
|
|
2490
2484
|
:param _request_timeout: timeout setting for this request. If one
|
|
2491
2485
|
number provided, it will be total request
|
|
2492
2486
|
timeout. It can also be a pair (tuple) of
|
|
@@ -2508,10 +2502,11 @@ class ValidationSetApi:
|
|
|
2508
2502
|
:type _host_index: int, optional
|
|
2509
2503
|
:return: Returns the result object.
|
|
2510
2504
|
""" # noqa: E501
|
|
2505
|
+
warnings.warn("POST /validation-set/{validationSetId}/rapid/texts is deprecated.", DeprecationWarning)
|
|
2511
2506
|
|
|
2512
|
-
_param = self.
|
|
2507
|
+
_param = self._validation_set_validation_set_id_rapid_texts_post_serialize(
|
|
2513
2508
|
validation_set_id=validation_set_id,
|
|
2514
|
-
|
|
2509
|
+
add_validation_text_rapid_model=add_validation_text_rapid_model,
|
|
2515
2510
|
_request_auth=_request_auth,
|
|
2516
2511
|
_content_type=_content_type,
|
|
2517
2512
|
_headers=_headers,
|
|
@@ -2519,7 +2514,7 @@ class ValidationSetApi:
|
|
|
2519
2514
|
)
|
|
2520
2515
|
|
|
2521
2516
|
_response_types_map: Dict[str, Optional[str]] = {
|
|
2522
|
-
'200': "
|
|
2517
|
+
'200': "AddValidationRapidResult",
|
|
2523
2518
|
}
|
|
2524
2519
|
response_data = self.api_client.call_api(
|
|
2525
2520
|
*_param,
|
|
@@ -2528,10 +2523,10 @@ class ValidationSetApi:
|
|
|
2528
2523
|
return response_data.response
|
|
2529
2524
|
|
|
2530
2525
|
|
|
2531
|
-
def
|
|
2526
|
+
def _validation_set_validation_set_id_rapid_texts_post_serialize(
|
|
2532
2527
|
self,
|
|
2533
2528
|
validation_set_id,
|
|
2534
|
-
|
|
2529
|
+
add_validation_text_rapid_model,
|
|
2535
2530
|
_request_auth,
|
|
2536
2531
|
_content_type,
|
|
2537
2532
|
_headers,
|
|
@@ -2556,13 +2551,11 @@ class ValidationSetApi:
|
|
|
2556
2551
|
if validation_set_id is not None:
|
|
2557
2552
|
_path_params['validationSetId'] = validation_set_id
|
|
2558
2553
|
# process the query parameters
|
|
2559
|
-
if model is not None:
|
|
2560
|
-
|
|
2561
|
-
_query_params.append(('model', model))
|
|
2562
|
-
|
|
2563
2554
|
# process the header parameters
|
|
2564
2555
|
# process the form parameters
|
|
2565
2556
|
# process the body parameter
|
|
2557
|
+
if add_validation_text_rapid_model is not None:
|
|
2558
|
+
_body_params = add_validation_text_rapid_model
|
|
2566
2559
|
|
|
2567
2560
|
|
|
2568
2561
|
# set the HTTP header `Accept`
|
|
@@ -2575,6 +2568,21 @@ class ValidationSetApi:
|
|
|
2575
2568
|
]
|
|
2576
2569
|
)
|
|
2577
2570
|
|
|
2571
|
+
# set the HTTP header `Content-Type`
|
|
2572
|
+
if _content_type:
|
|
2573
|
+
_header_params['Content-Type'] = _content_type
|
|
2574
|
+
else:
|
|
2575
|
+
_default_content_type = (
|
|
2576
|
+
self.api_client.select_header_content_type(
|
|
2577
|
+
[
|
|
2578
|
+
'application/json',
|
|
2579
|
+
'text/json',
|
|
2580
|
+
'application/*+json'
|
|
2581
|
+
]
|
|
2582
|
+
)
|
|
2583
|
+
)
|
|
2584
|
+
if _default_content_type is not None:
|
|
2585
|
+
_header_params['Content-Type'] = _default_content_type
|
|
2578
2586
|
|
|
2579
2587
|
# authentication setting
|
|
2580
2588
|
_auth_settings: List[str] = [
|
|
@@ -2583,8 +2591,853 @@ class ValidationSetApi:
|
|
|
2583
2591
|
]
|
|
2584
2592
|
|
|
2585
2593
|
return self.api_client.param_serialize(
|
|
2586
|
-
method='
|
|
2587
|
-
resource_path='/validation-set/{validationSetId}/
|
|
2594
|
+
method='POST',
|
|
2595
|
+
resource_path='/validation-set/{validationSetId}/rapid/texts',
|
|
2596
|
+
path_params=_path_params,
|
|
2597
|
+
query_params=_query_params,
|
|
2598
|
+
header_params=_header_params,
|
|
2599
|
+
body=_body_params,
|
|
2600
|
+
post_params=_form_params,
|
|
2601
|
+
files=_files,
|
|
2602
|
+
auth_settings=_auth_settings,
|
|
2603
|
+
collection_formats=_collection_formats,
|
|
2604
|
+
_host=_host,
|
|
2605
|
+
_request_auth=_request_auth
|
|
2606
|
+
)
|
|
2607
|
+
|
|
2608
|
+
|
|
2609
|
+
|
|
2610
|
+
|
|
2611
|
+
@validate_call
|
|
2612
|
+
def validation_set_validation_set_id_rapids_get(
|
|
2613
|
+
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,
|
|
2616
|
+
_request_timeout: Union[
|
|
2617
|
+
None,
|
|
2618
|
+
Annotated[StrictFloat, Field(gt=0)],
|
|
2619
|
+
Tuple[
|
|
2620
|
+
Annotated[StrictFloat, Field(gt=0)],
|
|
2621
|
+
Annotated[StrictFloat, Field(gt=0)]
|
|
2622
|
+
]
|
|
2623
|
+
] = None,
|
|
2624
|
+
_request_auth: Optional[Dict[StrictStr, Any]] = None,
|
|
2625
|
+
_content_type: Optional[StrictStr] = None,
|
|
2626
|
+
_headers: Optional[Dict[StrictStr, Any]] = None,
|
|
2627
|
+
_host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
|
|
2628
|
+
) -> GetValidationRapidsResultPagedResult:
|
|
2629
|
+
"""Queries the validation rapids for a specific validation set.
|
|
2630
|
+
|
|
2631
|
+
|
|
2632
|
+
:param validation_set_id: The validation set to query. (required)
|
|
2633
|
+
:type validation_set_id: str
|
|
2634
|
+
:param model: The request formatted as a JSON in the query parameters.
|
|
2635
|
+
:type model: QueryModel
|
|
2636
|
+
:param _request_timeout: timeout setting for this request. If one
|
|
2637
|
+
number provided, it will be total request
|
|
2638
|
+
timeout. It can also be a pair (tuple) of
|
|
2639
|
+
(connection, read) timeouts.
|
|
2640
|
+
:type _request_timeout: int, tuple(int, int), optional
|
|
2641
|
+
:param _request_auth: set to override the auth_settings for an a single
|
|
2642
|
+
request; this effectively ignores the
|
|
2643
|
+
authentication in the spec for a single request.
|
|
2644
|
+
:type _request_auth: dict, optional
|
|
2645
|
+
:param _content_type: force content-type for the request.
|
|
2646
|
+
:type _content_type: str, Optional
|
|
2647
|
+
:param _headers: set to override the headers for a single
|
|
2648
|
+
request; this effectively ignores the headers
|
|
2649
|
+
in the spec for a single request.
|
|
2650
|
+
:type _headers: dict, optional
|
|
2651
|
+
:param _host_index: set to override the host_index for a single
|
|
2652
|
+
request; this effectively ignores the host_index
|
|
2653
|
+
in the spec for a single request.
|
|
2654
|
+
:type _host_index: int, optional
|
|
2655
|
+
:return: Returns the result object.
|
|
2656
|
+
""" # noqa: E501
|
|
2657
|
+
|
|
2658
|
+
_param = self._validation_set_validation_set_id_rapids_get_serialize(
|
|
2659
|
+
validation_set_id=validation_set_id,
|
|
2660
|
+
model=model,
|
|
2661
|
+
_request_auth=_request_auth,
|
|
2662
|
+
_content_type=_content_type,
|
|
2663
|
+
_headers=_headers,
|
|
2664
|
+
_host_index=_host_index
|
|
2665
|
+
)
|
|
2666
|
+
|
|
2667
|
+
_response_types_map: Dict[str, Optional[str]] = {
|
|
2668
|
+
'200': "GetValidationRapidsResultPagedResult",
|
|
2669
|
+
}
|
|
2670
|
+
response_data = self.api_client.call_api(
|
|
2671
|
+
*_param,
|
|
2672
|
+
_request_timeout=_request_timeout
|
|
2673
|
+
)
|
|
2674
|
+
response_data.read()
|
|
2675
|
+
return self.api_client.response_deserialize(
|
|
2676
|
+
response_data=response_data,
|
|
2677
|
+
response_types_map=_response_types_map,
|
|
2678
|
+
).data
|
|
2679
|
+
|
|
2680
|
+
|
|
2681
|
+
@validate_call
|
|
2682
|
+
def validation_set_validation_set_id_rapids_get_with_http_info(
|
|
2683
|
+
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,
|
|
2686
|
+
_request_timeout: Union[
|
|
2687
|
+
None,
|
|
2688
|
+
Annotated[StrictFloat, Field(gt=0)],
|
|
2689
|
+
Tuple[
|
|
2690
|
+
Annotated[StrictFloat, Field(gt=0)],
|
|
2691
|
+
Annotated[StrictFloat, Field(gt=0)]
|
|
2692
|
+
]
|
|
2693
|
+
] = None,
|
|
2694
|
+
_request_auth: Optional[Dict[StrictStr, Any]] = None,
|
|
2695
|
+
_content_type: Optional[StrictStr] = None,
|
|
2696
|
+
_headers: Optional[Dict[StrictStr, Any]] = None,
|
|
2697
|
+
_host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
|
|
2698
|
+
) -> ApiResponse[GetValidationRapidsResultPagedResult]:
|
|
2699
|
+
"""Queries the validation rapids for a specific validation set.
|
|
2700
|
+
|
|
2701
|
+
|
|
2702
|
+
:param validation_set_id: The validation set to query. (required)
|
|
2703
|
+
:type validation_set_id: str
|
|
2704
|
+
:param model: The request formatted as a JSON in the query parameters.
|
|
2705
|
+
:type model: QueryModel
|
|
2706
|
+
:param _request_timeout: timeout setting for this request. If one
|
|
2707
|
+
number provided, it will be total request
|
|
2708
|
+
timeout. It can also be a pair (tuple) of
|
|
2709
|
+
(connection, read) timeouts.
|
|
2710
|
+
:type _request_timeout: int, tuple(int, int), optional
|
|
2711
|
+
:param _request_auth: set to override the auth_settings for an a single
|
|
2712
|
+
request; this effectively ignores the
|
|
2713
|
+
authentication in the spec for a single request.
|
|
2714
|
+
:type _request_auth: dict, optional
|
|
2715
|
+
:param _content_type: force content-type for the request.
|
|
2716
|
+
:type _content_type: str, Optional
|
|
2717
|
+
:param _headers: set to override the headers for a single
|
|
2718
|
+
request; this effectively ignores the headers
|
|
2719
|
+
in the spec for a single request.
|
|
2720
|
+
:type _headers: dict, optional
|
|
2721
|
+
:param _host_index: set to override the host_index for a single
|
|
2722
|
+
request; this effectively ignores the host_index
|
|
2723
|
+
in the spec for a single request.
|
|
2724
|
+
:type _host_index: int, optional
|
|
2725
|
+
:return: Returns the result object.
|
|
2726
|
+
""" # noqa: E501
|
|
2727
|
+
|
|
2728
|
+
_param = self._validation_set_validation_set_id_rapids_get_serialize(
|
|
2729
|
+
validation_set_id=validation_set_id,
|
|
2730
|
+
model=model,
|
|
2731
|
+
_request_auth=_request_auth,
|
|
2732
|
+
_content_type=_content_type,
|
|
2733
|
+
_headers=_headers,
|
|
2734
|
+
_host_index=_host_index
|
|
2735
|
+
)
|
|
2736
|
+
|
|
2737
|
+
_response_types_map: Dict[str, Optional[str]] = {
|
|
2738
|
+
'200': "GetValidationRapidsResultPagedResult",
|
|
2739
|
+
}
|
|
2740
|
+
response_data = self.api_client.call_api(
|
|
2741
|
+
*_param,
|
|
2742
|
+
_request_timeout=_request_timeout
|
|
2743
|
+
)
|
|
2744
|
+
response_data.read()
|
|
2745
|
+
return self.api_client.response_deserialize(
|
|
2746
|
+
response_data=response_data,
|
|
2747
|
+
response_types_map=_response_types_map,
|
|
2748
|
+
)
|
|
2749
|
+
|
|
2750
|
+
|
|
2751
|
+
@validate_call
|
|
2752
|
+
def validation_set_validation_set_id_rapids_get_without_preload_content(
|
|
2753
|
+
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,
|
|
2756
|
+
_request_timeout: Union[
|
|
2757
|
+
None,
|
|
2758
|
+
Annotated[StrictFloat, Field(gt=0)],
|
|
2759
|
+
Tuple[
|
|
2760
|
+
Annotated[StrictFloat, Field(gt=0)],
|
|
2761
|
+
Annotated[StrictFloat, Field(gt=0)]
|
|
2762
|
+
]
|
|
2763
|
+
] = None,
|
|
2764
|
+
_request_auth: Optional[Dict[StrictStr, Any]] = None,
|
|
2765
|
+
_content_type: Optional[StrictStr] = None,
|
|
2766
|
+
_headers: Optional[Dict[StrictStr, Any]] = None,
|
|
2767
|
+
_host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
|
|
2768
|
+
) -> RESTResponseType:
|
|
2769
|
+
"""Queries the validation rapids for a specific validation set.
|
|
2770
|
+
|
|
2771
|
+
|
|
2772
|
+
:param validation_set_id: The validation set to query. (required)
|
|
2773
|
+
:type validation_set_id: str
|
|
2774
|
+
:param model: The request formatted as a JSON in the query parameters.
|
|
2775
|
+
:type model: QueryModel
|
|
2776
|
+
:param _request_timeout: timeout setting for this request. If one
|
|
2777
|
+
number provided, it will be total request
|
|
2778
|
+
timeout. It can also be a pair (tuple) of
|
|
2779
|
+
(connection, read) timeouts.
|
|
2780
|
+
:type _request_timeout: int, tuple(int, int), optional
|
|
2781
|
+
:param _request_auth: set to override the auth_settings for an a single
|
|
2782
|
+
request; this effectively ignores the
|
|
2783
|
+
authentication in the spec for a single request.
|
|
2784
|
+
:type _request_auth: dict, optional
|
|
2785
|
+
:param _content_type: force content-type for the request.
|
|
2786
|
+
:type _content_type: str, Optional
|
|
2787
|
+
:param _headers: set to override the headers for a single
|
|
2788
|
+
request; this effectively ignores the headers
|
|
2789
|
+
in the spec for a single request.
|
|
2790
|
+
:type _headers: dict, optional
|
|
2791
|
+
:param _host_index: set to override the host_index for a single
|
|
2792
|
+
request; this effectively ignores the host_index
|
|
2793
|
+
in the spec for a single request.
|
|
2794
|
+
:type _host_index: int, optional
|
|
2795
|
+
:return: Returns the result object.
|
|
2796
|
+
""" # noqa: E501
|
|
2797
|
+
|
|
2798
|
+
_param = self._validation_set_validation_set_id_rapids_get_serialize(
|
|
2799
|
+
validation_set_id=validation_set_id,
|
|
2800
|
+
model=model,
|
|
2801
|
+
_request_auth=_request_auth,
|
|
2802
|
+
_content_type=_content_type,
|
|
2803
|
+
_headers=_headers,
|
|
2804
|
+
_host_index=_host_index
|
|
2805
|
+
)
|
|
2806
|
+
|
|
2807
|
+
_response_types_map: Dict[str, Optional[str]] = {
|
|
2808
|
+
'200': "GetValidationRapidsResultPagedResult",
|
|
2809
|
+
}
|
|
2810
|
+
response_data = self.api_client.call_api(
|
|
2811
|
+
*_param,
|
|
2812
|
+
_request_timeout=_request_timeout
|
|
2813
|
+
)
|
|
2814
|
+
return response_data.response
|
|
2815
|
+
|
|
2816
|
+
|
|
2817
|
+
def _validation_set_validation_set_id_rapids_get_serialize(
|
|
2818
|
+
self,
|
|
2819
|
+
validation_set_id,
|
|
2820
|
+
model,
|
|
2821
|
+
_request_auth,
|
|
2822
|
+
_content_type,
|
|
2823
|
+
_headers,
|
|
2824
|
+
_host_index,
|
|
2825
|
+
) -> RequestSerialized:
|
|
2826
|
+
|
|
2827
|
+
_host = None
|
|
2828
|
+
|
|
2829
|
+
_collection_formats: Dict[str, str] = {
|
|
2830
|
+
}
|
|
2831
|
+
|
|
2832
|
+
_path_params: Dict[str, str] = {}
|
|
2833
|
+
_query_params: List[Tuple[str, str]] = []
|
|
2834
|
+
_header_params: Dict[str, Optional[str]] = _headers or {}
|
|
2835
|
+
_form_params: List[Tuple[str, str]] = []
|
|
2836
|
+
_files: Dict[
|
|
2837
|
+
str, Union[str, bytes, List[str], List[bytes], List[Tuple[str, bytes]]]
|
|
2838
|
+
] = {}
|
|
2839
|
+
_body_params: Optional[bytes] = None
|
|
2840
|
+
|
|
2841
|
+
# process the path parameters
|
|
2842
|
+
if validation_set_id is not None:
|
|
2843
|
+
_path_params['validationSetId'] = validation_set_id
|
|
2844
|
+
# process the query parameters
|
|
2845
|
+
if model is not None:
|
|
2846
|
+
|
|
2847
|
+
_query_params.append(('model', model))
|
|
2848
|
+
|
|
2849
|
+
# process the header parameters
|
|
2850
|
+
# process the form parameters
|
|
2851
|
+
# process the body parameter
|
|
2852
|
+
|
|
2853
|
+
|
|
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
|
+
|
|
2864
|
+
|
|
2865
|
+
# authentication setting
|
|
2866
|
+
_auth_settings: List[str] = [
|
|
2867
|
+
'bearer',
|
|
2868
|
+
'oauth2'
|
|
2869
|
+
]
|
|
2870
|
+
|
|
2871
|
+
return self.api_client.param_serialize(
|
|
2872
|
+
method='GET',
|
|
2873
|
+
resource_path='/validation-set/{validationSetId}/rapids',
|
|
2874
|
+
path_params=_path_params,
|
|
2875
|
+
query_params=_query_params,
|
|
2876
|
+
header_params=_header_params,
|
|
2877
|
+
body=_body_params,
|
|
2878
|
+
post_params=_form_params,
|
|
2879
|
+
files=_files,
|
|
2880
|
+
auth_settings=_auth_settings,
|
|
2881
|
+
collection_formats=_collection_formats,
|
|
2882
|
+
_host=_host,
|
|
2883
|
+
_request_auth=_request_auth
|
|
2884
|
+
)
|
|
2885
|
+
|
|
2886
|
+
|
|
2887
|
+
|
|
2888
|
+
|
|
2889
|
+
@validate_call
|
|
2890
|
+
def validation_set_validation_set_id_shouldalert_patch(
|
|
2891
|
+
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,
|
|
2894
|
+
_request_timeout: Union[
|
|
2895
|
+
None,
|
|
2896
|
+
Annotated[StrictFloat, Field(gt=0)],
|
|
2897
|
+
Tuple[
|
|
2898
|
+
Annotated[StrictFloat, Field(gt=0)],
|
|
2899
|
+
Annotated[StrictFloat, Field(gt=0)]
|
|
2900
|
+
]
|
|
2901
|
+
] = None,
|
|
2902
|
+
_request_auth: Optional[Dict[StrictStr, Any]] = None,
|
|
2903
|
+
_content_type: Optional[StrictStr] = None,
|
|
2904
|
+
_headers: Optional[Dict[StrictStr, Any]] = None,
|
|
2905
|
+
_host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
|
|
2906
|
+
) -> None:
|
|
2907
|
+
"""Updates the dimensions of all rapids within a validation set.
|
|
2908
|
+
|
|
2909
|
+
|
|
2910
|
+
:param validation_set_id: The Id of the validation set to update the dimensions for. (required)
|
|
2911
|
+
: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
|
+
:param _request_timeout: timeout setting for this request. If one
|
|
2915
|
+
number provided, it will be total request
|
|
2916
|
+
timeout. It can also be a pair (tuple) of
|
|
2917
|
+
(connection, read) timeouts.
|
|
2918
|
+
:type _request_timeout: int, tuple(int, int), optional
|
|
2919
|
+
:param _request_auth: set to override the auth_settings for an a single
|
|
2920
|
+
request; this effectively ignores the
|
|
2921
|
+
authentication in the spec for a single request.
|
|
2922
|
+
:type _request_auth: dict, optional
|
|
2923
|
+
:param _content_type: force content-type for the request.
|
|
2924
|
+
:type _content_type: str, Optional
|
|
2925
|
+
:param _headers: set to override the headers for a single
|
|
2926
|
+
request; this effectively ignores the headers
|
|
2927
|
+
in the spec for a single request.
|
|
2928
|
+
:type _headers: dict, optional
|
|
2929
|
+
:param _host_index: set to override the host_index for a single
|
|
2930
|
+
request; this effectively ignores the host_index
|
|
2931
|
+
in the spec for a single request.
|
|
2932
|
+
:type _host_index: int, optional
|
|
2933
|
+
:return: Returns the result object.
|
|
2934
|
+
""" # noqa: E501
|
|
2935
|
+
|
|
2936
|
+
_param = self._validation_set_validation_set_id_shouldalert_patch_serialize(
|
|
2937
|
+
validation_set_id=validation_set_id,
|
|
2938
|
+
update_should_alert_model=update_should_alert_model,
|
|
2939
|
+
_request_auth=_request_auth,
|
|
2940
|
+
_content_type=_content_type,
|
|
2941
|
+
_headers=_headers,
|
|
2942
|
+
_host_index=_host_index
|
|
2943
|
+
)
|
|
2944
|
+
|
|
2945
|
+
_response_types_map: Dict[str, Optional[str]] = {
|
|
2946
|
+
'204': None,
|
|
2947
|
+
}
|
|
2948
|
+
response_data = self.api_client.call_api(
|
|
2949
|
+
*_param,
|
|
2950
|
+
_request_timeout=_request_timeout
|
|
2951
|
+
)
|
|
2952
|
+
response_data.read()
|
|
2953
|
+
return self.api_client.response_deserialize(
|
|
2954
|
+
response_data=response_data,
|
|
2955
|
+
response_types_map=_response_types_map,
|
|
2956
|
+
).data
|
|
2957
|
+
|
|
2958
|
+
|
|
2959
|
+
@validate_call
|
|
2960
|
+
def validation_set_validation_set_id_shouldalert_patch_with_http_info(
|
|
2961
|
+
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,
|
|
2964
|
+
_request_timeout: Union[
|
|
2965
|
+
None,
|
|
2966
|
+
Annotated[StrictFloat, Field(gt=0)],
|
|
2967
|
+
Tuple[
|
|
2968
|
+
Annotated[StrictFloat, Field(gt=0)],
|
|
2969
|
+
Annotated[StrictFloat, Field(gt=0)]
|
|
2970
|
+
]
|
|
2971
|
+
] = None,
|
|
2972
|
+
_request_auth: Optional[Dict[StrictStr, Any]] = None,
|
|
2973
|
+
_content_type: Optional[StrictStr] = None,
|
|
2974
|
+
_headers: Optional[Dict[StrictStr, Any]] = None,
|
|
2975
|
+
_host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
|
|
2976
|
+
) -> ApiResponse[None]:
|
|
2977
|
+
"""Updates the dimensions of all rapids within a validation set.
|
|
2978
|
+
|
|
2979
|
+
|
|
2980
|
+
:param validation_set_id: The Id of the validation set to update the dimensions for. (required)
|
|
2981
|
+
: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
|
+
:param _request_timeout: timeout setting for this request. If one
|
|
2985
|
+
number provided, it will be total request
|
|
2986
|
+
timeout. It can also be a pair (tuple) of
|
|
2987
|
+
(connection, read) timeouts.
|
|
2988
|
+
:type _request_timeout: int, tuple(int, int), optional
|
|
2989
|
+
:param _request_auth: set to override the auth_settings for an a single
|
|
2990
|
+
request; this effectively ignores the
|
|
2991
|
+
authentication in the spec for a single request.
|
|
2992
|
+
:type _request_auth: dict, optional
|
|
2993
|
+
:param _content_type: force content-type for the request.
|
|
2994
|
+
:type _content_type: str, Optional
|
|
2995
|
+
:param _headers: set to override the headers for a single
|
|
2996
|
+
request; this effectively ignores the headers
|
|
2997
|
+
in the spec for a single request.
|
|
2998
|
+
:type _headers: dict, optional
|
|
2999
|
+
:param _host_index: set to override the host_index for a single
|
|
3000
|
+
request; this effectively ignores the host_index
|
|
3001
|
+
in the spec for a single request.
|
|
3002
|
+
:type _host_index: int, optional
|
|
3003
|
+
:return: Returns the result object.
|
|
3004
|
+
""" # noqa: E501
|
|
3005
|
+
|
|
3006
|
+
_param = self._validation_set_validation_set_id_shouldalert_patch_serialize(
|
|
3007
|
+
validation_set_id=validation_set_id,
|
|
3008
|
+
update_should_alert_model=update_should_alert_model,
|
|
3009
|
+
_request_auth=_request_auth,
|
|
3010
|
+
_content_type=_content_type,
|
|
3011
|
+
_headers=_headers,
|
|
3012
|
+
_host_index=_host_index
|
|
3013
|
+
)
|
|
3014
|
+
|
|
3015
|
+
_response_types_map: Dict[str, Optional[str]] = {
|
|
3016
|
+
'204': None,
|
|
3017
|
+
}
|
|
3018
|
+
response_data = self.api_client.call_api(
|
|
3019
|
+
*_param,
|
|
3020
|
+
_request_timeout=_request_timeout
|
|
3021
|
+
)
|
|
3022
|
+
response_data.read()
|
|
3023
|
+
return self.api_client.response_deserialize(
|
|
3024
|
+
response_data=response_data,
|
|
3025
|
+
response_types_map=_response_types_map,
|
|
3026
|
+
)
|
|
3027
|
+
|
|
3028
|
+
|
|
3029
|
+
@validate_call
|
|
3030
|
+
def validation_set_validation_set_id_shouldalert_patch_without_preload_content(
|
|
3031
|
+
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,
|
|
3034
|
+
_request_timeout: Union[
|
|
3035
|
+
None,
|
|
3036
|
+
Annotated[StrictFloat, Field(gt=0)],
|
|
3037
|
+
Tuple[
|
|
3038
|
+
Annotated[StrictFloat, Field(gt=0)],
|
|
3039
|
+
Annotated[StrictFloat, Field(gt=0)]
|
|
3040
|
+
]
|
|
3041
|
+
] = None,
|
|
3042
|
+
_request_auth: Optional[Dict[StrictStr, Any]] = None,
|
|
3043
|
+
_content_type: Optional[StrictStr] = None,
|
|
3044
|
+
_headers: Optional[Dict[StrictStr, Any]] = None,
|
|
3045
|
+
_host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
|
|
3046
|
+
) -> RESTResponseType:
|
|
3047
|
+
"""Updates the dimensions of all rapids within a validation set.
|
|
3048
|
+
|
|
3049
|
+
|
|
3050
|
+
:param validation_set_id: The Id of the validation set to update the dimensions for. (required)
|
|
3051
|
+
: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
|
+
:param _request_timeout: timeout setting for this request. If one
|
|
3055
|
+
number provided, it will be total request
|
|
3056
|
+
timeout. It can also be a pair (tuple) of
|
|
3057
|
+
(connection, read) timeouts.
|
|
3058
|
+
:type _request_timeout: int, tuple(int, int), optional
|
|
3059
|
+
:param _request_auth: set to override the auth_settings for an a single
|
|
3060
|
+
request; this effectively ignores the
|
|
3061
|
+
authentication in the spec for a single request.
|
|
3062
|
+
:type _request_auth: dict, optional
|
|
3063
|
+
:param _content_type: force content-type for the request.
|
|
3064
|
+
:type _content_type: str, Optional
|
|
3065
|
+
:param _headers: set to override the headers for a single
|
|
3066
|
+
request; this effectively ignores the headers
|
|
3067
|
+
in the spec for a single request.
|
|
3068
|
+
:type _headers: dict, optional
|
|
3069
|
+
:param _host_index: set to override the host_index for a single
|
|
3070
|
+
request; this effectively ignores the host_index
|
|
3071
|
+
in the spec for a single request.
|
|
3072
|
+
:type _host_index: int, optional
|
|
3073
|
+
:return: Returns the result object.
|
|
3074
|
+
""" # noqa: E501
|
|
3075
|
+
|
|
3076
|
+
_param = self._validation_set_validation_set_id_shouldalert_patch_serialize(
|
|
3077
|
+
validation_set_id=validation_set_id,
|
|
3078
|
+
update_should_alert_model=update_should_alert_model,
|
|
3079
|
+
_request_auth=_request_auth,
|
|
3080
|
+
_content_type=_content_type,
|
|
3081
|
+
_headers=_headers,
|
|
3082
|
+
_host_index=_host_index
|
|
3083
|
+
)
|
|
3084
|
+
|
|
3085
|
+
_response_types_map: Dict[str, Optional[str]] = {
|
|
3086
|
+
'204': None,
|
|
3087
|
+
}
|
|
3088
|
+
response_data = self.api_client.call_api(
|
|
3089
|
+
*_param,
|
|
3090
|
+
_request_timeout=_request_timeout
|
|
3091
|
+
)
|
|
3092
|
+
return response_data.response
|
|
3093
|
+
|
|
3094
|
+
|
|
3095
|
+
def _validation_set_validation_set_id_shouldalert_patch_serialize(
|
|
3096
|
+
self,
|
|
3097
|
+
validation_set_id,
|
|
3098
|
+
update_should_alert_model,
|
|
3099
|
+
_request_auth,
|
|
3100
|
+
_content_type,
|
|
3101
|
+
_headers,
|
|
3102
|
+
_host_index,
|
|
3103
|
+
) -> RequestSerialized:
|
|
3104
|
+
|
|
3105
|
+
_host = None
|
|
3106
|
+
|
|
3107
|
+
_collection_formats: Dict[str, str] = {
|
|
3108
|
+
}
|
|
3109
|
+
|
|
3110
|
+
_path_params: Dict[str, str] = {}
|
|
3111
|
+
_query_params: List[Tuple[str, str]] = []
|
|
3112
|
+
_header_params: Dict[str, Optional[str]] = _headers or {}
|
|
3113
|
+
_form_params: List[Tuple[str, str]] = []
|
|
3114
|
+
_files: Dict[
|
|
3115
|
+
str, Union[str, bytes, List[str], List[bytes], List[Tuple[str, bytes]]]
|
|
3116
|
+
] = {}
|
|
3117
|
+
_body_params: Optional[bytes] = None
|
|
3118
|
+
|
|
3119
|
+
# process the path parameters
|
|
3120
|
+
if validation_set_id is not None:
|
|
3121
|
+
_path_params['validationSetId'] = validation_set_id
|
|
3122
|
+
# process the query parameters
|
|
3123
|
+
# process the header parameters
|
|
3124
|
+
# process the form parameters
|
|
3125
|
+
# process the body parameter
|
|
3126
|
+
if update_should_alert_model is not None:
|
|
3127
|
+
_body_params = update_should_alert_model
|
|
3128
|
+
|
|
3129
|
+
|
|
3130
|
+
|
|
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
|
+
|
|
3147
|
+
# authentication setting
|
|
3148
|
+
_auth_settings: List[str] = [
|
|
3149
|
+
'bearer',
|
|
3150
|
+
'oauth2'
|
|
3151
|
+
]
|
|
3152
|
+
|
|
3153
|
+
return self.api_client.param_serialize(
|
|
3154
|
+
method='PATCH',
|
|
3155
|
+
resource_path='/validation-set/{validationSetId}/shouldalert',
|
|
3156
|
+
path_params=_path_params,
|
|
3157
|
+
query_params=_query_params,
|
|
3158
|
+
header_params=_header_params,
|
|
3159
|
+
body=_body_params,
|
|
3160
|
+
post_params=_form_params,
|
|
3161
|
+
files=_files,
|
|
3162
|
+
auth_settings=_auth_settings,
|
|
3163
|
+
collection_formats=_collection_formats,
|
|
3164
|
+
_host=_host,
|
|
3165
|
+
_request_auth=_request_auth
|
|
3166
|
+
)
|
|
3167
|
+
|
|
3168
|
+
|
|
3169
|
+
|
|
3170
|
+
|
|
3171
|
+
@validate_call
|
|
3172
|
+
def validation_set_validation_set_id_shouldalert_put(
|
|
3173
|
+
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,
|
|
3176
|
+
_request_timeout: Union[
|
|
3177
|
+
None,
|
|
3178
|
+
Annotated[StrictFloat, Field(gt=0)],
|
|
3179
|
+
Tuple[
|
|
3180
|
+
Annotated[StrictFloat, Field(gt=0)],
|
|
3181
|
+
Annotated[StrictFloat, Field(gt=0)]
|
|
3182
|
+
]
|
|
3183
|
+
] = None,
|
|
3184
|
+
_request_auth: Optional[Dict[StrictStr, Any]] = None,
|
|
3185
|
+
_content_type: Optional[StrictStr] = None,
|
|
3186
|
+
_headers: Optional[Dict[StrictStr, Any]] = None,
|
|
3187
|
+
_host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
|
|
3188
|
+
) -> None:
|
|
3189
|
+
"""(Deprecated) Updates the dimensions of all rapids within a validation set.
|
|
3190
|
+
|
|
3191
|
+
|
|
3192
|
+
:param validation_set_id: The Id of the validation set to update the dimensions for. (required)
|
|
3193
|
+
: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
|
|
3196
|
+
:param _request_timeout: timeout setting for this request. If one
|
|
3197
|
+
number provided, it will be total request
|
|
3198
|
+
timeout. It can also be a pair (tuple) of
|
|
3199
|
+
(connection, read) timeouts.
|
|
3200
|
+
:type _request_timeout: int, tuple(int, int), optional
|
|
3201
|
+
:param _request_auth: set to override the auth_settings for an a single
|
|
3202
|
+
request; this effectively ignores the
|
|
3203
|
+
authentication in the spec for a single request.
|
|
3204
|
+
:type _request_auth: dict, optional
|
|
3205
|
+
:param _content_type: force content-type for the request.
|
|
3206
|
+
:type _content_type: str, Optional
|
|
3207
|
+
:param _headers: set to override the headers for a single
|
|
3208
|
+
request; this effectively ignores the headers
|
|
3209
|
+
in the spec for a single request.
|
|
3210
|
+
:type _headers: dict, optional
|
|
3211
|
+
:param _host_index: set to override the host_index for a single
|
|
3212
|
+
request; this effectively ignores the host_index
|
|
3213
|
+
in the spec for a single request.
|
|
3214
|
+
:type _host_index: int, optional
|
|
3215
|
+
:return: Returns the result object.
|
|
3216
|
+
""" # noqa: E501
|
|
3217
|
+
warnings.warn("PUT /validation-set/{validationSetId}/shouldalert is deprecated.", DeprecationWarning)
|
|
3218
|
+
|
|
3219
|
+
_param = self._validation_set_validation_set_id_shouldalert_put_serialize(
|
|
3220
|
+
validation_set_id=validation_set_id,
|
|
3221
|
+
update_should_alert_model=update_should_alert_model,
|
|
3222
|
+
_request_auth=_request_auth,
|
|
3223
|
+
_content_type=_content_type,
|
|
3224
|
+
_headers=_headers,
|
|
3225
|
+
_host_index=_host_index
|
|
3226
|
+
)
|
|
3227
|
+
|
|
3228
|
+
_response_types_map: Dict[str, Optional[str]] = {
|
|
3229
|
+
'204': None,
|
|
3230
|
+
}
|
|
3231
|
+
response_data = self.api_client.call_api(
|
|
3232
|
+
*_param,
|
|
3233
|
+
_request_timeout=_request_timeout
|
|
3234
|
+
)
|
|
3235
|
+
response_data.read()
|
|
3236
|
+
return self.api_client.response_deserialize(
|
|
3237
|
+
response_data=response_data,
|
|
3238
|
+
response_types_map=_response_types_map,
|
|
3239
|
+
).data
|
|
3240
|
+
|
|
3241
|
+
|
|
3242
|
+
@validate_call
|
|
3243
|
+
def validation_set_validation_set_id_shouldalert_put_with_http_info(
|
|
3244
|
+
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,
|
|
3247
|
+
_request_timeout: Union[
|
|
3248
|
+
None,
|
|
3249
|
+
Annotated[StrictFloat, Field(gt=0)],
|
|
3250
|
+
Tuple[
|
|
3251
|
+
Annotated[StrictFloat, Field(gt=0)],
|
|
3252
|
+
Annotated[StrictFloat, Field(gt=0)]
|
|
3253
|
+
]
|
|
3254
|
+
] = None,
|
|
3255
|
+
_request_auth: Optional[Dict[StrictStr, Any]] = None,
|
|
3256
|
+
_content_type: Optional[StrictStr] = None,
|
|
3257
|
+
_headers: Optional[Dict[StrictStr, Any]] = None,
|
|
3258
|
+
_host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
|
|
3259
|
+
) -> ApiResponse[None]:
|
|
3260
|
+
"""(Deprecated) Updates the dimensions of all rapids within a validation set.
|
|
3261
|
+
|
|
3262
|
+
|
|
3263
|
+
:param validation_set_id: The Id of the validation set to update the dimensions for. (required)
|
|
3264
|
+
: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
|
|
3267
|
+
:param _request_timeout: timeout setting for this request. If one
|
|
3268
|
+
number provided, it will be total request
|
|
3269
|
+
timeout. It can also be a pair (tuple) of
|
|
3270
|
+
(connection, read) timeouts.
|
|
3271
|
+
:type _request_timeout: int, tuple(int, int), optional
|
|
3272
|
+
:param _request_auth: set to override the auth_settings for an a single
|
|
3273
|
+
request; this effectively ignores the
|
|
3274
|
+
authentication in the spec for a single request.
|
|
3275
|
+
:type _request_auth: dict, optional
|
|
3276
|
+
:param _content_type: force content-type for the request.
|
|
3277
|
+
:type _content_type: str, Optional
|
|
3278
|
+
:param _headers: set to override the headers for a single
|
|
3279
|
+
request; this effectively ignores the headers
|
|
3280
|
+
in the spec for a single request.
|
|
3281
|
+
:type _headers: dict, optional
|
|
3282
|
+
:param _host_index: set to override the host_index for a single
|
|
3283
|
+
request; this effectively ignores the host_index
|
|
3284
|
+
in the spec for a single request.
|
|
3285
|
+
:type _host_index: int, optional
|
|
3286
|
+
:return: Returns the result object.
|
|
3287
|
+
""" # noqa: E501
|
|
3288
|
+
warnings.warn("PUT /validation-set/{validationSetId}/shouldalert is deprecated.", DeprecationWarning)
|
|
3289
|
+
|
|
3290
|
+
_param = self._validation_set_validation_set_id_shouldalert_put_serialize(
|
|
3291
|
+
validation_set_id=validation_set_id,
|
|
3292
|
+
update_should_alert_model=update_should_alert_model,
|
|
3293
|
+
_request_auth=_request_auth,
|
|
3294
|
+
_content_type=_content_type,
|
|
3295
|
+
_headers=_headers,
|
|
3296
|
+
_host_index=_host_index
|
|
3297
|
+
)
|
|
3298
|
+
|
|
3299
|
+
_response_types_map: Dict[str, Optional[str]] = {
|
|
3300
|
+
'204': None,
|
|
3301
|
+
}
|
|
3302
|
+
response_data = self.api_client.call_api(
|
|
3303
|
+
*_param,
|
|
3304
|
+
_request_timeout=_request_timeout
|
|
3305
|
+
)
|
|
3306
|
+
response_data.read()
|
|
3307
|
+
return self.api_client.response_deserialize(
|
|
3308
|
+
response_data=response_data,
|
|
3309
|
+
response_types_map=_response_types_map,
|
|
3310
|
+
)
|
|
3311
|
+
|
|
3312
|
+
|
|
3313
|
+
@validate_call
|
|
3314
|
+
def validation_set_validation_set_id_shouldalert_put_without_preload_content(
|
|
3315
|
+
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,
|
|
3318
|
+
_request_timeout: Union[
|
|
3319
|
+
None,
|
|
3320
|
+
Annotated[StrictFloat, Field(gt=0)],
|
|
3321
|
+
Tuple[
|
|
3322
|
+
Annotated[StrictFloat, Field(gt=0)],
|
|
3323
|
+
Annotated[StrictFloat, Field(gt=0)]
|
|
3324
|
+
]
|
|
3325
|
+
] = None,
|
|
3326
|
+
_request_auth: Optional[Dict[StrictStr, Any]] = None,
|
|
3327
|
+
_content_type: Optional[StrictStr] = None,
|
|
3328
|
+
_headers: Optional[Dict[StrictStr, Any]] = None,
|
|
3329
|
+
_host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
|
|
3330
|
+
) -> RESTResponseType:
|
|
3331
|
+
"""(Deprecated) Updates the dimensions of all rapids within a validation set.
|
|
3332
|
+
|
|
3333
|
+
|
|
3334
|
+
:param validation_set_id: The Id of the validation set to update the dimensions for. (required)
|
|
3335
|
+
: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
|
|
3338
|
+
:param _request_timeout: timeout setting for this request. If one
|
|
3339
|
+
number provided, it will be total request
|
|
3340
|
+
timeout. It can also be a pair (tuple) of
|
|
3341
|
+
(connection, read) timeouts.
|
|
3342
|
+
:type _request_timeout: int, tuple(int, int), optional
|
|
3343
|
+
:param _request_auth: set to override the auth_settings for an a single
|
|
3344
|
+
request; this effectively ignores the
|
|
3345
|
+
authentication in the spec for a single request.
|
|
3346
|
+
:type _request_auth: dict, optional
|
|
3347
|
+
:param _content_type: force content-type for the request.
|
|
3348
|
+
:type _content_type: str, Optional
|
|
3349
|
+
:param _headers: set to override the headers for a single
|
|
3350
|
+
request; this effectively ignores the headers
|
|
3351
|
+
in the spec for a single request.
|
|
3352
|
+
:type _headers: dict, optional
|
|
3353
|
+
:param _host_index: set to override the host_index for a single
|
|
3354
|
+
request; this effectively ignores the host_index
|
|
3355
|
+
in the spec for a single request.
|
|
3356
|
+
:type _host_index: int, optional
|
|
3357
|
+
:return: Returns the result object.
|
|
3358
|
+
""" # noqa: E501
|
|
3359
|
+
warnings.warn("PUT /validation-set/{validationSetId}/shouldalert is deprecated.", DeprecationWarning)
|
|
3360
|
+
|
|
3361
|
+
_param = self._validation_set_validation_set_id_shouldalert_put_serialize(
|
|
3362
|
+
validation_set_id=validation_set_id,
|
|
3363
|
+
update_should_alert_model=update_should_alert_model,
|
|
3364
|
+
_request_auth=_request_auth,
|
|
3365
|
+
_content_type=_content_type,
|
|
3366
|
+
_headers=_headers,
|
|
3367
|
+
_host_index=_host_index
|
|
3368
|
+
)
|
|
3369
|
+
|
|
3370
|
+
_response_types_map: Dict[str, Optional[str]] = {
|
|
3371
|
+
'204': None,
|
|
3372
|
+
}
|
|
3373
|
+
response_data = self.api_client.call_api(
|
|
3374
|
+
*_param,
|
|
3375
|
+
_request_timeout=_request_timeout
|
|
3376
|
+
)
|
|
3377
|
+
return response_data.response
|
|
3378
|
+
|
|
3379
|
+
|
|
3380
|
+
def _validation_set_validation_set_id_shouldalert_put_serialize(
|
|
3381
|
+
self,
|
|
3382
|
+
validation_set_id,
|
|
3383
|
+
update_should_alert_model,
|
|
3384
|
+
_request_auth,
|
|
3385
|
+
_content_type,
|
|
3386
|
+
_headers,
|
|
3387
|
+
_host_index,
|
|
3388
|
+
) -> RequestSerialized:
|
|
3389
|
+
|
|
3390
|
+
_host = None
|
|
3391
|
+
|
|
3392
|
+
_collection_formats: Dict[str, str] = {
|
|
3393
|
+
}
|
|
3394
|
+
|
|
3395
|
+
_path_params: Dict[str, str] = {}
|
|
3396
|
+
_query_params: List[Tuple[str, str]] = []
|
|
3397
|
+
_header_params: Dict[str, Optional[str]] = _headers or {}
|
|
3398
|
+
_form_params: List[Tuple[str, str]] = []
|
|
3399
|
+
_files: Dict[
|
|
3400
|
+
str, Union[str, bytes, List[str], List[bytes], List[Tuple[str, bytes]]]
|
|
3401
|
+
] = {}
|
|
3402
|
+
_body_params: Optional[bytes] = None
|
|
3403
|
+
|
|
3404
|
+
# process the path parameters
|
|
3405
|
+
if validation_set_id is not None:
|
|
3406
|
+
_path_params['validationSetId'] = validation_set_id
|
|
3407
|
+
# process the query parameters
|
|
3408
|
+
# process the header parameters
|
|
3409
|
+
# process the form parameters
|
|
3410
|
+
# process the body parameter
|
|
3411
|
+
if update_should_alert_model is not None:
|
|
3412
|
+
_body_params = update_should_alert_model
|
|
3413
|
+
|
|
3414
|
+
|
|
3415
|
+
|
|
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
|
+
|
|
3432
|
+
# authentication setting
|
|
3433
|
+
_auth_settings: List[str] = [
|
|
3434
|
+
'bearer',
|
|
3435
|
+
'oauth2'
|
|
3436
|
+
]
|
|
3437
|
+
|
|
3438
|
+
return self.api_client.param_serialize(
|
|
3439
|
+
method='PUT',
|
|
3440
|
+
resource_path='/validation-set/{validationSetId}/shouldalert',
|
|
2588
3441
|
path_params=_path_params,
|
|
2589
3442
|
query_params=_query_params,
|
|
2590
3443
|
header_params=_header_params,
|