rapidata 2.28.4__py3-none-any.whl → 2.29.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.
- rapidata/__init__.py +1 -1
- rapidata/api_client/__init__.py +44 -17
- rapidata/api_client/api/__init__.py +1 -0
- rapidata/api_client/api/benchmark_api.py +2766 -0
- rapidata/api_client/api/campaign_api.py +0 -780
- rapidata/api_client/api/coco_api.py +0 -571
- rapidata/api_client/api/customer_rapid_api.py +332 -1
- rapidata/api_client/api/datapoint_api.py +0 -524
- rapidata/api_client/api/dataset_api.py +595 -2276
- rapidata/api_client/api/feedback_api.py +0 -270
- rapidata/api_client/api/identity_api.py +74 -888
- rapidata/api_client/api/leaderboard_api.py +1642 -259
- rapidata/api_client/api/order_api.py +617 -5692
- rapidata/api_client/api/pipeline_api.py +31 -334
- rapidata/api_client/api/validation_set_api.py +469 -3356
- rapidata/api_client/api/workflow_api.py +0 -799
- rapidata/api_client/models/__init__.py +43 -17
- rapidata/api_client/models/add_campaign_model.py +3 -3
- rapidata/api_client/models/add_validation_rapid_model.py +1 -3
- rapidata/api_client/models/add_validation_text_rapid_model.py +1 -3
- rapidata/api_client/models/and_user_filter_model.py +106 -0
- rapidata/api_client/models/and_user_filter_model_filters_inner.py +282 -0
- rapidata/api_client/models/benchmark_query_result.py +94 -0
- rapidata/api_client/models/benchmark_query_result_paged_result.py +105 -0
- rapidata/api_client/models/boost_leaderboard_model.py +89 -0
- rapidata/api_client/models/clone_order_model.py +2 -4
- rapidata/api_client/models/create_benchmark_model.py +87 -0
- rapidata/api_client/models/create_benchmark_participant_model.py +87 -0
- rapidata/api_client/models/create_benchmark_participant_result.py +89 -0
- rapidata/api_client/models/create_benchmark_result.py +87 -0
- rapidata/api_client/models/create_datapoint_result.py +4 -16
- rapidata/api_client/models/create_leaderboard_model.py +18 -2
- rapidata/api_client/models/create_leaderboard_result.py +5 -3
- rapidata/api_client/models/create_order_model.py +3 -3
- rapidata/api_client/models/file_asset_input.py +104 -0
- rapidata/api_client/models/file_asset_input1.py +104 -0
- rapidata/api_client/models/file_asset_input1_file.py +168 -0
- rapidata/api_client/models/file_asset_input2.py +104 -0
- rapidata/api_client/models/file_asset_input_file.py +182 -0
- rapidata/api_client/models/form_file_wrapper.py +120 -0
- rapidata/api_client/models/get_benchmark_by_id_query.py +96 -0
- rapidata/api_client/models/get_benchmark_by_id_query_result.py +94 -0
- rapidata/api_client/models/get_benchmark_by_id_query_result_paged_result.py +105 -0
- rapidata/api_client/models/get_benchmark_by_id_result.py +94 -0
- rapidata/api_client/models/get_participant_by_id_result.py +6 -22
- rapidata/api_client/models/get_standing_by_id_result.py +113 -0
- rapidata/api_client/models/get_validation_rapids_result.py +3 -3
- rapidata/api_client/models/get_workflow_results_result.py +3 -3
- rapidata/api_client/models/local_file_wrapper.py +120 -0
- rapidata/api_client/models/multi_asset_input.py +110 -0
- rapidata/api_client/models/multi_asset_input1.py +110 -0
- rapidata/api_client/models/multi_asset_input1_assets_inner.py +170 -0
- rapidata/api_client/models/multi_asset_input2.py +110 -0
- rapidata/api_client/models/multi_asset_input_assets_inner.py +170 -0
- rapidata/api_client/models/not_user_filter_model.py +3 -3
- rapidata/api_client/models/or_user_filter_model.py +3 -3
- rapidata/api_client/models/participant_by_benchmark.py +102 -0
- rapidata/api_client/models/participant_by_benchmark_paged_result.py +105 -0
- rapidata/api_client/models/participant_by_leaderboard.py +6 -2
- rapidata/api_client/models/participant_status.py +1 -4
- rapidata/api_client/models/pipeline_id_workflow_config_put_request.py +140 -0
- rapidata/api_client/models/potential_validation_rapid.py +103 -0
- rapidata/api_client/models/potential_validation_rapid_paged_result.py +105 -0
- rapidata/api_client/models/potential_validation_rapid_truth.py +280 -0
- rapidata/api_client/models/prompt_asset_metadata_input.py +3 -3
- rapidata/api_client/models/prompt_asset_metadata_input_asset.py +170 -0
- rapidata/api_client/models/prompt_by_benchmark_result.py +92 -0
- rapidata/api_client/models/prompt_by_benchmark_result_paged_result.py +105 -0
- rapidata/api_client/models/prompt_metadata_input.py +5 -3
- rapidata/api_client/models/proxy_file_wrapper.py +114 -0
- rapidata/api_client/models/query_validation_model.py +97 -0
- rapidata/api_client/models/rapid_model.py +3 -3
- rapidata/api_client/models/simple_workflow_config.py +3 -3
- rapidata/api_client/models/simple_workflow_model1.py +3 -3
- rapidata/api_client/models/standing_by_leaderboard.py +113 -0
- rapidata/api_client/models/standing_by_leaderboard_paged_result.py +105 -0
- rapidata/api_client/models/standing_status.py +38 -0
- rapidata/api_client/models/stream_file_wrapper.py +116 -0
- rapidata/api_client/models/submit_coco_model.py +1 -3
- rapidata/api_client/models/submit_prompt_model.py +89 -0
- rapidata/api_client/models/text_asset_input.py +100 -0
- rapidata/api_client/models/transcription_metadata_input.py +5 -3
- rapidata/api_client/models/validation_set_zip_post_request_blueprint.py +252 -0
- rapidata/api_client/models/zip_entry_file_wrapper.py +120 -0
- rapidata/api_client_README.md +67 -76
- rapidata/rapidata_client/benchmark/leaderboard/__init__.py +0 -0
- rapidata/rapidata_client/benchmark/leaderboard/rapidata_leaderboard.py +62 -0
- rapidata/rapidata_client/benchmark/rapidata_benchmark.py +227 -0
- rapidata/rapidata_client/benchmark/rapidata_benchmark_manager.py +83 -0
- rapidata/rapidata_client/filter/not_filter.py +2 -2
- rapidata/rapidata_client/filter/or_filter.py +2 -2
- rapidata/rapidata_client/metadata/__init__.py +1 -0
- rapidata/rapidata_client/metadata/_media_asset_metadata.py +8 -1
- rapidata/rapidata_client/metadata/_prompt_identifier_metadata.py +15 -0
- rapidata/rapidata_client/order/_rapidata_dataset.py +6 -6
- rapidata/rapidata_client/order/_rapidata_order_builder.py +4 -4
- rapidata/rapidata_client/order/rapidata_order.py +1 -1
- rapidata/rapidata_client/rapidata_client.py +3 -3
- rapidata/rapidata_client/validation/rapidata_validation_set.py +1 -1
- rapidata/rapidata_client/validation/rapids/rapids.py +4 -6
- rapidata/service/openapi_service.py +5 -0
- {rapidata-2.28.4.dist-info → rapidata-2.29.0.dist-info}/METADATA +1 -1
- {rapidata-2.28.4.dist-info → rapidata-2.29.0.dist-info}/RECORD +106 -57
- rapidata/rapidata_client/leaderboard/rapidata_leaderboard.py +0 -127
- rapidata/rapidata_client/leaderboard/rapidata_leaderboard_manager.py +0 -92
- /rapidata/rapidata_client/{leaderboard → benchmark}/__init__.py +0 -0
- {rapidata-2.28.4.dist-info → rapidata-2.29.0.dist-info}/LICENSE +0 -0
- {rapidata-2.28.4.dist-info → rapidata-2.29.0.dist-info}/WHEEL +0 -0
|
@@ -19,16 +19,17 @@ from typing_extensions import Annotated
|
|
|
19
19
|
from pydantic import Field, StrictStr
|
|
20
20
|
from typing import Optional
|
|
21
21
|
from typing_extensions import Annotated
|
|
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
|
|
22
25
|
from rapidata.api_client.models.create_leaderboard_model import CreateLeaderboardModel
|
|
23
|
-
from rapidata.api_client.models.create_leaderboard_participant_model import CreateLeaderboardParticipantModel
|
|
24
|
-
from rapidata.api_client.models.create_leaderboard_participant_result import CreateLeaderboardParticipantResult
|
|
25
26
|
from rapidata.api_client.models.create_leaderboard_result import CreateLeaderboardResult
|
|
26
27
|
from rapidata.api_client.models.get_leaderboard_by_id_result import GetLeaderboardByIdResult
|
|
27
|
-
from rapidata.api_client.models.
|
|
28
|
+
from rapidata.api_client.models.get_standing_by_id_result import GetStandingByIdResult
|
|
28
29
|
from rapidata.api_client.models.leaderboard_query_result_paged_result import LeaderboardQueryResultPagedResult
|
|
29
|
-
from rapidata.api_client.models.
|
|
30
|
-
from rapidata.api_client.models.prompt_by_leaderboard_result_paged_result import PromptByLeaderboardResultPagedResult
|
|
30
|
+
from rapidata.api_client.models.prompt_by_benchmark_result_paged_result import PromptByBenchmarkResultPagedResult
|
|
31
31
|
from rapidata.api_client.models.query_model import QueryModel
|
|
32
|
+
from rapidata.api_client.models.standing_by_leaderboard_paged_result import StandingByLeaderboardPagedResult
|
|
32
33
|
from rapidata.api_client.models.submit_participant_result import SubmitParticipantResult
|
|
33
34
|
|
|
34
35
|
from rapidata.api_client.api_client import ApiClient, RequestSerialized
|
|
@@ -50,9 +51,10 @@ class LeaderboardApi:
|
|
|
50
51
|
|
|
51
52
|
|
|
52
53
|
@validate_call
|
|
53
|
-
def
|
|
54
|
+
def benchmark_standing_leaderboard_id_participant_id_get(
|
|
54
55
|
self,
|
|
55
56
|
leaderboard_id: StrictStr,
|
|
57
|
+
participant_id: StrictStr,
|
|
56
58
|
_request_timeout: Union[
|
|
57
59
|
None,
|
|
58
60
|
Annotated[StrictFloat, Field(gt=0)],
|
|
@@ -65,12 +67,14 @@ class LeaderboardApi:
|
|
|
65
67
|
_content_type: Optional[StrictStr] = None,
|
|
66
68
|
_headers: Optional[Dict[StrictStr, Any]] = None,
|
|
67
69
|
_host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
|
|
68
|
-
) ->
|
|
69
|
-
"""Gets a
|
|
70
|
+
) -> GetStandingByIdResult:
|
|
71
|
+
"""Gets a standing by leaderboardId and participantId.
|
|
70
72
|
|
|
71
73
|
|
|
72
74
|
:param leaderboard_id: (required)
|
|
73
75
|
:type leaderboard_id: str
|
|
76
|
+
:param participant_id: (required)
|
|
77
|
+
:type participant_id: str
|
|
74
78
|
:param _request_timeout: timeout setting for this request. If one
|
|
75
79
|
number provided, it will be total request
|
|
76
80
|
timeout. It can also be a pair (tuple) of
|
|
@@ -93,8 +97,9 @@ class LeaderboardApi:
|
|
|
93
97
|
:return: Returns the result object.
|
|
94
98
|
""" # noqa: E501
|
|
95
99
|
|
|
96
|
-
_param = self.
|
|
100
|
+
_param = self._benchmark_standing_leaderboard_id_participant_id_get_serialize(
|
|
97
101
|
leaderboard_id=leaderboard_id,
|
|
102
|
+
participant_id=participant_id,
|
|
98
103
|
_request_auth=_request_auth,
|
|
99
104
|
_content_type=_content_type,
|
|
100
105
|
_headers=_headers,
|
|
@@ -102,7 +107,7 @@ class LeaderboardApi:
|
|
|
102
107
|
)
|
|
103
108
|
|
|
104
109
|
_response_types_map: Dict[str, Optional[str]] = {
|
|
105
|
-
'200': "
|
|
110
|
+
'200': "GetStandingByIdResult",
|
|
106
111
|
}
|
|
107
112
|
response_data = self.api_client.call_api(
|
|
108
113
|
*_param,
|
|
@@ -116,9 +121,10 @@ class LeaderboardApi:
|
|
|
116
121
|
|
|
117
122
|
|
|
118
123
|
@validate_call
|
|
119
|
-
def
|
|
124
|
+
def benchmark_standing_leaderboard_id_participant_id_get_with_http_info(
|
|
120
125
|
self,
|
|
121
126
|
leaderboard_id: StrictStr,
|
|
127
|
+
participant_id: StrictStr,
|
|
122
128
|
_request_timeout: Union[
|
|
123
129
|
None,
|
|
124
130
|
Annotated[StrictFloat, Field(gt=0)],
|
|
@@ -131,12 +137,14 @@ class LeaderboardApi:
|
|
|
131
137
|
_content_type: Optional[StrictStr] = None,
|
|
132
138
|
_headers: Optional[Dict[StrictStr, Any]] = None,
|
|
133
139
|
_host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
|
|
134
|
-
) -> ApiResponse[
|
|
135
|
-
"""Gets a
|
|
140
|
+
) -> ApiResponse[GetStandingByIdResult]:
|
|
141
|
+
"""Gets a standing by leaderboardId and participantId.
|
|
136
142
|
|
|
137
143
|
|
|
138
144
|
:param leaderboard_id: (required)
|
|
139
145
|
:type leaderboard_id: str
|
|
146
|
+
:param participant_id: (required)
|
|
147
|
+
:type participant_id: str
|
|
140
148
|
:param _request_timeout: timeout setting for this request. If one
|
|
141
149
|
number provided, it will be total request
|
|
142
150
|
timeout. It can also be a pair (tuple) of
|
|
@@ -159,8 +167,9 @@ class LeaderboardApi:
|
|
|
159
167
|
:return: Returns the result object.
|
|
160
168
|
""" # noqa: E501
|
|
161
169
|
|
|
162
|
-
_param = self.
|
|
170
|
+
_param = self._benchmark_standing_leaderboard_id_participant_id_get_serialize(
|
|
163
171
|
leaderboard_id=leaderboard_id,
|
|
172
|
+
participant_id=participant_id,
|
|
164
173
|
_request_auth=_request_auth,
|
|
165
174
|
_content_type=_content_type,
|
|
166
175
|
_headers=_headers,
|
|
@@ -168,7 +177,7 @@ class LeaderboardApi:
|
|
|
168
177
|
)
|
|
169
178
|
|
|
170
179
|
_response_types_map: Dict[str, Optional[str]] = {
|
|
171
|
-
'200': "
|
|
180
|
+
'200': "GetStandingByIdResult",
|
|
172
181
|
}
|
|
173
182
|
response_data = self.api_client.call_api(
|
|
174
183
|
*_param,
|
|
@@ -182,9 +191,10 @@ class LeaderboardApi:
|
|
|
182
191
|
|
|
183
192
|
|
|
184
193
|
@validate_call
|
|
185
|
-
def
|
|
194
|
+
def benchmark_standing_leaderboard_id_participant_id_get_without_preload_content(
|
|
186
195
|
self,
|
|
187
196
|
leaderboard_id: StrictStr,
|
|
197
|
+
participant_id: StrictStr,
|
|
188
198
|
_request_timeout: Union[
|
|
189
199
|
None,
|
|
190
200
|
Annotated[StrictFloat, Field(gt=0)],
|
|
@@ -198,11 +208,13 @@ class LeaderboardApi:
|
|
|
198
208
|
_headers: Optional[Dict[StrictStr, Any]] = None,
|
|
199
209
|
_host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
|
|
200
210
|
) -> RESTResponseType:
|
|
201
|
-
"""Gets a
|
|
211
|
+
"""Gets a standing by leaderboardId and participantId.
|
|
202
212
|
|
|
203
213
|
|
|
204
214
|
:param leaderboard_id: (required)
|
|
205
215
|
:type leaderboard_id: str
|
|
216
|
+
:param participant_id: (required)
|
|
217
|
+
:type participant_id: str
|
|
206
218
|
:param _request_timeout: timeout setting for this request. If one
|
|
207
219
|
number provided, it will be total request
|
|
208
220
|
timeout. It can also be a pair (tuple) of
|
|
@@ -225,8 +237,9 @@ class LeaderboardApi:
|
|
|
225
237
|
:return: Returns the result object.
|
|
226
238
|
""" # noqa: E501
|
|
227
239
|
|
|
228
|
-
_param = self.
|
|
240
|
+
_param = self._benchmark_standing_leaderboard_id_participant_id_get_serialize(
|
|
229
241
|
leaderboard_id=leaderboard_id,
|
|
242
|
+
participant_id=participant_id,
|
|
230
243
|
_request_auth=_request_auth,
|
|
231
244
|
_content_type=_content_type,
|
|
232
245
|
_headers=_headers,
|
|
@@ -234,7 +247,7 @@ class LeaderboardApi:
|
|
|
234
247
|
)
|
|
235
248
|
|
|
236
249
|
_response_types_map: Dict[str, Optional[str]] = {
|
|
237
|
-
'200': "
|
|
250
|
+
'200': "GetStandingByIdResult",
|
|
238
251
|
}
|
|
239
252
|
response_data = self.api_client.call_api(
|
|
240
253
|
*_param,
|
|
@@ -243,9 +256,10 @@ class LeaderboardApi:
|
|
|
243
256
|
return response_data.response
|
|
244
257
|
|
|
245
258
|
|
|
246
|
-
def
|
|
259
|
+
def _benchmark_standing_leaderboard_id_participant_id_get_serialize(
|
|
247
260
|
self,
|
|
248
261
|
leaderboard_id,
|
|
262
|
+
participant_id,
|
|
249
263
|
_request_auth,
|
|
250
264
|
_content_type,
|
|
251
265
|
_headers,
|
|
@@ -269,6 +283,8 @@ class LeaderboardApi:
|
|
|
269
283
|
# process the path parameters
|
|
270
284
|
if leaderboard_id is not None:
|
|
271
285
|
_path_params['leaderboardId'] = leaderboard_id
|
|
286
|
+
if participant_id is not None:
|
|
287
|
+
_path_params['participantId'] = participant_id
|
|
272
288
|
# process the query parameters
|
|
273
289
|
# process the header parameters
|
|
274
290
|
# process the form parameters
|
|
@@ -294,7 +310,7 @@ class LeaderboardApi:
|
|
|
294
310
|
|
|
295
311
|
return self.api_client.param_serialize(
|
|
296
312
|
method='GET',
|
|
297
|
-
resource_path='/
|
|
313
|
+
resource_path='/benchmark/standing/{leaderboardId}/{participantId}',
|
|
298
314
|
path_params=_path_params,
|
|
299
315
|
query_params=_query_params,
|
|
300
316
|
header_params=_header_params,
|
|
@@ -311,10 +327,10 @@ class LeaderboardApi:
|
|
|
311
327
|
|
|
312
328
|
|
|
313
329
|
@validate_call
|
|
314
|
-
def
|
|
330
|
+
def leaderboard_leaderboard_id_boost_post(
|
|
315
331
|
self,
|
|
316
|
-
leaderboard_id: StrictStr,
|
|
317
|
-
|
|
332
|
+
leaderboard_id: Annotated[StrictStr, Field(description="the leaderboard that should be boosted")],
|
|
333
|
+
boost_leaderboard_model: Optional[BoostLeaderboardModel] = None,
|
|
318
334
|
_request_timeout: Union[
|
|
319
335
|
None,
|
|
320
336
|
Annotated[StrictFloat, Field(gt=0)],
|
|
@@ -327,14 +343,14 @@ class LeaderboardApi:
|
|
|
327
343
|
_content_type: Optional[StrictStr] = None,
|
|
328
344
|
_headers: Optional[Dict[StrictStr, Any]] = None,
|
|
329
345
|
_host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
|
|
330
|
-
) ->
|
|
331
|
-
"""
|
|
346
|
+
) -> SubmitParticipantResult:
|
|
347
|
+
"""Boosts a subset of participants within a leaderboard.
|
|
332
348
|
|
|
333
349
|
|
|
334
|
-
:param leaderboard_id:
|
|
350
|
+
:param leaderboard_id: the leaderboard that should be boosted (required)
|
|
335
351
|
:type leaderboard_id: str
|
|
336
|
-
:param
|
|
337
|
-
:type
|
|
352
|
+
:param boost_leaderboard_model:
|
|
353
|
+
:type boost_leaderboard_model: BoostLeaderboardModel
|
|
338
354
|
:param _request_timeout: timeout setting for this request. If one
|
|
339
355
|
number provided, it will be total request
|
|
340
356
|
timeout. It can also be a pair (tuple) of
|
|
@@ -357,9 +373,9 @@ class LeaderboardApi:
|
|
|
357
373
|
:return: Returns the result object.
|
|
358
374
|
""" # noqa: E501
|
|
359
375
|
|
|
360
|
-
_param = self.
|
|
376
|
+
_param = self._leaderboard_leaderboard_id_boost_post_serialize(
|
|
361
377
|
leaderboard_id=leaderboard_id,
|
|
362
|
-
|
|
378
|
+
boost_leaderboard_model=boost_leaderboard_model,
|
|
363
379
|
_request_auth=_request_auth,
|
|
364
380
|
_content_type=_content_type,
|
|
365
381
|
_headers=_headers,
|
|
@@ -367,7 +383,7 @@ class LeaderboardApi:
|
|
|
367
383
|
)
|
|
368
384
|
|
|
369
385
|
_response_types_map: Dict[str, Optional[str]] = {
|
|
370
|
-
'200': "
|
|
386
|
+
'200': "SubmitParticipantResult",
|
|
371
387
|
}
|
|
372
388
|
response_data = self.api_client.call_api(
|
|
373
389
|
*_param,
|
|
@@ -381,10 +397,10 @@ class LeaderboardApi:
|
|
|
381
397
|
|
|
382
398
|
|
|
383
399
|
@validate_call
|
|
384
|
-
def
|
|
400
|
+
def leaderboard_leaderboard_id_boost_post_with_http_info(
|
|
385
401
|
self,
|
|
386
|
-
leaderboard_id: StrictStr,
|
|
387
|
-
|
|
402
|
+
leaderboard_id: Annotated[StrictStr, Field(description="the leaderboard that should be boosted")],
|
|
403
|
+
boost_leaderboard_model: Optional[BoostLeaderboardModel] = None,
|
|
388
404
|
_request_timeout: Union[
|
|
389
405
|
None,
|
|
390
406
|
Annotated[StrictFloat, Field(gt=0)],
|
|
@@ -397,14 +413,14 @@ class LeaderboardApi:
|
|
|
397
413
|
_content_type: Optional[StrictStr] = None,
|
|
398
414
|
_headers: Optional[Dict[StrictStr, Any]] = None,
|
|
399
415
|
_host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
|
|
400
|
-
) -> ApiResponse[
|
|
401
|
-
"""
|
|
416
|
+
) -> ApiResponse[SubmitParticipantResult]:
|
|
417
|
+
"""Boosts a subset of participants within a leaderboard.
|
|
402
418
|
|
|
403
419
|
|
|
404
|
-
:param leaderboard_id:
|
|
420
|
+
:param leaderboard_id: the leaderboard that should be boosted (required)
|
|
405
421
|
:type leaderboard_id: str
|
|
406
|
-
:param
|
|
407
|
-
:type
|
|
422
|
+
:param boost_leaderboard_model:
|
|
423
|
+
:type boost_leaderboard_model: BoostLeaderboardModel
|
|
408
424
|
:param _request_timeout: timeout setting for this request. If one
|
|
409
425
|
number provided, it will be total request
|
|
410
426
|
timeout. It can also be a pair (tuple) of
|
|
@@ -427,9 +443,9 @@ class LeaderboardApi:
|
|
|
427
443
|
:return: Returns the result object.
|
|
428
444
|
""" # noqa: E501
|
|
429
445
|
|
|
430
|
-
_param = self.
|
|
446
|
+
_param = self._leaderboard_leaderboard_id_boost_post_serialize(
|
|
431
447
|
leaderboard_id=leaderboard_id,
|
|
432
|
-
|
|
448
|
+
boost_leaderboard_model=boost_leaderboard_model,
|
|
433
449
|
_request_auth=_request_auth,
|
|
434
450
|
_content_type=_content_type,
|
|
435
451
|
_headers=_headers,
|
|
@@ -437,7 +453,7 @@ class LeaderboardApi:
|
|
|
437
453
|
)
|
|
438
454
|
|
|
439
455
|
_response_types_map: Dict[str, Optional[str]] = {
|
|
440
|
-
'200': "
|
|
456
|
+
'200': "SubmitParticipantResult",
|
|
441
457
|
}
|
|
442
458
|
response_data = self.api_client.call_api(
|
|
443
459
|
*_param,
|
|
@@ -451,10 +467,10 @@ class LeaderboardApi:
|
|
|
451
467
|
|
|
452
468
|
|
|
453
469
|
@validate_call
|
|
454
|
-
def
|
|
470
|
+
def leaderboard_leaderboard_id_boost_post_without_preload_content(
|
|
455
471
|
self,
|
|
456
|
-
leaderboard_id: StrictStr,
|
|
457
|
-
|
|
472
|
+
leaderboard_id: Annotated[StrictStr, Field(description="the leaderboard that should be boosted")],
|
|
473
|
+
boost_leaderboard_model: Optional[BoostLeaderboardModel] = None,
|
|
458
474
|
_request_timeout: Union[
|
|
459
475
|
None,
|
|
460
476
|
Annotated[StrictFloat, Field(gt=0)],
|
|
@@ -468,13 +484,13 @@ class LeaderboardApi:
|
|
|
468
484
|
_headers: Optional[Dict[StrictStr, Any]] = None,
|
|
469
485
|
_host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
|
|
470
486
|
) -> RESTResponseType:
|
|
471
|
-
"""
|
|
487
|
+
"""Boosts a subset of participants within a leaderboard.
|
|
472
488
|
|
|
473
489
|
|
|
474
|
-
:param leaderboard_id:
|
|
490
|
+
:param leaderboard_id: the leaderboard that should be boosted (required)
|
|
475
491
|
:type leaderboard_id: str
|
|
476
|
-
:param
|
|
477
|
-
:type
|
|
492
|
+
:param boost_leaderboard_model:
|
|
493
|
+
:type boost_leaderboard_model: BoostLeaderboardModel
|
|
478
494
|
:param _request_timeout: timeout setting for this request. If one
|
|
479
495
|
number provided, it will be total request
|
|
480
496
|
timeout. It can also be a pair (tuple) of
|
|
@@ -497,9 +513,9 @@ class LeaderboardApi:
|
|
|
497
513
|
:return: Returns the result object.
|
|
498
514
|
""" # noqa: E501
|
|
499
515
|
|
|
500
|
-
_param = self.
|
|
516
|
+
_param = self._leaderboard_leaderboard_id_boost_post_serialize(
|
|
501
517
|
leaderboard_id=leaderboard_id,
|
|
502
|
-
|
|
518
|
+
boost_leaderboard_model=boost_leaderboard_model,
|
|
503
519
|
_request_auth=_request_auth,
|
|
504
520
|
_content_type=_content_type,
|
|
505
521
|
_headers=_headers,
|
|
@@ -507,7 +523,7 @@ class LeaderboardApi:
|
|
|
507
523
|
)
|
|
508
524
|
|
|
509
525
|
_response_types_map: Dict[str, Optional[str]] = {
|
|
510
|
-
'200': "
|
|
526
|
+
'200': "SubmitParticipantResult",
|
|
511
527
|
}
|
|
512
528
|
response_data = self.api_client.call_api(
|
|
513
529
|
*_param,
|
|
@@ -516,10 +532,10 @@ class LeaderboardApi:
|
|
|
516
532
|
return response_data.response
|
|
517
533
|
|
|
518
534
|
|
|
519
|
-
def
|
|
535
|
+
def _leaderboard_leaderboard_id_boost_post_serialize(
|
|
520
536
|
self,
|
|
521
537
|
leaderboard_id,
|
|
522
|
-
|
|
538
|
+
boost_leaderboard_model,
|
|
523
539
|
_request_auth,
|
|
524
540
|
_content_type,
|
|
525
541
|
_headers,
|
|
@@ -544,13 +560,11 @@ class LeaderboardApi:
|
|
|
544
560
|
if leaderboard_id is not None:
|
|
545
561
|
_path_params['leaderboardId'] = leaderboard_id
|
|
546
562
|
# process the query parameters
|
|
547
|
-
if request is not None:
|
|
548
|
-
|
|
549
|
-
_query_params.append(('request', request))
|
|
550
|
-
|
|
551
563
|
# process the header parameters
|
|
552
564
|
# process the form parameters
|
|
553
565
|
# process the body parameter
|
|
566
|
+
if boost_leaderboard_model is not None:
|
|
567
|
+
_body_params = boost_leaderboard_model
|
|
554
568
|
|
|
555
569
|
|
|
556
570
|
# set the HTTP header `Accept`
|
|
@@ -563,6 +577,21 @@ class LeaderboardApi:
|
|
|
563
577
|
]
|
|
564
578
|
)
|
|
565
579
|
|
|
580
|
+
# set the HTTP header `Content-Type`
|
|
581
|
+
if _content_type:
|
|
582
|
+
_header_params['Content-Type'] = _content_type
|
|
583
|
+
else:
|
|
584
|
+
_default_content_type = (
|
|
585
|
+
self.api_client.select_header_content_type(
|
|
586
|
+
[
|
|
587
|
+
'application/json',
|
|
588
|
+
'text/json',
|
|
589
|
+
'application/*+json'
|
|
590
|
+
]
|
|
591
|
+
)
|
|
592
|
+
)
|
|
593
|
+
if _default_content_type is not None:
|
|
594
|
+
_header_params['Content-Type'] = _default_content_type
|
|
566
595
|
|
|
567
596
|
# authentication setting
|
|
568
597
|
_auth_settings: List[str] = [
|
|
@@ -571,8 +600,8 @@ class LeaderboardApi:
|
|
|
571
600
|
]
|
|
572
601
|
|
|
573
602
|
return self.api_client.param_serialize(
|
|
574
|
-
method='
|
|
575
|
-
resource_path='/leaderboard/{leaderboardId}/
|
|
603
|
+
method='POST',
|
|
604
|
+
resource_path='/leaderboard/{leaderboardId}/boost',
|
|
576
605
|
path_params=_path_params,
|
|
577
606
|
query_params=_query_params,
|
|
578
607
|
header_params=_header_params,
|
|
@@ -589,10 +618,9 @@ class LeaderboardApi:
|
|
|
589
618
|
|
|
590
619
|
|
|
591
620
|
@validate_call
|
|
592
|
-
def
|
|
621
|
+
def leaderboard_leaderboard_id_delete(
|
|
593
622
|
self,
|
|
594
|
-
leaderboard_id: StrictStr,
|
|
595
|
-
participant_id: StrictStr,
|
|
623
|
+
leaderboard_id: Annotated[StrictStr, Field(description="The id of the leaderboard that gets deleted")],
|
|
596
624
|
_request_timeout: Union[
|
|
597
625
|
None,
|
|
598
626
|
Annotated[StrictFloat, Field(gt=0)],
|
|
@@ -605,14 +633,12 @@ class LeaderboardApi:
|
|
|
605
633
|
_content_type: Optional[StrictStr] = None,
|
|
606
634
|
_headers: Optional[Dict[StrictStr, Any]] = None,
|
|
607
635
|
_host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
|
|
608
|
-
) ->
|
|
609
|
-
"""
|
|
636
|
+
) -> None:
|
|
637
|
+
"""Deletes a leaderboard by its ID.
|
|
610
638
|
|
|
611
639
|
|
|
612
|
-
:param leaderboard_id:
|
|
640
|
+
:param leaderboard_id: The id of the leaderboard that gets deleted (required)
|
|
613
641
|
:type leaderboard_id: str
|
|
614
|
-
:param participant_id: (required)
|
|
615
|
-
:type participant_id: str
|
|
616
642
|
:param _request_timeout: timeout setting for this request. If one
|
|
617
643
|
number provided, it will be total request
|
|
618
644
|
timeout. It can also be a pair (tuple) of
|
|
@@ -635,9 +661,8 @@ class LeaderboardApi:
|
|
|
635
661
|
:return: Returns the result object.
|
|
636
662
|
""" # noqa: E501
|
|
637
663
|
|
|
638
|
-
_param = self.
|
|
664
|
+
_param = self._leaderboard_leaderboard_id_delete_serialize(
|
|
639
665
|
leaderboard_id=leaderboard_id,
|
|
640
|
-
participant_id=participant_id,
|
|
641
666
|
_request_auth=_request_auth,
|
|
642
667
|
_content_type=_content_type,
|
|
643
668
|
_headers=_headers,
|
|
@@ -645,7 +670,7 @@ class LeaderboardApi:
|
|
|
645
670
|
)
|
|
646
671
|
|
|
647
672
|
_response_types_map: Dict[str, Optional[str]] = {
|
|
648
|
-
'
|
|
673
|
+
'204': None,
|
|
649
674
|
}
|
|
650
675
|
response_data = self.api_client.call_api(
|
|
651
676
|
*_param,
|
|
@@ -659,10 +684,9 @@ class LeaderboardApi:
|
|
|
659
684
|
|
|
660
685
|
|
|
661
686
|
@validate_call
|
|
662
|
-
def
|
|
687
|
+
def leaderboard_leaderboard_id_delete_with_http_info(
|
|
663
688
|
self,
|
|
664
|
-
leaderboard_id: StrictStr,
|
|
665
|
-
participant_id: StrictStr,
|
|
689
|
+
leaderboard_id: Annotated[StrictStr, Field(description="The id of the leaderboard that gets deleted")],
|
|
666
690
|
_request_timeout: Union[
|
|
667
691
|
None,
|
|
668
692
|
Annotated[StrictFloat, Field(gt=0)],
|
|
@@ -675,14 +699,12 @@ class LeaderboardApi:
|
|
|
675
699
|
_content_type: Optional[StrictStr] = None,
|
|
676
700
|
_headers: Optional[Dict[StrictStr, Any]] = None,
|
|
677
701
|
_host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
|
|
678
|
-
) -> ApiResponse[
|
|
679
|
-
"""
|
|
702
|
+
) -> ApiResponse[None]:
|
|
703
|
+
"""Deletes a leaderboard by its ID.
|
|
680
704
|
|
|
681
705
|
|
|
682
|
-
:param leaderboard_id:
|
|
706
|
+
:param leaderboard_id: The id of the leaderboard that gets deleted (required)
|
|
683
707
|
:type leaderboard_id: str
|
|
684
|
-
:param participant_id: (required)
|
|
685
|
-
:type participant_id: str
|
|
686
708
|
:param _request_timeout: timeout setting for this request. If one
|
|
687
709
|
number provided, it will be total request
|
|
688
710
|
timeout. It can also be a pair (tuple) of
|
|
@@ -705,9 +727,8 @@ class LeaderboardApi:
|
|
|
705
727
|
:return: Returns the result object.
|
|
706
728
|
""" # noqa: E501
|
|
707
729
|
|
|
708
|
-
_param = self.
|
|
730
|
+
_param = self._leaderboard_leaderboard_id_delete_serialize(
|
|
709
731
|
leaderboard_id=leaderboard_id,
|
|
710
|
-
participant_id=participant_id,
|
|
711
732
|
_request_auth=_request_auth,
|
|
712
733
|
_content_type=_content_type,
|
|
713
734
|
_headers=_headers,
|
|
@@ -715,7 +736,7 @@ class LeaderboardApi:
|
|
|
715
736
|
)
|
|
716
737
|
|
|
717
738
|
_response_types_map: Dict[str, Optional[str]] = {
|
|
718
|
-
'
|
|
739
|
+
'204': None,
|
|
719
740
|
}
|
|
720
741
|
response_data = self.api_client.call_api(
|
|
721
742
|
*_param,
|
|
@@ -729,10 +750,9 @@ class LeaderboardApi:
|
|
|
729
750
|
|
|
730
751
|
|
|
731
752
|
@validate_call
|
|
732
|
-
def
|
|
753
|
+
def leaderboard_leaderboard_id_delete_without_preload_content(
|
|
733
754
|
self,
|
|
734
|
-
leaderboard_id: StrictStr,
|
|
735
|
-
participant_id: StrictStr,
|
|
755
|
+
leaderboard_id: Annotated[StrictStr, Field(description="The id of the leaderboard that gets deleted")],
|
|
736
756
|
_request_timeout: Union[
|
|
737
757
|
None,
|
|
738
758
|
Annotated[StrictFloat, Field(gt=0)],
|
|
@@ -746,13 +766,11 @@ class LeaderboardApi:
|
|
|
746
766
|
_headers: Optional[Dict[StrictStr, Any]] = None,
|
|
747
767
|
_host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
|
|
748
768
|
) -> RESTResponseType:
|
|
749
|
-
"""
|
|
769
|
+
"""Deletes a leaderboard by its ID.
|
|
750
770
|
|
|
751
771
|
|
|
752
|
-
:param leaderboard_id:
|
|
772
|
+
:param leaderboard_id: The id of the leaderboard that gets deleted (required)
|
|
753
773
|
:type leaderboard_id: str
|
|
754
|
-
:param participant_id: (required)
|
|
755
|
-
:type participant_id: str
|
|
756
774
|
:param _request_timeout: timeout setting for this request. If one
|
|
757
775
|
number provided, it will be total request
|
|
758
776
|
timeout. It can also be a pair (tuple) of
|
|
@@ -775,9 +793,8 @@ class LeaderboardApi:
|
|
|
775
793
|
:return: Returns the result object.
|
|
776
794
|
""" # noqa: E501
|
|
777
795
|
|
|
778
|
-
_param = self.
|
|
796
|
+
_param = self._leaderboard_leaderboard_id_delete_serialize(
|
|
779
797
|
leaderboard_id=leaderboard_id,
|
|
780
|
-
participant_id=participant_id,
|
|
781
798
|
_request_auth=_request_auth,
|
|
782
799
|
_content_type=_content_type,
|
|
783
800
|
_headers=_headers,
|
|
@@ -785,7 +802,7 @@ class LeaderboardApi:
|
|
|
785
802
|
)
|
|
786
803
|
|
|
787
804
|
_response_types_map: Dict[str, Optional[str]] = {
|
|
788
|
-
'
|
|
805
|
+
'204': None,
|
|
789
806
|
}
|
|
790
807
|
response_data = self.api_client.call_api(
|
|
791
808
|
*_param,
|
|
@@ -794,10 +811,9 @@ class LeaderboardApi:
|
|
|
794
811
|
return response_data.response
|
|
795
812
|
|
|
796
813
|
|
|
797
|
-
def
|
|
814
|
+
def _leaderboard_leaderboard_id_delete_serialize(
|
|
798
815
|
self,
|
|
799
816
|
leaderboard_id,
|
|
800
|
-
participant_id,
|
|
801
817
|
_request_auth,
|
|
802
818
|
_content_type,
|
|
803
819
|
_headers,
|
|
@@ -821,23 +837,12 @@ class LeaderboardApi:
|
|
|
821
837
|
# process the path parameters
|
|
822
838
|
if leaderboard_id is not None:
|
|
823
839
|
_path_params['leaderboardId'] = leaderboard_id
|
|
824
|
-
if participant_id is not None:
|
|
825
|
-
_path_params['participantId'] = participant_id
|
|
826
840
|
# process the query parameters
|
|
827
841
|
# process the header parameters
|
|
828
842
|
# process the form parameters
|
|
829
843
|
# process the body parameter
|
|
830
844
|
|
|
831
845
|
|
|
832
|
-
# set the HTTP header `Accept`
|
|
833
|
-
if 'Accept' not in _header_params:
|
|
834
|
-
_header_params['Accept'] = self.api_client.select_header_accept(
|
|
835
|
-
[
|
|
836
|
-
'text/plain',
|
|
837
|
-
'application/json',
|
|
838
|
-
'text/json'
|
|
839
|
-
]
|
|
840
|
-
)
|
|
841
846
|
|
|
842
847
|
|
|
843
848
|
# authentication setting
|
|
@@ -847,8 +852,8 @@ class LeaderboardApi:
|
|
|
847
852
|
]
|
|
848
853
|
|
|
849
854
|
return self.api_client.param_serialize(
|
|
850
|
-
method='
|
|
851
|
-
resource_path='/leaderboard/{leaderboardId}
|
|
855
|
+
method='DELETE',
|
|
856
|
+
resource_path='/leaderboard/{leaderboardId}',
|
|
852
857
|
path_params=_path_params,
|
|
853
858
|
query_params=_query_params,
|
|
854
859
|
header_params=_header_params,
|
|
@@ -865,10 +870,9 @@ class LeaderboardApi:
|
|
|
865
870
|
|
|
866
871
|
|
|
867
872
|
@validate_call
|
|
868
|
-
def
|
|
873
|
+
def leaderboard_leaderboard_id_get(
|
|
869
874
|
self,
|
|
870
875
|
leaderboard_id: StrictStr,
|
|
871
|
-
create_leaderboard_participant_model: Optional[CreateLeaderboardParticipantModel] = None,
|
|
872
876
|
_request_timeout: Union[
|
|
873
877
|
None,
|
|
874
878
|
Annotated[StrictFloat, Field(gt=0)],
|
|
@@ -881,14 +885,12 @@ class LeaderboardApi:
|
|
|
881
885
|
_content_type: Optional[StrictStr] = None,
|
|
882
886
|
_headers: Optional[Dict[StrictStr, Any]] = None,
|
|
883
887
|
_host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
|
|
884
|
-
) ->
|
|
885
|
-
"""
|
|
888
|
+
) -> GetLeaderboardByIdResult:
|
|
889
|
+
"""Gets a leaderboard by its ID.
|
|
886
890
|
|
|
887
891
|
|
|
888
892
|
:param leaderboard_id: (required)
|
|
889
893
|
:type leaderboard_id: str
|
|
890
|
-
:param create_leaderboard_participant_model:
|
|
891
|
-
:type create_leaderboard_participant_model: CreateLeaderboardParticipantModel
|
|
892
894
|
:param _request_timeout: timeout setting for this request. If one
|
|
893
895
|
number provided, it will be total request
|
|
894
896
|
timeout. It can also be a pair (tuple) of
|
|
@@ -911,9 +913,8 @@ class LeaderboardApi:
|
|
|
911
913
|
:return: Returns the result object.
|
|
912
914
|
""" # noqa: E501
|
|
913
915
|
|
|
914
|
-
_param = self.
|
|
916
|
+
_param = self._leaderboard_leaderboard_id_get_serialize(
|
|
915
917
|
leaderboard_id=leaderboard_id,
|
|
916
|
-
create_leaderboard_participant_model=create_leaderboard_participant_model,
|
|
917
918
|
_request_auth=_request_auth,
|
|
918
919
|
_content_type=_content_type,
|
|
919
920
|
_headers=_headers,
|
|
@@ -921,7 +922,7 @@ class LeaderboardApi:
|
|
|
921
922
|
)
|
|
922
923
|
|
|
923
924
|
_response_types_map: Dict[str, Optional[str]] = {
|
|
924
|
-
'200': "
|
|
925
|
+
'200': "GetLeaderboardByIdResult",
|
|
925
926
|
}
|
|
926
927
|
response_data = self.api_client.call_api(
|
|
927
928
|
*_param,
|
|
@@ -935,10 +936,9 @@ class LeaderboardApi:
|
|
|
935
936
|
|
|
936
937
|
|
|
937
938
|
@validate_call
|
|
938
|
-
def
|
|
939
|
+
def leaderboard_leaderboard_id_get_with_http_info(
|
|
939
940
|
self,
|
|
940
941
|
leaderboard_id: StrictStr,
|
|
941
|
-
create_leaderboard_participant_model: Optional[CreateLeaderboardParticipantModel] = None,
|
|
942
942
|
_request_timeout: Union[
|
|
943
943
|
None,
|
|
944
944
|
Annotated[StrictFloat, Field(gt=0)],
|
|
@@ -951,14 +951,12 @@ class LeaderboardApi:
|
|
|
951
951
|
_content_type: Optional[StrictStr] = None,
|
|
952
952
|
_headers: Optional[Dict[StrictStr, Any]] = None,
|
|
953
953
|
_host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
|
|
954
|
-
) -> ApiResponse[
|
|
955
|
-
"""
|
|
954
|
+
) -> ApiResponse[GetLeaderboardByIdResult]:
|
|
955
|
+
"""Gets a leaderboard by its ID.
|
|
956
956
|
|
|
957
957
|
|
|
958
958
|
:param leaderboard_id: (required)
|
|
959
959
|
:type leaderboard_id: str
|
|
960
|
-
:param create_leaderboard_participant_model:
|
|
961
|
-
:type create_leaderboard_participant_model: CreateLeaderboardParticipantModel
|
|
962
960
|
:param _request_timeout: timeout setting for this request. If one
|
|
963
961
|
number provided, it will be total request
|
|
964
962
|
timeout. It can also be a pair (tuple) of
|
|
@@ -981,9 +979,8 @@ class LeaderboardApi:
|
|
|
981
979
|
:return: Returns the result object.
|
|
982
980
|
""" # noqa: E501
|
|
983
981
|
|
|
984
|
-
_param = self.
|
|
982
|
+
_param = self._leaderboard_leaderboard_id_get_serialize(
|
|
985
983
|
leaderboard_id=leaderboard_id,
|
|
986
|
-
create_leaderboard_participant_model=create_leaderboard_participant_model,
|
|
987
984
|
_request_auth=_request_auth,
|
|
988
985
|
_content_type=_content_type,
|
|
989
986
|
_headers=_headers,
|
|
@@ -991,7 +988,7 @@ class LeaderboardApi:
|
|
|
991
988
|
)
|
|
992
989
|
|
|
993
990
|
_response_types_map: Dict[str, Optional[str]] = {
|
|
994
|
-
'200': "
|
|
991
|
+
'200': "GetLeaderboardByIdResult",
|
|
995
992
|
}
|
|
996
993
|
response_data = self.api_client.call_api(
|
|
997
994
|
*_param,
|
|
@@ -1005,10 +1002,9 @@ class LeaderboardApi:
|
|
|
1005
1002
|
|
|
1006
1003
|
|
|
1007
1004
|
@validate_call
|
|
1008
|
-
def
|
|
1005
|
+
def leaderboard_leaderboard_id_get_without_preload_content(
|
|
1009
1006
|
self,
|
|
1010
1007
|
leaderboard_id: StrictStr,
|
|
1011
|
-
create_leaderboard_participant_model: Optional[CreateLeaderboardParticipantModel] = None,
|
|
1012
1008
|
_request_timeout: Union[
|
|
1013
1009
|
None,
|
|
1014
1010
|
Annotated[StrictFloat, Field(gt=0)],
|
|
@@ -1022,13 +1018,11 @@ class LeaderboardApi:
|
|
|
1022
1018
|
_headers: Optional[Dict[StrictStr, Any]] = None,
|
|
1023
1019
|
_host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
|
|
1024
1020
|
) -> RESTResponseType:
|
|
1025
|
-
"""
|
|
1021
|
+
"""Gets a leaderboard by its ID.
|
|
1026
1022
|
|
|
1027
1023
|
|
|
1028
1024
|
:param leaderboard_id: (required)
|
|
1029
1025
|
:type leaderboard_id: str
|
|
1030
|
-
:param create_leaderboard_participant_model:
|
|
1031
|
-
:type create_leaderboard_participant_model: CreateLeaderboardParticipantModel
|
|
1032
1026
|
:param _request_timeout: timeout setting for this request. If one
|
|
1033
1027
|
number provided, it will be total request
|
|
1034
1028
|
timeout. It can also be a pair (tuple) of
|
|
@@ -1051,9 +1045,8 @@ class LeaderboardApi:
|
|
|
1051
1045
|
:return: Returns the result object.
|
|
1052
1046
|
""" # noqa: E501
|
|
1053
1047
|
|
|
1054
|
-
_param = self.
|
|
1048
|
+
_param = self._leaderboard_leaderboard_id_get_serialize(
|
|
1055
1049
|
leaderboard_id=leaderboard_id,
|
|
1056
|
-
create_leaderboard_participant_model=create_leaderboard_participant_model,
|
|
1057
1050
|
_request_auth=_request_auth,
|
|
1058
1051
|
_content_type=_content_type,
|
|
1059
1052
|
_headers=_headers,
|
|
@@ -1061,7 +1054,7 @@ class LeaderboardApi:
|
|
|
1061
1054
|
)
|
|
1062
1055
|
|
|
1063
1056
|
_response_types_map: Dict[str, Optional[str]] = {
|
|
1064
|
-
'200': "
|
|
1057
|
+
'200': "GetLeaderboardByIdResult",
|
|
1065
1058
|
}
|
|
1066
1059
|
response_data = self.api_client.call_api(
|
|
1067
1060
|
*_param,
|
|
@@ -1070,10 +1063,9 @@ class LeaderboardApi:
|
|
|
1070
1063
|
return response_data.response
|
|
1071
1064
|
|
|
1072
1065
|
|
|
1073
|
-
def
|
|
1066
|
+
def _leaderboard_leaderboard_id_get_serialize(
|
|
1074
1067
|
self,
|
|
1075
1068
|
leaderboard_id,
|
|
1076
|
-
create_leaderboard_participant_model,
|
|
1077
1069
|
_request_auth,
|
|
1078
1070
|
_content_type,
|
|
1079
1071
|
_headers,
|
|
@@ -1101,8 +1093,6 @@ class LeaderboardApi:
|
|
|
1101
1093
|
# process the header parameters
|
|
1102
1094
|
# process the form parameters
|
|
1103
1095
|
# process the body parameter
|
|
1104
|
-
if create_leaderboard_participant_model is not None:
|
|
1105
|
-
_body_params = create_leaderboard_participant_model
|
|
1106
1096
|
|
|
1107
1097
|
|
|
1108
1098
|
# set the HTTP header `Accept`
|
|
@@ -1115,21 +1105,6 @@ class LeaderboardApi:
|
|
|
1115
1105
|
]
|
|
1116
1106
|
)
|
|
1117
1107
|
|
|
1118
|
-
# set the HTTP header `Content-Type`
|
|
1119
|
-
if _content_type:
|
|
1120
|
-
_header_params['Content-Type'] = _content_type
|
|
1121
|
-
else:
|
|
1122
|
-
_default_content_type = (
|
|
1123
|
-
self.api_client.select_header_content_type(
|
|
1124
|
-
[
|
|
1125
|
-
'application/json',
|
|
1126
|
-
'text/json',
|
|
1127
|
-
'application/*+json'
|
|
1128
|
-
]
|
|
1129
|
-
)
|
|
1130
|
-
)
|
|
1131
|
-
if _default_content_type is not None:
|
|
1132
|
-
_header_params['Content-Type'] = _default_content_type
|
|
1133
1108
|
|
|
1134
1109
|
# authentication setting
|
|
1135
1110
|
_auth_settings: List[str] = [
|
|
@@ -1138,8 +1113,8 @@ class LeaderboardApi:
|
|
|
1138
1113
|
]
|
|
1139
1114
|
|
|
1140
1115
|
return self.api_client.param_serialize(
|
|
1141
|
-
method='
|
|
1142
|
-
resource_path='/leaderboard/{leaderboardId}
|
|
1116
|
+
method='GET',
|
|
1117
|
+
resource_path='/leaderboard/{leaderboardId}',
|
|
1143
1118
|
path_params=_path_params,
|
|
1144
1119
|
query_params=_query_params,
|
|
1145
1120
|
header_params=_header_params,
|
|
@@ -1156,10 +1131,10 @@ class LeaderboardApi:
|
|
|
1156
1131
|
|
|
1157
1132
|
|
|
1158
1133
|
@validate_call
|
|
1159
|
-
def
|
|
1134
|
+
def leaderboard_leaderboard_id_participant_participant_id_get(
|
|
1160
1135
|
self,
|
|
1161
1136
|
leaderboard_id: StrictStr,
|
|
1162
|
-
|
|
1137
|
+
participant_id: StrictStr,
|
|
1163
1138
|
_request_timeout: Union[
|
|
1164
1139
|
None,
|
|
1165
1140
|
Annotated[StrictFloat, Field(gt=0)],
|
|
@@ -1172,14 +1147,14 @@ class LeaderboardApi:
|
|
|
1172
1147
|
_content_type: Optional[StrictStr] = None,
|
|
1173
1148
|
_headers: Optional[Dict[StrictStr, Any]] = None,
|
|
1174
1149
|
_host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
|
|
1175
|
-
) ->
|
|
1176
|
-
"""
|
|
1150
|
+
) -> GetStandingByIdResult:
|
|
1151
|
+
"""(Deprecated) Gets a participant by its ID.
|
|
1177
1152
|
|
|
1178
1153
|
|
|
1179
1154
|
:param leaderboard_id: (required)
|
|
1180
1155
|
:type leaderboard_id: str
|
|
1181
|
-
:param
|
|
1182
|
-
:type
|
|
1156
|
+
:param participant_id: (required)
|
|
1157
|
+
:type participant_id: str
|
|
1183
1158
|
:param _request_timeout: timeout setting for this request. If one
|
|
1184
1159
|
number provided, it will be total request
|
|
1185
1160
|
timeout. It can also be a pair (tuple) of
|
|
@@ -1201,10 +1176,11 @@ class LeaderboardApi:
|
|
|
1201
1176
|
:type _host_index: int, optional
|
|
1202
1177
|
:return: Returns the result object.
|
|
1203
1178
|
""" # noqa: E501
|
|
1179
|
+
warnings.warn("GET /leaderboard/{leaderboardId}/participant/{participantId} is deprecated.", DeprecationWarning)
|
|
1204
1180
|
|
|
1205
|
-
_param = self.
|
|
1181
|
+
_param = self._leaderboard_leaderboard_id_participant_participant_id_get_serialize(
|
|
1206
1182
|
leaderboard_id=leaderboard_id,
|
|
1207
|
-
|
|
1183
|
+
participant_id=participant_id,
|
|
1208
1184
|
_request_auth=_request_auth,
|
|
1209
1185
|
_content_type=_content_type,
|
|
1210
1186
|
_headers=_headers,
|
|
@@ -1212,7 +1188,7 @@ class LeaderboardApi:
|
|
|
1212
1188
|
)
|
|
1213
1189
|
|
|
1214
1190
|
_response_types_map: Dict[str, Optional[str]] = {
|
|
1215
|
-
'200': "
|
|
1191
|
+
'200': "GetStandingByIdResult",
|
|
1216
1192
|
}
|
|
1217
1193
|
response_data = self.api_client.call_api(
|
|
1218
1194
|
*_param,
|
|
@@ -1226,10 +1202,10 @@ class LeaderboardApi:
|
|
|
1226
1202
|
|
|
1227
1203
|
|
|
1228
1204
|
@validate_call
|
|
1229
|
-
def
|
|
1205
|
+
def leaderboard_leaderboard_id_participant_participant_id_get_with_http_info(
|
|
1230
1206
|
self,
|
|
1231
1207
|
leaderboard_id: StrictStr,
|
|
1232
|
-
|
|
1208
|
+
participant_id: StrictStr,
|
|
1233
1209
|
_request_timeout: Union[
|
|
1234
1210
|
None,
|
|
1235
1211
|
Annotated[StrictFloat, Field(gt=0)],
|
|
@@ -1242,14 +1218,14 @@ class LeaderboardApi:
|
|
|
1242
1218
|
_content_type: Optional[StrictStr] = None,
|
|
1243
1219
|
_headers: Optional[Dict[StrictStr, Any]] = None,
|
|
1244
1220
|
_host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
|
|
1245
|
-
) -> ApiResponse[
|
|
1246
|
-
"""
|
|
1221
|
+
) -> ApiResponse[GetStandingByIdResult]:
|
|
1222
|
+
"""(Deprecated) Gets a participant by its ID.
|
|
1247
1223
|
|
|
1248
1224
|
|
|
1249
1225
|
:param leaderboard_id: (required)
|
|
1250
1226
|
:type leaderboard_id: str
|
|
1251
|
-
:param
|
|
1252
|
-
:type
|
|
1227
|
+
:param participant_id: (required)
|
|
1228
|
+
:type participant_id: str
|
|
1253
1229
|
:param _request_timeout: timeout setting for this request. If one
|
|
1254
1230
|
number provided, it will be total request
|
|
1255
1231
|
timeout. It can also be a pair (tuple) of
|
|
@@ -1271,10 +1247,11 @@ class LeaderboardApi:
|
|
|
1271
1247
|
:type _host_index: int, optional
|
|
1272
1248
|
:return: Returns the result object.
|
|
1273
1249
|
""" # noqa: E501
|
|
1250
|
+
warnings.warn("GET /leaderboard/{leaderboardId}/participant/{participantId} is deprecated.", DeprecationWarning)
|
|
1274
1251
|
|
|
1275
|
-
_param = self.
|
|
1252
|
+
_param = self._leaderboard_leaderboard_id_participant_participant_id_get_serialize(
|
|
1276
1253
|
leaderboard_id=leaderboard_id,
|
|
1277
|
-
|
|
1254
|
+
participant_id=participant_id,
|
|
1278
1255
|
_request_auth=_request_auth,
|
|
1279
1256
|
_content_type=_content_type,
|
|
1280
1257
|
_headers=_headers,
|
|
@@ -1282,7 +1259,7 @@ class LeaderboardApi:
|
|
|
1282
1259
|
)
|
|
1283
1260
|
|
|
1284
1261
|
_response_types_map: Dict[str, Optional[str]] = {
|
|
1285
|
-
'200': "
|
|
1262
|
+
'200': "GetStandingByIdResult",
|
|
1286
1263
|
}
|
|
1287
1264
|
response_data = self.api_client.call_api(
|
|
1288
1265
|
*_param,
|
|
@@ -1296,10 +1273,10 @@ class LeaderboardApi:
|
|
|
1296
1273
|
|
|
1297
1274
|
|
|
1298
1275
|
@validate_call
|
|
1299
|
-
def
|
|
1276
|
+
def leaderboard_leaderboard_id_participant_participant_id_get_without_preload_content(
|
|
1300
1277
|
self,
|
|
1301
1278
|
leaderboard_id: StrictStr,
|
|
1302
|
-
|
|
1279
|
+
participant_id: StrictStr,
|
|
1303
1280
|
_request_timeout: Union[
|
|
1304
1281
|
None,
|
|
1305
1282
|
Annotated[StrictFloat, Field(gt=0)],
|
|
@@ -1313,13 +1290,13 @@ class LeaderboardApi:
|
|
|
1313
1290
|
_headers: Optional[Dict[StrictStr, Any]] = None,
|
|
1314
1291
|
_host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
|
|
1315
1292
|
) -> RESTResponseType:
|
|
1316
|
-
"""
|
|
1293
|
+
"""(Deprecated) Gets a participant by its ID.
|
|
1317
1294
|
|
|
1318
1295
|
|
|
1319
1296
|
:param leaderboard_id: (required)
|
|
1320
1297
|
:type leaderboard_id: str
|
|
1321
|
-
:param
|
|
1322
|
-
:type
|
|
1298
|
+
:param participant_id: (required)
|
|
1299
|
+
:type participant_id: str
|
|
1323
1300
|
:param _request_timeout: timeout setting for this request. If one
|
|
1324
1301
|
number provided, it will be total request
|
|
1325
1302
|
timeout. It can also be a pair (tuple) of
|
|
@@ -1341,10 +1318,11 @@ class LeaderboardApi:
|
|
|
1341
1318
|
:type _host_index: int, optional
|
|
1342
1319
|
:return: Returns the result object.
|
|
1343
1320
|
""" # noqa: E501
|
|
1321
|
+
warnings.warn("GET /leaderboard/{leaderboardId}/participant/{participantId} is deprecated.", DeprecationWarning)
|
|
1344
1322
|
|
|
1345
|
-
_param = self.
|
|
1323
|
+
_param = self._leaderboard_leaderboard_id_participant_participant_id_get_serialize(
|
|
1346
1324
|
leaderboard_id=leaderboard_id,
|
|
1347
|
-
|
|
1325
|
+
participant_id=participant_id,
|
|
1348
1326
|
_request_auth=_request_auth,
|
|
1349
1327
|
_content_type=_content_type,
|
|
1350
1328
|
_headers=_headers,
|
|
@@ -1352,7 +1330,7 @@ class LeaderboardApi:
|
|
|
1352
1330
|
)
|
|
1353
1331
|
|
|
1354
1332
|
_response_types_map: Dict[str, Optional[str]] = {
|
|
1355
|
-
'200': "
|
|
1333
|
+
'200': "GetStandingByIdResult",
|
|
1356
1334
|
}
|
|
1357
1335
|
response_data = self.api_client.call_api(
|
|
1358
1336
|
*_param,
|
|
@@ -1361,10 +1339,10 @@ class LeaderboardApi:
|
|
|
1361
1339
|
return response_data.response
|
|
1362
1340
|
|
|
1363
1341
|
|
|
1364
|
-
def
|
|
1342
|
+
def _leaderboard_leaderboard_id_participant_participant_id_get_serialize(
|
|
1365
1343
|
self,
|
|
1366
1344
|
leaderboard_id,
|
|
1367
|
-
|
|
1345
|
+
participant_id,
|
|
1368
1346
|
_request_auth,
|
|
1369
1347
|
_content_type,
|
|
1370
1348
|
_headers,
|
|
@@ -1388,11 +1366,9 @@ class LeaderboardApi:
|
|
|
1388
1366
|
# process the path parameters
|
|
1389
1367
|
if leaderboard_id is not None:
|
|
1390
1368
|
_path_params['leaderboardId'] = leaderboard_id
|
|
1369
|
+
if participant_id is not None:
|
|
1370
|
+
_path_params['participantId'] = participant_id
|
|
1391
1371
|
# process the query parameters
|
|
1392
|
-
if request is not None:
|
|
1393
|
-
|
|
1394
|
-
_query_params.append(('request', request))
|
|
1395
|
-
|
|
1396
1372
|
# process the header parameters
|
|
1397
1373
|
# process the form parameters
|
|
1398
1374
|
# process the body parameter
|
|
@@ -1417,7 +1393,7 @@ class LeaderboardApi:
|
|
|
1417
1393
|
|
|
1418
1394
|
return self.api_client.param_serialize(
|
|
1419
1395
|
method='GET',
|
|
1420
|
-
resource_path='/leaderboard/{leaderboardId}/
|
|
1396
|
+
resource_path='/leaderboard/{leaderboardId}/participant/{participantId}',
|
|
1421
1397
|
path_params=_path_params,
|
|
1422
1398
|
query_params=_query_params,
|
|
1423
1399
|
header_params=_header_params,
|
|
@@ -1434,10 +1410,10 @@ class LeaderboardApi:
|
|
|
1434
1410
|
|
|
1435
1411
|
|
|
1436
1412
|
@validate_call
|
|
1437
|
-
def
|
|
1413
|
+
def leaderboard_leaderboard_id_participants_get(
|
|
1438
1414
|
self,
|
|
1439
|
-
leaderboard_id:
|
|
1440
|
-
|
|
1415
|
+
leaderboard_id: StrictStr,
|
|
1416
|
+
request: Optional[QueryModel] = None,
|
|
1441
1417
|
_request_timeout: Union[
|
|
1442
1418
|
None,
|
|
1443
1419
|
Annotated[StrictFloat, Field(gt=0)],
|
|
@@ -1450,14 +1426,14 @@ class LeaderboardApi:
|
|
|
1450
1426
|
_content_type: Optional[StrictStr] = None,
|
|
1451
1427
|
_headers: Optional[Dict[StrictStr, Any]] = None,
|
|
1452
1428
|
_host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
|
|
1453
|
-
) ->
|
|
1454
|
-
"""
|
|
1429
|
+
) -> StandingByLeaderboardPagedResult:
|
|
1430
|
+
"""(Deprecated) queries all the participants connected to leaderboard by its ID.
|
|
1455
1431
|
|
|
1456
1432
|
|
|
1457
|
-
:param leaderboard_id:
|
|
1433
|
+
:param leaderboard_id: (required)
|
|
1458
1434
|
:type leaderboard_id: str
|
|
1459
|
-
:param
|
|
1460
|
-
:type
|
|
1435
|
+
:param request:
|
|
1436
|
+
:type request: QueryModel
|
|
1461
1437
|
:param _request_timeout: timeout setting for this request. If one
|
|
1462
1438
|
number provided, it will be total request
|
|
1463
1439
|
timeout. It can also be a pair (tuple) of
|
|
@@ -1479,10 +1455,11 @@ class LeaderboardApi:
|
|
|
1479
1455
|
:type _host_index: int, optional
|
|
1480
1456
|
:return: Returns the result object.
|
|
1481
1457
|
""" # noqa: E501
|
|
1458
|
+
warnings.warn("GET /leaderboard/{leaderboardId}/participants is deprecated.", DeprecationWarning)
|
|
1482
1459
|
|
|
1483
|
-
_param = self.
|
|
1460
|
+
_param = self._leaderboard_leaderboard_id_participants_get_serialize(
|
|
1484
1461
|
leaderboard_id=leaderboard_id,
|
|
1485
|
-
|
|
1462
|
+
request=request,
|
|
1486
1463
|
_request_auth=_request_auth,
|
|
1487
1464
|
_content_type=_content_type,
|
|
1488
1465
|
_headers=_headers,
|
|
@@ -1490,7 +1467,7 @@ class LeaderboardApi:
|
|
|
1490
1467
|
)
|
|
1491
1468
|
|
|
1492
1469
|
_response_types_map: Dict[str, Optional[str]] = {
|
|
1493
|
-
'
|
|
1470
|
+
'200': "StandingByLeaderboardPagedResult",
|
|
1494
1471
|
}
|
|
1495
1472
|
response_data = self.api_client.call_api(
|
|
1496
1473
|
*_param,
|
|
@@ -1504,10 +1481,10 @@ class LeaderboardApi:
|
|
|
1504
1481
|
|
|
1505
1482
|
|
|
1506
1483
|
@validate_call
|
|
1507
|
-
def
|
|
1484
|
+
def leaderboard_leaderboard_id_participants_get_with_http_info(
|
|
1508
1485
|
self,
|
|
1509
|
-
leaderboard_id:
|
|
1510
|
-
|
|
1486
|
+
leaderboard_id: StrictStr,
|
|
1487
|
+
request: Optional[QueryModel] = None,
|
|
1511
1488
|
_request_timeout: Union[
|
|
1512
1489
|
None,
|
|
1513
1490
|
Annotated[StrictFloat, Field(gt=0)],
|
|
@@ -1520,14 +1497,14 @@ class LeaderboardApi:
|
|
|
1520
1497
|
_content_type: Optional[StrictStr] = None,
|
|
1521
1498
|
_headers: Optional[Dict[StrictStr, Any]] = None,
|
|
1522
1499
|
_host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
|
|
1523
|
-
) -> ApiResponse[
|
|
1524
|
-
"""
|
|
1500
|
+
) -> ApiResponse[StandingByLeaderboardPagedResult]:
|
|
1501
|
+
"""(Deprecated) queries all the participants connected to leaderboard by its ID.
|
|
1525
1502
|
|
|
1526
1503
|
|
|
1527
|
-
:param leaderboard_id:
|
|
1504
|
+
:param leaderboard_id: (required)
|
|
1528
1505
|
:type leaderboard_id: str
|
|
1529
|
-
:param
|
|
1530
|
-
:type
|
|
1506
|
+
:param request:
|
|
1507
|
+
:type request: QueryModel
|
|
1531
1508
|
:param _request_timeout: timeout setting for this request. If one
|
|
1532
1509
|
number provided, it will be total request
|
|
1533
1510
|
timeout. It can also be a pair (tuple) of
|
|
@@ -1549,10 +1526,11 @@ class LeaderboardApi:
|
|
|
1549
1526
|
:type _host_index: int, optional
|
|
1550
1527
|
:return: Returns the result object.
|
|
1551
1528
|
""" # noqa: E501
|
|
1529
|
+
warnings.warn("GET /leaderboard/{leaderboardId}/participants is deprecated.", DeprecationWarning)
|
|
1552
1530
|
|
|
1553
|
-
_param = self.
|
|
1531
|
+
_param = self._leaderboard_leaderboard_id_participants_get_serialize(
|
|
1554
1532
|
leaderboard_id=leaderboard_id,
|
|
1555
|
-
|
|
1533
|
+
request=request,
|
|
1556
1534
|
_request_auth=_request_auth,
|
|
1557
1535
|
_content_type=_content_type,
|
|
1558
1536
|
_headers=_headers,
|
|
@@ -1560,7 +1538,7 @@ class LeaderboardApi:
|
|
|
1560
1538
|
)
|
|
1561
1539
|
|
|
1562
1540
|
_response_types_map: Dict[str, Optional[str]] = {
|
|
1563
|
-
'
|
|
1541
|
+
'200': "StandingByLeaderboardPagedResult",
|
|
1564
1542
|
}
|
|
1565
1543
|
response_data = self.api_client.call_api(
|
|
1566
1544
|
*_param,
|
|
@@ -1574,11 +1552,11 @@ class LeaderboardApi:
|
|
|
1574
1552
|
|
|
1575
1553
|
|
|
1576
1554
|
@validate_call
|
|
1577
|
-
def
|
|
1555
|
+
def leaderboard_leaderboard_id_participants_get_without_preload_content(
|
|
1578
1556
|
self,
|
|
1579
|
-
leaderboard_id:
|
|
1580
|
-
|
|
1581
|
-
_request_timeout: Union[
|
|
1557
|
+
leaderboard_id: StrictStr,
|
|
1558
|
+
request: Optional[QueryModel] = None,
|
|
1559
|
+
_request_timeout: Union[
|
|
1582
1560
|
None,
|
|
1583
1561
|
Annotated[StrictFloat, Field(gt=0)],
|
|
1584
1562
|
Tuple[
|
|
@@ -1591,13 +1569,13 @@ class LeaderboardApi:
|
|
|
1591
1569
|
_headers: Optional[Dict[StrictStr, Any]] = None,
|
|
1592
1570
|
_host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
|
|
1593
1571
|
) -> RESTResponseType:
|
|
1594
|
-
"""
|
|
1572
|
+
"""(Deprecated) queries all the participants connected to leaderboard by its ID.
|
|
1595
1573
|
|
|
1596
1574
|
|
|
1597
|
-
:param leaderboard_id:
|
|
1575
|
+
:param leaderboard_id: (required)
|
|
1598
1576
|
:type leaderboard_id: str
|
|
1599
|
-
:param
|
|
1600
|
-
:type
|
|
1577
|
+
:param request:
|
|
1578
|
+
:type request: QueryModel
|
|
1601
1579
|
:param _request_timeout: timeout setting for this request. If one
|
|
1602
1580
|
number provided, it will be total request
|
|
1603
1581
|
timeout. It can also be a pair (tuple) of
|
|
@@ -1619,10 +1597,11 @@ class LeaderboardApi:
|
|
|
1619
1597
|
:type _host_index: int, optional
|
|
1620
1598
|
:return: Returns the result object.
|
|
1621
1599
|
""" # noqa: E501
|
|
1600
|
+
warnings.warn("GET /leaderboard/{leaderboardId}/participants is deprecated.", DeprecationWarning)
|
|
1622
1601
|
|
|
1623
|
-
_param = self.
|
|
1602
|
+
_param = self._leaderboard_leaderboard_id_participants_get_serialize(
|
|
1624
1603
|
leaderboard_id=leaderboard_id,
|
|
1625
|
-
|
|
1604
|
+
request=request,
|
|
1626
1605
|
_request_auth=_request_auth,
|
|
1627
1606
|
_content_type=_content_type,
|
|
1628
1607
|
_headers=_headers,
|
|
@@ -1630,7 +1609,7 @@ class LeaderboardApi:
|
|
|
1630
1609
|
)
|
|
1631
1610
|
|
|
1632
1611
|
_response_types_map: Dict[str, Optional[str]] = {
|
|
1633
|
-
'
|
|
1612
|
+
'200': "StandingByLeaderboardPagedResult",
|
|
1634
1613
|
}
|
|
1635
1614
|
response_data = self.api_client.call_api(
|
|
1636
1615
|
*_param,
|
|
@@ -1639,10 +1618,10 @@ class LeaderboardApi:
|
|
|
1639
1618
|
return response_data.response
|
|
1640
1619
|
|
|
1641
1620
|
|
|
1642
|
-
def
|
|
1621
|
+
def _leaderboard_leaderboard_id_participants_get_serialize(
|
|
1643
1622
|
self,
|
|
1644
1623
|
leaderboard_id,
|
|
1645
|
-
|
|
1624
|
+
request,
|
|
1646
1625
|
_request_auth,
|
|
1647
1626
|
_content_type,
|
|
1648
1627
|
_headers,
|
|
@@ -1667,30 +1646,25 @@ class LeaderboardApi:
|
|
|
1667
1646
|
if leaderboard_id is not None:
|
|
1668
1647
|
_path_params['leaderboardId'] = leaderboard_id
|
|
1669
1648
|
# process the query parameters
|
|
1649
|
+
if request is not None:
|
|
1650
|
+
|
|
1651
|
+
_query_params.append(('request', request))
|
|
1652
|
+
|
|
1670
1653
|
# process the header parameters
|
|
1671
1654
|
# process the form parameters
|
|
1672
1655
|
# process the body parameter
|
|
1673
|
-
if body is not None:
|
|
1674
|
-
_body_params = body
|
|
1675
1656
|
|
|
1676
1657
|
|
|
1677
|
-
|
|
1678
|
-
|
|
1679
|
-
|
|
1680
|
-
|
|
1681
|
-
|
|
1682
|
-
|
|
1683
|
-
|
|
1684
|
-
|
|
1685
|
-
'application/json',
|
|
1686
|
-
'text/json',
|
|
1687
|
-
'application/*+json',
|
|
1688
|
-
'text/plain'
|
|
1689
|
-
]
|
|
1690
|
-
)
|
|
1658
|
+
# set the HTTP header `Accept`
|
|
1659
|
+
if 'Accept' not in _header_params:
|
|
1660
|
+
_header_params['Accept'] = self.api_client.select_header_accept(
|
|
1661
|
+
[
|
|
1662
|
+
'text/plain',
|
|
1663
|
+
'application/json',
|
|
1664
|
+
'text/json'
|
|
1665
|
+
]
|
|
1691
1666
|
)
|
|
1692
|
-
|
|
1693
|
-
_header_params['Content-Type'] = _default_content_type
|
|
1667
|
+
|
|
1694
1668
|
|
|
1695
1669
|
# authentication setting
|
|
1696
1670
|
_auth_settings: List[str] = [
|
|
@@ -1699,8 +1673,8 @@ class LeaderboardApi:
|
|
|
1699
1673
|
]
|
|
1700
1674
|
|
|
1701
1675
|
return self.api_client.param_serialize(
|
|
1702
|
-
method='
|
|
1703
|
-
resource_path='/leaderboard/{leaderboardId}/
|
|
1676
|
+
method='GET',
|
|
1677
|
+
resource_path='/leaderboard/{leaderboardId}/participants',
|
|
1704
1678
|
path_params=_path_params,
|
|
1705
1679
|
query_params=_query_params,
|
|
1706
1680
|
header_params=_header_params,
|
|
@@ -1717,8 +1691,9 @@ class LeaderboardApi:
|
|
|
1717
1691
|
|
|
1718
1692
|
|
|
1719
1693
|
@validate_call
|
|
1720
|
-
def
|
|
1694
|
+
def leaderboard_leaderboard_id_participants_participant_id_submit_post(
|
|
1721
1695
|
self,
|
|
1696
|
+
leaderboard_id: StrictStr,
|
|
1722
1697
|
participant_id: StrictStr,
|
|
1723
1698
|
_request_timeout: Union[
|
|
1724
1699
|
None,
|
|
@@ -1732,10 +1707,12 @@ class LeaderboardApi:
|
|
|
1732
1707
|
_content_type: Optional[StrictStr] = None,
|
|
1733
1708
|
_headers: Optional[Dict[StrictStr, Any]] = None,
|
|
1734
1709
|
_host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
|
|
1735
|
-
) ->
|
|
1736
|
-
"""
|
|
1710
|
+
) -> SubmitParticipantResult:
|
|
1711
|
+
"""(Deprecated) Submits a participant to a leaderboard.
|
|
1737
1712
|
|
|
1738
1713
|
|
|
1714
|
+
:param leaderboard_id: (required)
|
|
1715
|
+
:type leaderboard_id: str
|
|
1739
1716
|
:param participant_id: (required)
|
|
1740
1717
|
:type participant_id: str
|
|
1741
1718
|
:param _request_timeout: timeout setting for this request. If one
|
|
@@ -1759,8 +1736,10 @@ class LeaderboardApi:
|
|
|
1759
1736
|
:type _host_index: int, optional
|
|
1760
1737
|
:return: Returns the result object.
|
|
1761
1738
|
""" # noqa: E501
|
|
1739
|
+
warnings.warn("POST /leaderboard/{leaderboardId}/participants/{participantId}/submit is deprecated.", DeprecationWarning)
|
|
1762
1740
|
|
|
1763
|
-
_param = self.
|
|
1741
|
+
_param = self._leaderboard_leaderboard_id_participants_participant_id_submit_post_serialize(
|
|
1742
|
+
leaderboard_id=leaderboard_id,
|
|
1764
1743
|
participant_id=participant_id,
|
|
1765
1744
|
_request_auth=_request_auth,
|
|
1766
1745
|
_content_type=_content_type,
|
|
@@ -1769,7 +1748,7 @@ class LeaderboardApi:
|
|
|
1769
1748
|
)
|
|
1770
1749
|
|
|
1771
1750
|
_response_types_map: Dict[str, Optional[str]] = {
|
|
1772
|
-
'200': "
|
|
1751
|
+
'200': "SubmitParticipantResult",
|
|
1773
1752
|
}
|
|
1774
1753
|
response_data = self.api_client.call_api(
|
|
1775
1754
|
*_param,
|
|
@@ -1783,8 +1762,9 @@ class LeaderboardApi:
|
|
|
1783
1762
|
|
|
1784
1763
|
|
|
1785
1764
|
@validate_call
|
|
1786
|
-
def
|
|
1765
|
+
def leaderboard_leaderboard_id_participants_participant_id_submit_post_with_http_info(
|
|
1787
1766
|
self,
|
|
1767
|
+
leaderboard_id: StrictStr,
|
|
1788
1768
|
participant_id: StrictStr,
|
|
1789
1769
|
_request_timeout: Union[
|
|
1790
1770
|
None,
|
|
@@ -1798,10 +1778,12 @@ class LeaderboardApi:
|
|
|
1798
1778
|
_content_type: Optional[StrictStr] = None,
|
|
1799
1779
|
_headers: Optional[Dict[StrictStr, Any]] = None,
|
|
1800
1780
|
_host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
|
|
1801
|
-
) -> ApiResponse[
|
|
1802
|
-
"""
|
|
1781
|
+
) -> ApiResponse[SubmitParticipantResult]:
|
|
1782
|
+
"""(Deprecated) Submits a participant to a leaderboard.
|
|
1803
1783
|
|
|
1804
1784
|
|
|
1785
|
+
:param leaderboard_id: (required)
|
|
1786
|
+
:type leaderboard_id: str
|
|
1805
1787
|
:param participant_id: (required)
|
|
1806
1788
|
:type participant_id: str
|
|
1807
1789
|
:param _request_timeout: timeout setting for this request. If one
|
|
@@ -1825,8 +1807,10 @@ class LeaderboardApi:
|
|
|
1825
1807
|
:type _host_index: int, optional
|
|
1826
1808
|
:return: Returns the result object.
|
|
1827
1809
|
""" # noqa: E501
|
|
1810
|
+
warnings.warn("POST /leaderboard/{leaderboardId}/participants/{participantId}/submit is deprecated.", DeprecationWarning)
|
|
1828
1811
|
|
|
1829
|
-
_param = self.
|
|
1812
|
+
_param = self._leaderboard_leaderboard_id_participants_participant_id_submit_post_serialize(
|
|
1813
|
+
leaderboard_id=leaderboard_id,
|
|
1830
1814
|
participant_id=participant_id,
|
|
1831
1815
|
_request_auth=_request_auth,
|
|
1832
1816
|
_content_type=_content_type,
|
|
@@ -1835,7 +1819,7 @@ class LeaderboardApi:
|
|
|
1835
1819
|
)
|
|
1836
1820
|
|
|
1837
1821
|
_response_types_map: Dict[str, Optional[str]] = {
|
|
1838
|
-
'200': "
|
|
1822
|
+
'200': "SubmitParticipantResult",
|
|
1839
1823
|
}
|
|
1840
1824
|
response_data = self.api_client.call_api(
|
|
1841
1825
|
*_param,
|
|
@@ -1849,8 +1833,9 @@ class LeaderboardApi:
|
|
|
1849
1833
|
|
|
1850
1834
|
|
|
1851
1835
|
@validate_call
|
|
1852
|
-
def
|
|
1836
|
+
def leaderboard_leaderboard_id_participants_participant_id_submit_post_without_preload_content(
|
|
1853
1837
|
self,
|
|
1838
|
+
leaderboard_id: StrictStr,
|
|
1854
1839
|
participant_id: StrictStr,
|
|
1855
1840
|
_request_timeout: Union[
|
|
1856
1841
|
None,
|
|
@@ -1865,9 +1850,11 @@ class LeaderboardApi:
|
|
|
1865
1850
|
_headers: Optional[Dict[StrictStr, Any]] = None,
|
|
1866
1851
|
_host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
|
|
1867
1852
|
) -> RESTResponseType:
|
|
1868
|
-
"""
|
|
1853
|
+
"""(Deprecated) Submits a participant to a leaderboard.
|
|
1869
1854
|
|
|
1870
1855
|
|
|
1856
|
+
:param leaderboard_id: (required)
|
|
1857
|
+
:type leaderboard_id: str
|
|
1871
1858
|
:param participant_id: (required)
|
|
1872
1859
|
:type participant_id: str
|
|
1873
1860
|
:param _request_timeout: timeout setting for this request. If one
|
|
@@ -1891,8 +1878,10 @@ class LeaderboardApi:
|
|
|
1891
1878
|
:type _host_index: int, optional
|
|
1892
1879
|
:return: Returns the result object.
|
|
1893
1880
|
""" # noqa: E501
|
|
1881
|
+
warnings.warn("POST /leaderboard/{leaderboardId}/participants/{participantId}/submit is deprecated.", DeprecationWarning)
|
|
1894
1882
|
|
|
1895
|
-
_param = self.
|
|
1883
|
+
_param = self._leaderboard_leaderboard_id_participants_participant_id_submit_post_serialize(
|
|
1884
|
+
leaderboard_id=leaderboard_id,
|
|
1896
1885
|
participant_id=participant_id,
|
|
1897
1886
|
_request_auth=_request_auth,
|
|
1898
1887
|
_content_type=_content_type,
|
|
@@ -1901,7 +1890,7 @@ class LeaderboardApi:
|
|
|
1901
1890
|
)
|
|
1902
1891
|
|
|
1903
1892
|
_response_types_map: Dict[str, Optional[str]] = {
|
|
1904
|
-
'200': "
|
|
1893
|
+
'200': "SubmitParticipantResult",
|
|
1905
1894
|
}
|
|
1906
1895
|
response_data = self.api_client.call_api(
|
|
1907
1896
|
*_param,
|
|
@@ -1910,8 +1899,9 @@ class LeaderboardApi:
|
|
|
1910
1899
|
return response_data.response
|
|
1911
1900
|
|
|
1912
1901
|
|
|
1913
|
-
def
|
|
1902
|
+
def _leaderboard_leaderboard_id_participants_participant_id_submit_post_serialize(
|
|
1914
1903
|
self,
|
|
1904
|
+
leaderboard_id,
|
|
1915
1905
|
participant_id,
|
|
1916
1906
|
_request_auth,
|
|
1917
1907
|
_content_type,
|
|
@@ -1934,6 +1924,8 @@ class LeaderboardApi:
|
|
|
1934
1924
|
_body_params: Optional[bytes] = None
|
|
1935
1925
|
|
|
1936
1926
|
# process the path parameters
|
|
1927
|
+
if leaderboard_id is not None:
|
|
1928
|
+
_path_params['leaderboardId'] = leaderboard_id
|
|
1937
1929
|
if participant_id is not None:
|
|
1938
1930
|
_path_params['participantId'] = participant_id
|
|
1939
1931
|
# process the query parameters
|
|
@@ -1942,6 +1934,1397 @@ class LeaderboardApi:
|
|
|
1942
1934
|
# process the body parameter
|
|
1943
1935
|
|
|
1944
1936
|
|
|
1937
|
+
# set the HTTP header `Accept`
|
|
1938
|
+
if 'Accept' not in _header_params:
|
|
1939
|
+
_header_params['Accept'] = self.api_client.select_header_accept(
|
|
1940
|
+
[
|
|
1941
|
+
'text/plain',
|
|
1942
|
+
'application/json',
|
|
1943
|
+
'text/json'
|
|
1944
|
+
]
|
|
1945
|
+
)
|
|
1946
|
+
|
|
1947
|
+
|
|
1948
|
+
# authentication setting
|
|
1949
|
+
_auth_settings: List[str] = [
|
|
1950
|
+
'bearer',
|
|
1951
|
+
'oauth2'
|
|
1952
|
+
]
|
|
1953
|
+
|
|
1954
|
+
return self.api_client.param_serialize(
|
|
1955
|
+
method='POST',
|
|
1956
|
+
resource_path='/leaderboard/{leaderboardId}/participants/{participantId}/submit',
|
|
1957
|
+
path_params=_path_params,
|
|
1958
|
+
query_params=_query_params,
|
|
1959
|
+
header_params=_header_params,
|
|
1960
|
+
body=_body_params,
|
|
1961
|
+
post_params=_form_params,
|
|
1962
|
+
files=_files,
|
|
1963
|
+
auth_settings=_auth_settings,
|
|
1964
|
+
collection_formats=_collection_formats,
|
|
1965
|
+
_host=_host,
|
|
1966
|
+
_request_auth=_request_auth
|
|
1967
|
+
)
|
|
1968
|
+
|
|
1969
|
+
|
|
1970
|
+
|
|
1971
|
+
|
|
1972
|
+
@validate_call
|
|
1973
|
+
def leaderboard_leaderboard_id_participants_post(
|
|
1974
|
+
self,
|
|
1975
|
+
leaderboard_id: StrictStr,
|
|
1976
|
+
create_benchmark_participant_model: Optional[CreateBenchmarkParticipantModel] = None,
|
|
1977
|
+
_request_timeout: Union[
|
|
1978
|
+
None,
|
|
1979
|
+
Annotated[StrictFloat, Field(gt=0)],
|
|
1980
|
+
Tuple[
|
|
1981
|
+
Annotated[StrictFloat, Field(gt=0)],
|
|
1982
|
+
Annotated[StrictFloat, Field(gt=0)]
|
|
1983
|
+
]
|
|
1984
|
+
] = None,
|
|
1985
|
+
_request_auth: Optional[Dict[StrictStr, Any]] = None,
|
|
1986
|
+
_content_type: Optional[StrictStr] = None,
|
|
1987
|
+
_headers: Optional[Dict[StrictStr, Any]] = None,
|
|
1988
|
+
_host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
|
|
1989
|
+
) -> CreateBenchmarkParticipantResult:
|
|
1990
|
+
"""(Deprecated) Creates a participant in a leaderboard.
|
|
1991
|
+
|
|
1992
|
+
|
|
1993
|
+
:param leaderboard_id: (required)
|
|
1994
|
+
:type leaderboard_id: str
|
|
1995
|
+
:param create_benchmark_participant_model:
|
|
1996
|
+
:type create_benchmark_participant_model: CreateBenchmarkParticipantModel
|
|
1997
|
+
:param _request_timeout: timeout setting for this request. If one
|
|
1998
|
+
number provided, it will be total request
|
|
1999
|
+
timeout. It can also be a pair (tuple) of
|
|
2000
|
+
(connection, read) timeouts.
|
|
2001
|
+
:type _request_timeout: int, tuple(int, int), optional
|
|
2002
|
+
:param _request_auth: set to override the auth_settings for an a single
|
|
2003
|
+
request; this effectively ignores the
|
|
2004
|
+
authentication in the spec for a single request.
|
|
2005
|
+
:type _request_auth: dict, optional
|
|
2006
|
+
:param _content_type: force content-type for the request.
|
|
2007
|
+
:type _content_type: str, Optional
|
|
2008
|
+
:param _headers: set to override the headers for a single
|
|
2009
|
+
request; this effectively ignores the headers
|
|
2010
|
+
in the spec for a single request.
|
|
2011
|
+
:type _headers: dict, optional
|
|
2012
|
+
:param _host_index: set to override the host_index for a single
|
|
2013
|
+
request; this effectively ignores the host_index
|
|
2014
|
+
in the spec for a single request.
|
|
2015
|
+
:type _host_index: int, optional
|
|
2016
|
+
:return: Returns the result object.
|
|
2017
|
+
""" # noqa: E501
|
|
2018
|
+
warnings.warn("POST /leaderboard/{leaderboardId}/participants is deprecated.", DeprecationWarning)
|
|
2019
|
+
|
|
2020
|
+
_param = self._leaderboard_leaderboard_id_participants_post_serialize(
|
|
2021
|
+
leaderboard_id=leaderboard_id,
|
|
2022
|
+
create_benchmark_participant_model=create_benchmark_participant_model,
|
|
2023
|
+
_request_auth=_request_auth,
|
|
2024
|
+
_content_type=_content_type,
|
|
2025
|
+
_headers=_headers,
|
|
2026
|
+
_host_index=_host_index
|
|
2027
|
+
)
|
|
2028
|
+
|
|
2029
|
+
_response_types_map: Dict[str, Optional[str]] = {
|
|
2030
|
+
'200': "CreateBenchmarkParticipantResult",
|
|
2031
|
+
}
|
|
2032
|
+
response_data = self.api_client.call_api(
|
|
2033
|
+
*_param,
|
|
2034
|
+
_request_timeout=_request_timeout
|
|
2035
|
+
)
|
|
2036
|
+
response_data.read()
|
|
2037
|
+
return self.api_client.response_deserialize(
|
|
2038
|
+
response_data=response_data,
|
|
2039
|
+
response_types_map=_response_types_map,
|
|
2040
|
+
).data
|
|
2041
|
+
|
|
2042
|
+
|
|
2043
|
+
@validate_call
|
|
2044
|
+
def leaderboard_leaderboard_id_participants_post_with_http_info(
|
|
2045
|
+
self,
|
|
2046
|
+
leaderboard_id: StrictStr,
|
|
2047
|
+
create_benchmark_participant_model: Optional[CreateBenchmarkParticipantModel] = None,
|
|
2048
|
+
_request_timeout: Union[
|
|
2049
|
+
None,
|
|
2050
|
+
Annotated[StrictFloat, Field(gt=0)],
|
|
2051
|
+
Tuple[
|
|
2052
|
+
Annotated[StrictFloat, Field(gt=0)],
|
|
2053
|
+
Annotated[StrictFloat, Field(gt=0)]
|
|
2054
|
+
]
|
|
2055
|
+
] = None,
|
|
2056
|
+
_request_auth: Optional[Dict[StrictStr, Any]] = None,
|
|
2057
|
+
_content_type: Optional[StrictStr] = None,
|
|
2058
|
+
_headers: Optional[Dict[StrictStr, Any]] = None,
|
|
2059
|
+
_host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
|
|
2060
|
+
) -> ApiResponse[CreateBenchmarkParticipantResult]:
|
|
2061
|
+
"""(Deprecated) Creates a participant in a leaderboard.
|
|
2062
|
+
|
|
2063
|
+
|
|
2064
|
+
:param leaderboard_id: (required)
|
|
2065
|
+
:type leaderboard_id: str
|
|
2066
|
+
:param create_benchmark_participant_model:
|
|
2067
|
+
:type create_benchmark_participant_model: CreateBenchmarkParticipantModel
|
|
2068
|
+
:param _request_timeout: timeout setting for this request. If one
|
|
2069
|
+
number provided, it will be total request
|
|
2070
|
+
timeout. It can also be a pair (tuple) of
|
|
2071
|
+
(connection, read) timeouts.
|
|
2072
|
+
:type _request_timeout: int, tuple(int, int), optional
|
|
2073
|
+
:param _request_auth: set to override the auth_settings for an a single
|
|
2074
|
+
request; this effectively ignores the
|
|
2075
|
+
authentication in the spec for a single request.
|
|
2076
|
+
:type _request_auth: dict, optional
|
|
2077
|
+
:param _content_type: force content-type for the request.
|
|
2078
|
+
:type _content_type: str, Optional
|
|
2079
|
+
:param _headers: set to override the headers for a single
|
|
2080
|
+
request; this effectively ignores the headers
|
|
2081
|
+
in the spec for a single request.
|
|
2082
|
+
:type _headers: dict, optional
|
|
2083
|
+
:param _host_index: set to override the host_index for a single
|
|
2084
|
+
request; this effectively ignores the host_index
|
|
2085
|
+
in the spec for a single request.
|
|
2086
|
+
:type _host_index: int, optional
|
|
2087
|
+
:return: Returns the result object.
|
|
2088
|
+
""" # noqa: E501
|
|
2089
|
+
warnings.warn("POST /leaderboard/{leaderboardId}/participants is deprecated.", DeprecationWarning)
|
|
2090
|
+
|
|
2091
|
+
_param = self._leaderboard_leaderboard_id_participants_post_serialize(
|
|
2092
|
+
leaderboard_id=leaderboard_id,
|
|
2093
|
+
create_benchmark_participant_model=create_benchmark_participant_model,
|
|
2094
|
+
_request_auth=_request_auth,
|
|
2095
|
+
_content_type=_content_type,
|
|
2096
|
+
_headers=_headers,
|
|
2097
|
+
_host_index=_host_index
|
|
2098
|
+
)
|
|
2099
|
+
|
|
2100
|
+
_response_types_map: Dict[str, Optional[str]] = {
|
|
2101
|
+
'200': "CreateBenchmarkParticipantResult",
|
|
2102
|
+
}
|
|
2103
|
+
response_data = self.api_client.call_api(
|
|
2104
|
+
*_param,
|
|
2105
|
+
_request_timeout=_request_timeout
|
|
2106
|
+
)
|
|
2107
|
+
response_data.read()
|
|
2108
|
+
return self.api_client.response_deserialize(
|
|
2109
|
+
response_data=response_data,
|
|
2110
|
+
response_types_map=_response_types_map,
|
|
2111
|
+
)
|
|
2112
|
+
|
|
2113
|
+
|
|
2114
|
+
@validate_call
|
|
2115
|
+
def leaderboard_leaderboard_id_participants_post_without_preload_content(
|
|
2116
|
+
self,
|
|
2117
|
+
leaderboard_id: StrictStr,
|
|
2118
|
+
create_benchmark_participant_model: Optional[CreateBenchmarkParticipantModel] = None,
|
|
2119
|
+
_request_timeout: Union[
|
|
2120
|
+
None,
|
|
2121
|
+
Annotated[StrictFloat, Field(gt=0)],
|
|
2122
|
+
Tuple[
|
|
2123
|
+
Annotated[StrictFloat, Field(gt=0)],
|
|
2124
|
+
Annotated[StrictFloat, Field(gt=0)]
|
|
2125
|
+
]
|
|
2126
|
+
] = None,
|
|
2127
|
+
_request_auth: Optional[Dict[StrictStr, Any]] = None,
|
|
2128
|
+
_content_type: Optional[StrictStr] = None,
|
|
2129
|
+
_headers: Optional[Dict[StrictStr, Any]] = None,
|
|
2130
|
+
_host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
|
|
2131
|
+
) -> RESTResponseType:
|
|
2132
|
+
"""(Deprecated) Creates a participant in a leaderboard.
|
|
2133
|
+
|
|
2134
|
+
|
|
2135
|
+
:param leaderboard_id: (required)
|
|
2136
|
+
:type leaderboard_id: str
|
|
2137
|
+
:param create_benchmark_participant_model:
|
|
2138
|
+
:type create_benchmark_participant_model: CreateBenchmarkParticipantModel
|
|
2139
|
+
:param _request_timeout: timeout setting for this request. If one
|
|
2140
|
+
number provided, it will be total request
|
|
2141
|
+
timeout. It can also be a pair (tuple) of
|
|
2142
|
+
(connection, read) timeouts.
|
|
2143
|
+
:type _request_timeout: int, tuple(int, int), optional
|
|
2144
|
+
:param _request_auth: set to override the auth_settings for an a single
|
|
2145
|
+
request; this effectively ignores the
|
|
2146
|
+
authentication in the spec for a single request.
|
|
2147
|
+
:type _request_auth: dict, optional
|
|
2148
|
+
:param _content_type: force content-type for the request.
|
|
2149
|
+
:type _content_type: str, Optional
|
|
2150
|
+
:param _headers: set to override the headers for a single
|
|
2151
|
+
request; this effectively ignores the headers
|
|
2152
|
+
in the spec for a single request.
|
|
2153
|
+
:type _headers: dict, optional
|
|
2154
|
+
:param _host_index: set to override the host_index for a single
|
|
2155
|
+
request; this effectively ignores the host_index
|
|
2156
|
+
in the spec for a single request.
|
|
2157
|
+
:type _host_index: int, optional
|
|
2158
|
+
:return: Returns the result object.
|
|
2159
|
+
""" # noqa: E501
|
|
2160
|
+
warnings.warn("POST /leaderboard/{leaderboardId}/participants is deprecated.", DeprecationWarning)
|
|
2161
|
+
|
|
2162
|
+
_param = self._leaderboard_leaderboard_id_participants_post_serialize(
|
|
2163
|
+
leaderboard_id=leaderboard_id,
|
|
2164
|
+
create_benchmark_participant_model=create_benchmark_participant_model,
|
|
2165
|
+
_request_auth=_request_auth,
|
|
2166
|
+
_content_type=_content_type,
|
|
2167
|
+
_headers=_headers,
|
|
2168
|
+
_host_index=_host_index
|
|
2169
|
+
)
|
|
2170
|
+
|
|
2171
|
+
_response_types_map: Dict[str, Optional[str]] = {
|
|
2172
|
+
'200': "CreateBenchmarkParticipantResult",
|
|
2173
|
+
}
|
|
2174
|
+
response_data = self.api_client.call_api(
|
|
2175
|
+
*_param,
|
|
2176
|
+
_request_timeout=_request_timeout
|
|
2177
|
+
)
|
|
2178
|
+
return response_data.response
|
|
2179
|
+
|
|
2180
|
+
|
|
2181
|
+
def _leaderboard_leaderboard_id_participants_post_serialize(
|
|
2182
|
+
self,
|
|
2183
|
+
leaderboard_id,
|
|
2184
|
+
create_benchmark_participant_model,
|
|
2185
|
+
_request_auth,
|
|
2186
|
+
_content_type,
|
|
2187
|
+
_headers,
|
|
2188
|
+
_host_index,
|
|
2189
|
+
) -> RequestSerialized:
|
|
2190
|
+
|
|
2191
|
+
_host = None
|
|
2192
|
+
|
|
2193
|
+
_collection_formats: Dict[str, str] = {
|
|
2194
|
+
}
|
|
2195
|
+
|
|
2196
|
+
_path_params: Dict[str, str] = {}
|
|
2197
|
+
_query_params: List[Tuple[str, str]] = []
|
|
2198
|
+
_header_params: Dict[str, Optional[str]] = _headers or {}
|
|
2199
|
+
_form_params: List[Tuple[str, str]] = []
|
|
2200
|
+
_files: Dict[
|
|
2201
|
+
str, Union[str, bytes, List[str], List[bytes], List[Tuple[str, bytes]]]
|
|
2202
|
+
] = {}
|
|
2203
|
+
_body_params: Optional[bytes] = None
|
|
2204
|
+
|
|
2205
|
+
# process the path parameters
|
|
2206
|
+
if leaderboard_id is not None:
|
|
2207
|
+
_path_params['leaderboardId'] = leaderboard_id
|
|
2208
|
+
# process the query parameters
|
|
2209
|
+
# process the header parameters
|
|
2210
|
+
# process the form parameters
|
|
2211
|
+
# process the body parameter
|
|
2212
|
+
if create_benchmark_participant_model is not None:
|
|
2213
|
+
_body_params = create_benchmark_participant_model
|
|
2214
|
+
|
|
2215
|
+
|
|
2216
|
+
# set the HTTP header `Accept`
|
|
2217
|
+
if 'Accept' not in _header_params:
|
|
2218
|
+
_header_params['Accept'] = self.api_client.select_header_accept(
|
|
2219
|
+
[
|
|
2220
|
+
'text/plain',
|
|
2221
|
+
'application/json',
|
|
2222
|
+
'text/json'
|
|
2223
|
+
]
|
|
2224
|
+
)
|
|
2225
|
+
|
|
2226
|
+
# set the HTTP header `Content-Type`
|
|
2227
|
+
if _content_type:
|
|
2228
|
+
_header_params['Content-Type'] = _content_type
|
|
2229
|
+
else:
|
|
2230
|
+
_default_content_type = (
|
|
2231
|
+
self.api_client.select_header_content_type(
|
|
2232
|
+
[
|
|
2233
|
+
'application/json',
|
|
2234
|
+
'text/json',
|
|
2235
|
+
'application/*+json'
|
|
2236
|
+
]
|
|
2237
|
+
)
|
|
2238
|
+
)
|
|
2239
|
+
if _default_content_type is not None:
|
|
2240
|
+
_header_params['Content-Type'] = _default_content_type
|
|
2241
|
+
|
|
2242
|
+
# authentication setting
|
|
2243
|
+
_auth_settings: List[str] = [
|
|
2244
|
+
'bearer',
|
|
2245
|
+
'oauth2'
|
|
2246
|
+
]
|
|
2247
|
+
|
|
2248
|
+
return self.api_client.param_serialize(
|
|
2249
|
+
method='POST',
|
|
2250
|
+
resource_path='/leaderboard/{leaderboardId}/participants',
|
|
2251
|
+
path_params=_path_params,
|
|
2252
|
+
query_params=_query_params,
|
|
2253
|
+
header_params=_header_params,
|
|
2254
|
+
body=_body_params,
|
|
2255
|
+
post_params=_form_params,
|
|
2256
|
+
files=_files,
|
|
2257
|
+
auth_settings=_auth_settings,
|
|
2258
|
+
collection_formats=_collection_formats,
|
|
2259
|
+
_host=_host,
|
|
2260
|
+
_request_auth=_request_auth
|
|
2261
|
+
)
|
|
2262
|
+
|
|
2263
|
+
|
|
2264
|
+
|
|
2265
|
+
|
|
2266
|
+
@validate_call
|
|
2267
|
+
def leaderboard_leaderboard_id_prompts_get(
|
|
2268
|
+
self,
|
|
2269
|
+
leaderboard_id: StrictStr,
|
|
2270
|
+
request: Optional[QueryModel] = None,
|
|
2271
|
+
_request_timeout: Union[
|
|
2272
|
+
None,
|
|
2273
|
+
Annotated[StrictFloat, Field(gt=0)],
|
|
2274
|
+
Tuple[
|
|
2275
|
+
Annotated[StrictFloat, Field(gt=0)],
|
|
2276
|
+
Annotated[StrictFloat, Field(gt=0)]
|
|
2277
|
+
]
|
|
2278
|
+
] = None,
|
|
2279
|
+
_request_auth: Optional[Dict[StrictStr, Any]] = None,
|
|
2280
|
+
_content_type: Optional[StrictStr] = None,
|
|
2281
|
+
_headers: Optional[Dict[StrictStr, Any]] = None,
|
|
2282
|
+
_host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
|
|
2283
|
+
) -> PromptByBenchmarkResultPagedResult:
|
|
2284
|
+
"""(Deprecated) returns the paged prompts of a leaderboard by its ID.
|
|
2285
|
+
|
|
2286
|
+
|
|
2287
|
+
:param leaderboard_id: (required)
|
|
2288
|
+
:type leaderboard_id: str
|
|
2289
|
+
:param request:
|
|
2290
|
+
:type request: QueryModel
|
|
2291
|
+
:param _request_timeout: timeout setting for this request. If one
|
|
2292
|
+
number provided, it will be total request
|
|
2293
|
+
timeout. It can also be a pair (tuple) of
|
|
2294
|
+
(connection, read) timeouts.
|
|
2295
|
+
:type _request_timeout: int, tuple(int, int), optional
|
|
2296
|
+
:param _request_auth: set to override the auth_settings for an a single
|
|
2297
|
+
request; this effectively ignores the
|
|
2298
|
+
authentication in the spec for a single request.
|
|
2299
|
+
:type _request_auth: dict, optional
|
|
2300
|
+
:param _content_type: force content-type for the request.
|
|
2301
|
+
:type _content_type: str, Optional
|
|
2302
|
+
:param _headers: set to override the headers for a single
|
|
2303
|
+
request; this effectively ignores the headers
|
|
2304
|
+
in the spec for a single request.
|
|
2305
|
+
:type _headers: dict, optional
|
|
2306
|
+
:param _host_index: set to override the host_index for a single
|
|
2307
|
+
request; this effectively ignores the host_index
|
|
2308
|
+
in the spec for a single request.
|
|
2309
|
+
:type _host_index: int, optional
|
|
2310
|
+
:return: Returns the result object.
|
|
2311
|
+
""" # noqa: E501
|
|
2312
|
+
warnings.warn("GET /leaderboard/{leaderboardId}/prompts is deprecated.", DeprecationWarning)
|
|
2313
|
+
|
|
2314
|
+
_param = self._leaderboard_leaderboard_id_prompts_get_serialize(
|
|
2315
|
+
leaderboard_id=leaderboard_id,
|
|
2316
|
+
request=request,
|
|
2317
|
+
_request_auth=_request_auth,
|
|
2318
|
+
_content_type=_content_type,
|
|
2319
|
+
_headers=_headers,
|
|
2320
|
+
_host_index=_host_index
|
|
2321
|
+
)
|
|
2322
|
+
|
|
2323
|
+
_response_types_map: Dict[str, Optional[str]] = {
|
|
2324
|
+
'200': "PromptByBenchmarkResultPagedResult",
|
|
2325
|
+
}
|
|
2326
|
+
response_data = self.api_client.call_api(
|
|
2327
|
+
*_param,
|
|
2328
|
+
_request_timeout=_request_timeout
|
|
2329
|
+
)
|
|
2330
|
+
response_data.read()
|
|
2331
|
+
return self.api_client.response_deserialize(
|
|
2332
|
+
response_data=response_data,
|
|
2333
|
+
response_types_map=_response_types_map,
|
|
2334
|
+
).data
|
|
2335
|
+
|
|
2336
|
+
|
|
2337
|
+
@validate_call
|
|
2338
|
+
def leaderboard_leaderboard_id_prompts_get_with_http_info(
|
|
2339
|
+
self,
|
|
2340
|
+
leaderboard_id: StrictStr,
|
|
2341
|
+
request: Optional[QueryModel] = None,
|
|
2342
|
+
_request_timeout: Union[
|
|
2343
|
+
None,
|
|
2344
|
+
Annotated[StrictFloat, Field(gt=0)],
|
|
2345
|
+
Tuple[
|
|
2346
|
+
Annotated[StrictFloat, Field(gt=0)],
|
|
2347
|
+
Annotated[StrictFloat, Field(gt=0)]
|
|
2348
|
+
]
|
|
2349
|
+
] = None,
|
|
2350
|
+
_request_auth: Optional[Dict[StrictStr, Any]] = None,
|
|
2351
|
+
_content_type: Optional[StrictStr] = None,
|
|
2352
|
+
_headers: Optional[Dict[StrictStr, Any]] = None,
|
|
2353
|
+
_host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
|
|
2354
|
+
) -> ApiResponse[PromptByBenchmarkResultPagedResult]:
|
|
2355
|
+
"""(Deprecated) returns the paged prompts of a leaderboard by its ID.
|
|
2356
|
+
|
|
2357
|
+
|
|
2358
|
+
:param leaderboard_id: (required)
|
|
2359
|
+
:type leaderboard_id: str
|
|
2360
|
+
:param request:
|
|
2361
|
+
:type request: QueryModel
|
|
2362
|
+
:param _request_timeout: timeout setting for this request. If one
|
|
2363
|
+
number provided, it will be total request
|
|
2364
|
+
timeout. It can also be a pair (tuple) of
|
|
2365
|
+
(connection, read) timeouts.
|
|
2366
|
+
:type _request_timeout: int, tuple(int, int), optional
|
|
2367
|
+
:param _request_auth: set to override the auth_settings for an a single
|
|
2368
|
+
request; this effectively ignores the
|
|
2369
|
+
authentication in the spec for a single request.
|
|
2370
|
+
:type _request_auth: dict, optional
|
|
2371
|
+
:param _content_type: force content-type for the request.
|
|
2372
|
+
:type _content_type: str, Optional
|
|
2373
|
+
:param _headers: set to override the headers for a single
|
|
2374
|
+
request; this effectively ignores the headers
|
|
2375
|
+
in the spec for a single request.
|
|
2376
|
+
:type _headers: dict, optional
|
|
2377
|
+
:param _host_index: set to override the host_index for a single
|
|
2378
|
+
request; this effectively ignores the host_index
|
|
2379
|
+
in the spec for a single request.
|
|
2380
|
+
:type _host_index: int, optional
|
|
2381
|
+
:return: Returns the result object.
|
|
2382
|
+
""" # noqa: E501
|
|
2383
|
+
warnings.warn("GET /leaderboard/{leaderboardId}/prompts is deprecated.", DeprecationWarning)
|
|
2384
|
+
|
|
2385
|
+
_param = self._leaderboard_leaderboard_id_prompts_get_serialize(
|
|
2386
|
+
leaderboard_id=leaderboard_id,
|
|
2387
|
+
request=request,
|
|
2388
|
+
_request_auth=_request_auth,
|
|
2389
|
+
_content_type=_content_type,
|
|
2390
|
+
_headers=_headers,
|
|
2391
|
+
_host_index=_host_index
|
|
2392
|
+
)
|
|
2393
|
+
|
|
2394
|
+
_response_types_map: Dict[str, Optional[str]] = {
|
|
2395
|
+
'200': "PromptByBenchmarkResultPagedResult",
|
|
2396
|
+
}
|
|
2397
|
+
response_data = self.api_client.call_api(
|
|
2398
|
+
*_param,
|
|
2399
|
+
_request_timeout=_request_timeout
|
|
2400
|
+
)
|
|
2401
|
+
response_data.read()
|
|
2402
|
+
return self.api_client.response_deserialize(
|
|
2403
|
+
response_data=response_data,
|
|
2404
|
+
response_types_map=_response_types_map,
|
|
2405
|
+
)
|
|
2406
|
+
|
|
2407
|
+
|
|
2408
|
+
@validate_call
|
|
2409
|
+
def leaderboard_leaderboard_id_prompts_get_without_preload_content(
|
|
2410
|
+
self,
|
|
2411
|
+
leaderboard_id: StrictStr,
|
|
2412
|
+
request: Optional[QueryModel] = None,
|
|
2413
|
+
_request_timeout: Union[
|
|
2414
|
+
None,
|
|
2415
|
+
Annotated[StrictFloat, Field(gt=0)],
|
|
2416
|
+
Tuple[
|
|
2417
|
+
Annotated[StrictFloat, Field(gt=0)],
|
|
2418
|
+
Annotated[StrictFloat, Field(gt=0)]
|
|
2419
|
+
]
|
|
2420
|
+
] = None,
|
|
2421
|
+
_request_auth: Optional[Dict[StrictStr, Any]] = None,
|
|
2422
|
+
_content_type: Optional[StrictStr] = None,
|
|
2423
|
+
_headers: Optional[Dict[StrictStr, Any]] = None,
|
|
2424
|
+
_host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
|
|
2425
|
+
) -> RESTResponseType:
|
|
2426
|
+
"""(Deprecated) returns the paged prompts of a leaderboard by its ID.
|
|
2427
|
+
|
|
2428
|
+
|
|
2429
|
+
:param leaderboard_id: (required)
|
|
2430
|
+
:type leaderboard_id: str
|
|
2431
|
+
:param request:
|
|
2432
|
+
:type request: QueryModel
|
|
2433
|
+
:param _request_timeout: timeout setting for this request. If one
|
|
2434
|
+
number provided, it will be total request
|
|
2435
|
+
timeout. It can also be a pair (tuple) of
|
|
2436
|
+
(connection, read) timeouts.
|
|
2437
|
+
:type _request_timeout: int, tuple(int, int), optional
|
|
2438
|
+
:param _request_auth: set to override the auth_settings for an a single
|
|
2439
|
+
request; this effectively ignores the
|
|
2440
|
+
authentication in the spec for a single request.
|
|
2441
|
+
:type _request_auth: dict, optional
|
|
2442
|
+
:param _content_type: force content-type for the request.
|
|
2443
|
+
:type _content_type: str, Optional
|
|
2444
|
+
:param _headers: set to override the headers for a single
|
|
2445
|
+
request; this effectively ignores the headers
|
|
2446
|
+
in the spec for a single request.
|
|
2447
|
+
:type _headers: dict, optional
|
|
2448
|
+
:param _host_index: set to override the host_index for a single
|
|
2449
|
+
request; this effectively ignores the host_index
|
|
2450
|
+
in the spec for a single request.
|
|
2451
|
+
:type _host_index: int, optional
|
|
2452
|
+
:return: Returns the result object.
|
|
2453
|
+
""" # noqa: E501
|
|
2454
|
+
warnings.warn("GET /leaderboard/{leaderboardId}/prompts is deprecated.", DeprecationWarning)
|
|
2455
|
+
|
|
2456
|
+
_param = self._leaderboard_leaderboard_id_prompts_get_serialize(
|
|
2457
|
+
leaderboard_id=leaderboard_id,
|
|
2458
|
+
request=request,
|
|
2459
|
+
_request_auth=_request_auth,
|
|
2460
|
+
_content_type=_content_type,
|
|
2461
|
+
_headers=_headers,
|
|
2462
|
+
_host_index=_host_index
|
|
2463
|
+
)
|
|
2464
|
+
|
|
2465
|
+
_response_types_map: Dict[str, Optional[str]] = {
|
|
2466
|
+
'200': "PromptByBenchmarkResultPagedResult",
|
|
2467
|
+
}
|
|
2468
|
+
response_data = self.api_client.call_api(
|
|
2469
|
+
*_param,
|
|
2470
|
+
_request_timeout=_request_timeout
|
|
2471
|
+
)
|
|
2472
|
+
return response_data.response
|
|
2473
|
+
|
|
2474
|
+
|
|
2475
|
+
def _leaderboard_leaderboard_id_prompts_get_serialize(
|
|
2476
|
+
self,
|
|
2477
|
+
leaderboard_id,
|
|
2478
|
+
request,
|
|
2479
|
+
_request_auth,
|
|
2480
|
+
_content_type,
|
|
2481
|
+
_headers,
|
|
2482
|
+
_host_index,
|
|
2483
|
+
) -> RequestSerialized:
|
|
2484
|
+
|
|
2485
|
+
_host = None
|
|
2486
|
+
|
|
2487
|
+
_collection_formats: Dict[str, str] = {
|
|
2488
|
+
}
|
|
2489
|
+
|
|
2490
|
+
_path_params: Dict[str, str] = {}
|
|
2491
|
+
_query_params: List[Tuple[str, str]] = []
|
|
2492
|
+
_header_params: Dict[str, Optional[str]] = _headers or {}
|
|
2493
|
+
_form_params: List[Tuple[str, str]] = []
|
|
2494
|
+
_files: Dict[
|
|
2495
|
+
str, Union[str, bytes, List[str], List[bytes], List[Tuple[str, bytes]]]
|
|
2496
|
+
] = {}
|
|
2497
|
+
_body_params: Optional[bytes] = None
|
|
2498
|
+
|
|
2499
|
+
# process the path parameters
|
|
2500
|
+
if leaderboard_id is not None:
|
|
2501
|
+
_path_params['leaderboardId'] = leaderboard_id
|
|
2502
|
+
# process the query parameters
|
|
2503
|
+
if request is not None:
|
|
2504
|
+
|
|
2505
|
+
_query_params.append(('request', request))
|
|
2506
|
+
|
|
2507
|
+
# process the header parameters
|
|
2508
|
+
# process the form parameters
|
|
2509
|
+
# process the body parameter
|
|
2510
|
+
|
|
2511
|
+
|
|
2512
|
+
# set the HTTP header `Accept`
|
|
2513
|
+
if 'Accept' not in _header_params:
|
|
2514
|
+
_header_params['Accept'] = self.api_client.select_header_accept(
|
|
2515
|
+
[
|
|
2516
|
+
'text/plain',
|
|
2517
|
+
'application/json',
|
|
2518
|
+
'text/json'
|
|
2519
|
+
]
|
|
2520
|
+
)
|
|
2521
|
+
|
|
2522
|
+
|
|
2523
|
+
# authentication setting
|
|
2524
|
+
_auth_settings: List[str] = [
|
|
2525
|
+
'bearer',
|
|
2526
|
+
'oauth2'
|
|
2527
|
+
]
|
|
2528
|
+
|
|
2529
|
+
return self.api_client.param_serialize(
|
|
2530
|
+
method='GET',
|
|
2531
|
+
resource_path='/leaderboard/{leaderboardId}/prompts',
|
|
2532
|
+
path_params=_path_params,
|
|
2533
|
+
query_params=_query_params,
|
|
2534
|
+
header_params=_header_params,
|
|
2535
|
+
body=_body_params,
|
|
2536
|
+
post_params=_form_params,
|
|
2537
|
+
files=_files,
|
|
2538
|
+
auth_settings=_auth_settings,
|
|
2539
|
+
collection_formats=_collection_formats,
|
|
2540
|
+
_host=_host,
|
|
2541
|
+
_request_auth=_request_auth
|
|
2542
|
+
)
|
|
2543
|
+
|
|
2544
|
+
|
|
2545
|
+
|
|
2546
|
+
|
|
2547
|
+
@validate_call
|
|
2548
|
+
def leaderboard_leaderboard_id_prompts_post(
|
|
2549
|
+
self,
|
|
2550
|
+
leaderboard_id: Annotated[StrictStr, Field(description="The leaderboard id.")],
|
|
2551
|
+
body: Annotated[Optional[StrictStr], Field(description="The prompt")] = None,
|
|
2552
|
+
_request_timeout: Union[
|
|
2553
|
+
None,
|
|
2554
|
+
Annotated[StrictFloat, Field(gt=0)],
|
|
2555
|
+
Tuple[
|
|
2556
|
+
Annotated[StrictFloat, Field(gt=0)],
|
|
2557
|
+
Annotated[StrictFloat, Field(gt=0)]
|
|
2558
|
+
]
|
|
2559
|
+
] = None,
|
|
2560
|
+
_request_auth: Optional[Dict[StrictStr, Any]] = None,
|
|
2561
|
+
_content_type: Optional[StrictStr] = None,
|
|
2562
|
+
_headers: Optional[Dict[StrictStr, Any]] = None,
|
|
2563
|
+
_host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
|
|
2564
|
+
) -> None:
|
|
2565
|
+
"""(Deprecated) adds a new prompt to a leaderboard.
|
|
2566
|
+
|
|
2567
|
+
|
|
2568
|
+
:param leaderboard_id: The leaderboard id. (required)
|
|
2569
|
+
:type leaderboard_id: str
|
|
2570
|
+
:param body: The prompt
|
|
2571
|
+
:type body: str
|
|
2572
|
+
:param _request_timeout: timeout setting for this request. If one
|
|
2573
|
+
number provided, it will be total request
|
|
2574
|
+
timeout. It can also be a pair (tuple) of
|
|
2575
|
+
(connection, read) timeouts.
|
|
2576
|
+
:type _request_timeout: int, tuple(int, int), optional
|
|
2577
|
+
:param _request_auth: set to override the auth_settings for an a single
|
|
2578
|
+
request; this effectively ignores the
|
|
2579
|
+
authentication in the spec for a single request.
|
|
2580
|
+
:type _request_auth: dict, optional
|
|
2581
|
+
:param _content_type: force content-type for the request.
|
|
2582
|
+
:type _content_type: str, Optional
|
|
2583
|
+
:param _headers: set to override the headers for a single
|
|
2584
|
+
request; this effectively ignores the headers
|
|
2585
|
+
in the spec for a single request.
|
|
2586
|
+
:type _headers: dict, optional
|
|
2587
|
+
:param _host_index: set to override the host_index for a single
|
|
2588
|
+
request; this effectively ignores the host_index
|
|
2589
|
+
in the spec for a single request.
|
|
2590
|
+
:type _host_index: int, optional
|
|
2591
|
+
:return: Returns the result object.
|
|
2592
|
+
""" # noqa: E501
|
|
2593
|
+
warnings.warn("POST /leaderboard/{leaderboardId}/prompts is deprecated.", DeprecationWarning)
|
|
2594
|
+
|
|
2595
|
+
_param = self._leaderboard_leaderboard_id_prompts_post_serialize(
|
|
2596
|
+
leaderboard_id=leaderboard_id,
|
|
2597
|
+
body=body,
|
|
2598
|
+
_request_auth=_request_auth,
|
|
2599
|
+
_content_type=_content_type,
|
|
2600
|
+
_headers=_headers,
|
|
2601
|
+
_host_index=_host_index
|
|
2602
|
+
)
|
|
2603
|
+
|
|
2604
|
+
_response_types_map: Dict[str, Optional[str]] = {
|
|
2605
|
+
'204': None,
|
|
2606
|
+
}
|
|
2607
|
+
response_data = self.api_client.call_api(
|
|
2608
|
+
*_param,
|
|
2609
|
+
_request_timeout=_request_timeout
|
|
2610
|
+
)
|
|
2611
|
+
response_data.read()
|
|
2612
|
+
return self.api_client.response_deserialize(
|
|
2613
|
+
response_data=response_data,
|
|
2614
|
+
response_types_map=_response_types_map,
|
|
2615
|
+
).data
|
|
2616
|
+
|
|
2617
|
+
|
|
2618
|
+
@validate_call
|
|
2619
|
+
def leaderboard_leaderboard_id_prompts_post_with_http_info(
|
|
2620
|
+
self,
|
|
2621
|
+
leaderboard_id: Annotated[StrictStr, Field(description="The leaderboard id.")],
|
|
2622
|
+
body: Annotated[Optional[StrictStr], Field(description="The prompt")] = None,
|
|
2623
|
+
_request_timeout: Union[
|
|
2624
|
+
None,
|
|
2625
|
+
Annotated[StrictFloat, Field(gt=0)],
|
|
2626
|
+
Tuple[
|
|
2627
|
+
Annotated[StrictFloat, Field(gt=0)],
|
|
2628
|
+
Annotated[StrictFloat, Field(gt=0)]
|
|
2629
|
+
]
|
|
2630
|
+
] = None,
|
|
2631
|
+
_request_auth: Optional[Dict[StrictStr, Any]] = None,
|
|
2632
|
+
_content_type: Optional[StrictStr] = None,
|
|
2633
|
+
_headers: Optional[Dict[StrictStr, Any]] = None,
|
|
2634
|
+
_host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
|
|
2635
|
+
) -> ApiResponse[None]:
|
|
2636
|
+
"""(Deprecated) adds a new prompt to a leaderboard.
|
|
2637
|
+
|
|
2638
|
+
|
|
2639
|
+
:param leaderboard_id: The leaderboard id. (required)
|
|
2640
|
+
:type leaderboard_id: str
|
|
2641
|
+
:param body: The prompt
|
|
2642
|
+
:type body: str
|
|
2643
|
+
:param _request_timeout: timeout setting for this request. If one
|
|
2644
|
+
number provided, it will be total request
|
|
2645
|
+
timeout. It can also be a pair (tuple) of
|
|
2646
|
+
(connection, read) timeouts.
|
|
2647
|
+
:type _request_timeout: int, tuple(int, int), optional
|
|
2648
|
+
:param _request_auth: set to override the auth_settings for an a single
|
|
2649
|
+
request; this effectively ignores the
|
|
2650
|
+
authentication in the spec for a single request.
|
|
2651
|
+
:type _request_auth: dict, optional
|
|
2652
|
+
:param _content_type: force content-type for the request.
|
|
2653
|
+
:type _content_type: str, Optional
|
|
2654
|
+
:param _headers: set to override the headers for a single
|
|
2655
|
+
request; this effectively ignores the headers
|
|
2656
|
+
in the spec for a single request.
|
|
2657
|
+
:type _headers: dict, optional
|
|
2658
|
+
:param _host_index: set to override the host_index for a single
|
|
2659
|
+
request; this effectively ignores the host_index
|
|
2660
|
+
in the spec for a single request.
|
|
2661
|
+
:type _host_index: int, optional
|
|
2662
|
+
:return: Returns the result object.
|
|
2663
|
+
""" # noqa: E501
|
|
2664
|
+
warnings.warn("POST /leaderboard/{leaderboardId}/prompts is deprecated.", DeprecationWarning)
|
|
2665
|
+
|
|
2666
|
+
_param = self._leaderboard_leaderboard_id_prompts_post_serialize(
|
|
2667
|
+
leaderboard_id=leaderboard_id,
|
|
2668
|
+
body=body,
|
|
2669
|
+
_request_auth=_request_auth,
|
|
2670
|
+
_content_type=_content_type,
|
|
2671
|
+
_headers=_headers,
|
|
2672
|
+
_host_index=_host_index
|
|
2673
|
+
)
|
|
2674
|
+
|
|
2675
|
+
_response_types_map: Dict[str, Optional[str]] = {
|
|
2676
|
+
'204': None,
|
|
2677
|
+
}
|
|
2678
|
+
response_data = self.api_client.call_api(
|
|
2679
|
+
*_param,
|
|
2680
|
+
_request_timeout=_request_timeout
|
|
2681
|
+
)
|
|
2682
|
+
response_data.read()
|
|
2683
|
+
return self.api_client.response_deserialize(
|
|
2684
|
+
response_data=response_data,
|
|
2685
|
+
response_types_map=_response_types_map,
|
|
2686
|
+
)
|
|
2687
|
+
|
|
2688
|
+
|
|
2689
|
+
@validate_call
|
|
2690
|
+
def leaderboard_leaderboard_id_prompts_post_without_preload_content(
|
|
2691
|
+
self,
|
|
2692
|
+
leaderboard_id: Annotated[StrictStr, Field(description="The leaderboard id.")],
|
|
2693
|
+
body: Annotated[Optional[StrictStr], Field(description="The prompt")] = None,
|
|
2694
|
+
_request_timeout: Union[
|
|
2695
|
+
None,
|
|
2696
|
+
Annotated[StrictFloat, Field(gt=0)],
|
|
2697
|
+
Tuple[
|
|
2698
|
+
Annotated[StrictFloat, Field(gt=0)],
|
|
2699
|
+
Annotated[StrictFloat, Field(gt=0)]
|
|
2700
|
+
]
|
|
2701
|
+
] = None,
|
|
2702
|
+
_request_auth: Optional[Dict[StrictStr, Any]] = None,
|
|
2703
|
+
_content_type: Optional[StrictStr] = None,
|
|
2704
|
+
_headers: Optional[Dict[StrictStr, Any]] = None,
|
|
2705
|
+
_host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
|
|
2706
|
+
) -> RESTResponseType:
|
|
2707
|
+
"""(Deprecated) adds a new prompt to a leaderboard.
|
|
2708
|
+
|
|
2709
|
+
|
|
2710
|
+
:param leaderboard_id: The leaderboard id. (required)
|
|
2711
|
+
:type leaderboard_id: str
|
|
2712
|
+
:param body: The prompt
|
|
2713
|
+
:type body: str
|
|
2714
|
+
:param _request_timeout: timeout setting for this request. If one
|
|
2715
|
+
number provided, it will be total request
|
|
2716
|
+
timeout. It can also be a pair (tuple) of
|
|
2717
|
+
(connection, read) timeouts.
|
|
2718
|
+
:type _request_timeout: int, tuple(int, int), optional
|
|
2719
|
+
:param _request_auth: set to override the auth_settings for an a single
|
|
2720
|
+
request; this effectively ignores the
|
|
2721
|
+
authentication in the spec for a single request.
|
|
2722
|
+
:type _request_auth: dict, optional
|
|
2723
|
+
:param _content_type: force content-type for the request.
|
|
2724
|
+
:type _content_type: str, Optional
|
|
2725
|
+
:param _headers: set to override the headers for a single
|
|
2726
|
+
request; this effectively ignores the headers
|
|
2727
|
+
in the spec for a single request.
|
|
2728
|
+
:type _headers: dict, optional
|
|
2729
|
+
:param _host_index: set to override the host_index for a single
|
|
2730
|
+
request; this effectively ignores the host_index
|
|
2731
|
+
in the spec for a single request.
|
|
2732
|
+
:type _host_index: int, optional
|
|
2733
|
+
:return: Returns the result object.
|
|
2734
|
+
""" # noqa: E501
|
|
2735
|
+
warnings.warn("POST /leaderboard/{leaderboardId}/prompts is deprecated.", DeprecationWarning)
|
|
2736
|
+
|
|
2737
|
+
_param = self._leaderboard_leaderboard_id_prompts_post_serialize(
|
|
2738
|
+
leaderboard_id=leaderboard_id,
|
|
2739
|
+
body=body,
|
|
2740
|
+
_request_auth=_request_auth,
|
|
2741
|
+
_content_type=_content_type,
|
|
2742
|
+
_headers=_headers,
|
|
2743
|
+
_host_index=_host_index
|
|
2744
|
+
)
|
|
2745
|
+
|
|
2746
|
+
_response_types_map: Dict[str, Optional[str]] = {
|
|
2747
|
+
'204': None,
|
|
2748
|
+
}
|
|
2749
|
+
response_data = self.api_client.call_api(
|
|
2750
|
+
*_param,
|
|
2751
|
+
_request_timeout=_request_timeout
|
|
2752
|
+
)
|
|
2753
|
+
return response_data.response
|
|
2754
|
+
|
|
2755
|
+
|
|
2756
|
+
def _leaderboard_leaderboard_id_prompts_post_serialize(
|
|
2757
|
+
self,
|
|
2758
|
+
leaderboard_id,
|
|
2759
|
+
body,
|
|
2760
|
+
_request_auth,
|
|
2761
|
+
_content_type,
|
|
2762
|
+
_headers,
|
|
2763
|
+
_host_index,
|
|
2764
|
+
) -> RequestSerialized:
|
|
2765
|
+
|
|
2766
|
+
_host = None
|
|
2767
|
+
|
|
2768
|
+
_collection_formats: Dict[str, str] = {
|
|
2769
|
+
}
|
|
2770
|
+
|
|
2771
|
+
_path_params: Dict[str, str] = {}
|
|
2772
|
+
_query_params: List[Tuple[str, str]] = []
|
|
2773
|
+
_header_params: Dict[str, Optional[str]] = _headers or {}
|
|
2774
|
+
_form_params: List[Tuple[str, str]] = []
|
|
2775
|
+
_files: Dict[
|
|
2776
|
+
str, Union[str, bytes, List[str], List[bytes], List[Tuple[str, bytes]]]
|
|
2777
|
+
] = {}
|
|
2778
|
+
_body_params: Optional[bytes] = None
|
|
2779
|
+
|
|
2780
|
+
# process the path parameters
|
|
2781
|
+
if leaderboard_id is not None:
|
|
2782
|
+
_path_params['leaderboardId'] = leaderboard_id
|
|
2783
|
+
# process the query parameters
|
|
2784
|
+
# process the header parameters
|
|
2785
|
+
# process the form parameters
|
|
2786
|
+
# process the body parameter
|
|
2787
|
+
if body is not None:
|
|
2788
|
+
_body_params = body
|
|
2789
|
+
|
|
2790
|
+
|
|
2791
|
+
|
|
2792
|
+
# set the HTTP header `Content-Type`
|
|
2793
|
+
if _content_type:
|
|
2794
|
+
_header_params['Content-Type'] = _content_type
|
|
2795
|
+
else:
|
|
2796
|
+
_default_content_type = (
|
|
2797
|
+
self.api_client.select_header_content_type(
|
|
2798
|
+
[
|
|
2799
|
+
'application/json',
|
|
2800
|
+
'text/json',
|
|
2801
|
+
'application/*+json',
|
|
2802
|
+
'text/plain'
|
|
2803
|
+
]
|
|
2804
|
+
)
|
|
2805
|
+
)
|
|
2806
|
+
if _default_content_type is not None:
|
|
2807
|
+
_header_params['Content-Type'] = _default_content_type
|
|
2808
|
+
|
|
2809
|
+
# authentication setting
|
|
2810
|
+
_auth_settings: List[str] = [
|
|
2811
|
+
'bearer',
|
|
2812
|
+
'oauth2'
|
|
2813
|
+
]
|
|
2814
|
+
|
|
2815
|
+
return self.api_client.param_serialize(
|
|
2816
|
+
method='POST',
|
|
2817
|
+
resource_path='/leaderboard/{leaderboardId}/prompts',
|
|
2818
|
+
path_params=_path_params,
|
|
2819
|
+
query_params=_query_params,
|
|
2820
|
+
header_params=_header_params,
|
|
2821
|
+
body=_body_params,
|
|
2822
|
+
post_params=_form_params,
|
|
2823
|
+
files=_files,
|
|
2824
|
+
auth_settings=_auth_settings,
|
|
2825
|
+
collection_formats=_collection_formats,
|
|
2826
|
+
_host=_host,
|
|
2827
|
+
_request_auth=_request_auth
|
|
2828
|
+
)
|
|
2829
|
+
|
|
2830
|
+
|
|
2831
|
+
|
|
2832
|
+
|
|
2833
|
+
@validate_call
|
|
2834
|
+
def leaderboard_leaderboard_id_refresh_post(
|
|
2835
|
+
self,
|
|
2836
|
+
leaderboard_id: StrictStr,
|
|
2837
|
+
_request_timeout: Union[
|
|
2838
|
+
None,
|
|
2839
|
+
Annotated[StrictFloat, Field(gt=0)],
|
|
2840
|
+
Tuple[
|
|
2841
|
+
Annotated[StrictFloat, Field(gt=0)],
|
|
2842
|
+
Annotated[StrictFloat, Field(gt=0)]
|
|
2843
|
+
]
|
|
2844
|
+
] = None,
|
|
2845
|
+
_request_auth: Optional[Dict[StrictStr, Any]] = None,
|
|
2846
|
+
_content_type: Optional[StrictStr] = None,
|
|
2847
|
+
_headers: Optional[Dict[StrictStr, Any]] = None,
|
|
2848
|
+
_host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
|
|
2849
|
+
) -> None:
|
|
2850
|
+
"""This will force an update to all standings of a leaderboard. this could happen if the recorded matches and scores are out of sync
|
|
2851
|
+
|
|
2852
|
+
|
|
2853
|
+
:param leaderboard_id: (required)
|
|
2854
|
+
:type leaderboard_id: str
|
|
2855
|
+
:param _request_timeout: timeout setting for this request. If one
|
|
2856
|
+
number provided, it will be total request
|
|
2857
|
+
timeout. It can also be a pair (tuple) of
|
|
2858
|
+
(connection, read) timeouts.
|
|
2859
|
+
:type _request_timeout: int, tuple(int, int), optional
|
|
2860
|
+
:param _request_auth: set to override the auth_settings for an a single
|
|
2861
|
+
request; this effectively ignores the
|
|
2862
|
+
authentication in the spec for a single request.
|
|
2863
|
+
:type _request_auth: dict, optional
|
|
2864
|
+
:param _content_type: force content-type for the request.
|
|
2865
|
+
:type _content_type: str, Optional
|
|
2866
|
+
:param _headers: set to override the headers for a single
|
|
2867
|
+
request; this effectively ignores the headers
|
|
2868
|
+
in the spec for a single request.
|
|
2869
|
+
:type _headers: dict, optional
|
|
2870
|
+
:param _host_index: set to override the host_index for a single
|
|
2871
|
+
request; this effectively ignores the host_index
|
|
2872
|
+
in the spec for a single request.
|
|
2873
|
+
:type _host_index: int, optional
|
|
2874
|
+
:return: Returns the result object.
|
|
2875
|
+
""" # noqa: E501
|
|
2876
|
+
|
|
2877
|
+
_param = self._leaderboard_leaderboard_id_refresh_post_serialize(
|
|
2878
|
+
leaderboard_id=leaderboard_id,
|
|
2879
|
+
_request_auth=_request_auth,
|
|
2880
|
+
_content_type=_content_type,
|
|
2881
|
+
_headers=_headers,
|
|
2882
|
+
_host_index=_host_index
|
|
2883
|
+
)
|
|
2884
|
+
|
|
2885
|
+
_response_types_map: Dict[str, Optional[str]] = {
|
|
2886
|
+
'204': None,
|
|
2887
|
+
}
|
|
2888
|
+
response_data = self.api_client.call_api(
|
|
2889
|
+
*_param,
|
|
2890
|
+
_request_timeout=_request_timeout
|
|
2891
|
+
)
|
|
2892
|
+
response_data.read()
|
|
2893
|
+
return self.api_client.response_deserialize(
|
|
2894
|
+
response_data=response_data,
|
|
2895
|
+
response_types_map=_response_types_map,
|
|
2896
|
+
).data
|
|
2897
|
+
|
|
2898
|
+
|
|
2899
|
+
@validate_call
|
|
2900
|
+
def leaderboard_leaderboard_id_refresh_post_with_http_info(
|
|
2901
|
+
self,
|
|
2902
|
+
leaderboard_id: StrictStr,
|
|
2903
|
+
_request_timeout: Union[
|
|
2904
|
+
None,
|
|
2905
|
+
Annotated[StrictFloat, Field(gt=0)],
|
|
2906
|
+
Tuple[
|
|
2907
|
+
Annotated[StrictFloat, Field(gt=0)],
|
|
2908
|
+
Annotated[StrictFloat, Field(gt=0)]
|
|
2909
|
+
]
|
|
2910
|
+
] = None,
|
|
2911
|
+
_request_auth: Optional[Dict[StrictStr, Any]] = None,
|
|
2912
|
+
_content_type: Optional[StrictStr] = None,
|
|
2913
|
+
_headers: Optional[Dict[StrictStr, Any]] = None,
|
|
2914
|
+
_host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
|
|
2915
|
+
) -> ApiResponse[None]:
|
|
2916
|
+
"""This will force an update to all standings of a leaderboard. this could happen if the recorded matches and scores are out of sync
|
|
2917
|
+
|
|
2918
|
+
|
|
2919
|
+
:param leaderboard_id: (required)
|
|
2920
|
+
:type leaderboard_id: str
|
|
2921
|
+
:param _request_timeout: timeout setting for this request. If one
|
|
2922
|
+
number provided, it will be total request
|
|
2923
|
+
timeout. It can also be a pair (tuple) of
|
|
2924
|
+
(connection, read) timeouts.
|
|
2925
|
+
:type _request_timeout: int, tuple(int, int), optional
|
|
2926
|
+
:param _request_auth: set to override the auth_settings for an a single
|
|
2927
|
+
request; this effectively ignores the
|
|
2928
|
+
authentication in the spec for a single request.
|
|
2929
|
+
:type _request_auth: dict, optional
|
|
2930
|
+
:param _content_type: force content-type for the request.
|
|
2931
|
+
:type _content_type: str, Optional
|
|
2932
|
+
:param _headers: set to override the headers for a single
|
|
2933
|
+
request; this effectively ignores the headers
|
|
2934
|
+
in the spec for a single request.
|
|
2935
|
+
:type _headers: dict, optional
|
|
2936
|
+
:param _host_index: set to override the host_index for a single
|
|
2937
|
+
request; this effectively ignores the host_index
|
|
2938
|
+
in the spec for a single request.
|
|
2939
|
+
:type _host_index: int, optional
|
|
2940
|
+
:return: Returns the result object.
|
|
2941
|
+
""" # noqa: E501
|
|
2942
|
+
|
|
2943
|
+
_param = self._leaderboard_leaderboard_id_refresh_post_serialize(
|
|
2944
|
+
leaderboard_id=leaderboard_id,
|
|
2945
|
+
_request_auth=_request_auth,
|
|
2946
|
+
_content_type=_content_type,
|
|
2947
|
+
_headers=_headers,
|
|
2948
|
+
_host_index=_host_index
|
|
2949
|
+
)
|
|
2950
|
+
|
|
2951
|
+
_response_types_map: Dict[str, Optional[str]] = {
|
|
2952
|
+
'204': None,
|
|
2953
|
+
}
|
|
2954
|
+
response_data = self.api_client.call_api(
|
|
2955
|
+
*_param,
|
|
2956
|
+
_request_timeout=_request_timeout
|
|
2957
|
+
)
|
|
2958
|
+
response_data.read()
|
|
2959
|
+
return self.api_client.response_deserialize(
|
|
2960
|
+
response_data=response_data,
|
|
2961
|
+
response_types_map=_response_types_map,
|
|
2962
|
+
)
|
|
2963
|
+
|
|
2964
|
+
|
|
2965
|
+
@validate_call
|
|
2966
|
+
def leaderboard_leaderboard_id_refresh_post_without_preload_content(
|
|
2967
|
+
self,
|
|
2968
|
+
leaderboard_id: StrictStr,
|
|
2969
|
+
_request_timeout: Union[
|
|
2970
|
+
None,
|
|
2971
|
+
Annotated[StrictFloat, Field(gt=0)],
|
|
2972
|
+
Tuple[
|
|
2973
|
+
Annotated[StrictFloat, Field(gt=0)],
|
|
2974
|
+
Annotated[StrictFloat, Field(gt=0)]
|
|
2975
|
+
]
|
|
2976
|
+
] = None,
|
|
2977
|
+
_request_auth: Optional[Dict[StrictStr, Any]] = None,
|
|
2978
|
+
_content_type: Optional[StrictStr] = None,
|
|
2979
|
+
_headers: Optional[Dict[StrictStr, Any]] = None,
|
|
2980
|
+
_host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
|
|
2981
|
+
) -> RESTResponseType:
|
|
2982
|
+
"""This will force an update to all standings of a leaderboard. this could happen if the recorded matches and scores are out of sync
|
|
2983
|
+
|
|
2984
|
+
|
|
2985
|
+
:param leaderboard_id: (required)
|
|
2986
|
+
:type leaderboard_id: str
|
|
2987
|
+
:param _request_timeout: timeout setting for this request. If one
|
|
2988
|
+
number provided, it will be total request
|
|
2989
|
+
timeout. It can also be a pair (tuple) of
|
|
2990
|
+
(connection, read) timeouts.
|
|
2991
|
+
:type _request_timeout: int, tuple(int, int), optional
|
|
2992
|
+
:param _request_auth: set to override the auth_settings for an a single
|
|
2993
|
+
request; this effectively ignores the
|
|
2994
|
+
authentication in the spec for a single request.
|
|
2995
|
+
:type _request_auth: dict, optional
|
|
2996
|
+
:param _content_type: force content-type for the request.
|
|
2997
|
+
:type _content_type: str, Optional
|
|
2998
|
+
:param _headers: set to override the headers for a single
|
|
2999
|
+
request; this effectively ignores the headers
|
|
3000
|
+
in the spec for a single request.
|
|
3001
|
+
:type _headers: dict, optional
|
|
3002
|
+
:param _host_index: set to override the host_index for a single
|
|
3003
|
+
request; this effectively ignores the host_index
|
|
3004
|
+
in the spec for a single request.
|
|
3005
|
+
:type _host_index: int, optional
|
|
3006
|
+
:return: Returns the result object.
|
|
3007
|
+
""" # noqa: E501
|
|
3008
|
+
|
|
3009
|
+
_param = self._leaderboard_leaderboard_id_refresh_post_serialize(
|
|
3010
|
+
leaderboard_id=leaderboard_id,
|
|
3011
|
+
_request_auth=_request_auth,
|
|
3012
|
+
_content_type=_content_type,
|
|
3013
|
+
_headers=_headers,
|
|
3014
|
+
_host_index=_host_index
|
|
3015
|
+
)
|
|
3016
|
+
|
|
3017
|
+
_response_types_map: Dict[str, Optional[str]] = {
|
|
3018
|
+
'204': None,
|
|
3019
|
+
}
|
|
3020
|
+
response_data = self.api_client.call_api(
|
|
3021
|
+
*_param,
|
|
3022
|
+
_request_timeout=_request_timeout
|
|
3023
|
+
)
|
|
3024
|
+
return response_data.response
|
|
3025
|
+
|
|
3026
|
+
|
|
3027
|
+
def _leaderboard_leaderboard_id_refresh_post_serialize(
|
|
3028
|
+
self,
|
|
3029
|
+
leaderboard_id,
|
|
3030
|
+
_request_auth,
|
|
3031
|
+
_content_type,
|
|
3032
|
+
_headers,
|
|
3033
|
+
_host_index,
|
|
3034
|
+
) -> RequestSerialized:
|
|
3035
|
+
|
|
3036
|
+
_host = None
|
|
3037
|
+
|
|
3038
|
+
_collection_formats: Dict[str, str] = {
|
|
3039
|
+
}
|
|
3040
|
+
|
|
3041
|
+
_path_params: Dict[str, str] = {}
|
|
3042
|
+
_query_params: List[Tuple[str, str]] = []
|
|
3043
|
+
_header_params: Dict[str, Optional[str]] = _headers or {}
|
|
3044
|
+
_form_params: List[Tuple[str, str]] = []
|
|
3045
|
+
_files: Dict[
|
|
3046
|
+
str, Union[str, bytes, List[str], List[bytes], List[Tuple[str, bytes]]]
|
|
3047
|
+
] = {}
|
|
3048
|
+
_body_params: Optional[bytes] = None
|
|
3049
|
+
|
|
3050
|
+
# process the path parameters
|
|
3051
|
+
if leaderboard_id is not None:
|
|
3052
|
+
_path_params['leaderboardId'] = leaderboard_id
|
|
3053
|
+
# process the query parameters
|
|
3054
|
+
# process the header parameters
|
|
3055
|
+
# process the form parameters
|
|
3056
|
+
# process the body parameter
|
|
3057
|
+
|
|
3058
|
+
|
|
3059
|
+
|
|
3060
|
+
|
|
3061
|
+
# authentication setting
|
|
3062
|
+
_auth_settings: List[str] = [
|
|
3063
|
+
'bearer',
|
|
3064
|
+
'oauth2'
|
|
3065
|
+
]
|
|
3066
|
+
|
|
3067
|
+
return self.api_client.param_serialize(
|
|
3068
|
+
method='POST',
|
|
3069
|
+
resource_path='/leaderboard/{leaderboardId}/refresh',
|
|
3070
|
+
path_params=_path_params,
|
|
3071
|
+
query_params=_query_params,
|
|
3072
|
+
header_params=_header_params,
|
|
3073
|
+
body=_body_params,
|
|
3074
|
+
post_params=_form_params,
|
|
3075
|
+
files=_files,
|
|
3076
|
+
auth_settings=_auth_settings,
|
|
3077
|
+
collection_formats=_collection_formats,
|
|
3078
|
+
_host=_host,
|
|
3079
|
+
_request_auth=_request_auth
|
|
3080
|
+
)
|
|
3081
|
+
|
|
3082
|
+
|
|
3083
|
+
|
|
3084
|
+
|
|
3085
|
+
@validate_call
|
|
3086
|
+
def leaderboard_leaderboard_id_standings_get(
|
|
3087
|
+
self,
|
|
3088
|
+
leaderboard_id: StrictStr,
|
|
3089
|
+
request: Optional[QueryModel] = None,
|
|
3090
|
+
_request_timeout: Union[
|
|
3091
|
+
None,
|
|
3092
|
+
Annotated[StrictFloat, Field(gt=0)],
|
|
3093
|
+
Tuple[
|
|
3094
|
+
Annotated[StrictFloat, Field(gt=0)],
|
|
3095
|
+
Annotated[StrictFloat, Field(gt=0)]
|
|
3096
|
+
]
|
|
3097
|
+
] = None,
|
|
3098
|
+
_request_auth: Optional[Dict[StrictStr, Any]] = None,
|
|
3099
|
+
_content_type: Optional[StrictStr] = None,
|
|
3100
|
+
_headers: Optional[Dict[StrictStr, Any]] = None,
|
|
3101
|
+
_host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
|
|
3102
|
+
) -> StandingByLeaderboardPagedResult:
|
|
3103
|
+
"""queries all the participants connected to leaderboard by its ID.
|
|
3104
|
+
|
|
3105
|
+
|
|
3106
|
+
:param leaderboard_id: (required)
|
|
3107
|
+
:type leaderboard_id: str
|
|
3108
|
+
:param request:
|
|
3109
|
+
:type request: QueryModel
|
|
3110
|
+
:param _request_timeout: timeout setting for this request. If one
|
|
3111
|
+
number provided, it will be total request
|
|
3112
|
+
timeout. It can also be a pair (tuple) of
|
|
3113
|
+
(connection, read) timeouts.
|
|
3114
|
+
:type _request_timeout: int, tuple(int, int), optional
|
|
3115
|
+
:param _request_auth: set to override the auth_settings for an a single
|
|
3116
|
+
request; this effectively ignores the
|
|
3117
|
+
authentication in the spec for a single request.
|
|
3118
|
+
:type _request_auth: dict, optional
|
|
3119
|
+
:param _content_type: force content-type for the request.
|
|
3120
|
+
:type _content_type: str, Optional
|
|
3121
|
+
:param _headers: set to override the headers for a single
|
|
3122
|
+
request; this effectively ignores the headers
|
|
3123
|
+
in the spec for a single request.
|
|
3124
|
+
:type _headers: dict, optional
|
|
3125
|
+
:param _host_index: set to override the host_index for a single
|
|
3126
|
+
request; this effectively ignores the host_index
|
|
3127
|
+
in the spec for a single request.
|
|
3128
|
+
:type _host_index: int, optional
|
|
3129
|
+
:return: Returns the result object.
|
|
3130
|
+
""" # noqa: E501
|
|
3131
|
+
|
|
3132
|
+
_param = self._leaderboard_leaderboard_id_standings_get_serialize(
|
|
3133
|
+
leaderboard_id=leaderboard_id,
|
|
3134
|
+
request=request,
|
|
3135
|
+
_request_auth=_request_auth,
|
|
3136
|
+
_content_type=_content_type,
|
|
3137
|
+
_headers=_headers,
|
|
3138
|
+
_host_index=_host_index
|
|
3139
|
+
)
|
|
3140
|
+
|
|
3141
|
+
_response_types_map: Dict[str, Optional[str]] = {
|
|
3142
|
+
'200': "StandingByLeaderboardPagedResult",
|
|
3143
|
+
}
|
|
3144
|
+
response_data = self.api_client.call_api(
|
|
3145
|
+
*_param,
|
|
3146
|
+
_request_timeout=_request_timeout
|
|
3147
|
+
)
|
|
3148
|
+
response_data.read()
|
|
3149
|
+
return self.api_client.response_deserialize(
|
|
3150
|
+
response_data=response_data,
|
|
3151
|
+
response_types_map=_response_types_map,
|
|
3152
|
+
).data
|
|
3153
|
+
|
|
3154
|
+
|
|
3155
|
+
@validate_call
|
|
3156
|
+
def leaderboard_leaderboard_id_standings_get_with_http_info(
|
|
3157
|
+
self,
|
|
3158
|
+
leaderboard_id: StrictStr,
|
|
3159
|
+
request: Optional[QueryModel] = None,
|
|
3160
|
+
_request_timeout: Union[
|
|
3161
|
+
None,
|
|
3162
|
+
Annotated[StrictFloat, Field(gt=0)],
|
|
3163
|
+
Tuple[
|
|
3164
|
+
Annotated[StrictFloat, Field(gt=0)],
|
|
3165
|
+
Annotated[StrictFloat, Field(gt=0)]
|
|
3166
|
+
]
|
|
3167
|
+
] = None,
|
|
3168
|
+
_request_auth: Optional[Dict[StrictStr, Any]] = None,
|
|
3169
|
+
_content_type: Optional[StrictStr] = None,
|
|
3170
|
+
_headers: Optional[Dict[StrictStr, Any]] = None,
|
|
3171
|
+
_host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
|
|
3172
|
+
) -> ApiResponse[StandingByLeaderboardPagedResult]:
|
|
3173
|
+
"""queries all the participants connected to leaderboard by its ID.
|
|
3174
|
+
|
|
3175
|
+
|
|
3176
|
+
:param leaderboard_id: (required)
|
|
3177
|
+
:type leaderboard_id: str
|
|
3178
|
+
:param request:
|
|
3179
|
+
:type request: QueryModel
|
|
3180
|
+
:param _request_timeout: timeout setting for this request. If one
|
|
3181
|
+
number provided, it will be total request
|
|
3182
|
+
timeout. It can also be a pair (tuple) of
|
|
3183
|
+
(connection, read) timeouts.
|
|
3184
|
+
:type _request_timeout: int, tuple(int, int), optional
|
|
3185
|
+
:param _request_auth: set to override the auth_settings for an a single
|
|
3186
|
+
request; this effectively ignores the
|
|
3187
|
+
authentication in the spec for a single request.
|
|
3188
|
+
:type _request_auth: dict, optional
|
|
3189
|
+
:param _content_type: force content-type for the request.
|
|
3190
|
+
:type _content_type: str, Optional
|
|
3191
|
+
:param _headers: set to override the headers for a single
|
|
3192
|
+
request; this effectively ignores the headers
|
|
3193
|
+
in the spec for a single request.
|
|
3194
|
+
:type _headers: dict, optional
|
|
3195
|
+
:param _host_index: set to override the host_index for a single
|
|
3196
|
+
request; this effectively ignores the host_index
|
|
3197
|
+
in the spec for a single request.
|
|
3198
|
+
:type _host_index: int, optional
|
|
3199
|
+
:return: Returns the result object.
|
|
3200
|
+
""" # noqa: E501
|
|
3201
|
+
|
|
3202
|
+
_param = self._leaderboard_leaderboard_id_standings_get_serialize(
|
|
3203
|
+
leaderboard_id=leaderboard_id,
|
|
3204
|
+
request=request,
|
|
3205
|
+
_request_auth=_request_auth,
|
|
3206
|
+
_content_type=_content_type,
|
|
3207
|
+
_headers=_headers,
|
|
3208
|
+
_host_index=_host_index
|
|
3209
|
+
)
|
|
3210
|
+
|
|
3211
|
+
_response_types_map: Dict[str, Optional[str]] = {
|
|
3212
|
+
'200': "StandingByLeaderboardPagedResult",
|
|
3213
|
+
}
|
|
3214
|
+
response_data = self.api_client.call_api(
|
|
3215
|
+
*_param,
|
|
3216
|
+
_request_timeout=_request_timeout
|
|
3217
|
+
)
|
|
3218
|
+
response_data.read()
|
|
3219
|
+
return self.api_client.response_deserialize(
|
|
3220
|
+
response_data=response_data,
|
|
3221
|
+
response_types_map=_response_types_map,
|
|
3222
|
+
)
|
|
3223
|
+
|
|
3224
|
+
|
|
3225
|
+
@validate_call
|
|
3226
|
+
def leaderboard_leaderboard_id_standings_get_without_preload_content(
|
|
3227
|
+
self,
|
|
3228
|
+
leaderboard_id: StrictStr,
|
|
3229
|
+
request: Optional[QueryModel] = None,
|
|
3230
|
+
_request_timeout: Union[
|
|
3231
|
+
None,
|
|
3232
|
+
Annotated[StrictFloat, Field(gt=0)],
|
|
3233
|
+
Tuple[
|
|
3234
|
+
Annotated[StrictFloat, Field(gt=0)],
|
|
3235
|
+
Annotated[StrictFloat, Field(gt=0)]
|
|
3236
|
+
]
|
|
3237
|
+
] = None,
|
|
3238
|
+
_request_auth: Optional[Dict[StrictStr, Any]] = None,
|
|
3239
|
+
_content_type: Optional[StrictStr] = None,
|
|
3240
|
+
_headers: Optional[Dict[StrictStr, Any]] = None,
|
|
3241
|
+
_host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
|
|
3242
|
+
) -> RESTResponseType:
|
|
3243
|
+
"""queries all the participants connected to leaderboard by its ID.
|
|
3244
|
+
|
|
3245
|
+
|
|
3246
|
+
:param leaderboard_id: (required)
|
|
3247
|
+
:type leaderboard_id: str
|
|
3248
|
+
:param request:
|
|
3249
|
+
:type request: QueryModel
|
|
3250
|
+
:param _request_timeout: timeout setting for this request. If one
|
|
3251
|
+
number provided, it will be total request
|
|
3252
|
+
timeout. It can also be a pair (tuple) of
|
|
3253
|
+
(connection, read) timeouts.
|
|
3254
|
+
:type _request_timeout: int, tuple(int, int), optional
|
|
3255
|
+
:param _request_auth: set to override the auth_settings for an a single
|
|
3256
|
+
request; this effectively ignores the
|
|
3257
|
+
authentication in the spec for a single request.
|
|
3258
|
+
:type _request_auth: dict, optional
|
|
3259
|
+
:param _content_type: force content-type for the request.
|
|
3260
|
+
:type _content_type: str, Optional
|
|
3261
|
+
:param _headers: set to override the headers for a single
|
|
3262
|
+
request; this effectively ignores the headers
|
|
3263
|
+
in the spec for a single request.
|
|
3264
|
+
:type _headers: dict, optional
|
|
3265
|
+
:param _host_index: set to override the host_index for a single
|
|
3266
|
+
request; this effectively ignores the host_index
|
|
3267
|
+
in the spec for a single request.
|
|
3268
|
+
:type _host_index: int, optional
|
|
3269
|
+
:return: Returns the result object.
|
|
3270
|
+
""" # noqa: E501
|
|
3271
|
+
|
|
3272
|
+
_param = self._leaderboard_leaderboard_id_standings_get_serialize(
|
|
3273
|
+
leaderboard_id=leaderboard_id,
|
|
3274
|
+
request=request,
|
|
3275
|
+
_request_auth=_request_auth,
|
|
3276
|
+
_content_type=_content_type,
|
|
3277
|
+
_headers=_headers,
|
|
3278
|
+
_host_index=_host_index
|
|
3279
|
+
)
|
|
3280
|
+
|
|
3281
|
+
_response_types_map: Dict[str, Optional[str]] = {
|
|
3282
|
+
'200': "StandingByLeaderboardPagedResult",
|
|
3283
|
+
}
|
|
3284
|
+
response_data = self.api_client.call_api(
|
|
3285
|
+
*_param,
|
|
3286
|
+
_request_timeout=_request_timeout
|
|
3287
|
+
)
|
|
3288
|
+
return response_data.response
|
|
3289
|
+
|
|
3290
|
+
|
|
3291
|
+
def _leaderboard_leaderboard_id_standings_get_serialize(
|
|
3292
|
+
self,
|
|
3293
|
+
leaderboard_id,
|
|
3294
|
+
request,
|
|
3295
|
+
_request_auth,
|
|
3296
|
+
_content_type,
|
|
3297
|
+
_headers,
|
|
3298
|
+
_host_index,
|
|
3299
|
+
) -> RequestSerialized:
|
|
3300
|
+
|
|
3301
|
+
_host = None
|
|
3302
|
+
|
|
3303
|
+
_collection_formats: Dict[str, str] = {
|
|
3304
|
+
}
|
|
3305
|
+
|
|
3306
|
+
_path_params: Dict[str, str] = {}
|
|
3307
|
+
_query_params: List[Tuple[str, str]] = []
|
|
3308
|
+
_header_params: Dict[str, Optional[str]] = _headers or {}
|
|
3309
|
+
_form_params: List[Tuple[str, str]] = []
|
|
3310
|
+
_files: Dict[
|
|
3311
|
+
str, Union[str, bytes, List[str], List[bytes], List[Tuple[str, bytes]]]
|
|
3312
|
+
] = {}
|
|
3313
|
+
_body_params: Optional[bytes] = None
|
|
3314
|
+
|
|
3315
|
+
# process the path parameters
|
|
3316
|
+
if leaderboard_id is not None:
|
|
3317
|
+
_path_params['leaderboardId'] = leaderboard_id
|
|
3318
|
+
# process the query parameters
|
|
3319
|
+
if request is not None:
|
|
3320
|
+
|
|
3321
|
+
_query_params.append(('request', request))
|
|
3322
|
+
|
|
3323
|
+
# process the header parameters
|
|
3324
|
+
# process the form parameters
|
|
3325
|
+
# process the body parameter
|
|
3326
|
+
|
|
3327
|
+
|
|
1945
3328
|
# set the HTTP header `Accept`
|
|
1946
3329
|
if 'Accept' not in _header_params:
|
|
1947
3330
|
_header_params['Accept'] = self.api_client.select_header_accept(
|
|
@@ -1961,7 +3344,7 @@ class LeaderboardApi:
|
|
|
1961
3344
|
|
|
1962
3345
|
return self.api_client.param_serialize(
|
|
1963
3346
|
method='GET',
|
|
1964
|
-
resource_path='/leaderboard/
|
|
3347
|
+
resource_path='/leaderboard/{leaderboardId}/standings',
|
|
1965
3348
|
path_params=_path_params,
|
|
1966
3349
|
query_params=_query_params,
|
|
1967
3350
|
header_params=_header_params,
|