rapidata 2.39.0__py3-none-any.whl → 2.40.0__py3-none-any.whl

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.

Potentially problematic release.


This version of rapidata might be problematic. Click here for more details.

@@ -20,22 +20,16 @@ from pydantic import Field, StrictBool, StrictStr
20
20
  from typing import List, Optional
21
21
  from typing_extensions import Annotated
22
22
  from rapidata.api_client.models.boost_leaderboard_model import BoostLeaderboardModel
23
- from rapidata.api_client.models.create_benchmark_participant_model import CreateBenchmarkParticipantModel
24
- from rapidata.api_client.models.create_benchmark_participant_result import CreateBenchmarkParticipantResult
25
23
  from rapidata.api_client.models.create_leaderboard_model import CreateLeaderboardModel
26
24
  from rapidata.api_client.models.create_leaderboard_result import CreateLeaderboardResult
27
25
  from rapidata.api_client.models.get_leaderboard_by_id_result import GetLeaderboardByIdResult
28
26
  from rapidata.api_client.models.get_standing_by_id_result import GetStandingByIdResult
29
27
  from rapidata.api_client.models.leaderboard_query_result_paged_result import LeaderboardQueryResultPagedResult
30
- from rapidata.api_client.models.prompt_by_benchmark_result_paged_result import PromptByBenchmarkResultPagedResult
31
28
  from rapidata.api_client.models.query_model import QueryModel
32
29
  from rapidata.api_client.models.runs_by_leaderboard_result_paged_result import RunsByLeaderboardResultPagedResult
33
- from rapidata.api_client.models.standing_by_leaderboard_paged_result import StandingByLeaderboardPagedResult
34
30
  from rapidata.api_client.models.standings_by_leaderboard_result import StandingsByLeaderboardResult
35
31
  from rapidata.api_client.models.submit_participant_result import SubmitParticipantResult
36
32
  from rapidata.api_client.models.update_leaderboard_model import UpdateLeaderboardModel
37
- from rapidata.api_client.models.update_leaderboard_name_model import UpdateLeaderboardNameModel
38
- from rapidata.api_client.models.update_leaderboard_response_config_model import UpdateLeaderboardResponseConfigModel
39
33
 
40
34
  from rapidata.api_client.api_client import ApiClient, RequestSerialized
41
35
  from rapidata.api_client.api_response import ApiResponse
@@ -1136,2260 +1130,10 @@ class LeaderboardApi:
1136
1130
 
1137
1131
 
1138
1132
  @validate_call
