rapidata 2.31.0__py3-none-any.whl → 2.31.2__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 +2 -0
- rapidata/api_client/api/__init__.py +1 -0
- rapidata/api_client/api/benchmark_api.py +26 -297
- rapidata/api_client/api/participant_api.py +1404 -0
- rapidata/api_client/models/__init__.py +1 -0
- rapidata/api_client/models/create_sample_model.py +87 -0
- rapidata/api_client_README.md +6 -1
- rapidata/rapidata_client/assets/data_type_enum.py +1 -0
- rapidata/rapidata_client/filter/rapidata_filters.py +2 -2
- rapidata/rapidata_client/order/rapidata_order_manager.py +25 -29
- rapidata/rapidata_client/validation/rapids/rapids.py +1 -1
- rapidata/rapidata_client/validation/rapids/rapids_manager.py +10 -11
- rapidata/rapidata_client/validation/validation_set_manager.py +5 -5
- {rapidata-2.31.0.dist-info → rapidata-2.31.2.dist-info}/METADATA +1 -1
- {rapidata-2.31.0.dist-info → rapidata-2.31.2.dist-info}/RECORD +18 -16
- {rapidata-2.31.0.dist-info → rapidata-2.31.2.dist-info}/LICENSE +0 -0
- {rapidata-2.31.0.dist-info → rapidata-2.31.2.dist-info}/WHEEL +0 -0
rapidata/__init__.py
CHANGED
rapidata/api_client/__init__.py
CHANGED
|
@@ -31,6 +31,7 @@ from rapidata.api_client.api.identity_api import IdentityApi
|
|
|
31
31
|
from rapidata.api_client.api.leaderboard_api import LeaderboardApi
|
|
32
32
|
from rapidata.api_client.api.newsletter_api import NewsletterApi
|
|
33
33
|
from rapidata.api_client.api.order_api import OrderApi
|
|
34
|
+
from rapidata.api_client.api.participant_api import ParticipantApi
|
|
34
35
|
from rapidata.api_client.api.pipeline_api import PipelineApi
|
|
35
36
|
from rapidata.api_client.api.rapidata_identity_api_api import RapidataIdentityAPIApi
|
|
36
37
|
from rapidata.api_client.api.simple_workflow_api import SimpleWorkflowApi
|
|
@@ -146,6 +147,7 @@ from rapidata.api_client.models.create_order_model_referee import CreateOrderMod
|
|
|
146
147
|
from rapidata.api_client.models.create_order_model_workflow import CreateOrderModelWorkflow
|
|
147
148
|
from rapidata.api_client.models.create_order_result import CreateOrderResult
|
|
148
149
|
from rapidata.api_client.models.create_rapid_result import CreateRapidResult
|
|
150
|
+
from rapidata.api_client.models.create_sample_model import CreateSampleModel
|
|
149
151
|
from rapidata.api_client.models.create_simple_pipeline_model import CreateSimplePipelineModel
|
|
150
152
|
from rapidata.api_client.models.create_simple_pipeline_model_artifacts_inner import CreateSimplePipelineModelArtifactsInner
|
|
151
153
|
from rapidata.api_client.models.create_simple_pipeline_model_pipeline_steps_inner import CreateSimplePipelineModelPipelineStepsInner
|
|
@@ -15,6 +15,7 @@ from rapidata.api_client.api.identity_api import IdentityApi
|
|
|
15
15
|
from rapidata.api_client.api.leaderboard_api import LeaderboardApi
|
|
16
16
|
from rapidata.api_client.api.newsletter_api import NewsletterApi
|
|
17
17
|
from rapidata.api_client.api.order_api import OrderApi
|
|
18
|
+
from rapidata.api_client.api.participant_api import ParticipantApi
|
|
18
19
|
from rapidata.api_client.api.pipeline_api import PipelineApi
|
|
19
20
|
from rapidata.api_client.api.rapidata_identity_api_api import RapidataIdentityAPIApi
|
|
20
21
|
from rapidata.api_client.api.simple_workflow_api import SimpleWorkflowApi
|
|
@@ -25,7 +25,6 @@ from rapidata.api_client.models.create_benchmark_participant_model import Create
|
|
|
25
25
|
from rapidata.api_client.models.create_benchmark_participant_result import CreateBenchmarkParticipantResult
|
|
26
26
|
from rapidata.api_client.models.create_benchmark_result import CreateBenchmarkResult
|
|
27
27
|
from rapidata.api_client.models.get_benchmark_by_id_result import GetBenchmarkByIdResult
|
|
28
|
-
from rapidata.api_client.models.get_participant_by_id_result import GetParticipantByIdResult
|
|
29
28
|
from rapidata.api_client.models.participant_by_benchmark_paged_result import ParticipantByBenchmarkPagedResult
|
|
30
29
|
from rapidata.api_client.models.prompt_by_benchmark_result_paged_result import PromptByBenchmarkResultPagedResult
|
|
31
30
|
from rapidata.api_client.models.query_model import QueryModel
|
|
@@ -849,8 +848,8 @@ class BenchmarkApi:
|
|
|
849
848
|
@validate_call
|
|
850
849
|
def benchmark_benchmark_id_participant_participant_id_delete(
|
|
851
850
|
self,
|
|
852
|
-
benchmark_id: StrictStr,
|
|
853
851
|
participant_id: StrictStr,
|
|
852
|
+
benchmark_id: StrictStr,
|
|
854
853
|
_request_timeout: Union[
|
|
855
854
|
None,
|
|
856
855
|
Annotated[StrictFloat, Field(gt=0)],
|
|
@@ -864,13 +863,13 @@ class BenchmarkApi:
|
|
|
864
863
|
_headers: Optional[Dict[StrictStr, Any]] = None,
|
|
865
864
|
_host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
|
|
866
865
|
) -> None:
|
|
867
|
-
"""Deletes a participant on a benchmark.
|
|
866
|
+
"""(Deprecated) Deletes a participant on a benchmark.
|
|
868
867
|
|
|
869
868
|
|
|
870
|
-
:param benchmark_id: (required)
|
|
871
|
-
:type benchmark_id: str
|
|
872
869
|
:param participant_id: (required)
|
|
873
870
|
:type participant_id: str
|
|
871
|
+
:param benchmark_id: (required)
|
|
872
|
+
:type benchmark_id: str
|
|
874
873
|
:param _request_timeout: timeout setting for this request. If one
|
|
875
874
|
number provided, it will be total request
|
|
876
875
|
timeout. It can also be a pair (tuple) of
|
|
@@ -892,10 +891,11 @@ class BenchmarkApi:
|
|
|
892
891
|
:type _host_index: int, optional
|
|
893
892
|
:return: Returns the result object.
|
|
894
893
|
""" # noqa: E501
|
|
894
|
+
warnings.warn("DELETE /benchmark/{benchmarkId}/participant/{participantId} is deprecated.", DeprecationWarning)
|
|
895
895
|
|
|
896
896
|
_param = self._benchmark_benchmark_id_participant_participant_id_delete_serialize(
|
|
897
|
-
benchmark_id=benchmark_id,
|
|
898
897
|
participant_id=participant_id,
|
|
898
|
+
benchmark_id=benchmark_id,
|
|
899
899
|
_request_auth=_request_auth,
|
|
900
900
|
_content_type=_content_type,
|
|
901
901
|
_headers=_headers,
|
|
@@ -919,8 +919,8 @@ class BenchmarkApi:
|
|
|
919
919
|
@validate_call
|
|
920
920
|
def benchmark_benchmark_id_participant_participant_id_delete_with_http_info(
|
|
921
921
|
self,
|
|
922
|
-
benchmark_id: StrictStr,
|
|
923
922
|
participant_id: StrictStr,
|
|
923
|
+
benchmark_id: StrictStr,
|
|
924
924
|
_request_timeout: Union[
|
|
925
925
|
None,
|
|
926
926
|
Annotated[StrictFloat, Field(gt=0)],
|
|
@@ -934,13 +934,13 @@ class BenchmarkApi:
|
|
|
934
934
|
_headers: Optional[Dict[StrictStr, Any]] = None,
|
|
935
935
|
_host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
|
|
936
936
|
) -> ApiResponse[None]:
|
|
937
|
-
"""Deletes a participant on a benchmark.
|
|
937
|
+
"""(Deprecated) Deletes a participant on a benchmark.
|
|
938
938
|
|
|
939
939
|
|
|
940
|
-
:param benchmark_id: (required)
|
|
941
|
-
:type benchmark_id: str
|
|
942
940
|
:param participant_id: (required)
|
|
943
941
|
:type participant_id: str
|
|
942
|
+
:param benchmark_id: (required)
|
|
943
|
+
:type benchmark_id: str
|
|
944
944
|
:param _request_timeout: timeout setting for this request. If one
|
|
945
945
|
number provided, it will be total request
|
|
946
946
|
timeout. It can also be a pair (tuple) of
|
|
@@ -962,10 +962,11 @@ class BenchmarkApi:
|
|
|
962
962
|
:type _host_index: int, optional
|
|
963
963
|
:return: Returns the result object.
|
|
964
964
|
""" # noqa: E501
|
|
965
|
+
warnings.warn("DELETE /benchmark/{benchmarkId}/participant/{participantId} is deprecated.", DeprecationWarning)
|
|
965
966
|
|
|
966
967
|
_param = self._benchmark_benchmark_id_participant_participant_id_delete_serialize(
|
|
967
|
-
benchmark_id=benchmark_id,
|
|
968
968
|
participant_id=participant_id,
|
|
969
|
+
benchmark_id=benchmark_id,
|
|
969
970
|
_request_auth=_request_auth,
|
|
970
971
|
_content_type=_content_type,
|
|
971
972
|
_headers=_headers,
|
|
@@ -989,8 +990,8 @@ class BenchmarkApi:
|
|
|
989
990
|
@validate_call
|
|
990
991
|
def benchmark_benchmark_id_participant_participant_id_delete_without_preload_content(
|
|
991
992
|
self,
|
|
992
|
-
benchmark_id: StrictStr,
|
|
993
993
|
participant_id: StrictStr,
|
|
994
|
+
benchmark_id: StrictStr,
|
|
994
995
|
_request_timeout: Union[
|
|
995
996
|
None,
|
|
996
997
|
Annotated[StrictFloat, Field(gt=0)],
|
|
@@ -1004,13 +1005,13 @@ class BenchmarkApi:
|
|
|
1004
1005
|
_headers: Optional[Dict[StrictStr, Any]] = None,
|
|
1005
1006
|
_host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
|
|
1006
1007
|
) -> RESTResponseType:
|
|
1007
|
-
"""Deletes a participant on a benchmark.
|
|
1008
|
+
"""(Deprecated) Deletes a participant on a benchmark.
|
|
1008
1009
|
|
|
1009
1010
|
|
|
1010
|
-
:param benchmark_id: (required)
|
|
1011
|
-
:type benchmark_id: str
|
|
1012
1011
|
:param participant_id: (required)
|
|
1013
1012
|
:type participant_id: str
|
|
1013
|
+
:param benchmark_id: (required)
|
|
1014
|
+
:type benchmark_id: str
|
|
1014
1015
|
:param _request_timeout: timeout setting for this request. If one
|
|
1015
1016
|
number provided, it will be total request
|
|
1016
1017
|
timeout. It can also be a pair (tuple) of
|
|
@@ -1032,10 +1033,11 @@ class BenchmarkApi:
|
|
|
1032
1033
|
:type _host_index: int, optional
|
|
1033
1034
|
:return: Returns the result object.
|
|
1034
1035
|
""" # noqa: E501
|
|
1036
|
+
warnings.warn("DELETE /benchmark/{benchmarkId}/participant/{participantId} is deprecated.", DeprecationWarning)
|
|
1035
1037
|
|
|
1036
1038
|
_param = self._benchmark_benchmark_id_participant_participant_id_delete_serialize(
|
|
1037
|
-
benchmark_id=benchmark_id,
|
|
1038
1039
|
participant_id=participant_id,
|
|
1040
|
+
benchmark_id=benchmark_id,
|
|
1039
1041
|
_request_auth=_request_auth,
|
|
1040
1042
|
_content_type=_content_type,
|
|
1041
1043
|
_headers=_headers,
|
|
@@ -1054,8 +1056,8 @@ class BenchmarkApi:
|
|
|
1054
1056
|
|
|
1055
1057
|
def _benchmark_benchmark_id_participant_participant_id_delete_serialize(
|
|
1056
1058
|
self,
|
|
1057
|
-
benchmark_id,
|
|
1058
1059
|
participant_id,
|
|
1060
|
+
benchmark_id,
|
|
1059
1061
|
_request_auth,
|
|
1060
1062
|
_content_type,
|
|
1061
1063
|
_headers,
|
|
@@ -1077,292 +1079,16 @@ class BenchmarkApi:
|
|
|
1077
1079
|
_body_params: Optional[bytes] = None
|
|
1078
1080
|
|
|
1079
1081
|
# process the path parameters
|
|
1080
|
-
if benchmark_id is not None:
|
|
1081
|
-
_path_params['benchmarkId'] = benchmark_id
|
|
1082
1082
|
if participant_id is not None:
|
|
1083
1083
|
_path_params['participantId'] = participant_id
|
|
1084
|
-
# process the query parameters
|
|
1085
|
-
# process the header parameters
|
|
1086
|
-
# process the form parameters
|
|
1087
|
-
# process the body parameter
|
|
1088
|
-
|
|
1089
|
-
|
|
1090
|
-
|
|
1091
|
-
|
|
1092
|
-
# authentication setting
|
|
1093
|
-
_auth_settings: List[str] = [
|
|
1094
|
-
'bearer',
|
|
1095
|
-
'oauth2'
|
|
1096
|
-
]
|
|
1097
|
-
|
|
1098
|
-
return self.api_client.param_serialize(
|
|
1099
|
-
method='DELETE',
|
|
1100
|
-
resource_path='/benchmark/{benchmarkId}/participant/{participantId}',
|
|
1101
|
-
path_params=_path_params,
|
|
1102
|
-
query_params=_query_params,
|
|
1103
|
-
header_params=_header_params,
|
|
1104
|
-
body=_body_params,
|
|
1105
|
-
post_params=_form_params,
|
|
1106
|
-
files=_files,
|
|
1107
|
-
auth_settings=_auth_settings,
|
|
1108
|
-
collection_formats=_collection_formats,
|
|
1109
|
-
_host=_host,
|
|
1110
|
-
_request_auth=_request_auth
|
|
1111
|
-
)
|
|
1112
|
-
|
|
1113
|
-
|
|
1114
|
-
|
|
1115
|
-
|
|
1116
|
-
@validate_call
|
|
1117
|
-
def benchmark_benchmark_id_participant_participant_id_get(
|
|
1118
|
-
self,
|
|
1119
|
-
benchmark_id: StrictStr,
|
|
1120
|
-
participant_id: StrictStr,
|
|
1121
|
-
_request_timeout: Union[
|
|
1122
|
-
None,
|
|
1123
|
-
Annotated[StrictFloat, Field(gt=0)],
|
|
1124
|
-
Tuple[
|
|
1125
|
-
Annotated[StrictFloat, Field(gt=0)],
|
|
1126
|
-
Annotated[StrictFloat, Field(gt=0)]
|
|
1127
|
-
]
|
|
1128
|
-
] = None,
|
|
1129
|
-
_request_auth: Optional[Dict[StrictStr, Any]] = None,
|
|
1130
|
-
_content_type: Optional[StrictStr] = None,
|
|
1131
|
-
_headers: Optional[Dict[StrictStr, Any]] = None,
|
|
1132
|
-
_host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
|
|
1133
|
-
) -> GetParticipantByIdResult:
|
|
1134
|
-
"""Gets a participant by it's Id.
|
|
1135
|
-
|
|
1136
|
-
|
|
1137
|
-
:param benchmark_id: (required)
|
|
1138
|
-
:type benchmark_id: str
|
|
1139
|
-
:param participant_id: (required)
|
|
1140
|
-
:type participant_id: str
|
|
1141
|
-
:param _request_timeout: timeout setting for this request. If one
|
|
1142
|
-
number provided, it will be total request
|
|
1143
|
-
timeout. It can also be a pair (tuple) of
|
|
1144
|
-
(connection, read) timeouts.
|
|
1145
|
-
:type _request_timeout: int, tuple(int, int), optional
|
|
1146
|
-
:param _request_auth: set to override the auth_settings for an a single
|
|
1147
|
-
request; this effectively ignores the
|
|
1148
|
-
authentication in the spec for a single request.
|
|
1149
|
-
:type _request_auth: dict, optional
|
|
1150
|
-
:param _content_type: force content-type for the request.
|
|
1151
|
-
:type _content_type: str, Optional
|
|
1152
|
-
:param _headers: set to override the headers for a single
|
|
1153
|
-
request; this effectively ignores the headers
|
|
1154
|
-
in the spec for a single request.
|
|
1155
|
-
:type _headers: dict, optional
|
|
1156
|
-
:param _host_index: set to override the host_index for a single
|
|
1157
|
-
request; this effectively ignores the host_index
|
|
1158
|
-
in the spec for a single request.
|
|
1159
|
-
:type _host_index: int, optional
|
|
1160
|
-
:return: Returns the result object.
|
|
1161
|
-
""" # noqa: E501
|
|
1162
|
-
|
|
1163
|
-
_param = self._benchmark_benchmark_id_participant_participant_id_get_serialize(
|
|
1164
|
-
benchmark_id=benchmark_id,
|
|
1165
|
-
participant_id=participant_id,
|
|
1166
|
-
_request_auth=_request_auth,
|
|
1167
|
-
_content_type=_content_type,
|
|
1168
|
-
_headers=_headers,
|
|
1169
|
-
_host_index=_host_index
|
|
1170
|
-
)
|
|
1171
|
-
|
|
1172
|
-
_response_types_map: Dict[str, Optional[str]] = {
|
|
1173
|
-
'200': "GetParticipantByIdResult",
|
|
1174
|
-
}
|
|
1175
|
-
response_data = self.api_client.call_api(
|
|
1176
|
-
*_param,
|
|
1177
|
-
_request_timeout=_request_timeout
|
|
1178
|
-
)
|
|
1179
|
-
response_data.read()
|
|
1180
|
-
return self.api_client.response_deserialize(
|
|
1181
|
-
response_data=response_data,
|
|
1182
|
-
response_types_map=_response_types_map,
|
|
1183
|
-
).data
|
|
1184
|
-
|
|
1185
|
-
|
|
1186
|
-
@validate_call
|
|
1187
|
-
def benchmark_benchmark_id_participant_participant_id_get_with_http_info(
|
|
1188
|
-
self,
|
|
1189
|
-
benchmark_id: StrictStr,
|
|
1190
|
-
participant_id: StrictStr,
|
|
1191
|
-
_request_timeout: Union[
|
|
1192
|
-
None,
|
|
1193
|
-
Annotated[StrictFloat, Field(gt=0)],
|
|
1194
|
-
Tuple[
|
|
1195
|
-
Annotated[StrictFloat, Field(gt=0)],
|
|
1196
|
-
Annotated[StrictFloat, Field(gt=0)]
|
|
1197
|
-
]
|
|
1198
|
-
] = None,
|
|
1199
|
-
_request_auth: Optional[Dict[StrictStr, Any]] = None,
|
|
1200
|
-
_content_type: Optional[StrictStr] = None,
|
|
1201
|
-
_headers: Optional[Dict[StrictStr, Any]] = None,
|
|
1202
|
-
_host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
|
|
1203
|
-
) -> ApiResponse[GetParticipantByIdResult]:
|
|
1204
|
-
"""Gets a participant by it's Id.
|
|
1205
|
-
|
|
1206
|
-
|
|
1207
|
-
:param benchmark_id: (required)
|
|
1208
|
-
:type benchmark_id: str
|
|
1209
|
-
:param participant_id: (required)
|
|
1210
|
-
:type participant_id: str
|
|
1211
|
-
:param _request_timeout: timeout setting for this request. If one
|
|
1212
|
-
number provided, it will be total request
|
|
1213
|
-
timeout. It can also be a pair (tuple) of
|
|
1214
|
-
(connection, read) timeouts.
|
|
1215
|
-
:type _request_timeout: int, tuple(int, int), optional
|
|
1216
|
-
:param _request_auth: set to override the auth_settings for an a single
|
|
1217
|
-
request; this effectively ignores the
|
|
1218
|
-
authentication in the spec for a single request.
|
|
1219
|
-
:type _request_auth: dict, optional
|
|
1220
|
-
:param _content_type: force content-type for the request.
|
|
1221
|
-
:type _content_type: str, Optional
|
|
1222
|
-
:param _headers: set to override the headers for a single
|
|
1223
|
-
request; this effectively ignores the headers
|
|
1224
|
-
in the spec for a single request.
|
|
1225
|
-
:type _headers: dict, optional
|
|
1226
|
-
:param _host_index: set to override the host_index for a single
|
|
1227
|
-
request; this effectively ignores the host_index
|
|
1228
|
-
in the spec for a single request.
|
|
1229
|
-
:type _host_index: int, optional
|
|
1230
|
-
:return: Returns the result object.
|
|
1231
|
-
""" # noqa: E501
|
|
1232
|
-
|
|
1233
|
-
_param = self._benchmark_benchmark_id_participant_participant_id_get_serialize(
|
|
1234
|
-
benchmark_id=benchmark_id,
|
|
1235
|
-
participant_id=participant_id,
|
|
1236
|
-
_request_auth=_request_auth,
|
|
1237
|
-
_content_type=_content_type,
|
|
1238
|
-
_headers=_headers,
|
|
1239
|
-
_host_index=_host_index
|
|
1240
|
-
)
|
|
1241
|
-
|
|
1242
|
-
_response_types_map: Dict[str, Optional[str]] = {
|
|
1243
|
-
'200': "GetParticipantByIdResult",
|
|
1244
|
-
}
|
|
1245
|
-
response_data = self.api_client.call_api(
|
|
1246
|
-
*_param,
|
|
1247
|
-
_request_timeout=_request_timeout
|
|
1248
|
-
)
|
|
1249
|
-
response_data.read()
|
|
1250
|
-
return self.api_client.response_deserialize(
|
|
1251
|
-
response_data=response_data,
|
|
1252
|
-
response_types_map=_response_types_map,
|
|
1253
|
-
)
|
|
1254
|
-
|
|
1255
|
-
|
|
1256
|
-
@validate_call
|
|
1257
|
-
def benchmark_benchmark_id_participant_participant_id_get_without_preload_content(
|
|
1258
|
-
self,
|
|
1259
|
-
benchmark_id: StrictStr,
|
|
1260
|
-
participant_id: StrictStr,
|
|
1261
|
-
_request_timeout: Union[
|
|
1262
|
-
None,
|
|
1263
|
-
Annotated[StrictFloat, Field(gt=0)],
|
|
1264
|
-
Tuple[
|
|
1265
|
-
Annotated[StrictFloat, Field(gt=0)],
|
|
1266
|
-
Annotated[StrictFloat, Field(gt=0)]
|
|
1267
|
-
]
|
|
1268
|
-
] = None,
|
|
1269
|
-
_request_auth: Optional[Dict[StrictStr, Any]] = None,
|
|
1270
|
-
_content_type: Optional[StrictStr] = None,
|
|
1271
|
-
_headers: Optional[Dict[StrictStr, Any]] = None,
|
|
1272
|
-
_host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
|
|
1273
|
-
) -> RESTResponseType:
|
|
1274
|
-
"""Gets a participant by it's Id.
|
|
1275
|
-
|
|
1276
|
-
|
|
1277
|
-
:param benchmark_id: (required)
|
|
1278
|
-
:type benchmark_id: str
|
|
1279
|
-
:param participant_id: (required)
|
|
1280
|
-
:type participant_id: str
|
|
1281
|
-
:param _request_timeout: timeout setting for this request. If one
|
|
1282
|
-
number provided, it will be total request
|
|
1283
|
-
timeout. It can also be a pair (tuple) of
|
|
1284
|
-
(connection, read) timeouts.
|
|
1285
|
-
:type _request_timeout: int, tuple(int, int), optional
|
|
1286
|
-
:param _request_auth: set to override the auth_settings for an a single
|
|
1287
|
-
request; this effectively ignores the
|
|
1288
|
-
authentication in the spec for a single request.
|
|
1289
|
-
:type _request_auth: dict, optional
|
|
1290
|
-
:param _content_type: force content-type for the request.
|
|
1291
|
-
:type _content_type: str, Optional
|
|
1292
|
-
:param _headers: set to override the headers for a single
|
|
1293
|
-
request; this effectively ignores the headers
|
|
1294
|
-
in the spec for a single request.
|
|
1295
|
-
:type _headers: dict, optional
|
|
1296
|
-
:param _host_index: set to override the host_index for a single
|
|
1297
|
-
request; this effectively ignores the host_index
|
|
1298
|
-
in the spec for a single request.
|
|
1299
|
-
:type _host_index: int, optional
|
|
1300
|
-
:return: Returns the result object.
|
|
1301
|
-
""" # noqa: E501
|
|
1302
|
-
|
|
1303
|
-
_param = self._benchmark_benchmark_id_participant_participant_id_get_serialize(
|
|
1304
|
-
benchmark_id=benchmark_id,
|
|
1305
|
-
participant_id=participant_id,
|
|
1306
|
-
_request_auth=_request_auth,
|
|
1307
|
-
_content_type=_content_type,
|
|
1308
|
-
_headers=_headers,
|
|
1309
|
-
_host_index=_host_index
|
|
1310
|
-
)
|
|
1311
|
-
|
|
1312
|
-
_response_types_map: Dict[str, Optional[str]] = {
|
|
1313
|
-
'200': "GetParticipantByIdResult",
|
|
1314
|
-
}
|
|
1315
|
-
response_data = self.api_client.call_api(
|
|
1316
|
-
*_param,
|
|
1317
|
-
_request_timeout=_request_timeout
|
|
1318
|
-
)
|
|
1319
|
-
return response_data.response
|
|
1320
|
-
|
|
1321
|
-
|
|
1322
|
-
def _benchmark_benchmark_id_participant_participant_id_get_serialize(
|
|
1323
|
-
self,
|
|
1324
|
-
benchmark_id,
|
|
1325
|
-
participant_id,
|
|
1326
|
-
_request_auth,
|
|
1327
|
-
_content_type,
|
|
1328
|
-
_headers,
|
|
1329
|
-
_host_index,
|
|
1330
|
-
) -> RequestSerialized:
|
|
1331
|
-
|
|
1332
|
-
_host = None
|
|
1333
|
-
|
|
1334
|
-
_collection_formats: Dict[str, str] = {
|
|
1335
|
-
}
|
|
1336
|
-
|
|
1337
|
-
_path_params: Dict[str, str] = {}
|
|
1338
|
-
_query_params: List[Tuple[str, str]] = []
|
|
1339
|
-
_header_params: Dict[str, Optional[str]] = _headers or {}
|
|
1340
|
-
_form_params: List[Tuple[str, str]] = []
|
|
1341
|
-
_files: Dict[
|
|
1342
|
-
str, Union[str, bytes, List[str], List[bytes], List[Tuple[str, bytes]]]
|
|
1343
|
-
] = {}
|
|
1344
|
-
_body_params: Optional[bytes] = None
|
|
1345
|
-
|
|
1346
|
-
# process the path parameters
|
|
1347
1084
|
if benchmark_id is not None:
|
|
1348
1085
|
_path_params['benchmarkId'] = benchmark_id
|
|
1349
|
-
if participant_id is not None:
|
|
1350
|
-
_path_params['participantId'] = participant_id
|
|
1351
1086
|
# process the query parameters
|
|
1352
1087
|
# process the header parameters
|
|
1353
1088
|
# process the form parameters
|
|
1354
1089
|
# process the body parameter
|
|
1355
1090
|
|
|
1356
1091
|
|
|
1357
|
-
# set the HTTP header `Accept`
|
|
1358
|
-
if 'Accept' not in _header_params:
|
|
1359
|
-
_header_params['Accept'] = self.api_client.select_header_accept(
|
|
1360
|
-
[
|
|
1361
|
-
'text/plain',
|
|
1362
|
-
'application/json',
|
|
1363
|
-
'text/json'
|
|
1364
|
-
]
|
|
1365
|
-
)
|
|
1366
1092
|
|
|
1367
1093
|
|
|
1368
1094
|
# authentication setting
|
|
@@ -1372,7 +1098,7 @@ class BenchmarkApi:
|
|
|
1372
1098
|
]
|
|
1373
1099
|
|
|
1374
1100
|
return self.api_client.param_serialize(
|
|
1375
|
-
method='
|
|
1101
|
+
method='DELETE',
|
|
1376
1102
|
resource_path='/benchmark/{benchmarkId}/participant/{participantId}',
|
|
1377
1103
|
path_params=_path_params,
|
|
1378
1104
|
query_params=_query_params,
|
|
@@ -1935,7 +1661,7 @@ class BenchmarkApi:
|
|
|
1935
1661
|
_headers: Optional[Dict[StrictStr, Any]] = None,
|
|
1936
1662
|
_host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
|
|
1937
1663
|
) -> SubmitParticipantResult:
|
|
1938
|
-
"""Submits a participant to a benchmark.
|
|
1664
|
+
"""(Deprecated) Submits a participant to a benchmark.
|
|
1939
1665
|
|
|
1940
1666
|
|
|
1941
1667
|
:param benchmark_id: (required)
|
|
@@ -1963,6 +1689,7 @@ class BenchmarkApi:
|
|
|
1963
1689
|
:type _host_index: int, optional
|
|
1964
1690
|
:return: Returns the result object.
|
|
1965
1691
|
""" # noqa: E501
|
|
1692
|
+
warnings.warn("POST /benchmark/{benchmarkId}/participants/{participantId}/submit is deprecated.", DeprecationWarning)
|
|
1966
1693
|
|
|
1967
1694
|
_param = self._benchmark_benchmark_id_participants_participant_id_submit_post_serialize(
|
|
1968
1695
|
benchmark_id=benchmark_id,
|
|
@@ -2005,7 +1732,7 @@ class BenchmarkApi:
|
|
|
2005
1732
|
_headers: Optional[Dict[StrictStr, Any]] = None,
|
|
2006
1733
|
_host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
|
|
2007
1734
|
) -> ApiResponse[SubmitParticipantResult]:
|
|
2008
|
-
"""Submits a participant to a benchmark.
|
|
1735
|
+
"""(Deprecated) Submits a participant to a benchmark.
|
|
2009
1736
|
|
|
2010
1737
|
|
|
2011
1738
|
:param benchmark_id: (required)
|
|
@@ -2033,6 +1760,7 @@ class BenchmarkApi:
|
|
|
2033
1760
|
:type _host_index: int, optional
|
|
2034
1761
|
:return: Returns the result object.
|
|
2035
1762
|
""" # noqa: E501
|
|
1763
|
+
warnings.warn("POST /benchmark/{benchmarkId}/participants/{participantId}/submit is deprecated.", DeprecationWarning)
|
|
2036
1764
|
|
|
2037
1765
|
_param = self._benchmark_benchmark_id_participants_participant_id_submit_post_serialize(
|
|
2038
1766
|
benchmark_id=benchmark_id,
|
|
@@ -2075,7 +1803,7 @@ class BenchmarkApi:
|
|
|
2075
1803
|
_headers: Optional[Dict[StrictStr, Any]] = None,
|
|
2076
1804
|
_host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
|
|
2077
1805
|
) -> RESTResponseType:
|
|
2078
|
-
"""Submits a participant to a benchmark.
|
|
1806
|
+
"""(Deprecated) Submits a participant to a benchmark.
|
|
2079
1807
|
|
|
2080
1808
|
|
|
2081
1809
|
:param benchmark_id: (required)
|
|
@@ -2103,6 +1831,7 @@ class BenchmarkApi:
|
|
|
2103
1831
|
:type _host_index: int, optional
|
|
2104
1832
|
:return: Returns the result object.
|
|
2105
1833
|
""" # noqa: E501
|
|
1834
|
+
warnings.warn("POST /benchmark/{benchmarkId}/participants/{participantId}/submit is deprecated.", DeprecationWarning)
|
|
2106
1835
|
|
|
2107
1836
|
_param = self._benchmark_benchmark_id_participants_participant_id_submit_post_serialize(
|
|
2108
1837
|
benchmark_id=benchmark_id,
|