rapidata 2.36.0__py3-none-any.whl → 2.36.2__py3-none-any.whl
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Potentially problematic release.
This version of rapidata might be problematic. Click here for more details.
- rapidata/__init__.py +2 -2
- rapidata/api_client/__init__.py +3 -2
- rapidata/api_client/api/leaderboard_api.py +295 -6
- rapidata/api_client/api/validation_set_api.py +561 -313
- rapidata/api_client/models/__init__.py +3 -2
- rapidata/api_client/models/add_validation_rapid_model.py +29 -4
- rapidata/api_client/models/add_validation_rapid_model_truth.py +7 -1
- rapidata/api_client/models/asset_metadata.py +9 -1
- rapidata/api_client/models/asset_type.py +40 -0
- rapidata/api_client/models/boost_query_result.py +5 -17
- rapidata/api_client/models/campaign_query_result.py +3 -9
- rapidata/api_client/models/classification_metadata.py +12 -1
- rapidata/api_client/models/compare_workflow_config.py +22 -12
- rapidata/api_client/models/compare_workflow_config_model.py +12 -2
- rapidata/api_client/models/compare_workflow_model.py +12 -2
- rapidata/api_client/models/count_metadata.py +12 -1
- rapidata/api_client/models/create_demographic_rapid_model.py +18 -3
- rapidata/api_client/models/create_order_model.py +6 -48
- rapidata/api_client/models/effort_capped_selection.py +2 -11
- rapidata/api_client/models/evaluation_workflow_config.py +13 -3
- rapidata/api_client/models/evaluation_workflow_model.py +13 -3
- rapidata/api_client/models/file_type_metadata.py +11 -6
- rapidata/api_client/models/file_type_metadata_model.py +2 -8
- rapidata/api_client/models/filter.py +5 -23
- rapidata/api_client/models/get_datapoint_by_id_result.py +3 -9
- rapidata/api_client/models/get_rapid_responses_result.py +3 -9
- rapidata/api_client/models/get_recommended_validation_set_result.py +95 -0
- rapidata/api_client/models/get_standing_by_id_result.py +3 -9
- rapidata/api_client/models/get_validation_rapids_result.py +3 -9
- rapidata/api_client/models/get_workflow_progress_result.py +3 -9
- rapidata/api_client/models/get_workflow_results_result.py +3 -9
- rapidata/api_client/models/image_dimension_metadata.py +12 -1
- rapidata/api_client/models/labeling_selection.py +2 -11
- rapidata/api_client/models/location_metadata.py +12 -1
- rapidata/api_client/models/order_model.py +3 -9
- rapidata/api_client/models/original_filename_metadata.py +12 -1
- rapidata/api_client/models/participant_by_benchmark.py +3 -9
- rapidata/api_client/models/prompt_metadata.py +12 -1
- rapidata/api_client/models/prompt_type.py +38 -0
- rapidata/api_client/models/rapid_modality.py +46 -0
- rapidata/api_client/models/rapid_model.py +3 -9
- rapidata/api_client/models/report_model.py +3 -9
- rapidata/api_client/models/response_count_filter.py +2 -8
- rapidata/api_client/models/response_count_user_filter_model.py +2 -8
- rapidata/api_client/models/root_filter.py +3 -12
- rapidata/api_client/models/runs_by_leaderboard_result.py +3 -9
- rapidata/api_client/models/simple_workflow_config.py +13 -3
- rapidata/api_client/models/simple_workflow_config_model.py +11 -3
- rapidata/api_client/models/simple_workflow_model.py +13 -3
- rapidata/api_client/models/sort_criterion.py +3 -9
- rapidata/api_client/models/source_url_metadata.py +12 -1
- rapidata/api_client/models/standing_by_leaderboard.py +3 -9
- rapidata/api_client/models/streams_metadata.py +12 -1
- rapidata/api_client/models/text_metadata.py +12 -1
- rapidata/api_client/models/transcription_metadata.py +9 -1
- rapidata/api_client/models/update_leaderboard_model.py +91 -0
- rapidata/api_client/models/update_should_alert_model.py +1 -1
- rapidata/api_client/models/validation_set_model.py +42 -3
- rapidata/api_client/models/video_duration_metadata.py +12 -1
- rapidata/api_client/models/workflow_aggregation_step_model.py +3 -12
- rapidata/api_client_README.md +8 -5
- rapidata/rapidata_client/__init__.py +1 -1
- rapidata/rapidata_client/benchmark/participant/_participant.py +5 -5
- rapidata/rapidata_client/benchmark/rapidata_benchmark.py +2 -1
- rapidata/rapidata_client/benchmark/rapidata_benchmark_manager.py +10 -2
- rapidata/rapidata_client/config/__init__.py +1 -1
- rapidata/rapidata_client/config/rapidata_config.py +31 -0
- rapidata/rapidata_client/datapoints/__init__.py +10 -2
- rapidata/rapidata_client/datapoints/{datapoint.py → _datapoint.py} +105 -17
- rapidata/rapidata_client/datapoints/assets/_media_asset.py +80 -68
- rapidata/rapidata_client/datapoints/assets/_sessions.py +3 -3
- rapidata/rapidata_client/datapoints/assets/constants.py +7 -0
- rapidata/rapidata_client/exceptions/failed_upload_exception.py +42 -13
- rapidata/rapidata_client/filter/response_count_filter.py +16 -11
- rapidata/rapidata_client/order/_rapidata_dataset.py +8 -8
- rapidata/rapidata_client/order/_rapidata_order_builder.py +87 -8
- rapidata/rapidata_client/order/rapidata_order_manager.py +18 -4
- rapidata/rapidata_client/rapidata_client.py +6 -0
- rapidata/rapidata_client/selection/__init__.py +1 -1
- rapidata/rapidata_client/selection/effort_selection.py +18 -7
- rapidata/rapidata_client/selection/labeling_selection.py +19 -7
- rapidata/rapidata_client/selection/{retrieval_modes.py → rapidata_retrieval_modes.py} +7 -4
- rapidata/rapidata_client/validation/rapidata_validation_set.py +26 -1
- rapidata/rapidata_client/validation/rapids/rapids.py +46 -19
- rapidata/rapidata_client/validation/validation_set_manager.py +41 -4
- rapidata/rapidata_client/workflow/_base_workflow.py +27 -0
- rapidata/rapidata_client/workflow/_classify_workflow.py +25 -9
- rapidata/rapidata_client/workflow/_compare_workflow.py +11 -0
- rapidata/rapidata_client/workflow/_draw_workflow.py +15 -7
- rapidata/rapidata_client/workflow/_evaluation_workflow.py +8 -1
- rapidata/rapidata_client/workflow/_free_text_workflow.py +20 -2
- rapidata/rapidata_client/workflow/_locate_workflow.py +15 -7
- rapidata/rapidata_client/workflow/_ranking_workflow.py +39 -15
- rapidata/rapidata_client/workflow/_select_words_workflow.py +41 -7
- rapidata/rapidata_client/workflow/_timestamp_workflow.py +17 -8
- rapidata/service/openapi_service.py +1 -1
- {rapidata-2.36.0.dist-info → rapidata-2.36.2.dist-info}/METADATA +1 -1
- {rapidata-2.36.0.dist-info → rapidata-2.36.2.dist-info}/RECORD +100 -94
- rapidata/rapidata_client/config/config.py +0 -33
- {rapidata-2.36.0.dist-info → rapidata-2.36.2.dist-info}/LICENSE +0 -0
- {rapidata-2.36.0.dist-info → rapidata-2.36.2.dist-info}/WHEEL +0 -0
rapidata/__init__.py
CHANGED
|
@@ -1,11 +1,11 @@
|
|
|
1
|
-
__version__ = "2.36.
|
|
1
|
+
__version__ = "2.36.2"
|
|
2
2
|
|
|
3
3
|
from .rapidata_client import (
|
|
4
4
|
RapidataClient,
|
|
5
5
|
DemographicSelection,
|
|
6
6
|
LabelingSelection,
|
|
7
7
|
EffortSelection,
|
|
8
|
-
|
|
8
|
+
RapidataRetrievalMode,
|
|
9
9
|
ValidationSelection,
|
|
10
10
|
ConditionalValidationSelection,
|
|
11
11
|
CappedSelection,
|
rapidata/api_client/__init__.py
CHANGED
|
@@ -61,7 +61,6 @@ from rapidata.api_client.models.add_validation_rapid_model import AddValidationR
|
|
|
61
61
|
from rapidata.api_client.models.add_validation_rapid_model_payload import AddValidationRapidModelPayload
|
|
62
62
|
from rapidata.api_client.models.add_validation_rapid_model_truth import AddValidationRapidModelTruth
|
|
63
63
|
from rapidata.api_client.models.add_validation_rapid_result import AddValidationRapidResult
|
|
64
|
-
from rapidata.api_client.models.add_validation_text_rapid_model import AddValidationTextRapidModel
|
|
65
64
|
from rapidata.api_client.models.age_group import AgeGroup
|
|
66
65
|
from rapidata.api_client.models.age_user_filter_model import AgeUserFilterModel
|
|
67
66
|
from rapidata.api_client.models.aggregator_type import AggregatorType
|
|
@@ -223,6 +222,7 @@ from rapidata.api_client.models.get_pipeline_by_id_result_artifacts_value import
|
|
|
223
222
|
from rapidata.api_client.models.get_public_orders_result import GetPublicOrdersResult
|
|
224
223
|
from rapidata.api_client.models.get_public_responses_result import GetPublicResponsesResult
|
|
225
224
|
from rapidata.api_client.models.get_rapid_responses_result import GetRapidResponsesResult
|
|
225
|
+
from rapidata.api_client.models.get_recommended_validation_set_result import GetRecommendedValidationSetResult
|
|
226
226
|
from rapidata.api_client.models.get_responses_result import GetResponsesResult
|
|
227
227
|
from rapidata.api_client.models.get_sample_by_id_result import GetSampleByIdResult
|
|
228
228
|
from rapidata.api_client.models.get_simple_workflow_results_model import GetSimpleWorkflowResultsModel
|
|
@@ -268,7 +268,6 @@ from rapidata.api_client.models.location_metadata import LocationMetadata
|
|
|
268
268
|
from rapidata.api_client.models.location_metadata_exists_filter_config import LocationMetadataExistsFilterConfig
|
|
269
269
|
from rapidata.api_client.models.location_metadata_model import LocationMetadataModel
|
|
270
270
|
from rapidata.api_client.models.logic_operator import LogicOperator
|
|
271
|
-
from rapidata.api_client.models.metadata_visibilities import MetadataVisibilities
|
|
272
271
|
from rapidata.api_client.models.multi_asset import MultiAsset
|
|
273
272
|
from rapidata.api_client.models.multi_asset_input import MultiAssetInput
|
|
274
273
|
from rapidata.api_client.models.multi_asset_input1 import MultiAssetInput1
|
|
@@ -325,6 +324,7 @@ from rapidata.api_client.models.preview_order_model import PreviewOrderModel
|
|
|
325
324
|
from rapidata.api_client.models.private_text_metadata_input import PrivateTextMetadataInput
|
|
326
325
|
from rapidata.api_client.models.probabilistic_attach_category_referee_config import ProbabilisticAttachCategoryRefereeConfig
|
|
327
326
|
from rapidata.api_client.models.probabilistic_attach_category_referee_info import ProbabilisticAttachCategoryRefereeInfo
|
|
327
|
+
from rapidata.api_client.models.problem_details import ProblemDetails
|
|
328
328
|
from rapidata.api_client.models.prompt_asset_metadata_input import PromptAssetMetadataInput
|
|
329
329
|
from rapidata.api_client.models.prompt_asset_metadata_input_asset import PromptAssetMetadataInputAsset
|
|
330
330
|
from rapidata.api_client.models.prompt_by_benchmark_result import PromptByBenchmarkResult
|
|
@@ -418,6 +418,7 @@ from rapidata.api_client.models.unlock_order_result import UnlockOrderResult
|
|
|
418
418
|
from rapidata.api_client.models.update_benchmark_name_model import UpdateBenchmarkNameModel
|
|
419
419
|
from rapidata.api_client.models.update_dataset_name_model import UpdateDatasetNameModel
|
|
420
420
|
from rapidata.api_client.models.update_dimensions_model import UpdateDimensionsModel
|
|
421
|
+
from rapidata.api_client.models.update_leaderboard_model import UpdateLeaderboardModel
|
|
421
422
|
from rapidata.api_client.models.update_leaderboard_name_model import UpdateLeaderboardNameModel
|
|
422
423
|
from rapidata.api_client.models.update_leaderboard_response_config_model import UpdateLeaderboardResponseConfigModel
|
|
423
424
|
from rapidata.api_client.models.update_order_name_model import UpdateOrderNameModel
|
|
@@ -33,6 +33,7 @@ from rapidata.api_client.models.runs_by_leaderboard_result_paged_result import R
|
|
|
33
33
|
from rapidata.api_client.models.standing_by_leaderboard_paged_result import StandingByLeaderboardPagedResult
|
|
34
34
|
from rapidata.api_client.models.standings_by_leaderboard_result import StandingsByLeaderboardResult
|
|
35
35
|
from rapidata.api_client.models.submit_participant_result import SubmitParticipantResult
|
|
36
|
+
from rapidata.api_client.models.update_leaderboard_model import UpdateLeaderboardModel
|
|
36
37
|
from rapidata.api_client.models.update_leaderboard_name_model import UpdateLeaderboardNameModel
|
|
37
38
|
from rapidata.api_client.models.update_leaderboard_response_config_model import UpdateLeaderboardResponseConfigModel
|
|
38
39
|
|
|
@@ -1152,7 +1153,7 @@ class LeaderboardApi:
|
|
|
1152
1153
|
_headers: Optional[Dict[StrictStr, Any]] = None,
|
|
1153
1154
|
_host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
|
|
1154
1155
|
) -> None:
|
|
1155
|
-
"""Updates the name of a leaderboard.
|
|
1156
|
+
"""(Deprecated) Updates the name of a leaderboard.
|
|
1156
1157
|
|
|
1157
1158
|
|
|
1158
1159
|
:param leaderboard_id: (required)
|
|
@@ -1180,6 +1181,7 @@ class LeaderboardApi:
|
|
|
1180
1181
|
:type _host_index: int, optional
|
|
1181
1182
|
:return: Returns the result object.
|
|
1182
1183
|
""" # noqa: E501
|
|
1184
|
+
warnings.warn("PUT /leaderboard/{leaderboardId}/name is deprecated.", DeprecationWarning)
|
|
1183
1185
|
|
|
1184
1186
|
_param = self._leaderboard_leaderboard_id_name_put_serialize(
|
|
1185
1187
|
leaderboard_id=leaderboard_id,
|
|
@@ -1222,7 +1224,7 @@ class LeaderboardApi:
|
|
|
1222
1224
|
_headers: Optional[Dict[StrictStr, Any]] = None,
|
|
1223
1225
|
_host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
|
|
1224
1226
|
) -> ApiResponse[None]:
|
|
1225
|
-
"""Updates the name of a leaderboard.
|
|
1227
|
+
"""(Deprecated) Updates the name of a leaderboard.
|
|
1226
1228
|
|
|
1227
1229
|
|
|
1228
1230
|
:param leaderboard_id: (required)
|
|
@@ -1250,6 +1252,7 @@ class LeaderboardApi:
|
|
|
1250
1252
|
:type _host_index: int, optional
|
|
1251
1253
|
:return: Returns the result object.
|
|
1252
1254
|
""" # noqa: E501
|
|
1255
|
+
warnings.warn("PUT /leaderboard/{leaderboardId}/name is deprecated.", DeprecationWarning)
|
|
1253
1256
|
|
|
1254
1257
|
_param = self._leaderboard_leaderboard_id_name_put_serialize(
|
|
1255
1258
|
leaderboard_id=leaderboard_id,
|
|
@@ -1292,7 +1295,7 @@ class LeaderboardApi:
|
|
|
1292
1295
|
_headers: Optional[Dict[StrictStr, Any]] = None,
|
|
1293
1296
|
_host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
|
|
1294
1297
|
) -> RESTResponseType:
|
|
1295
|
-
"""Updates the name of a leaderboard.
|
|
1298
|
+
"""(Deprecated) Updates the name of a leaderboard.
|
|
1296
1299
|
|
|
1297
1300
|
|
|
1298
1301
|
:param leaderboard_id: (required)
|
|
@@ -1320,6 +1323,7 @@ class LeaderboardApi:
|
|
|
1320
1323
|
:type _host_index: int, optional
|
|
1321
1324
|
:return: Returns the result object.
|
|
1322
1325
|
""" # noqa: E501
|
|
1326
|
+
warnings.warn("PUT /leaderboard/{leaderboardId}/name is deprecated.", DeprecationWarning)
|
|
1323
1327
|
|
|
1324
1328
|
_param = self._leaderboard_leaderboard_id_name_put_serialize(
|
|
1325
1329
|
leaderboard_id=leaderboard_id,
|
|
@@ -2532,6 +2536,288 @@ class LeaderboardApi:
|
|
|
2532
2536
|
|
|
2533
2537
|
|
|
2534
2538
|
|
|
2539
|
+
@validate_call
|
|
2540
|
+
def leaderboard_leaderboard_id_patch(
|
|
2541
|
+
self,
|
|
2542
|
+
leaderboard_id: StrictStr,
|
|
2543
|
+
update_leaderboard_model: Optional[UpdateLeaderboardModel] = None,
|
|
2544
|
+
_request_timeout: Union[
|
|
2545
|
+
None,
|
|
2546
|
+
Annotated[StrictFloat, Field(gt=0)],
|
|
2547
|
+
Tuple[
|
|
2548
|
+
Annotated[StrictFloat, Field(gt=0)],
|
|
2549
|
+
Annotated[StrictFloat, Field(gt=0)]
|
|
2550
|
+
]
|
|
2551
|
+
] = None,
|
|
2552
|
+
_request_auth: Optional[Dict[StrictStr, Any]] = None,
|
|
2553
|
+
_content_type: Optional[StrictStr] = None,
|
|
2554
|
+
_headers: Optional[Dict[StrictStr, Any]] = None,
|
|
2555
|
+
_host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
|
|
2556
|
+
) -> None:
|
|
2557
|
+
"""Updates the response config of a leaderboard.
|
|
2558
|
+
|
|
2559
|
+
|
|
2560
|
+
:param leaderboard_id: (required)
|
|
2561
|
+
:type leaderboard_id: str
|
|
2562
|
+
:param update_leaderboard_model:
|
|
2563
|
+
:type update_leaderboard_model: UpdateLeaderboardModel
|
|
2564
|
+
:param _request_timeout: timeout setting for this request. If one
|
|
2565
|
+
number provided, it will be total request
|
|
2566
|
+
timeout. It can also be a pair (tuple) of
|
|
2567
|
+
(connection, read) timeouts.
|
|
2568
|
+
:type _request_timeout: int, tuple(int, int), optional
|
|
2569
|
+
:param _request_auth: set to override the auth_settings for an a single
|
|
2570
|
+
request; this effectively ignores the
|
|
2571
|
+
authentication in the spec for a single request.
|
|
2572
|
+
:type _request_auth: dict, optional
|
|
2573
|
+
:param _content_type: force content-type for the request.
|
|
2574
|
+
:type _content_type: str, Optional
|
|
2575
|
+
:param _headers: set to override the headers for a single
|
|
2576
|
+
request; this effectively ignores the headers
|
|
2577
|
+
in the spec for a single request.
|
|
2578
|
+
:type _headers: dict, optional
|
|
2579
|
+
:param _host_index: set to override the host_index for a single
|
|
2580
|
+
request; this effectively ignores the host_index
|
|
2581
|
+
in the spec for a single request.
|
|
2582
|
+
:type _host_index: int, optional
|
|
2583
|
+
:return: Returns the result object.
|
|
2584
|
+
""" # noqa: E501
|
|
2585
|
+
|
|
2586
|
+
_param = self._leaderboard_leaderboard_id_patch_serialize(
|
|
2587
|
+
leaderboard_id=leaderboard_id,
|
|
2588
|
+
update_leaderboard_model=update_leaderboard_model,
|
|
2589
|
+
_request_auth=_request_auth,
|
|
2590
|
+
_content_type=_content_type,
|
|
2591
|
+
_headers=_headers,
|
|
2592
|
+
_host_index=_host_index
|
|
2593
|
+
)
|
|
2594
|
+
|
|
2595
|
+
_response_types_map: Dict[str, Optional[str]] = {
|
|
2596
|
+
'204': None,
|
|
2597
|
+
}
|
|
2598
|
+
response_data = self.api_client.call_api(
|
|
2599
|
+
*_param,
|
|
2600
|
+
_request_timeout=_request_timeout
|
|
2601
|
+
)
|
|
2602
|
+
response_data.read()
|
|
2603
|
+
return self.api_client.response_deserialize(
|
|
2604
|
+
response_data=response_data,
|
|
2605
|
+
response_types_map=_response_types_map,
|
|
2606
|
+
).data
|
|
2607
|
+
|
|
2608
|
+
|
|
2609
|
+
@validate_call
|
|
2610
|
+
def leaderboard_leaderboard_id_patch_with_http_info(
|
|
2611
|
+
self,
|
|
2612
|
+
leaderboard_id: StrictStr,
|
|
2613
|
+
update_leaderboard_model: Optional[UpdateLeaderboardModel] = None,
|
|
2614
|
+
_request_timeout: Union[
|
|
2615
|
+
None,
|
|
2616
|
+
Annotated[StrictFloat, Field(gt=0)],
|
|
2617
|
+
Tuple[
|
|
2618
|
+
Annotated[StrictFloat, Field(gt=0)],
|
|
2619
|
+
Annotated[StrictFloat, Field(gt=0)]
|
|
2620
|
+
]
|
|
2621
|
+
] = None,
|
|
2622
|
+
_request_auth: Optional[Dict[StrictStr, Any]] = None,
|
|
2623
|
+
_content_type: Optional[StrictStr] = None,
|
|
2624
|
+
_headers: Optional[Dict[StrictStr, Any]] = None,
|
|
2625
|
+
_host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
|
|
2626
|
+
) -> ApiResponse[None]:
|
|
2627
|
+
"""Updates the response config of a leaderboard.
|
|
2628
|
+
|
|
2629
|
+
|
|
2630
|
+
:param leaderboard_id: (required)
|
|
2631
|
+
:type leaderboard_id: str
|
|
2632
|
+
:param update_leaderboard_model:
|
|
2633
|
+
:type update_leaderboard_model: UpdateLeaderboardModel
|
|
2634
|
+
:param _request_timeout: timeout setting for this request. If one
|
|
2635
|
+
number provided, it will be total request
|
|
2636
|
+
timeout. It can also be a pair (tuple) of
|
|
2637
|
+
(connection, read) timeouts.
|
|
2638
|
+
:type _request_timeout: int, tuple(int, int), optional
|
|
2639
|
+
:param _request_auth: set to override the auth_settings for an a single
|
|
2640
|
+
request; this effectively ignores the
|
|
2641
|
+
authentication in the spec for a single request.
|
|
2642
|
+
:type _request_auth: dict, optional
|
|
2643
|
+
:param _content_type: force content-type for the request.
|
|
2644
|
+
:type _content_type: str, Optional
|
|
2645
|
+
:param _headers: set to override the headers for a single
|
|
2646
|
+
request; this effectively ignores the headers
|
|
2647
|
+
in the spec for a single request.
|
|
2648
|
+
:type _headers: dict, optional
|
|
2649
|
+
:param _host_index: set to override the host_index for a single
|
|
2650
|
+
request; this effectively ignores the host_index
|
|
2651
|
+
in the spec for a single request.
|
|
2652
|
+
:type _host_index: int, optional
|
|
2653
|
+
:return: Returns the result object.
|
|
2654
|
+
""" # noqa: E501
|
|
2655
|
+
|
|
2656
|
+
_param = self._leaderboard_leaderboard_id_patch_serialize(
|
|
2657
|
+
leaderboard_id=leaderboard_id,
|
|
2658
|
+
update_leaderboard_model=update_leaderboard_model,
|
|
2659
|
+
_request_auth=_request_auth,
|
|
2660
|
+
_content_type=_content_type,
|
|
2661
|
+
_headers=_headers,
|
|
2662
|
+
_host_index=_host_index
|
|
2663
|
+
)
|
|
2664
|
+
|
|
2665
|
+
_response_types_map: Dict[str, Optional[str]] = {
|
|
2666
|
+
'204': None,
|
|
2667
|
+
}
|
|
2668
|
+
response_data = self.api_client.call_api(
|
|
2669
|
+
*_param,
|
|
2670
|
+
_request_timeout=_request_timeout
|
|
2671
|
+
)
|
|
2672
|
+
response_data.read()
|
|
2673
|
+
return self.api_client.response_deserialize(
|
|
2674
|
+
response_data=response_data,
|
|
2675
|
+
response_types_map=_response_types_map,
|
|
2676
|
+
)
|
|
2677
|
+
|
|
2678
|
+
|
|
2679
|
+
@validate_call
|
|
2680
|
+
def leaderboard_leaderboard_id_patch_without_preload_content(
|
|
2681
|
+
self,
|
|
2682
|
+
leaderboard_id: StrictStr,
|
|
2683
|
+
update_leaderboard_model: Optional[UpdateLeaderboardModel] = None,
|
|
2684
|
+
_request_timeout: Union[
|
|
2685
|
+
None,
|
|
2686
|
+
Annotated[StrictFloat, Field(gt=0)],
|
|
2687
|
+
Tuple[
|
|
2688
|
+
Annotated[StrictFloat, Field(gt=0)],
|
|
2689
|
+
Annotated[StrictFloat, Field(gt=0)]
|
|
2690
|
+
]
|
|
2691
|
+
] = None,
|
|
2692
|
+
_request_auth: Optional[Dict[StrictStr, Any]] = None,
|
|
2693
|
+
_content_type: Optional[StrictStr] = None,
|
|
2694
|
+
_headers: Optional[Dict[StrictStr, Any]] = None,
|
|
2695
|
+
_host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
|
|
2696
|
+
) -> RESTResponseType:
|
|
2697
|
+
"""Updates the response config of a leaderboard.
|
|
2698
|
+
|
|
2699
|
+
|
|
2700
|
+
:param leaderboard_id: (required)
|
|
2701
|
+
:type leaderboard_id: str
|
|
2702
|
+
:param update_leaderboard_model:
|
|
2703
|
+
:type update_leaderboard_model: UpdateLeaderboardModel
|
|
2704
|
+
:param _request_timeout: timeout setting for this request. If one
|
|
2705
|
+
number provided, it will be total request
|
|
2706
|
+
timeout. It can also be a pair (tuple) of
|
|
2707
|
+
(connection, read) timeouts.
|
|
2708
|
+
:type _request_timeout: int, tuple(int, int), optional
|
|
2709
|
+
:param _request_auth: set to override the auth_settings for an a single
|
|
2710
|
+
request; this effectively ignores the
|
|
2711
|
+
authentication in the spec for a single request.
|
|
2712
|
+
:type _request_auth: dict, optional
|
|
2713
|
+
:param _content_type: force content-type for the request.
|
|
2714
|
+
:type _content_type: str, Optional
|
|
2715
|
+
:param _headers: set to override the headers for a single
|
|
2716
|
+
request; this effectively ignores the headers
|
|
2717
|
+
in the spec for a single request.
|
|
2718
|
+
:type _headers: dict, optional
|
|
2719
|
+
:param _host_index: set to override the host_index for a single
|
|
2720
|
+
request; this effectively ignores the host_index
|
|
2721
|
+
in the spec for a single request.
|
|
2722
|
+
:type _host_index: int, optional
|
|
2723
|
+
:return: Returns the result object.
|
|
2724
|
+
""" # noqa: E501
|
|
2725
|
+
|
|
2726
|
+
_param = self._leaderboard_leaderboard_id_patch_serialize(
|
|
2727
|
+
leaderboard_id=leaderboard_id,
|
|
2728
|
+
update_leaderboard_model=update_leaderboard_model,
|
|
2729
|
+
_request_auth=_request_auth,
|
|
2730
|
+
_content_type=_content_type,
|
|
2731
|
+
_headers=_headers,
|
|
2732
|
+
_host_index=_host_index
|
|
2733
|
+
)
|
|
2734
|
+
|
|
2735
|
+
_response_types_map: Dict[str, Optional[str]] = {
|
|
2736
|
+
'204': None,
|
|
2737
|
+
}
|
|
2738
|
+
response_data = self.api_client.call_api(
|
|
2739
|
+
*_param,
|
|
2740
|
+
_request_timeout=_request_timeout
|
|
2741
|
+
)
|
|
2742
|
+
return response_data.response
|
|
2743
|
+
|
|
2744
|
+
|
|
2745
|
+
def _leaderboard_leaderboard_id_patch_serialize(
|
|
2746
|
+
self,
|
|
2747
|
+
leaderboard_id,
|
|
2748
|
+
update_leaderboard_model,
|
|
2749
|
+
_request_auth,
|
|
2750
|
+
_content_type,
|
|
2751
|
+
_headers,
|
|
2752
|
+
_host_index,
|
|
2753
|
+
) -> RequestSerialized:
|
|
2754
|
+
|
|
2755
|
+
_host = None
|
|
2756
|
+
|
|
2757
|
+
_collection_formats: Dict[str, str] = {
|
|
2758
|
+
}
|
|
2759
|
+
|
|
2760
|
+
_path_params: Dict[str, str] = {}
|
|
2761
|
+
_query_params: List[Tuple[str, str]] = []
|
|
2762
|
+
_header_params: Dict[str, Optional[str]] = _headers or {}
|
|
2763
|
+
_form_params: List[Tuple[str, str]] = []
|
|
2764
|
+
_files: Dict[
|
|
2765
|
+
str, Union[str, bytes, List[str], List[bytes], List[Tuple[str, bytes]]]
|
|
2766
|
+
] = {}
|
|
2767
|
+
_body_params: Optional[bytes] = None
|
|
2768
|
+
|
|
2769
|
+
# process the path parameters
|
|
2770
|
+
if leaderboard_id is not None:
|
|
2771
|
+
_path_params['leaderboardId'] = leaderboard_id
|
|
2772
|
+
# process the query parameters
|
|
2773
|
+
# process the header parameters
|
|
2774
|
+
# process the form parameters
|
|
2775
|
+
# process the body parameter
|
|
2776
|
+
if update_leaderboard_model is not None:
|
|
2777
|
+
_body_params = update_leaderboard_model
|
|
2778
|
+
|
|
2779
|
+
|
|
2780
|
+
|
|
2781
|
+
# set the HTTP header `Content-Type`
|
|
2782
|
+
if _content_type:
|
|
2783
|
+
_header_params['Content-Type'] = _content_type
|
|
2784
|
+
else:
|
|
2785
|
+
_default_content_type = (
|
|
2786
|
+
self.api_client.select_header_content_type(
|
|
2787
|
+
[
|
|
2788
|
+
'application/json',
|
|
2789
|
+
'text/json',
|
|
2790
|
+
'application/*+json'
|
|
2791
|
+
]
|
|
2792
|
+
)
|
|
2793
|
+
)
|
|
2794
|
+
if _default_content_type is not None:
|
|
2795
|
+
_header_params['Content-Type'] = _default_content_type
|
|
2796
|
+
|
|
2797
|
+
# authentication setting
|
|
2798
|
+
_auth_settings: List[str] = [
|
|
2799
|
+
'bearer',
|
|
2800
|
+
'oauth2'
|
|
2801
|
+
]
|
|
2802
|
+
|
|
2803
|
+
return self.api_client.param_serialize(
|
|
2804
|
+
method='PATCH',
|
|
2805
|
+
resource_path='/leaderboard/{leaderboardId}',
|
|
2806
|
+
path_params=_path_params,
|
|
2807
|
+
query_params=_query_params,
|
|
2808
|
+
header_params=_header_params,
|
|
2809
|
+
body=_body_params,
|
|
2810
|
+
post_params=_form_params,
|
|
2811
|
+
files=_files,
|
|
2812
|
+
auth_settings=_auth_settings,
|
|
2813
|
+
collection_formats=_collection_formats,
|
|
2814
|
+
_host=_host,
|
|
2815
|
+
_request_auth=_request_auth
|
|
2816
|
+
)
|
|
2817
|
+
|
|
2818
|
+
|
|
2819
|
+
|
|
2820
|
+
|
|
2535
2821
|
@validate_call
|
|
2536
2822
|
def leaderboard_leaderboard_id_prompts_get(
|
|
2537
2823
|
self,
|
|
@@ -3117,7 +3403,7 @@ class LeaderboardApi:
|
|
|
3117
3403
|
_headers: Optional[Dict[StrictStr, Any]] = None,
|
|
3118
3404
|
_host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
|
|
3119
3405
|
) -> None:
|
|
3120
|
-
"""Updates the response config of a leaderboard.
|
|
3406
|
+
"""(Deprecated) Updates the response config of a leaderboard.
|
|
3121
3407
|
|
|
3122
3408
|
|
|
3123
3409
|
:param leaderboard_id: (required)
|
|
@@ -3145,6 +3431,7 @@ class LeaderboardApi:
|
|
|
3145
3431
|
:type _host_index: int, optional
|
|
3146
3432
|
:return: Returns the result object.
|
|
3147
3433
|
""" # noqa: E501
|
|
3434
|
+
warnings.warn("PUT /leaderboard/{leaderboardId}/response-config is deprecated.", DeprecationWarning)
|
|
3148
3435
|
|
|
3149
3436
|
_param = self._leaderboard_leaderboard_id_response_config_put_serialize(
|
|
3150
3437
|
leaderboard_id=leaderboard_id,
|
|
@@ -3187,7 +3474,7 @@ class LeaderboardApi:
|
|
|
3187
3474
|
_headers: Optional[Dict[StrictStr, Any]] = None,
|
|
3188
3475
|
_host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
|
|
3189
3476
|
) -> ApiResponse[None]:
|
|
3190
|
-
"""Updates the response config of a leaderboard.
|
|
3477
|
+
"""(Deprecated) Updates the response config of a leaderboard.
|
|
3191
3478
|
|
|
3192
3479
|
|
|
3193
3480
|
:param leaderboard_id: (required)
|
|
@@ -3215,6 +3502,7 @@ class LeaderboardApi:
|
|
|
3215
3502
|
:type _host_index: int, optional
|
|
3216
3503
|
:return: Returns the result object.
|
|
3217
3504
|
""" # noqa: E501
|
|
3505
|
+
warnings.warn("PUT /leaderboard/{leaderboardId}/response-config is deprecated.", DeprecationWarning)
|
|
3218
3506
|
|
|
3219
3507
|
_param = self._leaderboard_leaderboard_id_response_config_put_serialize(
|
|
3220
3508
|
leaderboard_id=leaderboard_id,
|
|
@@ -3257,7 +3545,7 @@ class LeaderboardApi:
|
|
|
3257
3545
|
_headers: Optional[Dict[StrictStr, Any]] = None,
|
|
3258
3546
|
_host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
|
|
3259
3547
|
) -> RESTResponseType:
|
|
3260
|
-
"""Updates the response config of a leaderboard.
|
|
3548
|
+
"""(Deprecated) Updates the response config of a leaderboard.
|
|
3261
3549
|
|
|
3262
3550
|
|
|
3263
3551
|
:param leaderboard_id: (required)
|
|
@@ -3285,6 +3573,7 @@ class LeaderboardApi:
|
|
|
3285
3573
|
:type _host_index: int, optional
|
|
3286
3574
|
:return: Returns the result object.
|
|
3287
3575
|
""" # noqa: E501
|
|
3576
|
+
warnings.warn("PUT /leaderboard/{leaderboardId}/response-config is deprecated.", DeprecationWarning)
|
|
3288
3577
|
|
|
3289
3578
|
_param = self._leaderboard_leaderboard_id_response_config_put_serialize(
|
|
3290
3579
|
leaderboard_id=leaderboard_id,
|