1139
- def leaderboard_leaderboard_id_name_put(
1140
- self,
1141
- leaderboard_id: StrictStr,
1142
- update_leaderboard_name_model: Optional[UpdateLeaderboardNameModel] = None,
1143
- _request_timeout: Union[
1144
- None,
1145
- Annotated[StrictFloat, Field(gt=0)],
1146
- Tuple[
1147
- Annotated[StrictFloat, Field(gt=0)],
1148
- Annotated[StrictFloat, Field(gt=0)]
1149
- ]
1150
- ] = None,
1151
- _request_auth: Optional[Dict[StrictStr, Any]] = None,
1152
- _content_type: Optional[StrictStr] = None,
1153
- _headers: Optional[Dict[StrictStr, Any]] = None,
1154
- _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
1155
- ) -> None:
1156
- """(Deprecated) Updates the name of a leaderboard.
1157
-
1158
-
1159
- :param leaderboard_id: (required)
1160
- :type leaderboard_id: str
1161
- :param update_leaderboard_name_model:
1162
- :type update_leaderboard_name_model: UpdateLeaderboardNameModel
1163
- :param _request_timeout: timeout setting for this request. If one
1164
- number provided, it will be total request
1165
- timeout. It can also be a pair (tuple) of
1166
- (connection, read) timeouts.
1167
- :type _request_timeout: int, tuple(int, int), optional
1168
- :param _request_auth: set to override the auth_settings for an a single
1169
- request; this effectively ignores the
1170
- authentication in the spec for a single request.
1171
- :type _request_auth: dict, optional
1172
- :param _content_type: force content-type for the request.
1173
- :type _content_type: str, Optional
1174
- :param _headers: set to override the headers for a single
1175
- request; this effectively ignores the headers
1176
- in the spec for a single request.
1177
- :type _headers: dict, optional
1178
- :param _host_index: set to override the host_index for a single
1179
- request; this effectively ignores the host_index
1180
- in the spec for a single request.
1181
- :type _host_index: int, optional
1182
- :return: Returns the result object.
1183
- """ # noqa: E501
1184
- warnings.warn("PUT /leaderboard/{leaderboardId}/name is deprecated.", DeprecationWarning)
1185
-
1186
- _param = self._leaderboard_leaderboard_id_name_put_serialize(
1187
- leaderboard_id=leaderboard_id,
1188
- update_leaderboard_name_model=update_leaderboard_name_model,
1189
- _request_auth=_request_auth,
1190
- _content_type=_content_type,
1191
- _headers=_headers,
1192
- _host_index=_host_index
1193
- )
1194
-
1195
- _response_types_map: Dict[str, Optional[str]] = {
1196
- '204': None,
1197
- }
1198
- response_data = self.api_client.call_api(
1199
- *_param,
1200
- _request_timeout=_request_timeout
1201
- )
1202
- response_data.read()
1203
- return self.api_client.response_deserialize(
1204
- response_data=response_data,
1205
- response_types_map=_response_types_map,
1206
- ).data
1207
-
1208
-
1209
- @validate_call
1210
- def leaderboard_leaderboard_id_name_put_with_http_info(
1211
- self,
1212
- leaderboard_id: StrictStr,
1213
- update_leaderboard_name_model: Optional[UpdateLeaderboardNameModel] = None,
1214
- _request_timeout: Union[
1215
- None,
1216
- Annotated[StrictFloat, Field(gt=0)],
1217
- Tuple[
1218
- Annotated[StrictFloat, Field(gt=0)],
1219
- Annotated[StrictFloat, Field(gt=0)]
1220
- ]
1221
- ] = None,
1222
- _request_auth: Optional[Dict[StrictStr, Any]] = None,
1223
- _content_type: Optional[StrictStr] = None,
1224
- _headers: Optional[Dict[StrictStr, Any]] = None,
1225
- _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
1226
- ) -> ApiResponse[None]:
1227
- """(Deprecated) Updates the name of a leaderboard.
1228
-
1229
-
1230
- :param leaderboard_id: (required)
1231
- :type leaderboard_id: str
1232
- :param update_leaderboard_name_model:
1233
- :type update_leaderboard_name_model: UpdateLeaderboardNameModel
1234
- :param _request_timeout: timeout setting for this request. If one
1235
- number provided, it will be total request
1236
- timeout. It can also be a pair (tuple) of
1237
- (connection, read) timeouts.
1238
- :type _request_timeout: int, tuple(int, int), optional
1239
- :param _request_auth: set to override the auth_settings for an a single
1240
- request; this effectively ignores the
1241
- authentication in the spec for a single request.
1242
- :type _request_auth: dict, optional
1243
- :param _content_type: force content-type for the request.
1244
- :type _content_type: str, Optional
1245
- :param _headers: set to override the headers for a single
1246
- request; this effectively ignores the headers
1247
- in the spec for a single request.
1248
- :type _headers: dict, optional
1249
- :param _host_index: set to override the host_index for a single
1250
- request; this effectively ignores the host_index
1251
- in the spec for a single request.
1252
- :type _host_index: int, optional
1253
- :return: Returns the result object.
1254
- """ # noqa: E501
1255
- warnings.warn("PUT /leaderboard/{leaderboardId}/name is deprecated.", DeprecationWarning)
1256
-
1257
- _param = self._leaderboard_leaderboard_id_name_put_serialize(
1258
- leaderboard_id=leaderboard_id,
1259
- update_leaderboard_name_model=update_leaderboard_name_model,
1260
- _request_auth=_request_auth,
1261
- _content_type=_content_type,
1262
- _headers=_headers,
1263
- _host_index=_host_index
1264
- )
1265
-
1266
- _response_types_map: Dict[str, Optional[str]] = {
1267
- '204': None,
1268
- }
1269
- response_data = self.api_client.call_api(
1270
- *_param,
1271
- _request_timeout=_request_timeout
1272
- )
1273
- response_data.read()
1274
- return self.api_client.response_deserialize(
1275
- response_data=response_data,
1276
- response_types_map=_response_types_map,
1277
- )
1278
-
1279
-
1280
- @validate_call
1281
- def leaderboard_leaderboard_id_name_put_without_preload_content(
1282
- self,
1283
- leaderboard_id: StrictStr,
1284
- update_leaderboard_name_model: Optional[UpdateLeaderboardNameModel] = None,
1285
- _request_timeout: Union[
1286
- None,
1287
- Annotated[StrictFloat, Field(gt=0)],
1288
- Tuple[
1289
- Annotated[StrictFloat, Field(gt=0)],
1290
- Annotated[StrictFloat, Field(gt=0)]
1291
- ]
1292
- ] = None,
1293
- _request_auth: Optional[Dict[StrictStr, Any]] = None,
1294
- _content_type: Optional[StrictStr] = None,
1295
- _headers: Optional[Dict[StrictStr, Any]] = None,
1296
- _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
1297
- ) -> RESTResponseType:
1298
- """(Deprecated) Updates the name of a leaderboard.
1299
-
1300
-
1301
- :param leaderboard_id: (required)
1302
- :type leaderboard_id: str
1303
- :param update_leaderboard_name_model:
1304
- :type update_leaderboard_name_model: UpdateLeaderboardNameModel
1305
- :param _request_timeout: timeout setting for this request. If one
1306
- number provided, it will be total request
1307
- timeout. It can also be a pair (tuple) of
1308
- (connection, read) timeouts.
1309
- :type _request_timeout: int, tuple(int, int), optional
1310
- :param _request_auth: set to override the auth_settings for an a single
1311
- request; this effectively ignores the
1312
- authentication in the spec for a single request.
1313
- :type _request_auth: dict, optional
1314
- :param _content_type: force content-type for the request.
1315
- :type _content_type: str, Optional
1316
- :param _headers: set to override the headers for a single
1317
- request; this effectively ignores the headers
1318
- in the spec for a single request.
1319
- :type _headers: dict, optional
1320
- :param _host_index: set to override the host_index for a single
1321
- request; this effectively ignores the host_index
1322
- in the spec for a single request.
1323
- :type _host_index: int, optional
1324
- :return: Returns the result object.
1325
- """ # noqa: E501
1326
- warnings.warn("PUT /leaderboard/{leaderboardId}/name is deprecated.", DeprecationWarning)
1327
-
1328
- _param = self._leaderboard_leaderboard_id_name_put_serialize(
1329
- leaderboard_id=leaderboard_id,
1330
- update_leaderboard_name_model=update_leaderboard_name_model,
1331
- _request_auth=_request_auth,
1332
- _content_type=_content_type,
1333
- _headers=_headers,
1334
- _host_index=_host_index
1335
- )
1336
-
1337
- _response_types_map: Dict[str, Optional[str]] = {
1338
- '204': None,
1339
- }
1340
- response_data = self.api_client.call_api(
1341
- *_param,
1342
- _request_timeout=_request_timeout
1343
- )
1344
- return response_data.response
1345
-
1346
-
1347
- def _leaderboard_leaderboard_id_name_put_serialize(
1348
- self,
1349
- leaderboard_id,
1350
- update_leaderboard_name_model,
1351
- _request_auth,
1352
- _content_type,
1353
- _headers,
1354
- _host_index,
1355
- ) -> RequestSerialized:
1356
-
1357
- _host = None
1358
-
1359
- _collection_formats: Dict[str, str] = {
1360
- }
1361
-
1362
- _path_params: Dict[str, str] = {}
1363
- _query_params: List[Tuple[str, str]] = []
1364
- _header_params: Dict[str, Optional[str]] = _headers or {}
1365
- _form_params: List[Tuple[str, str]] = []
1366
- _files: Dict[
1367
- str, Union[str, bytes, List[str], List[bytes], List[Tuple[str, bytes]]]
1368
- ] = {}
1369
- _body_params: Optional[bytes] = None
1370
-
1371
- # process the path parameters
1372
- if leaderboard_id is not None:
1373
- _path_params['leaderboardId'] = leaderboard_id
1374
- # process the query parameters
1375
- # process the header parameters
1376
- # process the form parameters
1377
- # process the body parameter
1378
- if update_leaderboard_name_model is not None:
1379
- _body_params = update_leaderboard_name_model
1380
-
1381
-
1382
-
1383
- # set the HTTP header `Content-Type`
1384
- if _content_type:
1385
- _header_params['Content-Type'] = _content_type
1386
- else:
1387
- _default_content_type = (
1388
- self.api_client.select_header_content_type(
1389
- [
1390
- 'application/json',
1391
- 'text/json',
1392
- 'application/*+json'
1393
- ]
1394
- )
1395
- )
1396
- if _default_content_type is not None:
1397
- _header_params['Content-Type'] = _default_content_type
1398
-
1399
- # authentication setting
1400
- _auth_settings: List[str] = [
1401
- 'bearer',
1402
- 'oauth2'
1403
- ]
1404
-
1405
- return self.api_client.param_serialize(
1406
- method='PUT',
1407
- resource_path='/leaderboard/{leaderboardId}/name',
1408
- path_params=_path_params,
1409
- query_params=_query_params,
1410
- header_params=_header_params,
1411
- body=_body_params,
1412
- post_params=_form_params,
1413
- files=_files,
1414
- auth_settings=_auth_settings,
1415
- collection_formats=_collection_formats,
1416
- _host=_host,
1417
- _request_auth=_request_auth
1418
- )
1419
-
1420
-
1421
-
1422
-
1423
- @validate_call
1424
- def leaderboard_leaderboard_id_participant_participant_id_get(
1425
- self,
1426
- leaderboard_id: StrictStr,
1427
- participant_id: StrictStr,
1428
- _request_timeout: Union[
1429
- None,
1430
- Annotated[StrictFloat, Field(gt=0)],
1431
- Tuple[
1432
- Annotated[StrictFloat, Field(gt=0)],
1433
- Annotated[StrictFloat, Field(gt=0)]
1434
- ]
1435
- ] = None,
1436
- _request_auth: Optional[Dict[StrictStr, Any]] = None,
1437
- _content_type: Optional[StrictStr] = None,
1438
- _headers: Optional[Dict[StrictStr, Any]] = None,
1439
- _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
1440
- ) -> GetStandingByIdResult:
1441
- """(Deprecated) Gets a participant by its ID.
1442
-
1443
-
1444
- :param leaderboard_id: (required)
1445
- :type leaderboard_id: str
1446
- :param participant_id: (required)
1447
- :type participant_id: str
1448
- :param _request_timeout: timeout setting for this request. If one
1449
- number provided, it will be total request
1450
- timeout. It can also be a pair (tuple) of
1451
- (connection, read) timeouts.
1452
- :type _request_timeout: int, tuple(int, int), optional
1453
- :param _request_auth: set to override the auth_settings for an a single
1454
- request; this effectively ignores the
1455
- authentication in the spec for a single request.
1456
- :type _request_auth: dict, optional
1457
- :param _content_type: force content-type for the request.
1458
- :type _content_type: str, Optional
1459
- :param _headers: set to override the headers for a single
1460
- request; this effectively ignores the headers
1461
- in the spec for a single request.
1462
- :type _headers: dict, optional
1463
- :param _host_index: set to override the host_index for a single
1464
- request; this effectively ignores the host_index
1465
- in the spec for a single request.
1466
- :type _host_index: int, optional
1467
- :return: Returns the result object.
1468
- """ # noqa: E501
1469
- warnings.warn("GET /leaderboard/{leaderboardId}/participant/{participantId} is deprecated.", DeprecationWarning)
1470
-
1471
- _param = self._leaderboard_leaderboard_id_participant_participant_id_get_serialize(
1472
- leaderboard_id=leaderboard_id,
1473
- participant_id=participant_id,
1474
- _request_auth=_request_auth,
1475
- _content_type=_content_type,
1476
- _headers=_headers,
1477
- _host_index=_host_index
1478
- )
1479
-
1480
- _response_types_map: Dict[str, Optional[str]] = {
1481
- '200': "GetStandingByIdResult",
1482
- }
1483
- response_data = self.api_client.call_api(
1484
- *_param,
1485
- _request_timeout=_request_timeout
1486
- )
1487
- response_data.read()
1488
- return self.api_client.response_deserialize(
1489
- response_data=response_data,
1490
- response_types_map=_response_types_map,
1491
- ).data
1492
-
1493
-
1494
- @validate_call
1495
- def leaderboard_leaderboard_id_participant_participant_id_get_with_http_info(
1496
- self,
1497
- leaderboard_id: StrictStr,
1498
- participant_id: StrictStr,
1499
- _request_timeout: Union[
1500
- None,
1501
- Annotated[StrictFloat, Field(gt=0)],
1502
- Tuple[
1503
- Annotated[StrictFloat, Field(gt=0)],
1504
- Annotated[StrictFloat, Field(gt=0)]
1505
- ]
1506
- ] = None,
1507
- _request_auth: Optional[Dict[StrictStr, Any]] = None,
1508
- _content_type: Optional[StrictStr] = None,
1509
- _headers: Optional[Dict[StrictStr, Any]] = None,
1510
- _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
1511
- ) -> ApiResponse[GetStandingByIdResult]:
1512
- """(Deprecated) Gets a participant by its ID.
1513
-
1514
-
1515
- :param leaderboard_id: (required)
1516
- :type leaderboard_id: str
1517
- :param participant_id: (required)
1518
- :type participant_id: str
1519
- :param _request_timeout: timeout setting for this request. If one
1520
- number provided, it will be total request
1521
- timeout. It can also be a pair (tuple) of
1522
- (connection, read) timeouts.
1523
- :type _request_timeout: int, tuple(int, int), optional
1524
- :param _request_auth: set to override the auth_settings for an a single
1525
- request; this effectively ignores the
1526
- authentication in the spec for a single request.
1527
- :type _request_auth: dict, optional
1528
- :param _content_type: force content-type for the request.
1529
- :type _content_type: str, Optional
1530
- :param _headers: set to override the headers for a single
1531
- request; this effectively ignores the headers
1532
- in the spec for a single request.
1533
- :type _headers: dict, optional
1534
- :param _host_index: set to override the host_index for a single
1535
- request; this effectively ignores the host_index
1536
- in the spec for a single request.
1537
- :type _host_index: int, optional
1538
- :return: Returns the result object.
1539
- """ # noqa: E501
1540
- warnings.warn("GET /leaderboard/{leaderboardId}/participant/{participantId} is deprecated.", DeprecationWarning)
1541
-
1542
- _param = self._leaderboard_leaderboard_id_participant_participant_id_get_serialize(
1543
- leaderboard_id=leaderboard_id,
1544
- participant_id=participant_id,
1545
- _request_auth=_request_auth,
1546
- _content_type=_content_type,
1547
- _headers=_headers,
1548
- _host_index=_host_index
1549
- )
1550
-
1551
- _response_types_map: Dict[str, Optional[str]] = {
1552
- '200': "GetStandingByIdResult",
1553
- }
1554
- response_data = self.api_client.call_api(
1555
- *_param,
1556
- _request_timeout=_request_timeout
1557
- )
1558
- response_data.read()
1559
- return self.api_client.response_deserialize(
1560
- response_data=response_data,
1561
- response_types_map=_response_types_map,
1562
- )
1563
-
1564
-
1565
- @validate_call
1566
- def leaderboard_leaderboard_id_participant_participant_id_get_without_preload_content(
1567
- self,
1568
- leaderboard_id: StrictStr,
1569
- participant_id: StrictStr,
1570
- _request_timeout: Union[
1571
- None,
1572
- Annotated[StrictFloat, Field(gt=0)],
1573
- Tuple[
1574
- Annotated[StrictFloat, Field(gt=0)],
1575
- Annotated[StrictFloat, Field(gt=0)]
1576
- ]
1577
- ] = None,
1578
- _request_auth: Optional[Dict[StrictStr, Any]] = None,
1579
- _content_type: Optional[StrictStr] = None,
1580
- _headers: Optional[Dict[StrictStr, Any]] = None,
1581
- _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
1582
- ) -> RESTResponseType:
1583
- """(Deprecated) Gets a participant by its ID.
1584
-
1585
-
1586
- :param leaderboard_id: (required)
1587
- :type leaderboard_id: str
1588
- :param participant_id: (required)
1589
- :type participant_id: str
1590
- :param _request_timeout: timeout setting for this request. If one
1591
- number provided, it will be total request
1592
- timeout. It can also be a pair (tuple) of
1593
- (connection, read) timeouts.
1594
- :type _request_timeout: int, tuple(int, int), optional
1595
- :param _request_auth: set to override the auth_settings for an a single
1596
- request; this effectively ignores the
1597
- authentication in the spec for a single request.
1598
- :type _request_auth: dict, optional
1599
- :param _content_type: force content-type for the request.
1600
- :type _content_type: str, Optional
1601
- :param _headers: set to override the headers for a single
1602
- request; this effectively ignores the headers
1603
- in the spec for a single request.
1604
- :type _headers: dict, optional
1605
- :param _host_index: set to override the host_index for a single
1606
- request; this effectively ignores the host_index
1607
- in the spec for a single request.
1608
- :type _host_index: int, optional
1609
- :return: Returns the result object.
1610
- """ # noqa: E501
1611
- warnings.warn("GET /leaderboard/{leaderboardId}/participant/{participantId} is deprecated.", DeprecationWarning)
1612
-
1613
- _param = self._leaderboard_leaderboard_id_participant_participant_id_get_serialize(
1614
- leaderboard_id=leaderboard_id,
1615
- participant_id=participant_id,
1616
- _request_auth=_request_auth,
1617
- _content_type=_content_type,
1618
- _headers=_headers,
1619
- _host_index=_host_index
1620
- )
1621
-
1622
- _response_types_map: Dict[str, Optional[str]] = {
1623
- '200': "GetStandingByIdResult",
1624
- }
1625
- response_data = self.api_client.call_api(
1626
- *_param,
1627
- _request_timeout=_request_timeout
1628
- )
1629
- return response_data.response
1630
-
1631
-
1632
- def _leaderboard_leaderboard_id_participant_participant_id_get_serialize(
1633
- self,
1634
- leaderboard_id,
1635
- participant_id,
1636
- _request_auth,
1637
- _content_type,
1638
- _headers,
1639
- _host_index,
1640
- ) -> RequestSerialized:
1641
-
1642
- _host = None
1643
-
1644
- _collection_formats: Dict[str, str] = {
1645
- }
1646
-
1647
- _path_params: Dict[str, str] = {}
1648
- _query_params: List[Tuple[str, str]] = []
1649
- _header_params: Dict[str, Optional[str]] = _headers or {}
1650
- _form_params: List[Tuple[str, str]] = []
1651
- _files: Dict[
1652
- str, Union[str, bytes, List[str], List[bytes], List[Tuple[str, bytes]]]
1653
- ] = {}
1654
- _body_params: Optional[bytes] = None
1655
-
1656
- # process the path parameters
1657
- if leaderboard_id is not None:
1658
- _path_params['leaderboardId'] = leaderboard_id
1659
- if participant_id is not None:
1660
- _path_params['participantId'] = participant_id
1661
- # process the query parameters
1662
- # process the header parameters
1663
- # process the form parameters
1664
- # process the body parameter
1665
-
1666
-
1667
- # set the HTTP header `Accept`
1668
- if 'Accept' not in _header_params:
1669
- _header_params['Accept'] = self.api_client.select_header_accept(
1670
- [
1671
- 'text/plain',
1672
- 'application/json',
1673
- 'text/json'
1674
- ]
1675
- )
1676
-
1677
-
1678
- # authentication setting
1679
- _auth_settings: List[str] = [
1680
- 'bearer',
1681
- 'oauth2'
1682
- ]
1683
-
1684
- return self.api_client.param_serialize(
1685
- method='GET',
1686
- resource_path='/leaderboard/{leaderboardId}/participant/{participantId}',
1687
- path_params=_path_params,
1688
- query_params=_query_params,
1689
- header_params=_header_params,
1690
- body=_body_params,
1691
- post_params=_form_params,
1692
- files=_files,
1693
- auth_settings=_auth_settings,
1694
- collection_formats=_collection_formats,
1695
- _host=_host,
1696
- _request_auth=_request_auth
1697
- )
1698
-
1699
-
1700
-
1701
-
1702
- @validate_call
1703
- def leaderboard_leaderboard_id_participants_get(
1704
- self,
1705
- leaderboard_id: StrictStr,
1706
- _request_timeout: Union[
1707
- None,
1708
- Annotated[StrictFloat, Field(gt=0)],
1709
- Tuple[
1710
- Annotated[StrictFloat, Field(gt=0)],
1711
- Annotated[StrictFloat, Field(gt=0)]
1712
- ]
1713
- ] = None,
1714
- _request_auth: Optional[Dict[StrictStr, Any]] = None,
1715
- _content_type: Optional[StrictStr] = None,
1716
- _headers: Optional[Dict[StrictStr, Any]] = None,
1717
- _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
1718
- ) -> StandingByLeaderboardPagedResult:
1719
- """(Deprecated) queries all the participants connected to leaderboard by its ID.
1720
-
1721
-
1722
- :param leaderboard_id: (required)
1723
- :type leaderboard_id: str
1724
- :param _request_timeout: timeout setting for this request. If one
1725
- number provided, it will be total request
1726
- timeout. It can also be a pair (tuple) of
1727
- (connection, read) timeouts.
1728
- :type _request_timeout: int, tuple(int, int), optional
1729
- :param _request_auth: set to override the auth_settings for an a single
1730
- request; this effectively ignores the
1731
- authentication in the spec for a single request.
1732
- :type _request_auth: dict, optional
1733
- :param _content_type: force content-type for the request.
1734
- :type _content_type: str, Optional
1735
- :param _headers: set to override the headers for a single
1736
- request; this effectively ignores the headers
1737
- in the spec for a single request.
1738
- :type _headers: dict, optional
1739
- :param _host_index: set to override the host_index for a single
1740
- request; this effectively ignores the host_index
1741
- in the spec for a single request.
1742
- :type _host_index: int, optional
1743
- :return: Returns the result object.
1744
- """ # noqa: E501
1745
- warnings.warn("GET /leaderboard/{leaderboardId}/participants is deprecated.", DeprecationWarning)
1746
-
1747
- _param = self._leaderboard_leaderboard_id_participants_get_serialize(
1748
- leaderboard_id=leaderboard_id,
1749
- _request_auth=_request_auth,
1750
- _content_type=_content_type,
1751
- _headers=_headers,
1752
- _host_index=_host_index
1753
- )
1754
-
1755
- _response_types_map: Dict[str, Optional[str]] = {
1756
- '200': "StandingByLeaderboardPagedResult",
1757
- }
1758
- response_data = self.api_client.call_api(
1759
- *_param,
1760
- _request_timeout=_request_timeout
1761
- )
1762
- response_data.read()
1763
- return self.api_client.response_deserialize(
1764
- response_data=response_data,
1765
- response_types_map=_response_types_map,
1766
- ).data
1767
-
1768
-
1769
- @validate_call
1770
- def leaderboard_leaderboard_id_participants_get_with_http_info(
1771
- self,
1772
- leaderboard_id: StrictStr,
1773
- _request_timeout: Union[
1774
- None,
1775
- Annotated[StrictFloat, Field(gt=0)],
1776
- Tuple[
1777
- Annotated[StrictFloat, Field(gt=0)],
1778
- Annotated[StrictFloat, Field(gt=0)]
1779
- ]
1780
- ] = None,
1781
- _request_auth: Optional[Dict[StrictStr, Any]] = None,
1782
- _content_type: Optional[StrictStr] = None,
1783
- _headers: Optional[Dict[StrictStr, Any]] = None,
1784
- _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
1785
- ) -> ApiResponse[StandingByLeaderboardPagedResult]:
1786
- """(Deprecated) queries all the participants connected to leaderboard by its ID.
1787
-
1788
-
1789
- :param leaderboard_id: (required)
1790
- :type leaderboard_id: str
1791
- :param _request_timeout: timeout setting for this request. If one
1792
- number provided, it will be total request
1793
- timeout. It can also be a pair (tuple) of
1794
- (connection, read) timeouts.
1795
- :type _request_timeout: int, tuple(int, int), optional
1796
- :param _request_auth: set to override the auth_settings for an a single
1797
- request; this effectively ignores the
1798
- authentication in the spec for a single request.
1799
- :type _request_auth: dict, optional
1800
- :param _content_type: force content-type for the request.
1801
- :type _content_type: str, Optional
1802
- :param _headers: set to override the headers for a single
1803
- request; this effectively ignores the headers
1804
- in the spec for a single request.
1805
- :type _headers: dict, optional
1806
- :param _host_index: set to override the host_index for a single
1807
- request; this effectively ignores the host_index
1808
- in the spec for a single request.
1809
- :type _host_index: int, optional
1810
- :return: Returns the result object.
1811
- """ # noqa: E501
1812
- warnings.warn("GET /leaderboard/{leaderboardId}/participants is deprecated.", DeprecationWarning)
1813
-
1814
- _param = self._leaderboard_leaderboard_id_participants_get_serialize(
1815
- leaderboard_id=leaderboard_id,
1816
- _request_auth=_request_auth,
1817
- _content_type=_content_type,
1818
- _headers=_headers,
1819
- _host_index=_host_index
1820
- )
1821
-
1822
- _response_types_map: Dict[str, Optional[str]] = {
1823
- '200': "StandingByLeaderboardPagedResult",
1824
- }
1825
- response_data = self.api_client.call_api(
1826
- *_param,
1827
- _request_timeout=_request_timeout
1828
- )
1829
- response_data.read()
1830
- return self.api_client.response_deserialize(
1831
- response_data=response_data,
1832
- response_types_map=_response_types_map,
1833
- )
1834
-
1835
-
1836
- @validate_call
1837
- def leaderboard_leaderboard_id_participants_get_without_preload_content(
1838
- self,
1839
- leaderboard_id: StrictStr,
1840
- _request_timeout: Union[
1841
- None,
1842
- Annotated[StrictFloat, Field(gt=0)],
1843
- Tuple[
1844
- Annotated[StrictFloat, Field(gt=0)],
1845
- Annotated[StrictFloat, Field(gt=0)]
1846
- ]
1847
- ] = None,
1848
- _request_auth: Optional[Dict[StrictStr, Any]] = None,
1849
- _content_type: Optional[StrictStr] = None,
1850
- _headers: Optional[Dict[StrictStr, Any]] = None,
1851
- _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
1852
- ) -> RESTResponseType:
1853
- """(Deprecated) queries all the participants connected to leaderboard by its ID.
1854
-
1855
-
1856
- :param leaderboard_id: (required)
1857
- :type leaderboard_id: str
1858
- :param _request_timeout: timeout setting for this request. If one
1859
- number provided, it will be total request
1860
- timeout. It can also be a pair (tuple) of
1861
- (connection, read) timeouts.
1862
- :type _request_timeout: int, tuple(int, int), optional
1863
- :param _request_auth: set to override the auth_settings for an a single
1864
- request; this effectively ignores the
1865
- authentication in the spec for a single request.
1866
- :type _request_auth: dict, optional
1867
- :param _content_type: force content-type for the request.
1868
- :type _content_type: str, Optional
1869
- :param _headers: set to override the headers for a single
1870
- request; this effectively ignores the headers
1871
- in the spec for a single request.
1872
- :type _headers: dict, optional
1873
- :param _host_index: set to override the host_index for a single
1874
- request; this effectively ignores the host_index
1875
- in the spec for a single request.
1876
- :type _host_index: int, optional
1877
- :return: Returns the result object.
1878
- """ # noqa: E501
1879
- warnings.warn("GET /leaderboard/{leaderboardId}/participants is deprecated.", DeprecationWarning)
1880
-
1881
- _param = self._leaderboard_leaderboard_id_participants_get_serialize(
1882
- leaderboard_id=leaderboard_id,
1883
- _request_auth=_request_auth,
1884
- _content_type=_content_type,
1885
- _headers=_headers,
1886
- _host_index=_host_index
1887
- )
1888
-
1889
- _response_types_map: Dict[str, Optional[str]] = {
1890
- '200': "StandingByLeaderboardPagedResult",
1891
- }
1892
- response_data = self.api_client.call_api(
1893
- *_param,
1894
- _request_timeout=_request_timeout
1895
- )
1896
- return response_data.response
1897
-
1898
-
1899
- def _leaderboard_leaderboard_id_participants_get_serialize(
1900
- self,
1901
- leaderboard_id,
1902
- _request_auth,
1903
- _content_type,
1904
- _headers,
1905
- _host_index,
1906
- ) -> RequestSerialized:
1907
-
1908
- _host = None
1909
-
1910
- _collection_formats: Dict[str, str] = {
1911
- }
1912
-
1913
- _path_params: Dict[str, str] = {}
1914
- _query_params: List[Tuple[str, str]] = []
1915
- _header_params: Dict[str, Optional[str]] = _headers or {}
1916
- _form_params: List[Tuple[str, str]] = []
1917
- _files: Dict[
1918
- str, Union[str, bytes, List[str], List[bytes], List[Tuple[str, bytes]]]
1919
- ] = {}
1920
- _body_params: Optional[bytes] = None
1921
-
1922
- # process the path parameters
1923
- if leaderboard_id is not None:
1924
- _path_params['leaderboardId'] = leaderboard_id
1925
- # process the query parameters
1926
- # process the header parameters
1927
- # process the form parameters
1928
- # process the body parameter
1929
-
1930
-
1931
- # set the HTTP header `Accept`
1932
- if 'Accept' not in _header_params:
1933
- _header_params['Accept'] = self.api_client.select_header_accept(
1934
- [
1935
- 'text/plain',
1936
- 'application/json',
1937
- 'text/json'
1938
- ]
1939
- )
1940
-
1941
-
1942
- # authentication setting
1943
- _auth_settings: List[str] = [
1944
- 'bearer',
1945
- 'oauth2'
1946
- ]
1947
-
1948
- return self.api_client.param_serialize(
1949
- method='GET',
1950
- resource_path='/leaderboard/{leaderboardId}/participants',
1951
- path_params=_path_params,
1952
- query_params=_query_params,
1953
- header_params=_header_params,
1954
- body=_body_params,
1955
- post_params=_form_params,
1956
- files=_files,
1957
- auth_settings=_auth_settings,
1958
- collection_formats=_collection_formats,
1959
- _host=_host,
1960
- _request_auth=_request_auth
1961
- )
1962
-
1963
-
1964
-
1965
-
1966
- @validate_call
1967
- def leaderboard_leaderboard_id_participants_participant_id_submit_post(
1968
- self,
1969
- leaderboard_id: StrictStr,
1970
- participant_id: StrictStr,
1971
- _request_timeout: Union[
1972
- None,
1973
- Annotated[StrictFloat, Field(gt=0)],
1974
- Tuple[
1975
- Annotated[StrictFloat, Field(gt=0)],
1976
- Annotated[StrictFloat, Field(gt=0)]
1977
- ]
1978
- ] = None,
1979
- _request_auth: Optional[Dict[StrictStr, Any]] = None,
1980
- _content_type: Optional[StrictStr] = None,
1981
- _headers: Optional[Dict[StrictStr, Any]] = None,
1982
- _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
1983
- ) -> SubmitParticipantResult:
1984
- """(Deprecated) Submits a participant to a leaderboard.
1985
-
1986
-
1987
- :param leaderboard_id: (required)
1988
- :type leaderboard_id: str
1989
- :param participant_id: (required)
1990
- :type participant_id: str
1991
- :param _request_timeout: timeout setting for this request. If one
1992
- number provided, it will be total request
1993
- timeout. It can also be a pair (tuple) of
1994
- (connection, read) timeouts.
1995
- :type _request_timeout: int, tuple(int, int), optional
1996
- :param _request_auth: set to override the auth_settings for an a single
1997
- request; this effectively ignores the
1998
- authentication in the spec for a single request.
1999
- :type _request_auth: dict, optional
2000
- :param _content_type: force content-type for the request.
2001
- :type _content_type: str, Optional
2002
- :param _headers: set to override the headers for a single
2003
- request; this effectively ignores the headers
2004
- in the spec for a single request.
2005
- :type _headers: dict, optional
2006
- :param _host_index: set to override the host_index for a single
2007
- request; this effectively ignores the host_index
2008
- in the spec for a single request.
2009
- :type _host_index: int, optional
2010
- :return: Returns the result object.
2011
- """ # noqa: E501
2012
- warnings.warn("POST /leaderboard/{leaderboardId}/participants/{participantId}/submit is deprecated.", DeprecationWarning)
2013
-
2014
- _param = self._leaderboard_leaderboard_id_participants_participant_id_submit_post_serialize(
2015
- leaderboard_id=leaderboard_id,
2016
- participant_id=participant_id,
2017
- _request_auth=_request_auth,
2018
- _content_type=_content_type,
2019
- _headers=_headers,
2020
- _host_index=_host_index
2021
- )
2022
-
2023
- _response_types_map: Dict[str, Optional[str]] = {
2024
- '200': "SubmitParticipantResult",
2025
- }
2026
- response_data = self.api_client.call_api(
2027
- *_param,
2028
- _request_timeout=_request_timeout
2029
- )
2030
- response_data.read()
2031
- return self.api_client.response_deserialize(
2032
- response_data=response_data,
2033
- response_types_map=_response_types_map,
2034
- ).data
2035
-
2036
-
2037
- @validate_call
2038
- def leaderboard_leaderboard_id_participants_participant_id_submit_post_with_http_info(
2039
- self,
2040
- leaderboard_id: StrictStr,
2041
- participant_id: StrictStr,
2042
- _request_timeout: Union[
2043
- None,
2044
- Annotated[StrictFloat, Field(gt=0)],
2045
- Tuple[
2046
- Annotated[StrictFloat, Field(gt=0)],
2047
- Annotated[StrictFloat, Field(gt=0)]
2048
- ]
2049
- ] = None,
2050
- _request_auth: Optional[Dict[StrictStr, Any]] = None,
2051
- _content_type: Optional[StrictStr] = None,
2052
- _headers: Optional[Dict[StrictStr, Any]] = None,
2053
- _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
2054
- ) -> ApiResponse[SubmitParticipantResult]:
2055
- """(Deprecated) Submits a participant to a leaderboard.
2056
-
2057
-
2058
- :param leaderboard_id: (required)
2059
- :type leaderboard_id: str
2060
- :param participant_id: (required)
2061
- :type participant_id: str
2062
- :param _request_timeout: timeout setting for this request. If one
2063
- number provided, it will be total request
2064
- timeout. It can also be a pair (tuple) of
2065
- (connection, read) timeouts.
2066
- :type _request_timeout: int, tuple(int, int), optional
2067
- :param _request_auth: set to override the auth_settings for an a single
2068
- request; this effectively ignores the
2069
- authentication in the spec for a single request.
2070
- :type _request_auth: dict, optional
2071
- :param _content_type: force content-type for the request.
2072
- :type _content_type: str, Optional
2073
- :param _headers: set to override the headers for a single
2074
- request; this effectively ignores the headers
2075
- in the spec for a single request.
2076
- :type _headers: dict, optional
2077
- :param _host_index: set to override the host_index for a single
2078
- request; this effectively ignores the host_index
2079
- in the spec for a single request.
2080
- :type _host_index: int, optional
2081
- :return: Returns the result object.
2082
- """ # noqa: E501
2083
- warnings.warn("POST /leaderboard/{leaderboardId}/participants/{participantId}/submit is deprecated.", DeprecationWarning)
2084
-
2085
- _param = self._leaderboard_leaderboard_id_participants_participant_id_submit_post_serialize(
2086
- leaderboard_id=leaderboard_id,
2087
- participant_id=participant_id,
2088
- _request_auth=_request_auth,
2089
- _content_type=_content_type,
2090
- _headers=_headers,
2091
- _host_index=_host_index
2092
- )
2093
-
2094
- _response_types_map: Dict[str, Optional[str]] = {
2095
- '200': "SubmitParticipantResult",
2096
- }
2097
- response_data = self.api_client.call_api(
2098
- *_param,
2099
- _request_timeout=_request_timeout
2100
- )
2101
- response_data.read()
2102
- return self.api_client.response_deserialize(
2103
- response_data=response_data,
2104
- response_types_map=_response_types_map,
2105
- )
2106
-
2107
-
2108
- @validate_call
2109
- def leaderboard_leaderboard_id_participants_participant_id_submit_post_without_preload_content(
2110
- self,
2111
- leaderboard_id: StrictStr,
2112
- participant_id: StrictStr,
2113
- _request_timeout: Union[
2114
- None,
2115
- Annotated[StrictFloat, Field(gt=0)],
2116
- Tuple[
2117
- Annotated[StrictFloat, Field(gt=0)],
2118
- Annotated[StrictFloat, Field(gt=0)]
2119
- ]
2120
- ] = None,
2121
- _request_auth: Optional[Dict[StrictStr, Any]] = None,
2122
- _content_type: Optional[StrictStr] = None,
2123
- _headers: Optional[Dict[StrictStr, Any]] = None,
2124
- _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
2125
- ) -> RESTResponseType:
2126
- """(Deprecated) Submits a participant to a leaderboard.
2127
-
2128
-
2129
- :param leaderboard_id: (required)
2130
- :type leaderboard_id: str
2131
- :param participant_id: (required)
2132
- :type participant_id: str
2133
- :param _request_timeout: timeout setting for this request. If one
2134
- number provided, it will be total request
2135
- timeout. It can also be a pair (tuple) of
2136
- (connection, read) timeouts.
2137
- :type _request_timeout: int, tuple(int, int), optional
2138
- :param _request_auth: set to override the auth_settings for an a single
2139
- request; this effectively ignores the
2140
- authentication in the spec for a single request.
2141
- :type _request_auth: dict, optional
2142
- :param _content_type: force content-type for the request.
2143
- :type _content_type: str, Optional
2144
- :param _headers: set to override the headers for a single
2145
- request; this effectively ignores the headers
2146
- in the spec for a single request.
2147
- :type _headers: dict, optional
2148
- :param _host_index: set to override the host_index for a single
2149
- request; this effectively ignores the host_index
2150
- in the spec for a single request.
2151
- :type _host_index: int, optional
2152
- :return: Returns the result object.
2153
- """ # noqa: E501
2154
- warnings.warn("POST /leaderboard/{leaderboardId}/participants/{participantId}/submit is deprecated.", DeprecationWarning)
2155
-
2156
- _param = self._leaderboard_leaderboard_id_participants_participant_id_submit_post_serialize(
2157
- leaderboard_id=leaderboard_id,
2158
- participant_id=participant_id,
2159
- _request_auth=_request_auth,
2160
- _content_type=_content_type,
2161
- _headers=_headers,
2162
- _host_index=_host_index
2163
- )
2164
-
2165
- _response_types_map: Dict[str, Optional[str]] = {
2166
- '200': "SubmitParticipantResult",
2167
- }
2168
- response_data = self.api_client.call_api(
2169
- *_param,
2170
- _request_timeout=_request_timeout
2171
- )
2172
- return response_data.response
2173
-
2174
-
2175
- def _leaderboard_leaderboard_id_participants_participant_id_submit_post_serialize(
2176
- self,
2177
- leaderboard_id,
2178
- participant_id,
2179
- _request_auth,
2180
- _content_type,
2181
- _headers,
2182
- _host_index,
2183
- ) -> RequestSerialized:
2184
-
2185
- _host = None
2186
-
2187
- _collection_formats: Dict[str, str] = {
2188
- }
2189
-
2190
- _path_params: Dict[str, str] = {}
2191
- _query_params: List[Tuple[str, str]] = []
2192
- _header_params: Dict[str, Optional[str]] = _headers or {}
2193
- _form_params: List[Tuple[str, str]] = []
2194
- _files: Dict[
2195
- str, Union[str, bytes, List[str], List[bytes], List[Tuple[str, bytes]]]
2196
- ] = {}
2197
- _body_params: Optional[bytes] = None
2198
-
2199
- # process the path parameters
2200
- if leaderboard_id is not None:
2201
- _path_params['leaderboardId'] = leaderboard_id
2202
- if participant_id is not None:
2203
- _path_params['participantId'] = participant_id
2204
- # process the query parameters
2205
- # process the header parameters
2206
- # process the form parameters
2207
- # process the body parameter
2208
-
2209
-
2210
- # set the HTTP header `Accept`
2211
- if 'Accept' not in _header_params:
2212
- _header_params['Accept'] = self.api_client.select_header_accept(
2213
- [
2214
- 'text/plain',
2215
- 'application/json',
2216
- 'text/json'
2217
- ]
2218
- )
2219
-
2220
-
2221
- # authentication setting
2222
- _auth_settings: List[str] = [
2223
- 'bearer',
2224
- 'oauth2'
2225
- ]
2226
-
2227
- return self.api_client.param_serialize(
2228
- method='POST',
2229
- resource_path='/leaderboard/{leaderboardId}/participants/{participantId}/submit',
2230
- path_params=_path_params,
2231
- query_params=_query_params,
2232
- header_params=_header_params,
2233
- body=_body_params,
2234
- post_params=_form_params,
2235
- files=_files,
2236
- auth_settings=_auth_settings,
2237
- collection_formats=_collection_formats,
2238
- _host=_host,
2239
- _request_auth=_request_auth
2240
- )
2241
-
2242
-
2243
-
2244
-
2245
- @validate_call
2246
- def leaderboard_leaderboard_id_participants_post(
2247
- self,
2248
- leaderboard_id: StrictStr,
2249
- create_benchmark_participant_model: Optional[CreateBenchmarkParticipantModel] = None,
2250
- _request_timeout: Union[
2251
- None,
2252
- Annotated[StrictFloat, Field(gt=0)],
2253
- Tuple[
2254
- Annotated[StrictFloat, Field(gt=0)],
2255
- Annotated[StrictFloat, Field(gt=0)]
2256
- ]
2257
- ] = None,
2258
- _request_auth: Optional[Dict[StrictStr, Any]] = None,
2259
- _content_type: Optional[StrictStr] = None,
2260
- _headers: Optional[Dict[StrictStr, Any]] = None,
2261
- _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
2262
- ) -> CreateBenchmarkParticipantResult:
2263
- """(Deprecated) Creates a participant in a leaderboard.
2264
-
2265
-
2266
- :param leaderboard_id: (required)
2267
- :type leaderboard_id: str
2268
- :param create_benchmark_participant_model:
2269
- :type create_benchmark_participant_model: CreateBenchmarkParticipantModel
2270
- :param _request_timeout: timeout setting for this request. If one
2271
- number provided, it will be total request
2272
- timeout. It can also be a pair (tuple) of
2273
- (connection, read) timeouts.
2274
- :type _request_timeout: int, tuple(int, int), optional
2275
- :param _request_auth: set to override the auth_settings for an a single
2276
- request; this effectively ignores the
2277
- authentication in the spec for a single request.
2278
- :type _request_auth: dict, optional
2279
- :param _content_type: force content-type for the request.
2280
- :type _content_type: str, Optional
2281
- :param _headers: set to override the headers for a single
2282
- request; this effectively ignores the headers
2283
- in the spec for a single request.
2284
- :type _headers: dict, optional
2285
- :param _host_index: set to override the host_index for a single
2286
- request; this effectively ignores the host_index
2287
- in the spec for a single request.
2288
- :type _host_index: int, optional
2289
- :return: Returns the result object.
2290
- """ # noqa: E501
2291
- warnings.warn("POST /leaderboard/{leaderboardId}/participants is deprecated.", DeprecationWarning)
2292
-
2293
- _param = self._leaderboard_leaderboard_id_participants_post_serialize(
2294
- leaderboard_id=leaderboard_id,
2295
- create_benchmark_participant_model=create_benchmark_participant_model,
2296
- _request_auth=_request_auth,
2297
- _content_type=_content_type,
2298
- _headers=_headers,
2299
- _host_index=_host_index
2300
- )
2301
-
2302
- _response_types_map: Dict[str, Optional[str]] = {
2303
- '200': "CreateBenchmarkParticipantResult",
2304
- }
2305
- response_data = self.api_client.call_api(
2306
- *_param,
2307
- _request_timeout=_request_timeout
2308
- )
2309
- response_data.read()
2310
- return self.api_client.response_deserialize(
2311
- response_data=response_data,
2312
- response_types_map=_response_types_map,
2313
- ).data
2314
-
2315
-
2316
- @validate_call
2317
- def leaderboard_leaderboard_id_participants_post_with_http_info(
2318
- self,
2319
- leaderboard_id: StrictStr,
2320
- create_benchmark_participant_model: Optional[CreateBenchmarkParticipantModel] = None,
2321
- _request_timeout: Union[
2322
- None,
2323
- Annotated[StrictFloat, Field(gt=0)],
2324
- Tuple[
2325
- Annotated[StrictFloat, Field(gt=0)],
2326
- Annotated[StrictFloat, Field(gt=0)]
2327
- ]
2328
- ] = None,
2329
- _request_auth: Optional[Dict[StrictStr, Any]] = None,
2330
- _content_type: Optional[StrictStr] = None,
2331
- _headers: Optional[Dict[StrictStr, Any]] = None,
2332
- _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
2333
- ) -> ApiResponse[CreateBenchmarkParticipantResult]:
2334
- """(Deprecated) Creates a participant in a leaderboard.
2335
-
2336
-
2337
- :param leaderboard_id: (required)
2338
- :type leaderboard_id: str
2339
- :param create_benchmark_participant_model:
2340
- :type create_benchmark_participant_model: CreateBenchmarkParticipantModel
2341
- :param _request_timeout: timeout setting for this request. If one
2342
- number provided, it will be total request
2343
- timeout. It can also be a pair (tuple) of
2344
- (connection, read) timeouts.
2345
- :type _request_timeout: int, tuple(int, int), optional
2346
- :param _request_auth: set to override the auth_settings for an a single
2347
- request; this effectively ignores the
2348
- authentication in the spec for a single request.
2349
- :type _request_auth: dict, optional
2350
- :param _content_type: force content-type for the request.
2351
- :type _content_type: str, Optional
2352
- :param _headers: set to override the headers for a single
2353
- request; this effectively ignores the headers
2354
- in the spec for a single request.
2355
- :type _headers: dict, optional
2356
- :param _host_index: set to override the host_index for a single
2357
- request; this effectively ignores the host_index
2358
- in the spec for a single request.
2359
- :type _host_index: int, optional
2360
- :return: Returns the result object.
2361
- """ # noqa: E501
2362
- warnings.warn("POST /leaderboard/{leaderboardId}/participants is deprecated.", DeprecationWarning)
2363
-
2364
- _param = self._leaderboard_leaderboard_id_participants_post_serialize(
2365
- leaderboard_id=leaderboard_id,
2366
- create_benchmark_participant_model=create_benchmark_participant_model,
2367
- _request_auth=_request_auth,
2368
- _content_type=_content_type,
2369
- _headers=_headers,
2370
- _host_index=_host_index
2371
- )
2372
-
2373
- _response_types_map: Dict[str, Optional[str]] = {
2374
- '200': "CreateBenchmarkParticipantResult",
2375
- }
2376
- response_data = self.api_client.call_api(
2377
- *_param,
2378
- _request_timeout=_request_timeout
2379
- )
2380
- response_data.read()
2381
- return self.api_client.response_deserialize(
2382
- response_data=response_data,
2383
- response_types_map=_response_types_map,
2384
- )
2385
-
2386
-
2387
- @validate_call
2388
- def leaderboard_leaderboard_id_participants_post_without_preload_content(
2389
- self,
2390
- leaderboard_id: StrictStr,
2391
- create_benchmark_participant_model: Optional[CreateBenchmarkParticipantModel] = None,
2392
- _request_timeout: Union[
2393
- None,
2394
- Annotated[StrictFloat, Field(gt=0)],
2395
- Tuple[
2396
- Annotated[StrictFloat, Field(gt=0)],
2397
- Annotated[StrictFloat, Field(gt=0)]
2398
- ]
2399
- ] = None,
2400
- _request_auth: Optional[Dict[StrictStr, Any]] = None,
2401
- _content_type: Optional[StrictStr] = None,
2402
- _headers: Optional[Dict[StrictStr, Any]] = None,
2403
- _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
2404
- ) -> RESTResponseType:
2405
- """(Deprecated) Creates a participant in a leaderboard.
2406
-
2407
-
2408
- :param leaderboard_id: (required)
2409
- :type leaderboard_id: str
2410
- :param create_benchmark_participant_model:
2411
- :type create_benchmark_participant_model: CreateBenchmarkParticipantModel
2412
- :param _request_timeout: timeout setting for this request. If one
2413
- number provided, it will be total request
2414
- timeout. It can also be a pair (tuple) of
2415
- (connection, read) timeouts.
2416
- :type _request_timeout: int, tuple(int, int), optional
2417
- :param _request_auth: set to override the auth_settings for an a single
2418
- request; this effectively ignores the
2419
- authentication in the spec for a single request.
2420
- :type _request_auth: dict, optional
2421
- :param _content_type: force content-type for the request.
2422
- :type _content_type: str, Optional
2423
- :param _headers: set to override the headers for a single
2424
- request; this effectively ignores the headers
2425
- in the spec for a single request.
2426
- :type _headers: dict, optional
2427
- :param _host_index: set to override the host_index for a single
2428
- request; this effectively ignores the host_index
2429
- in the spec for a single request.
2430
- :type _host_index: int, optional
2431
- :return: Returns the result object.
2432
- """ # noqa: E501
2433
- warnings.warn("POST /leaderboard/{leaderboardId}/participants is deprecated.", DeprecationWarning)
2434
-
2435
- _param = self._leaderboard_leaderboard_id_participants_post_serialize(
2436
- leaderboard_id=leaderboard_id,
2437
- create_benchmark_participant_model=create_benchmark_participant_model,
2438
- _request_auth=_request_auth,
2439
- _content_type=_content_type,
2440
- _headers=_headers,
2441
- _host_index=_host_index
2442
- )
2443
-
2444
- _response_types_map: Dict[str, Optional[str]] = {
2445
- '200': "CreateBenchmarkParticipantResult",
2446
- }
2447
- response_data = self.api_client.call_api(
2448
- *_param,
2449
- _request_timeout=_request_timeout
2450
- )
2451
- return response_data.response
2452
-
2453
-
2454
- def _leaderboard_leaderboard_id_participants_post_serialize(
2455
- self,
2456
- leaderboard_id,
2457
- create_benchmark_participant_model,
2458
- _request_auth,
2459
- _content_type,
2460
- _headers,
2461
- _host_index,
2462
- ) -> RequestSerialized:
2463
-
2464
- _host = None
2465
-
2466
- _collection_formats: Dict[str, str] = {
2467
- }
2468
-
2469
- _path_params: Dict[str, str] = {}
2470
- _query_params: List[Tuple[str, str]] = []
2471
- _header_params: Dict[str, Optional[str]] = _headers or {}
2472
- _form_params: List[Tuple[str, str]] = []
2473
- _files: Dict[
2474
- str, Union[str, bytes, List[str], List[bytes], List[Tuple[str, bytes]]]
2475
- ] = {}
2476
- _body_params: Optional[bytes] = None
2477
-
2478
- # process the path parameters
2479
- if leaderboard_id is not None:
2480
- _path_params['leaderboardId'] = leaderboard_id
2481
- # process the query parameters
2482
- # process the header parameters
2483
- # process the form parameters
2484
- # process the body parameter
2485
- if create_benchmark_participant_model is not None:
2486
- _body_params = create_benchmark_participant_model
2487
-
2488
-
2489
- # set the HTTP header `Accept`
2490
- if 'Accept' not in _header_params:
2491
- _header_params['Accept'] = self.api_client.select_header_accept(
2492
- [
2493
- 'text/plain',
2494
- 'application/json',
2495
- 'text/json'
2496
- ]
2497
- )
2498
-
2499
- # set the HTTP header `Content-Type`
2500
- if _content_type:
2501
- _header_params['Content-Type'] = _content_type
2502
- else:
2503
- _default_content_type = (
2504
- self.api_client.select_header_content_type(
2505
- [
2506
- 'application/json',
2507
- 'text/json',
2508
- 'application/*+json'
2509
- ]
2510
- )
2511
- )
2512
- if _default_content_type is not None:
2513
- _header_params['Content-Type'] = _default_content_type
2514
-
2515
- # authentication setting
2516
- _auth_settings: List[str] = [
2517
- 'bearer',
2518
- 'oauth2'
2519
- ]
2520
-
2521
- return self.api_client.param_serialize(
2522
- method='POST',
2523
- resource_path='/leaderboard/{leaderboardId}/participants',
2524
- path_params=_path_params,
2525
- query_params=_query_params,
2526
- header_params=_header_params,
2527
- body=_body_params,
2528
- post_params=_form_params,
2529
- files=_files,
2530
- auth_settings=_auth_settings,
2531
- collection_formats=_collection_formats,
2532
- _host=_host,
2533
- _request_auth=_request_auth
2534
- )
2535
-
2536
-
2537
-
2538
-
2539
- @validate_call
2540
- def leaderboard_leaderboard_id_patch(
2541
- self,
2542
- leaderboard_id: StrictStr,
2543
- update_leaderboard_model: Optional[UpdateLeaderboardModel] = None,
2544
- _request_timeout: Union[
2545
- None,
2546
- Annotated[StrictFloat, Field(gt=0)],
2547
- Tuple[
2548
- Annotated[StrictFloat, Field(gt=0)],
2549
- Annotated[StrictFloat, Field(gt=0)]
2550
- ]
2551
- ] = None,
2552
- _request_auth: Optional[Dict[StrictStr, Any]] = None,
2553
- _content_type: Optional[StrictStr] = None,
2554
- _headers: Optional[Dict[StrictStr, Any]] = None,
2555
- _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
2556
- ) -> None:
2557
- """Updates the response config of a leaderboard.
2558
-
2559
-
2560
- :param leaderboard_id: (required)
2561
- :type leaderboard_id: str
2562
- :param update_leaderboard_model:
2563
- :type update_leaderboard_model: UpdateLeaderboardModel
2564
- :param _request_timeout: timeout setting for this request. If one
2565
- number provided, it will be total request
2566
- timeout. It can also be a pair (tuple) of
2567
- (connection, read) timeouts.
2568
- :type _request_timeout: int, tuple(int, int), optional
2569
- :param _request_auth: set to override the auth_settings for an a single
2570
- request; this effectively ignores the
2571
- authentication in the spec for a single request.
2572
- :type _request_auth: dict, optional
2573
- :param _content_type: force content-type for the request.
2574
- :type _content_type: str, Optional
2575
- :param _headers: set to override the headers for a single
2576
- request; this effectively ignores the headers
2577
- in the spec for a single request.
2578
- :type _headers: dict, optional
2579
- :param _host_index: set to override the host_index for a single
2580
- request; this effectively ignores the host_index
2581
- in the spec for a single request.
2582
- :type _host_index: int, optional
2583
- :return: Returns the result object.
2584
- """ # noqa: E501
2585
-
2586
- _param = self._leaderboard_leaderboard_id_patch_serialize(
2587
- leaderboard_id=leaderboard_id,
2588
- update_leaderboard_model=update_leaderboard_model,
2589
- _request_auth=_request_auth,
2590
- _content_type=_content_type,
2591
- _headers=_headers,
2592
- _host_index=_host_index
2593
- )
2594
-
2595
- _response_types_map: Dict[str, Optional[str]] = {
2596
- '204': None,
2597
- }
2598
- response_data = self.api_client.call_api(
2599
- *_param,
2600
- _request_timeout=_request_timeout
2601
- )
2602
- response_data.read()
2603
- return self.api_client.response_deserialize(
2604
- response_data=response_data,
2605
- response_types_map=_response_types_map,
2606
- ).data
2607
-
2608
-
2609
- @validate_call
2610
- def leaderboard_leaderboard_id_patch_with_http_info(
2611
- self,
2612
- leaderboard_id: StrictStr,
2613
- update_leaderboard_model: Optional[UpdateLeaderboardModel] = None,
2614
- _request_timeout: Union[
2615
- None,
2616
- Annotated[StrictFloat, Field(gt=0)],
2617
- Tuple[
2618
- Annotated[StrictFloat, Field(gt=0)],
2619
- Annotated[StrictFloat, Field(gt=0)]
2620
- ]
2621
- ] = None,
2622
- _request_auth: Optional[Dict[StrictStr, Any]] = None,
2623
- _content_type: Optional[StrictStr] = None,
2624
- _headers: Optional[Dict[StrictStr, Any]] = None,
2625
- _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
2626
- ) -> ApiResponse[None]:
2627
- """Updates the response config of a leaderboard.
2628
-
2629
-
2630
- :param leaderboard_id: (required)
2631
- :type leaderboard_id: str
2632
- :param update_leaderboard_model:
2633
- :type update_leaderboard_model: UpdateLeaderboardModel
2634
- :param _request_timeout: timeout setting for this request. If one
2635
- number provided, it will be total request
2636
- timeout. It can also be a pair (tuple) of
2637
- (connection, read) timeouts.
2638
- :type _request_timeout: int, tuple(int, int), optional
2639
- :param _request_auth: set to override the auth_settings for an a single
2640
- request; this effectively ignores the
2641
- authentication in the spec for a single request.
2642
- :type _request_auth: dict, optional
2643
- :param _content_type: force content-type for the request.
2644
- :type _content_type: str, Optional
2645
- :param _headers: set to override the headers for a single
2646
- request; this effectively ignores the headers
2647
- in the spec for a single request.
2648
- :type _headers: dict, optional
2649
- :param _host_index: set to override the host_index for a single
2650
- request; this effectively ignores the host_index
2651
- in the spec for a single request.
2652
- :type _host_index: int, optional
2653
- :return: Returns the result object.
2654
- """ # noqa: E501
2655
-
2656
- _param = self._leaderboard_leaderboard_id_patch_serialize(
2657
- leaderboard_id=leaderboard_id,
2658
- update_leaderboard_model=update_leaderboard_model,
2659
- _request_auth=_request_auth,
2660
- _content_type=_content_type,
2661
- _headers=_headers,
2662
- _host_index=_host_index
2663
- )
2664
-
2665
- _response_types_map: Dict[str, Optional[str]] = {
2666
- '204': None,
2667
- }
2668
- response_data = self.api_client.call_api(
2669
- *_param,
2670
- _request_timeout=_request_timeout
2671
- )
2672
- response_data.read()
2673
- return self.api_client.response_deserialize(
2674
- response_data=response_data,
2675
- response_types_map=_response_types_map,
2676
- )
2677
-
2678
-
2679
- @validate_call
2680
- def leaderboard_leaderboard_id_patch_without_preload_content(
2681
- self,
2682
- leaderboard_id: StrictStr,
2683
- update_leaderboard_model: Optional[UpdateLeaderboardModel] = None,
2684
- _request_timeout: Union[
2685
- None,
2686
- Annotated[StrictFloat, Field(gt=0)],
2687
- Tuple[
2688
- Annotated[StrictFloat, Field(gt=0)],
2689
- Annotated[StrictFloat, Field(gt=0)]
2690
- ]
2691
- ] = None,
2692
- _request_auth: Optional[Dict[StrictStr, Any]] = None,
2693
- _content_type: Optional[StrictStr] = None,
2694
- _headers: Optional[Dict[StrictStr, Any]] = None,
2695
- _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
2696
- ) -> RESTResponseType:
2697
- """Updates the response config of a leaderboard.
2698
-
2699
-
2700
- :param leaderboard_id: (required)
2701
- :type leaderboard_id: str
2702
- :param update_leaderboard_model:
2703
- :type update_leaderboard_model: UpdateLeaderboardModel
2704
- :param _request_timeout: timeout setting for this request. If one
2705
- number provided, it will be total request
2706
- timeout. It can also be a pair (tuple) of
2707
- (connection, read) timeouts.
2708
- :type _request_timeout: int, tuple(int, int), optional
2709
- :param _request_auth: set to override the auth_settings for an a single
2710
- request; this effectively ignores the
2711
- authentication in the spec for a single request.
2712
- :type _request_auth: dict, optional
2713
- :param _content_type: force content-type for the request.
2714
- :type _content_type: str, Optional
2715
- :param _headers: set to override the headers for a single
2716
- request; this effectively ignores the headers
2717
- in the spec for a single request.
2718
- :type _headers: dict, optional
2719
- :param _host_index: set to override the host_index for a single
2720
- request; this effectively ignores the host_index
2721
- in the spec for a single request.
2722
- :type _host_index: int, optional
2723
- :return: Returns the result object.
2724
- """ # noqa: E501
2725
-
2726
- _param = self._leaderboard_leaderboard_id_patch_serialize(
2727
- leaderboard_id=leaderboard_id,
2728
- update_leaderboard_model=update_leaderboard_model,
2729
- _request_auth=_request_auth,
2730
- _content_type=_content_type,
2731
- _headers=_headers,
2732
- _host_index=_host_index
2733
- )
2734
-
2735
- _response_types_map: Dict[str, Optional[str]] = {
2736
- '204': None,
2737
- }
2738
- response_data = self.api_client.call_api(
2739
- *_param,
2740
- _request_timeout=_request_timeout
2741
- )
2742
- return response_data.response
2743
-
2744
-
2745
- def _leaderboard_leaderboard_id_patch_serialize(
2746
- self,
2747
- leaderboard_id,
2748
- update_leaderboard_model,
2749
- _request_auth,
2750
- _content_type,
2751
- _headers,
2752
- _host_index,
2753
- ) -> RequestSerialized:
2754
-
2755
- _host = None
2756
-
2757
- _collection_formats: Dict[str, str] = {
2758
- }
2759
-
2760
- _path_params: Dict[str, str] = {}
2761
- _query_params: List[Tuple[str, str]] = []
2762
- _header_params: Dict[str, Optional[str]] = _headers or {}
2763
- _form_params: List[Tuple[str, str]] = []
2764
- _files: Dict[
2765
- str, Union[str, bytes, List[str], List[bytes], List[Tuple[str, bytes]]]
2766
- ] = {}
2767
- _body_params: Optional[bytes] = None
2768
-
2769
- # process the path parameters
2770
- if leaderboard_id is not None:
2771
- _path_params['leaderboardId'] = leaderboard_id
2772
- # process the query parameters
2773
- # process the header parameters
2774
- # process the form parameters
2775
- # process the body parameter
2776
- if update_leaderboard_model is not None:
2777
- _body_params = update_leaderboard_model
2778
-
2779
-
2780
-
2781
- # set the HTTP header `Content-Type`
2782
- if _content_type:
2783
- _header_params['Content-Type'] = _content_type
2784
- else:
2785
- _default_content_type = (
2786
- self.api_client.select_header_content_type(
2787
- [
2788
- 'application/json',
2789
- 'text/json',
2790
- 'application/*+json'
2791
- ]
2792
- )
2793
- )
2794
- if _default_content_type is not None:
2795
- _header_params['Content-Type'] = _default_content_type
2796
-
2797
- # authentication setting
2798
- _auth_settings: List[str] = [
2799
- 'bearer',
2800
- 'oauth2'
2801
- ]
2802
-
2803
- return self.api_client.param_serialize(
2804
- method='PATCH',
2805
- resource_path='/leaderboard/{leaderboardId}',
2806
- path_params=_path_params,
2807
- query_params=_query_params,
2808
- header_params=_header_params,
2809
- body=_body_params,
2810
- post_params=_form_params,
2811
- files=_files,
2812
- auth_settings=_auth_settings,
2813
- collection_formats=_collection_formats,
2814
- _host=_host,
2815
- _request_auth=_request_auth
2816
- )
2817
-
2818
-
2819
-
2820
-
2821
- @validate_call
2822
- def leaderboard_leaderboard_id_prompts_get(
2823
- self,
2824
- leaderboard_id: StrictStr,
2825
- request: Optional[QueryModel] = None,
2826
- _request_timeout: Union[
2827
- None,
2828
- Annotated[StrictFloat, Field(gt=0)],
2829
- Tuple[
2830
- Annotated[StrictFloat, Field(gt=0)],
2831
- Annotated[StrictFloat, Field(gt=0)]
2832
- ]
2833
- ] = None,
2834
- _request_auth: Optional[Dict[StrictStr, Any]] = None,
2835
- _content_type: Optional[StrictStr] = None,
2836
- _headers: Optional[Dict[StrictStr, Any]] = None,
2837
- _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
2838
- ) -> PromptByBenchmarkResultPagedResult:
2839
- """(Deprecated) returns the paged prompts of a leaderboard by its ID.
2840
-
2841
-
2842
- :param leaderboard_id: (required)
2843
- :type leaderboard_id: str
2844
- :param request:
2845
- :type request: QueryModel
2846
- :param _request_timeout: timeout setting for this request. If one
2847
- number provided, it will be total request
2848
- timeout. It can also be a pair (tuple) of
2849
- (connection, read) timeouts.
2850
- :type _request_timeout: int, tuple(int, int), optional
2851
- :param _request_auth: set to override the auth_settings for an a single
2852
- request; this effectively ignores the
2853
- authentication in the spec for a single request.
2854
- :type _request_auth: dict, optional
2855
- :param _content_type: force content-type for the request.
2856
- :type _content_type: str, Optional
2857
- :param _headers: set to override the headers for a single
2858
- request; this effectively ignores the headers
2859
- in the spec for a single request.
2860
- :type _headers: dict, optional
2861
- :param _host_index: set to override the host_index for a single
2862
- request; this effectively ignores the host_index
2863
- in the spec for a single request.
2864
- :type _host_index: int, optional
2865
- :return: Returns the result object.
2866
- """ # noqa: E501
2867
- warnings.warn("GET /leaderboard/{leaderboardId}/prompts is deprecated.", DeprecationWarning)
2868
-
2869
- _param = self._leaderboard_leaderboard_id_prompts_get_serialize(
2870
- leaderboard_id=leaderboard_id,
2871
- request=request,
2872
- _request_auth=_request_auth,
2873
- _content_type=_content_type,
2874
- _headers=_headers,
2875
- _host_index=_host_index
2876
- )
2877
-
2878
- _response_types_map: Dict[str, Optional[str]] = {
2879
- '200': "PromptByBenchmarkResultPagedResult",
2880
- }
2881
- response_data = self.api_client.call_api(
2882
- *_param,
2883
- _request_timeout=_request_timeout
2884
- )
2885
- response_data.read()
2886
- return self.api_client.response_deserialize(
2887
- response_data=response_data,
2888
- response_types_map=_response_types_map,
2889
- ).data
2890
-
2891
-
2892
- @validate_call
2893
- def leaderboard_leaderboard_id_prompts_get_with_http_info(
2894
- self,
2895
- leaderboard_id: StrictStr,
2896
- request: Optional[QueryModel] = None,
2897
- _request_timeout: Union[
2898
- None,
2899
- Annotated[StrictFloat, Field(gt=0)],
2900
- Tuple[
2901
- Annotated[StrictFloat, Field(gt=0)],
2902
- Annotated[StrictFloat, Field(gt=0)]
2903
- ]
2904
- ] = None,
2905
- _request_auth: Optional[Dict[StrictStr, Any]] = None,
2906
- _content_type: Optional[StrictStr] = None,
2907
- _headers: Optional[Dict[StrictStr, Any]] = None,
2908
- _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
2909
- ) -> ApiResponse[PromptByBenchmarkResultPagedResult]:
2910
- """(Deprecated) returns the paged prompts of a leaderboard by its ID.
2911
-
2912
-
2913
- :param leaderboard_id: (required)
2914
- :type leaderboard_id: str
2915
- :param request:
2916
- :type request: QueryModel
2917
- :param _request_timeout: timeout setting for this request. If one
2918
- number provided, it will be total request
2919
- timeout. It can also be a pair (tuple) of
2920
- (connection, read) timeouts.
2921
- :type _request_timeout: int, tuple(int, int), optional
2922
- :param _request_auth: set to override the auth_settings for an a single
2923
- request; this effectively ignores the
2924
- authentication in the spec for a single request.
2925
- :type _request_auth: dict, optional
2926
- :param _content_type: force content-type for the request.
2927
- :type _content_type: str, Optional
2928
- :param _headers: set to override the headers for a single
2929
- request; this effectively ignores the headers
2930
- in the spec for a single request.
2931
- :type _headers: dict, optional
2932
- :param _host_index: set to override the host_index for a single
2933
- request; this effectively ignores the host_index
2934
- in the spec for a single request.
2935
- :type _host_index: int, optional
2936
- :return: Returns the result object.
2937
- """ # noqa: E501
2938
- warnings.warn("GET /leaderboard/{leaderboardId}/prompts is deprecated.", DeprecationWarning)
2939
-
2940
- _param = self._leaderboard_leaderboard_id_prompts_get_serialize(
2941
- leaderboard_id=leaderboard_id,
2942
- request=request,
2943
- _request_auth=_request_auth,
2944
- _content_type=_content_type,
2945
- _headers=_headers,
2946
- _host_index=_host_index
2947
- )
2948
-
2949
- _response_types_map: Dict[str, Optional[str]] = {
2950
- '200': "PromptByBenchmarkResultPagedResult",
2951
- }
2952
- response_data = self.api_client.call_api(
2953
- *_param,
2954
- _request_timeout=_request_timeout
2955
- )
2956
- response_data.read()
2957
- return self.api_client.response_deserialize(
2958
- response_data=response_data,
2959
- response_types_map=_response_types_map,
2960
- )
2961
-
2962
-
2963
- @validate_call
2964
- def leaderboard_leaderboard_id_prompts_get_without_preload_content(
2965
- self,
2966
- leaderboard_id: StrictStr,
2967
- request: Optional[QueryModel] = None,
2968
- _request_timeout: Union[
2969
- None,
2970
- Annotated[StrictFloat, Field(gt=0)],
2971
- Tuple[
2972
- Annotated[StrictFloat, Field(gt=0)],
2973
- Annotated[StrictFloat, Field(gt=0)]
2974
- ]
2975
- ] = None,
2976
- _request_auth: Optional[Dict[StrictStr, Any]] = None,
2977
- _content_type: Optional[StrictStr] = None,
2978
- _headers: Optional[Dict[StrictStr, Any]] = None,
2979
- _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
2980
- ) -> RESTResponseType:
2981
- """(Deprecated) returns the paged prompts of a leaderboard by its ID.
2982
-
2983
-
2984
- :param leaderboard_id: (required)
2985
- :type leaderboard_id: str
2986
- :param request:
2987
- :type request: QueryModel
2988
- :param _request_timeout: timeout setting for this request. If one
2989
- number provided, it will be total request
2990
- timeout. It can also be a pair (tuple) of
2991
- (connection, read) timeouts.
2992
- :type _request_timeout: int, tuple(int, int), optional
2993
- :param _request_auth: set to override the auth_settings for an a single
2994
- request; this effectively ignores the
2995
- authentication in the spec for a single request.
2996
- :type _request_auth: dict, optional
2997
- :param _content_type: force content-type for the request.
2998
- :type _content_type: str, Optional
2999
- :param _headers: set to override the headers for a single
3000
- request; this effectively ignores the headers
3001
- in the spec for a single request.
3002
- :type _headers: dict, optional
3003
- :param _host_index: set to override the host_index for a single
3004
- request; this effectively ignores the host_index
3005
- in the spec for a single request.
3006
- :type _host_index: int, optional
3007
- :return: Returns the result object.
3008
- """ # noqa: E501
3009
- warnings.warn("GET /leaderboard/{leaderboardId}/prompts is deprecated.", DeprecationWarning)
3010
-
3011
- _param = self._leaderboard_leaderboard_id_prompts_get_serialize(
3012
- leaderboard_id=leaderboard_id,
3013
- request=request,
3014
- _request_auth=_request_auth,
3015
- _content_type=_content_type,
3016
- _headers=_headers,
3017
- _host_index=_host_index
3018
- )
3019
-
3020
- _response_types_map: Dict[str, Optional[str]] = {
3021
- '200': "PromptByBenchmarkResultPagedResult",
3022
- }
3023
- response_data = self.api_client.call_api(
3024
- *_param,
3025
- _request_timeout=_request_timeout
3026
- )
3027
- return response_data.response
3028
-
3029
-
3030
- def _leaderboard_leaderboard_id_prompts_get_serialize(
3031
- self,
3032
- leaderboard_id,
3033
- request,
3034
- _request_auth,
3035
- _content_type,
3036
- _headers,
3037
- _host_index,
3038
- ) -> RequestSerialized:
3039
-
3040
- _host = None
3041
-
3042
- _collection_formats: Dict[str, str] = {
3043
- }
3044
-
3045
- _path_params: Dict[str, str] = {}
3046
- _query_params: List[Tuple[str, str]] = []
3047
- _header_params: Dict[str, Optional[str]] = _headers or {}
3048
- _form_params: List[Tuple[str, str]] = []
3049
- _files: Dict[
3050
- str, Union[str, bytes, List[str], List[bytes], List[Tuple[str, bytes]]]
3051
- ] = {}
3052
- _body_params: Optional[bytes] = None
3053
-
3054
- # process the path parameters
3055
- if leaderboard_id is not None:
3056
- _path_params['leaderboardId'] = leaderboard_id
3057
- # process the query parameters
3058
- if request is not None:
3059
-
3060
- _query_params.append(('request', request))
3061
-
3062
- # process the header parameters
3063
- # process the form parameters
3064
- # process the body parameter
3065
-
3066
-
3067
- # set the HTTP header `Accept`
3068
- if 'Accept' not in _header_params:
3069
- _header_params['Accept'] = self.api_client.select_header_accept(
3070
- [
3071
- 'text/plain',
3072
- 'application/json',
3073
- 'text/json'
3074
- ]
3075
- )
3076
-
3077
-
3078
- # authentication setting
3079
- _auth_settings: List[str] = [
3080
- 'bearer',
3081
- 'oauth2'
3082
- ]
3083
-
3084
- return self.api_client.param_serialize(
3085
- method='GET',
3086
- resource_path='/leaderboard/{leaderboardId}/prompts',
3087
- path_params=_path_params,
3088
- query_params=_query_params,
3089
- header_params=_header_params,
3090
- body=_body_params,
3091
- post_params=_form_params,
3092
- files=_files,
3093
- auth_settings=_auth_settings,
3094
- collection_formats=_collection_formats,
3095
- _host=_host,
3096
- _request_auth=_request_auth
3097
- )
3098
-
3099
-
3100
-
3101
-
3102
- @validate_call
3103
- def leaderboard_leaderboard_id_prompts_post(
3104
- self,
3105
- leaderboard_id: Annotated[StrictStr, Field(description="The leaderboard id.")],
3106
- body: Annotated[Optional[StrictStr], Field(description="The prompt")] = None,
3107
- _request_timeout: Union[
3108
- None,
3109
- Annotated[StrictFloat, Field(gt=0)],
3110
- Tuple[
3111
- Annotated[StrictFloat, Field(gt=0)],
3112
- Annotated[StrictFloat, Field(gt=0)]
3113
- ]
3114
- ] = None,
3115
- _request_auth: Optional[Dict[StrictStr, Any]] = None,
3116
- _content_type: Optional[StrictStr] = None,
3117
- _headers: Optional[Dict[StrictStr, Any]] = None,
3118
- _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
3119
- ) -> None:
3120
- """(Deprecated) adds a new prompt to a leaderboard.
3121
-
3122
-
3123
- :param leaderboard_id: The leaderboard id. (required)
3124
- :type leaderboard_id: str
3125
- :param body: The prompt
3126
- :type body: str
3127
- :param _request_timeout: timeout setting for this request. If one
3128
- number provided, it will be total request
3129
- timeout. It can also be a pair (tuple) of
3130
- (connection, read) timeouts.
3131
- :type _request_timeout: int, tuple(int, int), optional
3132
- :param _request_auth: set to override the auth_settings for an a single
3133
- request; this effectively ignores the
3134
- authentication in the spec for a single request.
3135
- :type _request_auth: dict, optional
3136
- :param _content_type: force content-type for the request.
3137
- :type _content_type: str, Optional
3138
- :param _headers: set to override the headers for a single
3139
- request; this effectively ignores the headers
3140
- in the spec for a single request.
3141
- :type _headers: dict, optional
3142
- :param _host_index: set to override the host_index for a single
3143
- request; this effectively ignores the host_index
3144
- in the spec for a single request.
3145
- :type _host_index: int, optional
3146
- :return: Returns the result object.
3147
- """ # noqa: E501
3148
- warnings.warn("POST /leaderboard/{leaderboardId}/prompts is deprecated.", DeprecationWarning)
3149
-
3150
- _param = self._leaderboard_leaderboard_id_prompts_post_serialize(
3151
- leaderboard_id=leaderboard_id,
3152
- body=body,
3153
- _request_auth=_request_auth,
3154
- _content_type=_content_type,
3155
- _headers=_headers,
3156
- _host_index=_host_index
3157
- )
3158
-
3159
- _response_types_map: Dict[str, Optional[str]] = {
3160
- '204': None,
3161
- }
3162
- response_data = self.api_client.call_api(
3163
- *_param,
3164
- _request_timeout=_request_timeout
3165
- )
3166
- response_data.read()
3167
- return self.api_client.response_deserialize(
3168
- response_data=response_data,
3169
- response_types_map=_response_types_map,
3170
- ).data
3171
-
3172
-
3173
- @validate_call
3174
- def leaderboard_leaderboard_id_prompts_post_with_http_info(
3175
- self,
3176
- leaderboard_id: Annotated[StrictStr, Field(description="The leaderboard id.")],
3177
- body: Annotated[Optional[StrictStr], Field(description="The prompt")] = None,
3178
- _request_timeout: Union[
3179
- None,
3180
- Annotated[StrictFloat, Field(gt=0)],
3181
- Tuple[
3182
- Annotated[StrictFloat, Field(gt=0)],
3183
- Annotated[StrictFloat, Field(gt=0)]
3184
- ]
3185
- ] = None,
3186
- _request_auth: Optional[Dict[StrictStr, Any]] = None,
3187
- _content_type: Optional[StrictStr] = None,
3188
- _headers: Optional[Dict[StrictStr, Any]] = None,
3189
- _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
3190
- ) -> ApiResponse[None]:
3191
- """(Deprecated) adds a new prompt to a leaderboard.
3192
-
3193
-
3194
- :param leaderboard_id: The leaderboard id. (required)
3195
- :type leaderboard_id: str
3196
- :param body: The prompt
3197
- :type body: str
3198
- :param _request_timeout: timeout setting for this request. If one
3199
- number provided, it will be total request
3200
- timeout. It can also be a pair (tuple) of
3201
- (connection, read) timeouts.
3202
- :type _request_timeout: int, tuple(int, int), optional
3203
- :param _request_auth: set to override the auth_settings for an a single
3204
- request; this effectively ignores the
3205
- authentication in the spec for a single request.
3206
- :type _request_auth: dict, optional
3207
- :param _content_type: force content-type for the request.
3208
- :type _content_type: str, Optional
3209
- :param _headers: set to override the headers for a single
3210
- request; this effectively ignores the headers
3211
- in the spec for a single request.
3212
- :type _headers: dict, optional
3213
- :param _host_index: set to override the host_index for a single
3214
- request; this effectively ignores the host_index
3215
- in the spec for a single request.
3216
- :type _host_index: int, optional
3217
- :return: Returns the result object.
3218
- """ # noqa: E501
3219
- warnings.warn("POST /leaderboard/{leaderboardId}/prompts is deprecated.", DeprecationWarning)
3220
-
3221
- _param = self._leaderboard_leaderboard_id_prompts_post_serialize(
3222
- leaderboard_id=leaderboard_id,
3223
- body=body,
3224
- _request_auth=_request_auth,
3225
- _content_type=_content_type,
3226
- _headers=_headers,
3227
- _host_index=_host_index
3228
- )
3229
-
3230
- _response_types_map: Dict[str, Optional[str]] = {
3231
- '204': None,
3232
- }
3233
- response_data = self.api_client.call_api(
3234
- *_param,
3235
- _request_timeout=_request_timeout
3236
- )
3237
- response_data.read()
3238
- return self.api_client.response_deserialize(
3239
- response_data=response_data,
3240
- response_types_map=_response_types_map,
3241
- )
3242
-
3243
-
3244
- @validate_call
3245
- def leaderboard_leaderboard_id_prompts_post_without_preload_content(
3246
- self,
3247
- leaderboard_id: Annotated[StrictStr, Field(description="The leaderboard id.")],
3248
- body: Annotated[Optional[StrictStr], Field(description="The prompt")] = None,
3249
- _request_timeout: Union[
3250
- None,
3251
- Annotated[StrictFloat, Field(gt=0)],
3252
- Tuple[
3253
- Annotated[StrictFloat, Field(gt=0)],
3254
- Annotated[StrictFloat, Field(gt=0)]
3255
- ]
3256
- ] = None,
3257
- _request_auth: Optional[Dict[StrictStr, Any]] = None,
3258
- _content_type: Optional[StrictStr] = None,
3259
- _headers: Optional[Dict[StrictStr, Any]] = None,
3260
- _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
3261
- ) -> RESTResponseType:
3262
- """(Deprecated) adds a new prompt to a leaderboard.
3263
-
3264
-
3265
- :param leaderboard_id: The leaderboard id. (required)
3266
- :type leaderboard_id: str
3267
- :param body: The prompt
3268
- :type body: str
3269
- :param _request_timeout: timeout setting for this request. If one
3270
- number provided, it will be total request
3271
- timeout. It can also be a pair (tuple) of
3272
- (connection, read) timeouts.
3273
- :type _request_timeout: int, tuple(int, int), optional
3274
- :param _request_auth: set to override the auth_settings for an a single
3275
- request; this effectively ignores the
3276
- authentication in the spec for a single request.
3277
- :type _request_auth: dict, optional
3278
- :param _content_type: force content-type for the request.
3279
- :type _content_type: str, Optional
3280
- :param _headers: set to override the headers for a single
3281
- request; this effectively ignores the headers
3282
- in the spec for a single request.
3283
- :type _headers: dict, optional
3284
- :param _host_index: set to override the host_index for a single
3285
- request; this effectively ignores the host_index
3286
- in the spec for a single request.
3287
- :type _host_index: int, optional
3288
- :return: Returns the result object.
3289
- """ # noqa: E501
3290
- warnings.warn("POST /leaderboard/{leaderboardId}/prompts is deprecated.", DeprecationWarning)
3291
-
3292
- _param = self._leaderboard_leaderboard_id_prompts_post_serialize(
3293
- leaderboard_id=leaderboard_id,
3294
- body=body,
3295
- _request_auth=_request_auth,
3296
- _content_type=_content_type,
3297
- _headers=_headers,
3298
- _host_index=_host_index
3299
- )
3300
-
3301
- _response_types_map: Dict[str, Optional[str]] = {
3302
- '204': None,
3303
- }
3304
- response_data = self.api_client.call_api(
3305
- *_param,
3306
- _request_timeout=_request_timeout
3307
- )
3308
- return response_data.response
3309
-
3310
-
3311
- def _leaderboard_leaderboard_id_prompts_post_serialize(
3312
- self,
3313
- leaderboard_id,
3314
- body,
3315
- _request_auth,
3316
- _content_type,
3317
- _headers,
3318
- _host_index,
3319
- ) -> RequestSerialized:
3320
-
3321
- _host = None
3322
-
3323
- _collection_formats: Dict[str, str] = {
3324
- }
3325
-
3326
- _path_params: Dict[str, str] = {}
3327
- _query_params: List[Tuple[str, str]] = []
3328
- _header_params: Dict[str, Optional[str]] = _headers or {}
3329
- _form_params: List[Tuple[str, str]] = []
3330
- _files: Dict[
3331
- str, Union[str, bytes, List[str], List[bytes], List[Tuple[str, bytes]]]
3332
- ] = {}
3333
- _body_params: Optional[bytes] = None
3334
-
3335
- # process the path parameters
3336
- if leaderboard_id is not None:
3337
- _path_params['leaderboardId'] = leaderboard_id
3338
- # process the query parameters
3339
- # process the header parameters
3340
- # process the form parameters
3341
- # process the body parameter
3342
- if body is not None:
3343
- _body_params = body
3344
-
3345
-
3346
-
3347
- # set the HTTP header `Content-Type`
3348
- if _content_type:
3349
- _header_params['Content-Type'] = _content_type
3350
- else:
3351
- _default_content_type = (
3352
- self.api_client.select_header_content_type(
3353
- [
3354
- 'application/json',
3355
- 'text/json',
3356
- 'application/*+json',
3357
- 'text/plain'
3358
- ]
3359
- )
3360
- )
3361
- if _default_content_type is not None:
3362
- _header_params['Content-Type'] = _default_content_type
3363
-
3364
- # authentication setting
3365
- _auth_settings: List[str] = [
3366
- 'bearer',
3367
- 'oauth2'
3368
- ]
3369
-
3370
- return self.api_client.param_serialize(
3371
- method='POST',
3372
- resource_path='/leaderboard/{leaderboardId}/prompts',
3373
- path_params=_path_params,
3374
- query_params=_query_params,
3375
- header_params=_header_params,
3376
- body=_body_params,
3377
- post_params=_form_params,
3378
- files=_files,
3379
- auth_settings=_auth_settings,
3380
- collection_formats=_collection_formats,
3381
- _host=_host,
3382
- _request_auth=_request_auth
3383
- )
3384
-
3385
-
3386
-
3387
-
3388
- @validate_call
3389
- def leaderboard_leaderboard_id_response_config_put(
1133
+ def leaderboard_leaderboard_id_patch(
3390
1134
  self,
3391
1135
  leaderboard_id: StrictStr,
3392
- update_leaderboard_response_config_model: Optional[UpdateLeaderboardResponseConfigModel] = None,
1136
+ update_leaderboard_model: Optional[UpdateLeaderboardModel] = None,
3393
1137
  _request_timeout: Union[
3394
1138
  None,
3395
1139
  Annotated[StrictFloat, Field(gt=0)],
@@ -3403,13 +1147,13 @@ class LeaderboardApi:
3403
1147
  _headers: Optional[Dict[StrictStr, Any]] = None,
3404
1148
  _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
3405
1149
  ) -> None:
3406
- """(Deprecated) Updates the response config of a leaderboard.
1150
+ """Updates the response config of a leaderboard.
3407
1151
 
3408
1152
 
3409
1153
  :param leaderboard_id: (required)
3410
1154
  :type leaderboard_id: str
3411
- :param update_leaderboard_response_config_model:
3412
- :type update_leaderboard_response_config_model: UpdateLeaderboardResponseConfigModel
1155
+ :param update_leaderboard_model:
1156
+ :type update_leaderboard_model: UpdateLeaderboardModel
3413
1157
  :param _request_timeout: timeout setting for this request. If one
3414
1158
  number provided, it will be total request
3415
1159
  timeout. It can also be a pair (tuple) of
@@ -3431,11 +1175,10 @@ class LeaderboardApi:
3431
1175
  :type _host_index: int, optional
3432
1176
  :return: Returns the result object.
3433
1177
  """ # noqa: E501
3434
- warnings.warn("PUT /leaderboard/{leaderboardId}/response-config is deprecated.", DeprecationWarning)
3435
1178
 
3436
- _param = self._leaderboard_leaderboard_id_response_config_put_serialize(
1179
+ _param = self._leaderboard_leaderboard_id_patch_serialize(
3437
1180
  leaderboard_id=leaderboard_id,
3438
- update_leaderboard_response_config_model=update_leaderboard_response_config_model,
1181
+ update_leaderboard_model=update_leaderboard_model,
3439
1182
  _request_auth=_request_auth,
3440
1183
  _content_type=_content_type,
3441
1184
  _headers=_headers,
@@ -3457,10 +1200,10 @@ class LeaderboardApi:
3457
1200
 
3458
1201
 
3459
1202
  @validate_call
3460
- def leaderboard_leaderboard_id_response_config_put_with_http_info(
1203
+ def leaderboard_leaderboard_id_patch_with_http_info(
3461
1204
  self,
3462
1205
  leaderboard_id: StrictStr,
3463
- update_leaderboard_response_config_model: Optional[UpdateLeaderboardResponseConfigModel] = None,
1206
+ update_leaderboard_model: Optional[UpdateLeaderboardModel] = None,
3464
1207
  _request_timeout: Union[
3465
1208
  None,
3466
1209
  Annotated[StrictFloat, Field(gt=0)],
@@ -3474,13 +1217,13 @@ class LeaderboardApi:
3474
1217
  _headers: Optional[Dict[StrictStr, Any]] = None,
3475
1218
  _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
3476
1219
  ) -> ApiResponse[None]:
3477
- """(Deprecated) Updates the response config of a leaderboard.
1220
+ """Updates the response config of a leaderboard.
3478
1221
 
3479
1222
 
3480
1223
  :param leaderboard_id: (required)
3481
1224
  :type leaderboard_id: str
3482
- :param update_leaderboard_response_config_model:
3483
- :type update_leaderboard_response_config_model: UpdateLeaderboardResponseConfigModel
1225
+ :param update_leaderboard_model:
1226
+ :type update_leaderboard_model: UpdateLeaderboardModel
3484
1227
  :param _request_timeout: timeout setting for this request. If one
3485
1228
  number provided, it will be total request
3486
1229
  timeout. It can also be a pair (tuple) of
@@ -3502,11 +1245,10 @@ class LeaderboardApi:
3502
1245
  :type _host_index: int, optional
3503
1246
  :return: Returns the result object.
3504
1247
  """ # noqa: E501
3505
- warnings.warn("PUT /leaderboard/{leaderboardId}/response-config is deprecated.", DeprecationWarning)
3506
1248
 
3507
- _param = self._leaderboard_leaderboard_id_response_config_put_serialize(
1249
+ _param = self._leaderboard_leaderboard_id_patch_serialize(
3508
1250
  leaderboard_id=leaderboard_id,
3509
- update_leaderboard_response_config_model=update_leaderboard_response_config_model,
1251
+ update_leaderboard_model=update_leaderboard_model,
3510
1252
  _request_auth=_request_auth,
3511
1253
  _content_type=_content_type,
3512
1254
  _headers=_headers,
@@ -3528,10 +1270,10 @@ class LeaderboardApi:
3528
1270
 
3529
1271
 
3530
1272
  @validate_call
3531
- def leaderboard_leaderboard_id_response_config_put_without_preload_content(
1273
+ def leaderboard_leaderboard_id_patch_without_preload_content(
3532
1274
  self,
3533
1275
  leaderboard_id: StrictStr,
3534
- update_leaderboard_response_config_model: Optional[UpdateLeaderboardResponseConfigModel] = None,
1276
+ update_leaderboard_model: Optional[UpdateLeaderboardModel] = None,
3535
1277
  _request_timeout: Union[
3536
1278
  None,
3537
1279
  Annotated[StrictFloat, Field(gt=0)],
@@ -3545,13 +1287,13 @@ class LeaderboardApi:
3545
1287
  _headers: Optional[Dict[StrictStr, Any]] = None,
3546
1288
  _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
3547
1289
  ) -> RESTResponseType:
3548
- """(Deprecated) Updates the response config of a leaderboard.
1290
+ """Updates the response config of a leaderboard.
3549
1291
 
3550
1292
 
3551
1293
  :param leaderboard_id: (required)
3552
1294
  :type leaderboard_id: str
3553
- :param update_leaderboard_response_config_model:
3554
- :type update_leaderboard_response_config_model: UpdateLeaderboardResponseConfigModel
1295
+ :param update_leaderboard_model:
1296
+ :type update_leaderboard_model: UpdateLeaderboardModel
3555
1297
  :param _request_timeout: timeout setting for this request. If one
3556
1298
  number provided, it will be total request
3557
1299
  timeout. It can also be a pair (tuple) of
@@ -3573,11 +1315,10 @@ class LeaderboardApi:
3573
1315
  :type _host_index: int, optional
3574
1316
  :return: Returns the result object.
3575
1317
  """ # noqa: E501
3576
- warnings.warn("PUT /leaderboard/{leaderboardId}/response-config is deprecated.", DeprecationWarning)
3577
1318
 
3578
- _param = self._leaderboard_leaderboard_id_response_config_put_serialize(
1319
+ _param = self._leaderboard_leaderboard_id_patch_serialize(
3579
1320
  leaderboard_id=leaderboard_id,
3580
- update_leaderboard_response_config_model=update_leaderboard_response_config_model,
1321
+ update_leaderboard_model=update_leaderboard_model,
3581
1322
  _request_auth=_request_auth,
3582
1323
  _content_type=_content_type,
3583
1324
  _headers=_headers,
@@ -3594,10 +1335,10 @@ class LeaderboardApi:
3594
1335
  return response_data.response
3595
1336
 
3596
1337
 
3597
- def _leaderboard_leaderboard_id_response_config_put_serialize(
1338
+ def _leaderboard_leaderboard_id_patch_serialize(
3598
1339
  self,
3599
1340
  leaderboard_id,
3600
- update_leaderboard_response_config_model,
1341
+ update_leaderboard_model,
3601
1342
  _request_auth,
3602
1343
  _content_type,
3603
1344
  _headers,
@@ -3625,8 +1366,8 @@ class LeaderboardApi:
3625
1366
  # process the header parameters
3626
1367
  # process the form parameters
3627
1368
  # process the body parameter
3628
- if update_leaderboard_response_config_model is not None:
3629
- _body_params = update_leaderboard_response_config_model
1369
+ if update_leaderboard_model is not None:
1370
+ _body_params = update_leaderboard_model
3630
1371
 
3631
1372
 
3632
1373
 
@@ -3653,8 +1394,8 @@ class LeaderboardApi:
3653
1394
  ]
3654
1395
 
3655
1396
  return self.api_client.param_serialize(
3656
- method='PUT',
3657
- resource_path='/leaderboard/{leaderboardId}/response-config',
1397
+ method='PATCH',
1398
+ resource_path='/leaderboard/{leaderboardId}',
3658
1399
  path_params=_path_params,
3659
1400
  query_params=_query_params,
3660
1401
  header_params=_header_params,