rapidata 2.37.0__py3-none-any.whl → 3.0.0a8__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 +23 -15
- rapidata/api_client/__init__.py +84 -427
- rapidata/api_client/api/__init__.py +5 -2
- rapidata/api_client/api/asset_api.py +853 -0
- rapidata/api_client/api/audience_api.py +2505 -0
- rapidata/api_client/api/benchmark_api.py +618 -253
- rapidata/api_client/api/campaign_api.py +322 -32
- rapidata/api_client/api/client_api.py +38 -33
- rapidata/api_client/api/compare_workflow_api.py +11 -10
- rapidata/api_client/api/customer_rapid_api.py +119 -125
- rapidata/api_client/api/datapoint_api.py +8 -6
- rapidata/api_client/api/dataset_api.py +240 -1516
- rapidata/api_client/api/evaluation_workflow_api.py +29 -82
- rapidata/api_client/api/feedback_api.py +11 -11
- rapidata/api_client/api/grouped_ranking_workflow_api.py +319 -0
- rapidata/api_client/api/identity_api.py +26 -300
- rapidata/api_client/api/job_api.py +3902 -0
- rapidata/api_client/api/job_definition_api.py +319 -0
- rapidata/api_client/api/job_revision_api.py +335 -0
- rapidata/api_client/api/leaderboard_api.py +139 -2355
- rapidata/api_client/api/newsletter_api.py +20 -19
- rapidata/api_client/api/order_api.py +375 -91
- rapidata/api_client/api/participant_api.py +80 -118
- rapidata/api_client/api/pipeline_api.py +24 -607
- rapidata/api_client/api/prompt_api.py +11 -11
- rapidata/api_client/api/rapidata_identity_api_api.py +5 -4
- rapidata/api_client/api/sample_api.py +5 -4
- rapidata/api_client/api/simple_workflow_api.py +11 -10
- rapidata/api_client/api/survey_api.py +304 -0
- rapidata/api_client/api/user_rapid_api.py +35 -31
- rapidata/api_client/api/validation_set_api.py +337 -2043
- rapidata/api_client/api/workflow_api.py +32 -26
- rapidata/api_client/api_client.py +2 -2
- rapidata/api_client/configuration.py +16 -29
- rapidata/api_client/exceptions.py +2 -2
- rapidata/api_client/models/__init__.py +65 -400
- rapidata/api_client/models/ab_test_selection_a_inner.py +1 -1
- rapidata/api_client/models/add_rapid_to_audience_model.py +144 -0
- rapidata/api_client/models/add_user_response_result.py +10 -5
- rapidata/api_client/models/add_validation_rapid_model.py +34 -36
- rapidata/api_client/models/add_validation_rapid_model_asset.py +154 -0
- rapidata/api_client/models/add_validation_rapid_model_context_asset.py +160 -0
- rapidata/api_client/models/add_validation_rapid_model_metadata_inner.py +140 -0
- rapidata/api_client/models/add_validation_rapid_new_model.py +137 -0
- rapidata/api_client/models/add_validation_rapid_new_model_asset.py +182 -0
- rapidata/api_client/models/add_validation_rapid_new_model_truth.py +286 -0
- rapidata/api_client/models/age_user_filter_model.py +2 -2
- rapidata/api_client/models/age_user_filter_model_age_group.py +41 -0
- rapidata/api_client/models/aggregated_orders_model.py +98 -0
- rapidata/api_client/models/aggregator_type.py +4 -2
- rapidata/api_client/models/and_filter_filters_inner.py +24 -10
- rapidata/api_client/models/are_rapids_active_result.py +2 -2
- rapidata/api_client/models/asset_metadata.py +2 -8
- rapidata/api_client/models/attach_category_rapid_blueprint.py +13 -3
- rapidata/api_client/models/attach_category_rapid_blueprint_category.py +89 -0
- rapidata/api_client/models/audience_job_state.py +38 -0
- rapidata/api_client/models/audience_status.py +39 -0
- rapidata/api_client/models/benchmark_query_result.py +5 -3
- rapidata/api_client/models/boost_leaderboard_model.py +5 -5
- rapidata/api_client/models/boost_query_result.py +4 -4
- rapidata/api_client/models/boost_query_result_boost_mode.py +37 -0
- rapidata/api_client/models/boost_query_result_boost_status.py +39 -0
- rapidata/api_client/models/boosting_profile.py +91 -0
- rapidata/api_client/models/box_shape.py +4 -33
- rapidata/api_client/models/campaign_query_result.py +13 -5
- rapidata/api_client/models/campaign_status.py +2 -2
- rapidata/api_client/models/change_boost_model.py +5 -5
- rapidata/api_client/models/classify_payload.py +14 -15
- rapidata/api_client/models/classify_payload_category.py +89 -0
- rapidata/api_client/models/client_model.py +25 -35
- rapidata/api_client/models/clients_query_result.py +5 -5
- rapidata/api_client/models/clone_order_model.py +4 -4
- rapidata/api_client/models/clone_order_result.py +9 -4
- rapidata/api_client/models/compare_workflow_config.py +19 -18
- rapidata/api_client/models/compare_workflow_config_context_asset.py +174 -0
- rapidata/api_client/models/compare_workflow_config_model.py +3 -3
- rapidata/api_client/models/compare_workflow_model.py +25 -7
- rapidata/api_client/models/compare_workflow_model1.py +20 -9
- rapidata/api_client/models/compare_workflow_model_context_asset.py +160 -0
- rapidata/api_client/models/compare_workflow_model_metadata_inner.py +154 -0
- rapidata/api_client/models/compare_workflow_model_pair_maker_config.py +1 -1
- rapidata/api_client/models/comparison_operator.py +2 -2
- rapidata/api_client/models/conditional_validation_selection.py +6 -11
- rapidata/api_client/models/conditional_validation_selection_validation_chance.py +103 -0
- rapidata/api_client/models/confidence_interval.py +89 -0
- rapidata/api_client/models/create_audience_request.py +122 -0
- rapidata/api_client/models/create_audience_result.py +87 -0
- rapidata/api_client/models/create_benchmark_model.py +5 -5
- rapidata/api_client/models/create_benchmark_participant_model.py +5 -5
- rapidata/api_client/models/create_benchmark_participant_result.py +4 -4
- rapidata/api_client/models/create_benchmark_prompt_result.py +87 -0
- rapidata/api_client/models/create_benchmark_result.py +2 -2
- rapidata/api_client/models/create_bridge_token_result.py +2 -2
- rapidata/api_client/models/create_client_model.py +6 -13
- rapidata/api_client/models/create_complex_order_model.py +9 -9
- rapidata/api_client/models/create_complex_order_result.py +2 -2
- rapidata/api_client/models/create_customer_client_result.py +2 -2
- rapidata/api_client/models/create_datapoint_from_files_model.py +3 -3
- rapidata/api_client/models/create_datapoint_from_text_sources_model.py +3 -3
- rapidata/api_client/models/create_datapoint_from_urls_model.py +3 -3
- rapidata/api_client/models/create_datapoint_model.py +124 -0
- rapidata/api_client/models/create_datapoint_model_asset.py +154 -0
- rapidata/api_client/models/create_datapoint_model_context_asset.py +160 -0
- rapidata/api_client/models/create_datapoint_model_metadata_inner.py +154 -0
- rapidata/api_client/models/create_datapoint_result.py +2 -2
- rapidata/api_client/models/create_dataset_endpoint_input.py +87 -0
- rapidata/api_client/models/create_dataset_endpoint_output.py +87 -0
- rapidata/api_client/models/create_demographic_rapid_model.py +33 -10
- rapidata/api_client/models/create_demographic_rapid_model_asset.py +160 -0
- rapidata/api_client/models/create_demographic_rapid_model_context_asset.py +160 -0
- rapidata/api_client/models/create_demographic_rapid_model_new.py +119 -0
- rapidata/api_client/models/create_empty_validation_set_result.py +2 -2
- rapidata/api_client/models/create_job_definition_endpoint_input.py +119 -0
- rapidata/api_client/models/create_job_definition_endpoint_output.py +89 -0
- rapidata/api_client/models/create_job_endpoint_input.py +100 -0
- rapidata/api_client/models/create_job_endpoint_output.py +89 -0
- rapidata/api_client/models/create_job_revision_endpoint_input.py +127 -0
- rapidata/api_client/models/create_job_revision_endpoint_output.py +89 -0
- rapidata/api_client/models/create_leaderboard_model.py +23 -26
- rapidata/api_client/models/create_leaderboard_result.py +2 -2
- rapidata/api_client/models/create_order_definition_model.py +119 -0
- rapidata/api_client/models/create_order_definition_result.py +87 -0
- rapidata/api_client/models/create_order_definition_revision_model.py +117 -0
- rapidata/api_client/models/create_order_definition_revision_result.py +87 -0
- rapidata/api_client/models/create_order_model.py +33 -62
- rapidata/api_client/models/create_order_model_referee.py +12 -12
- rapidata/api_client/models/create_order_model_workflow.py +35 -21
- rapidata/api_client/models/create_order_result.py +2 -2
- rapidata/api_client/models/create_rapid_result.py +2 -2
- rapidata/api_client/models/create_sample_model.py +13 -7
- rapidata/api_client/models/create_sample_model_asset.py +154 -0
- rapidata/api_client/models/create_sample_model_obsolete.py +87 -0
- rapidata/api_client/models/create_simple_pipeline_model_pipeline_steps_inner.py +8 -22
- rapidata/api_client/models/create_unsupported_order_model.py +6 -6
- rapidata/api_client/models/create_validation_set_model.py +5 -5
- rapidata/api_client/models/datapoint_model.py +3 -3
- rapidata/api_client/models/datapoint_state.py +2 -2
- rapidata/api_client/models/definition_type.py +49 -0
- rapidata/api_client/models/dynamic_client_registration_request.py +21 -36
- rapidata/api_client/models/early_stopping_referee_model.py +3 -3
- rapidata/api_client/models/elo_config.py +2 -2
- rapidata/api_client/models/elo_config_model.py +6 -6
- rapidata/api_client/models/entity_tag_header_value.py +93 -0
- rapidata/api_client/models/evaluation_workflow_model.py +4 -4
- rapidata/api_client/models/existing_asset_input.py +109 -0
- rapidata/api_client/models/existing_asset_input_metadata_value.py +126 -0
- rapidata/api_client/models/feature_flag.py +2 -2
- rapidata/api_client/models/feature_flag_model.py +2 -2
- rapidata/api_client/models/feedback_model.py +7 -7
- rapidata/api_client/models/file_asset.py +3 -5
- rapidata/api_client/models/file_asset_input_file.py +8 -22
- rapidata/api_client/models/file_asset_metadata_value.py +252 -0
- rapidata/api_client/models/file_asset_model_metadata_value.py +18 -88
- rapidata/api_client/models/file_stream_result.py +122 -0
- rapidata/api_client/models/file_type.py +2 -2
- rapidata/api_client/models/filter.py +2 -2
- rapidata/api_client/models/filter_operator.py +2 -2
- rapidata/api_client/models/fork_benchmark_result.py +87 -0
- rapidata/api_client/models/form_file_wrapper.py +17 -2
- rapidata/api_client/models/gender_user_filter_model.py +2 -2
- rapidata/api_client/models/gender_user_filter_model_gender.py +38 -0
- rapidata/api_client/models/get_asset_metadata_result.py +100 -0
- rapidata/api_client/models/get_audience_by_id_result.py +118 -0
- rapidata/api_client/models/get_available_validation_sets_result.py +2 -2
- rapidata/api_client/models/get_benchmark_by_id_result.py +8 -4
- rapidata/api_client/models/get_boost_result.py +97 -0
- rapidata/api_client/models/get_boost_result_boost_mode.py +37 -0
- rapidata/api_client/models/get_boost_result_boost_status.py +39 -0
- rapidata/api_client/models/get_compare_ab_summary_result.py +3 -5
- rapidata/api_client/models/get_compare_workflow_results_model.py +7 -7
- rapidata/api_client/models/get_compare_workflow_results_result.py +5 -5
- rapidata/api_client/models/get_datapoint_by_id_result.py +7 -12
- rapidata/api_client/models/get_datapoint_by_id_result_asset.py +170 -0
- rapidata/api_client/models/get_dataset_by_id_result.py +2 -2
- rapidata/api_client/models/get_dataset_progress_result.py +2 -2
- rapidata/api_client/models/get_evaluation_workflow_results_model.py +119 -0
- rapidata/api_client/models/get_failed_datapoints_result.py +5 -5
- rapidata/api_client/models/get_failed_datapoints_result_datapoint.py +100 -0
- rapidata/api_client/models/get_file_metadata_result.py +100 -0
- rapidata/api_client/models/get_grouped_ranking_workflow_results_model.py +106 -0
- rapidata/api_client/models/get_grouped_ranking_workflow_results_result.py +97 -0
- rapidata/api_client/models/get_grouped_ranking_workflow_results_result_paged_result.py +105 -0
- rapidata/api_client/models/get_job_by_id_endpoint_output.py +130 -0
- rapidata/api_client/models/get_job_definition_by_id_endpoint_output.py +95 -0
- rapidata/api_client/models/get_job_revision_endpoint_output.py +133 -0
- rapidata/api_client/models/get_leaderboard_by_id_result.py +5 -5
- rapidata/api_client/models/get_order_by_id_result.py +12 -5
- rapidata/api_client/models/get_participant_by_id_result.py +4 -6
- rapidata/api_client/models/get_pipeline_by_id_result.py +5 -5
- rapidata/api_client/models/get_public_orders_result.py +2 -2
- rapidata/api_client/models/get_public_responses_result.py +5 -5
- rapidata/api_client/models/get_public_responses_result_response.py +112 -0
- rapidata/api_client/models/get_rapid_responses_result.py +3 -3
- rapidata/api_client/models/get_recommended_validation_set_result.py +2 -2
- rapidata/api_client/models/get_responses_for_rapid_result.py +106 -0
- rapidata/api_client/models/get_responses_for_rapid_result_response.py +103 -0
- rapidata/api_client/models/get_responses_for_rapid_result_response_result.py +266 -0
- rapidata/api_client/models/get_responses_result.py +5 -5
- rapidata/api_client/models/get_responses_result_response.py +103 -0
- rapidata/api_client/models/get_sample_by_id_result.py +7 -8
- rapidata/api_client/models/get_simple_workflow_results_model.py +20 -15
- rapidata/api_client/models/get_standing_by_id_result.py +3 -5
- rapidata/api_client/models/get_validation_rapids_result.py +29 -32
- rapidata/api_client/models/get_validation_set_by_id_result.py +10 -4
- rapidata/api_client/models/get_workflow_by_id_result.py +5 -5
- rapidata/api_client/models/get_workflow_by_id_result_workflow.py +23 -9
- rapidata/api_client/models/get_workflow_progress_result.py +2 -2
- rapidata/api_client/models/get_workflow_results_result.py +31 -14
- rapidata/api_client/models/get_workflow_results_result_response.py +103 -0
- rapidata/api_client/models/google_one_tap_login_model.py +4 -4
- rapidata/api_client/models/grouped_ranking_workflow_config.py +155 -0
- rapidata/api_client/models/grouped_ranking_workflow_config_context_assets_value.py +170 -0
- rapidata/api_client/models/grouped_ranking_workflow_model.py +147 -0
- rapidata/api_client/models/grouped_ranking_workflow_model1.py +121 -0
- rapidata/api_client/models/i_artifact_model.py +182 -0
- rapidata/api_client/models/i_artifact_model_campaign_artifact_model.py +98 -0
- rapidata/api_client/models/i_artifact_model_dataset_artifact_model.py +98 -0
- rapidata/api_client/models/i_artifact_model_file_artifact_model.py +98 -0
- rapidata/api_client/models/i_artifact_model_workflow_artifact_model.py +98 -0
- rapidata/api_client/models/i_artifact_model_workflow_config_artifact_model.py +102 -0
- rapidata/api_client/models/i_asset.py +170 -0
- rapidata/api_client/models/i_asset_file_asset.py +111 -0
- rapidata/api_client/models/i_asset_input.py +156 -0
- rapidata/api_client/models/i_asset_input_existing_asset_input.py +118 -0
- rapidata/api_client/models/i_asset_input_multi_asset_input.py +128 -0
- rapidata/api_client/models/i_asset_input_text_asset_input.py +118 -0
- rapidata/api_client/models/i_asset_model.py +170 -0
- rapidata/api_client/models/i_asset_model_file_asset_model.py +113 -0
- rapidata/api_client/models/i_asset_model_multi_asset_model.py +123 -0
- rapidata/api_client/models/i_asset_model_null_asset_model.py +111 -0
- rapidata/api_client/models/i_asset_model_text_asset_model.py +113 -0
- rapidata/api_client/models/i_asset_multi_asset.py +121 -0
- rapidata/api_client/models/i_asset_null_asset.py +109 -0
- rapidata/api_client/models/i_asset_text_asset.py +111 -0
- rapidata/api_client/models/i_audience_filter.py +184 -0
- rapidata/api_client/models/i_audience_filter_and_audience_filter.py +106 -0
- rapidata/api_client/models/i_audience_filter_country_audience_filter.py +96 -0
- rapidata/api_client/models/i_audience_filter_country_filter.py +96 -0
- rapidata/api_client/models/i_audience_filter_language_audience_filter.py +96 -0
- rapidata/api_client/models/i_audience_filter_language_filter.py +96 -0
- rapidata/api_client/models/i_audience_filter_not_audience_filter.py +102 -0
- rapidata/api_client/models/i_audience_filter_or_audience_filter.py +106 -0
- rapidata/api_client/models/i_campaign_filter.py +296 -0
- rapidata/api_client/models/i_campaign_filter_and_filter.py +117 -0
- rapidata/api_client/models/i_campaign_filter_campaign_filter.py +98 -0
- rapidata/api_client/models/i_campaign_filter_campaign_session_count_filter.py +101 -0
- rapidata/api_client/models/i_campaign_filter_country_filter.py +98 -0
- rapidata/api_client/models/i_campaign_filter_demographic_filter.py +100 -0
- rapidata/api_client/models/i_campaign_filter_device_filter.py +106 -0
- rapidata/api_client/models/i_campaign_filter_language_filter.py +98 -0
- rapidata/api_client/models/i_campaign_filter_new_user_filter.py +96 -0
- rapidata/api_client/models/i_campaign_filter_not_filter.py +113 -0
- rapidata/api_client/models/i_campaign_filter_or_filter.py +117 -0
- rapidata/api_client/models/i_campaign_filter_response_count_filter.py +103 -0
- rapidata/api_client/models/i_campaign_filter_user_action_restriction_filter.py +106 -0
- rapidata/api_client/models/i_campaign_filter_user_score_filter.py +102 -0
- rapidata/api_client/models/i_campaign_filter_user_state_filter.py +106 -0
- rapidata/api_client/models/i_dataset_metadata_input.py +154 -0
- rapidata/api_client/models/i_dataset_metadata_input_prompt_asset_metadata_input.py +100 -0
- rapidata/api_client/models/i_dataset_metadata_input_prompt_metadata_input.py +96 -0
- rapidata/api_client/models/i_dataset_metadata_input_transcription_metadata_input.py +96 -0
- rapidata/api_client/models/i_dataset_model.py +126 -0
- rapidata/api_client/models/i_dataset_model_clone_dataset_model.py +98 -0
- rapidata/api_client/models/i_metadata.py +252 -0
- rapidata/api_client/models/i_metadata_classification_metadata.py +109 -0
- rapidata/api_client/models/i_metadata_count_metadata.py +109 -0
- rapidata/api_client/models/i_metadata_duration_metadata.py +110 -0
- rapidata/api_client/models/i_metadata_file_type_metadata.py +110 -0
- rapidata/api_client/models/i_metadata_image_dimension_metadata.py +111 -0
- rapidata/api_client/models/i_metadata_input.py +126 -0
- rapidata/api_client/models/i_metadata_input_text_metadata_input.py +111 -0
- rapidata/api_client/models/i_metadata_location_metadata.py +111 -0
- rapidata/api_client/models/i_metadata_model.py +252 -0
- rapidata/api_client/models/i_metadata_model_classification_metadata_model.py +96 -0
- rapidata/api_client/models/i_metadata_model_count_metadata_model.py +96 -0
- rapidata/api_client/models/i_metadata_model_file_type_metadata_model.py +97 -0
- rapidata/api_client/models/i_metadata_model_image_dimension_metadata_model.py +98 -0
- rapidata/api_client/models/i_metadata_model_location_metadata_model.py +98 -0
- rapidata/api_client/models/i_metadata_model_original_filename_metadata_model.py +96 -0
- rapidata/api_client/models/i_metadata_model_source_url_metadata_model.py +96 -0
- rapidata/api_client/models/i_metadata_model_streams_metadata_model.py +100 -0
- rapidata/api_client/models/i_metadata_model_text_metadata_model.py +101 -0
- rapidata/api_client/models/i_metadata_model_video_duration_metadata_model.py +97 -0
- rapidata/api_client/models/i_metadata_original_filename_metadata.py +109 -0
- rapidata/api_client/models/i_metadata_source_url_metadata.py +109 -0
- rapidata/api_client/models/i_metadata_streams_metadata.py +113 -0
- rapidata/api_client/models/i_metadata_text_metadata.py +114 -0
- rapidata/api_client/models/i_metadata_video_duration_metadata.py +110 -0
- rapidata/api_client/models/i_order_workflow_model.py +168 -0
- rapidata/api_client/models/i_order_workflow_model_compare_workflow_model.py +146 -0
- rapidata/api_client/models/i_order_workflow_model_evaluation_workflow_model.py +108 -0
- rapidata/api_client/models/i_order_workflow_model_grouped_ranking_workflow_model.py +147 -0
- rapidata/api_client/models/i_order_workflow_model_simple_workflow_model.py +110 -0
- rapidata/api_client/models/i_pair_maker_config.py +126 -0
- rapidata/api_client/models/i_pair_maker_config_model.py +126 -0
- rapidata/api_client/models/i_pair_maker_config_model_online_pair_maker_config_model.py +98 -0
- rapidata/api_client/models/i_pair_maker_config_online_pair_maker_config.py +98 -0
- rapidata/api_client/models/i_pair_maker_information.py +126 -0
- rapidata/api_client/models/i_pair_maker_information_online_pair_maker_information.py +100 -0
- rapidata/api_client/models/i_pipeline_artifact_model.py +126 -0
- rapidata/api_client/models/i_pipeline_artifact_model_create_dataset_artifact_model.py +102 -0
- rapidata/api_client/models/i_pipeline_model.py +126 -0
- rapidata/api_client/models/i_pipeline_model_create_simple_pipeline_model.py +116 -0
- rapidata/api_client/models/i_pipeline_step_model.py +168 -0
- rapidata/api_client/models/i_pipeline_step_model_dataset_evaluation_step_model.py +102 -0
- rapidata/api_client/models/i_pipeline_step_model_send_completion_mail_step_model.py +98 -0
- rapidata/api_client/models/i_pipeline_step_model_workflow_aggregation_step_model.py +103 -0
- rapidata/api_client/models/i_pipeline_step_model_workflow_labeling_step_model.py +96 -0
- rapidata/api_client/models/i_rapid_blueprint.py +252 -0
- rapidata/api_client/models/i_rapid_blueprint_attach_category_rapid_blueprint.py +108 -0
- rapidata/api_client/models/i_rapid_blueprint_bounding_box_rapid_blueprint.py +96 -0
- rapidata/api_client/models/i_rapid_blueprint_compare_rapid_blueprint.py +98 -0
- rapidata/api_client/models/i_rapid_blueprint_free_text_rapid_blueprint.py +105 -0
- rapidata/api_client/models/i_rapid_blueprint_line_rapid_blueprint.py +96 -0
- rapidata/api_client/models/i_rapid_blueprint_locate_rapid_blueprint.py +96 -0
- rapidata/api_client/models/i_rapid_blueprint_named_entity_rapid_blueprint.py +98 -0
- rapidata/api_client/models/i_rapid_blueprint_polygon_rapid_blueprint.py +96 -0
- rapidata/api_client/models/i_rapid_blueprint_scrub_rapid_blueprint.py +96 -0
- rapidata/api_client/models/i_rapid_blueprint_transcription_rapid_blueprint.py +96 -0
- rapidata/api_client/models/i_rapid_payload.py +252 -0
- rapidata/api_client/models/i_rapid_payload_bounding_box_payload.py +96 -0
- rapidata/api_client/models/i_rapid_payload_classify_payload.py +106 -0
- rapidata/api_client/models/i_rapid_payload_compare_payload.py +96 -0
- rapidata/api_client/models/i_rapid_payload_free_text_payload.py +105 -0
- rapidata/api_client/models/i_rapid_payload_line_payload.py +96 -0
- rapidata/api_client/models/i_rapid_payload_locate_payload.py +96 -0
- rapidata/api_client/models/i_rapid_payload_named_entity_payload.py +98 -0
- rapidata/api_client/models/i_rapid_payload_polygon_payload.py +96 -0
- rapidata/api_client/models/i_rapid_payload_scrub_payload.py +96 -0
- rapidata/api_client/models/i_rapid_payload_transcription_payload.py +106 -0
- rapidata/api_client/models/i_rapid_result.py +266 -0
- rapidata/api_client/models/i_rapid_result_attach_category_result.py +98 -0
- rapidata/api_client/models/i_rapid_result_bounding_box_result.py +106 -0
- rapidata/api_client/models/i_rapid_result_compare_result.py +98 -0
- rapidata/api_client/models/i_rapid_result_free_text_result.py +98 -0
- rapidata/api_client/models/i_rapid_result_line_result.py +106 -0
- rapidata/api_client/models/i_rapid_result_locate_result.py +106 -0
- rapidata/api_client/models/i_rapid_result_named_entity_result.py +106 -0
- rapidata/api_client/models/i_rapid_result_polygon_result.py +106 -0
- rapidata/api_client/models/i_rapid_result_scrub_result.py +98 -0
- rapidata/api_client/models/i_rapid_result_skip_result.py +96 -0
- rapidata/api_client/models/i_rapid_result_transcription_result.py +106 -0
- rapidata/api_client/models/i_referee_config.py +154 -0
- rapidata/api_client/models/i_referee_config_naive_referee_config.py +96 -0
- rapidata/api_client/models/i_referee_config_never_ending_referee_config.py +94 -0
- rapidata/api_client/models/i_referee_config_probabilistic_attach_category_referee_config.py +98 -0
- rapidata/api_client/models/i_referee_info.py +154 -0
- rapidata/api_client/models/i_referee_info_naive_referee_info.py +96 -0
- rapidata/api_client/models/i_referee_info_never_ending_referee_info.py +94 -0
- rapidata/api_client/models/i_referee_info_probabilistic_attach_category_referee_info.py +98 -0
- rapidata/api_client/models/i_referee_model.py +140 -0
- rapidata/api_client/models/i_referee_model_early_stopping_referee_model.py +98 -0
- rapidata/api_client/models/i_referee_model_naive_referee_model.py +96 -0
- rapidata/api_client/models/i_selection.py +240 -0
- rapidata/api_client/models/i_selection_ab_test_selection.py +122 -0
- rapidata/api_client/models/i_selection_capped_selection.py +108 -0
- rapidata/api_client/models/i_selection_conditional_validation_selection.py +110 -0
- rapidata/api_client/models/i_selection_demographic_selection.py +98 -0
- rapidata/api_client/models/i_selection_effort_capped_selection.py +101 -0
- rapidata/api_client/models/i_selection_labeling_selection.py +103 -0
- rapidata/api_client/models/i_selection_shuffling_selection.py +106 -0
- rapidata/api_client/models/i_selection_static_selection.py +96 -0
- rapidata/api_client/models/i_selection_validation_selection.py +98 -0
- rapidata/api_client/models/i_user_filter_model.py +296 -0
- rapidata/api_client/models/i_user_filter_model_age_user_filter_model.py +104 -0
- rapidata/api_client/models/i_user_filter_model_and_user_filter_model.py +106 -0
- rapidata/api_client/models/i_user_filter_model_campaign_user_filter_model.py +96 -0
- rapidata/api_client/models/i_user_filter_model_country_user_filter_model.py +96 -0
- rapidata/api_client/models/i_user_filter_model_custom_user_filter_model.py +98 -0
- rapidata/api_client/models/i_user_filter_model_device_user_filter_model.py +104 -0
- rapidata/api_client/models/i_user_filter_model_gender_user_filter_model.py +104 -0
- rapidata/api_client/models/i_user_filter_model_language_user_filter_model.py +96 -0
- rapidata/api_client/models/i_user_filter_model_new_user_filter_model.py +94 -0
- rapidata/api_client/models/i_user_filter_model_not_user_filter_model.py +102 -0
- rapidata/api_client/models/i_user_filter_model_or_user_filter_model.py +106 -0
- rapidata/api_client/models/i_user_filter_model_response_count_user_filter_model.py +101 -0
- rapidata/api_client/models/i_user_filter_model_user_score_user_filter_model.py +105 -0
- rapidata/api_client/models/i_validation_metadata_input.py +140 -0
- rapidata/api_client/models/i_validation_metadata_input_prompt_asset_metadata_input.py +100 -0
- rapidata/api_client/models/i_validation_metadata_input_prompt_metadata_input.py +96 -0
- rapidata/api_client/models/i_validation_truth.py +280 -0
- rapidata/api_client/models/i_validation_truth_attach_category_truth.py +96 -0
- rapidata/api_client/models/i_validation_truth_bounding_box_truth.py +102 -0
- rapidata/api_client/models/i_validation_truth_compare_truth.py +96 -0
- rapidata/api_client/models/i_validation_truth_empty_validation_truth.py +94 -0
- rapidata/api_client/models/i_validation_truth_line_truth.py +94 -0
- rapidata/api_client/models/i_validation_truth_locate_box_truth.py +108 -0
- rapidata/api_client/models/i_validation_truth_model.py +294 -0
- rapidata/api_client/models/i_validation_truth_model_attach_category_truth_model.py +96 -0
- rapidata/api_client/models/i_validation_truth_model_bounding_box_truth_model.py +102 -0
- rapidata/api_client/models/i_validation_truth_model_classify_truth_model.py +96 -0
- rapidata/api_client/models/i_validation_truth_model_compare_truth_model.py +96 -0
- rapidata/api_client/models/i_validation_truth_model_empty_validation_truth_model.py +94 -0
- rapidata/api_client/models/i_validation_truth_model_line_truth_model.py +94 -0
- rapidata/api_client/models/i_validation_truth_model_locate_box_truth_model.py +108 -0
- rapidata/api_client/models/i_validation_truth_model_multi_compare_truth_model.py +96 -0
- rapidata/api_client/models/i_validation_truth_model_named_entity_truth_model.py +104 -0
- rapidata/api_client/models/i_validation_truth_model_polygon_truth_model.py +94 -0
- rapidata/api_client/models/i_validation_truth_model_scrub_truth_model.py +104 -0
- rapidata/api_client/models/i_validation_truth_model_skip_truth_model.py +94 -0
- rapidata/api_client/models/i_validation_truth_model_transcription_truth_model.py +115 -0
- rapidata/api_client/models/i_validation_truth_multi_compare_truth.py +96 -0
- rapidata/api_client/models/i_validation_truth_named_entity_truth.py +104 -0
- rapidata/api_client/models/i_validation_truth_polygon_truth.py +94 -0
- rapidata/api_client/models/i_validation_truth_scrub_truth.py +104 -0
- rapidata/api_client/models/i_validation_truth_skip_truth.py +94 -0
- rapidata/api_client/models/i_validation_truth_transcription_truth.py +115 -0
- rapidata/api_client/models/i_workflow_config.py +168 -0
- rapidata/api_client/models/i_workflow_config_compare_workflow_config.py +142 -0
- rapidata/api_client/models/i_workflow_config_evaluation_workflow_config.py +114 -0
- rapidata/api_client/models/i_workflow_config_grouped_ranking_workflow_config.py +155 -0
- rapidata/api_client/models/i_workflow_config_simple_workflow_config.py +116 -0
- rapidata/api_client/models/i_workflow_model.py +168 -0
- rapidata/api_client/models/i_workflow_model_compare_workflow_model.py +145 -0
- rapidata/api_client/models/i_workflow_model_evaluation_workflow_model.py +115 -0
- rapidata/api_client/models/i_workflow_model_grouped_ranking_workflow_model.py +121 -0
- rapidata/api_client/models/i_workflow_model_simple_workflow_model.py +119 -0
- rapidata/api_client/models/inquire_file_metadata_result.py +100 -0
- rapidata/api_client/models/inspect_report_result.py +2 -2
- rapidata/api_client/models/job_definition_revision_state.py +38 -0
- rapidata/api_client/models/json_web_key.py +2 -36
- rapidata/api_client/models/json_web_key_set.py +2 -22
- rapidata/api_client/models/labeling_selection.py +9 -2
- rapidata/api_client/models/leaderboards_query_result.py +135 -0
- rapidata/api_client/models/line_result.py +3 -3
- rapidata/api_client/models/line_result_line.py +97 -0
- rapidata/api_client/models/line_result_line_point.py +89 -0
- rapidata/api_client/models/locate_coordinate.py +4 -13
- rapidata/api_client/models/logic_operator.py +2 -2
- rapidata/api_client/models/metadata_i_order_metadata_input.py +154 -0
- rapidata/api_client/models/metadata_i_order_metadata_input_metadata_prompt_asset_metadata_input.py +100 -0
- rapidata/api_client/models/metadata_i_order_metadata_input_metadata_prompt_metadata_input.py +96 -0
- rapidata/api_client/models/metadata_i_order_metadata_input_metadata_transcription_metadata_input.py +96 -0
- rapidata/api_client/models/metadata_prompt_asset_metadata_input.py +100 -0
- rapidata/api_client/models/metadata_prompt_metadata_input.py +96 -0
- rapidata/api_client/models/metadata_transcription_metadata_input.py +96 -0
- rapidata/api_client/models/multi_asset.py +6 -6
- rapidata/api_client/models/multi_asset_assets_inner.py +170 -0
- rapidata/api_client/models/multi_asset_input.py +21 -1
- rapidata/api_client/models/multi_asset_input1_assets_inner.py +40 -12
- rapidata/api_client/models/multi_asset_input3_assets_inner.py +40 -12
- rapidata/api_client/models/multi_asset_input_assets_inner.py +16 -30
- rapidata/api_client/models/multi_asset_model.py +3 -3
- rapidata/api_client/models/naive_referee_model.py +2 -2
- rapidata/api_client/models/named_classification.py +4 -13
- rapidata/api_client/models/newsletter_model.py +6 -6
- rapidata/api_client/models/not_available_yet_result.py +4 -13
- rapidata/api_client/models/null_asset.py +3 -5
- rapidata/api_client/models/online_pair_maker_config_model.py +3 -3
- rapidata/api_client/models/option_of_aggregator_type.py +49 -0
- rapidata/api_client/models/order_model.py +12 -5
- rapidata/api_client/models/order_state.py +2 -2
- rapidata/api_client/models/page_info.py +2 -7
- rapidata/api_client/models/paged_result_aggregated_orders_model.py +105 -0
- rapidata/api_client/models/paged_result_benchmark_query_result.py +105 -0
- rapidata/api_client/models/paged_result_campaign_query_result.py +105 -0
- rapidata/api_client/models/paged_result_clients_query_result.py +105 -0
- rapidata/api_client/models/paged_result_datapoint_model.py +105 -0
- rapidata/api_client/models/paged_result_get_compare_workflow_results_result.py +105 -0
- rapidata/api_client/models/paged_result_get_grouped_ranking_workflow_results_result.py +105 -0
- rapidata/api_client/models/paged_result_get_validation_rapids_result.py +105 -0
- rapidata/api_client/models/paged_result_get_workflow_results_result.py +105 -0
- rapidata/api_client/models/paged_result_i_workflow_model.py +105 -0
- rapidata/api_client/models/paged_result_leaderboard_query_result.py +105 -0
- rapidata/api_client/models/paged_result_leaderboards_query_result.py +105 -0
- rapidata/api_client/models/paged_result_of_aggregated_orders_model.py +103 -0
- rapidata/api_client/models/paged_result_of_benchmark_query_result.py +103 -0
- rapidata/api_client/models/paged_result_of_campaign_query_result.py +103 -0
- rapidata/api_client/models/paged_result_of_clients_query_result.py +103 -0
- rapidata/api_client/models/paged_result_of_get_compare_workflow_results_result.py +103 -0
- rapidata/api_client/models/paged_result_of_get_grouped_ranking_workflow_results_result.py +103 -0
- rapidata/api_client/models/paged_result_of_get_validation_rapids_result.py +103 -0
- rapidata/api_client/models/paged_result_of_get_workflow_results_result.py +103 -0
- rapidata/api_client/models/paged_result_of_i_workflow_model.py +103 -0
- rapidata/api_client/models/paged_result_of_leaderboards_query_result.py +103 -0
- rapidata/api_client/models/paged_result_of_order_model.py +103 -0
- rapidata/api_client/models/paged_result_of_participant_by_benchmark.py +103 -0
- rapidata/api_client/models/paged_result_of_prompt_by_benchmark_result.py +103 -0
- rapidata/api_client/models/paged_result_of_query_audiences_result.py +103 -0
- rapidata/api_client/models/paged_result_of_query_datapoints_by_dataset_id_result.py +103 -0
- rapidata/api_client/models/paged_result_of_query_job_definitions_result.py +103 -0
- rapidata/api_client/models/paged_result_of_query_job_revisions_result.py +103 -0
- rapidata/api_client/models/paged_result_of_query_jobs_result.py +103 -0
- rapidata/api_client/models/paged_result_of_query_rapids_for_audience_result.py +103 -0
- rapidata/api_client/models/paged_result_of_query_validation_rapid_eligibility_result.py +103 -0
- rapidata/api_client/models/paged_result_of_rapid_model.py +103 -0
- rapidata/api_client/models/paged_result_of_runs_by_leaderboard_result.py +103 -0
- rapidata/api_client/models/paged_result_of_sample_by_identifier.py +103 -0
- rapidata/api_client/models/paged_result_of_sample_by_participant.py +103 -0
- rapidata/api_client/models/paged_result_of_standing_by_leaderboard.py +103 -0
- rapidata/api_client/models/paged_result_of_validation_set_model.py +103 -0
- rapidata/api_client/models/paged_result_order_model.py +105 -0
- rapidata/api_client/models/paged_result_participant_by_benchmark.py +105 -0
- rapidata/api_client/models/paged_result_potential_validation_rapid.py +105 -0
- rapidata/api_client/models/paged_result_prompt_by_benchmark_result.py +105 -0
- rapidata/api_client/models/paged_result_query_audiences_result.py +105 -0
- rapidata/api_client/models/paged_result_query_datapoints_by_dataset_id_result.py +105 -0
- rapidata/api_client/models/paged_result_query_validation_rapid_eligibility_result.py +105 -0
- rapidata/api_client/models/paged_result_rapid_model.py +105 -0
- rapidata/api_client/models/paged_result_runs_by_leaderboard_result.py +105 -0
- rapidata/api_client/models/paged_result_sample_by_identifier.py +105 -0
- rapidata/api_client/models/paged_result_sample_by_participant.py +105 -0
- rapidata/api_client/models/paged_result_standing_by_leaderboard.py +105 -0
- rapidata/api_client/models/paged_result_validation_set_model.py +105 -0
- rapidata/api_client/models/participant_by_benchmark.py +3 -5
- rapidata/api_client/models/participant_status.py +2 -2
- rapidata/api_client/models/polygon_result.py +3 -3
- rapidata/api_client/models/polygon_result_coordinate.py +89 -0
- rapidata/api_client/models/polygon_result_shape.py +95 -0
- rapidata/api_client/models/preliminary_download_model.py +5 -5
- rapidata/api_client/models/preview_order_model.py +5 -5
- rapidata/api_client/models/problem_details.py +2 -20
- rapidata/api_client/models/prompt_asset_metadata_input.py +4 -6
- rapidata/api_client/models/prompt_asset_metadata_input_asset.py +25 -41
- rapidata/api_client/models/prompt_by_benchmark_result.py +5 -5
- rapidata/api_client/models/prompt_metadata_input.py +5 -7
- rapidata/api_client/models/proxy_file_wrapper.py +17 -2
- rapidata/api_client/models/public_order_model.py +2 -2
- rapidata/api_client/models/query_audiences_result.py +118 -0
- rapidata/api_client/models/query_datapoints_by_dataset_id_result.py +95 -0
- rapidata/api_client/models/query_job_definitions_result.py +97 -0
- rapidata/api_client/models/query_job_revisions_result.py +95 -0
- rapidata/api_client/models/query_jobs_result.py +103 -0
- rapidata/api_client/models/query_model.py +10 -5
- rapidata/api_client/models/query_rapids_for_audience_result.py +150 -0
- rapidata/api_client/models/query_validation_rapid_eligibility_model_query_validation_model.py +107 -0
- rapidata/api_client/models/query_validation_rapid_eligibility_result.py +103 -0
- rapidata/api_client/models/query_validation_rapid_eligibility_result_truth.py +280 -0
- rapidata/api_client/models/rapid_issue.py +2 -2
- rapidata/api_client/models/rapid_model.py +30 -40
- rapidata/api_client/models/rapid_result_model.py +7 -7
- rapidata/api_client/models/rapid_skipped_model.py +5 -5
- rapidata/api_client/models/rapid_state.py +2 -2
- rapidata/api_client/models/read_bridge_token_keys_result.py +10 -24
- rapidata/api_client/models/reference_asset_input.py +100 -0
- rapidata/api_client/models/report_model.py +7 -7
- rapidata/api_client/models/retrieval_mode.py +2 -2
- rapidata/api_client/models/root_filter.py +2 -2
- rapidata/api_client/models/run_status.py +2 -2
- rapidata/api_client/models/runs_by_leaderboard_result.py +3 -3
- rapidata/api_client/models/sample_by_identifier.py +7 -8
- rapidata/api_client/models/sample_by_participant.py +7 -8
- rapidata/api_client/models/scrub_range.py +2 -2
- rapidata/api_client/models/send_survey_model.py +87 -0
- rapidata/api_client/models/simple_workflow_config.py +3 -3
- rapidata/api_client/models/simple_workflow_model.py +2 -2
- rapidata/api_client/models/simple_workflow_model1.py +4 -11
- rapidata/api_client/models/simple_workflow_model_blueprint.py +1 -1
- rapidata/api_client/models/sort_criterion.py +2 -2
- rapidata/api_client/models/sort_direction.py +2 -2
- rapidata/api_client/models/standing_by_benchmark.py +113 -0
- rapidata/api_client/models/standing_by_leaderboard.py +16 -12
- rapidata/api_client/models/standing_status.py +2 -2
- rapidata/api_client/models/standings_by_benchmark_result.py +95 -0
- rapidata/api_client/models/standings_by_leaderboard_result.py +2 -2
- rapidata/api_client/models/start_preliminary_download_result.py +87 -0
- rapidata/api_client/models/sticky_state.py +3 -2
- rapidata/api_client/models/stream_file_wrapper.py +25 -3
- rapidata/api_client/models/string_segment.py +105 -0
- rapidata/api_client/models/submit_order_model.py +5 -5
- rapidata/api_client/models/submit_participant_result.py +2 -2
- rapidata/api_client/models/submit_prompt_model.py +9 -14
- rapidata/api_client/models/submit_prompt_model_prompt_asset.py +40 -12
- rapidata/api_client/models/tags_by_benchmark_result.py +2 -2
- rapidata/api_client/models/text_asset.py +3 -5
- rapidata/api_client/models/text_asset_input.py +21 -1
- rapidata/api_client/models/text_metadata.py +6 -1
- rapidata/api_client/models/text_metadata_input.py +111 -0
- rapidata/api_client/models/text_metadata_model.py +7 -2
- rapidata/api_client/models/transcription_metadata_input.py +5 -7
- rapidata/api_client/models/transcription_word.py +2 -2
- rapidata/api_client/models/translated_string.py +2 -2
- rapidata/api_client/models/unlock_order_result.py +2 -2
- rapidata/api_client/models/update_audience_request.py +113 -0
- rapidata/api_client/models/update_benchmark_model.py +99 -0
- rapidata/api_client/models/update_benchmark_name_model.py +5 -5
- rapidata/api_client/models/update_campaign_model.py +11 -11
- rapidata/api_client/models/update_dataset_name_model.py +5 -5
- rapidata/api_client/models/update_dimensions_model.py +3 -3
- rapidata/api_client/models/update_job_definition_endpoint_input.py +92 -0
- rapidata/api_client/models/update_leaderboard_model.py +18 -3
- rapidata/api_client/models/update_leaderboard_name_model.py +5 -5
- rapidata/api_client/models/update_leaderboard_response_config_model.py +5 -5
- rapidata/api_client/models/update_order_name_model.py +5 -5
- rapidata/api_client/models/update_participant_model.py +92 -0
- rapidata/api_client/models/update_participant_name_model.py +5 -5
- rapidata/api_client/models/update_priority_model.py +87 -0
- rapidata/api_client/models/update_prompt_tags_model.py +5 -5
- rapidata/api_client/models/update_should_alert_model.py +4 -4
- rapidata/api_client/models/update_validation_rapid_model.py +35 -14
- rapidata/api_client/models/update_validation_rapid_model_context_asset.py +160 -0
- rapidata/api_client/models/update_validation_set_model.py +120 -0
- rapidata/api_client/models/upload_asset_result.py +102 -0
- rapidata/api_client/models/upload_file_from_url_result.py +87 -0
- rapidata/api_client/models/upload_file_result.py +87 -0
- rapidata/api_client/models/user_action_restriction.py +37 -0
- rapidata/api_client/models/user_action_restriction_filter.py +101 -0
- rapidata/api_client/models/validation_chance.py +20 -3
- rapidata/api_client/models/validation_problem_details.py +117 -0
- rapidata/api_client/models/validation_set_model.py +11 -16
- rapidata/api_client/models/validation_set_overview_model.py +2 -2
- rapidata/api_client/models/workflow_config_artifact_model_workflow_config.py +23 -9
- rapidata/api_client/models/workflow_state.py +2 -2
- rapidata/api_client/models/zip_entry_file_wrapper.py +33 -2
- rapidata/api_client/rest.py +2 -2
- rapidata/api_client_README.md +371 -326
- rapidata/rapidata_client/__init__.py +14 -11
- rapidata/rapidata_client/api/{rapidata_exception.py → rapidata_api_client.py} +119 -2
- rapidata/rapidata_client/audience/__init__.py +2 -0
- rapidata/rapidata_client/audience/audience_example_handler.py +168 -0
- rapidata/rapidata_client/audience/rapidata_audience.py +287 -0
- rapidata/rapidata_client/audience/rapidata_audience_manager.py +162 -0
- rapidata/rapidata_client/benchmark/_detail_mapper.py +11 -9
- rapidata/rapidata_client/benchmark/leaderboard/rapidata_leaderboard.py +98 -54
- rapidata/rapidata_client/benchmark/participant/_participant.py +57 -32
- rapidata/rapidata_client/benchmark/rapidata_benchmark.py +384 -246
- rapidata/rapidata_client/benchmark/rapidata_benchmark_manager.py +137 -81
- rapidata/rapidata_client/config/__init__.py +3 -0
- rapidata/rapidata_client/config/logger.py +135 -0
- rapidata/rapidata_client/config/logging_config.py +55 -0
- rapidata/rapidata_client/config/managed_print.py +6 -0
- rapidata/rapidata_client/config/order_config.py +14 -0
- rapidata/rapidata_client/config/rapidata_config.py +15 -10
- rapidata/rapidata_client/config/tracer.py +184 -0
- rapidata/rapidata_client/config/upload_config.py +64 -0
- rapidata/rapidata_client/datapoints/__init__.py +0 -3
- rapidata/rapidata_client/datapoints/_asset_uploader.py +184 -0
- rapidata/rapidata_client/datapoints/_datapoint.py +72 -176
- rapidata/rapidata_client/datapoints/_datapoint_uploader.py +47 -0
- rapidata/rapidata_client/datapoints/_datapoints_validator.py +70 -0
- rapidata/rapidata_client/datapoints/assets/__init__.py +0 -10
- rapidata/rapidata_client/datapoints/metadata/__init__.py +0 -2
- rapidata/rapidata_client/datapoints/metadata/_private_text_metadata.py +5 -6
- rapidata/rapidata_client/datapoints/metadata/_prompt_identifier_metadata.py +4 -5
- rapidata/rapidata_client/datapoints/metadata/_public_text_metadata.py +5 -6
- rapidata/rapidata_client/datapoints/metadata/_select_words_metadata.py +3 -4
- rapidata/rapidata_client/dataset/__init__.py +1 -0
- rapidata/rapidata_client/dataset/_rapidata_dataset.py +55 -0
- rapidata/rapidata_client/demographic/demographic_manager.py +44 -19
- rapidata/rapidata_client/exceptions/failed_upload_exception.py +10 -65
- rapidata/rapidata_client/filter/_backend_filter_mapper.py +134 -0
- rapidata/rapidata_client/filter/_base_filter.py +13 -8
- rapidata/rapidata_client/filter/age_filter.py +26 -10
- rapidata/rapidata_client/filter/and_filter.py +36 -11
- rapidata/rapidata_client/filter/campaign_filter.py +21 -10
- rapidata/rapidata_client/filter/country_filter.py +46 -12
- rapidata/rapidata_client/filter/custom_filter.py +25 -12
- rapidata/rapidata_client/filter/gender_filter.py +25 -10
- rapidata/rapidata_client/filter/language_filter.py +51 -21
- rapidata/rapidata_client/filter/models/age_group.py +14 -12
- rapidata/rapidata_client/filter/models/gender.py +12 -8
- rapidata/rapidata_client/filter/new_user_filter.py +14 -4
- rapidata/rapidata_client/filter/not_filter.py +35 -11
- rapidata/rapidata_client/filter/or_filter.py +36 -11
- rapidata/rapidata_client/filter/rapidata_filters.py +17 -23
- rapidata/rapidata_client/filter/response_count_filter.py +40 -14
- rapidata/rapidata_client/filter/user_score_filter.py +62 -24
- rapidata/rapidata_client/job/__init__.py +3 -0
- rapidata/rapidata_client/job/job_definition.py +110 -0
- rapidata/rapidata_client/job/job_manager.py +758 -0
- rapidata/rapidata_client/job/rapidata_job.py +326 -0
- rapidata/rapidata_client/order/__init__.py +2 -0
- rapidata/rapidata_client/order/_rapidata_order_builder.py +236 -196
- rapidata/rapidata_client/order/rapidata_order.py +271 -176
- rapidata/rapidata_client/order/rapidata_order_manager.py +520 -364
- rapidata/rapidata_client/rapidata_client.py +96 -29
- rapidata/rapidata_client/referee/__init__.py +1 -1
- rapidata/rapidata_client/referee/_base_referee.py +14 -3
- rapidata/rapidata_client/referee/_early_stopping_referee.py +32 -17
- rapidata/rapidata_client/referee/_naive_referee.py +24 -3
- rapidata/rapidata_client/results/__init__.py +3 -0
- rapidata/rapidata_client/{order → results}/rapidata_results.py +86 -63
- rapidata/rapidata_client/selection/_base_selection.py +9 -2
- rapidata/rapidata_client/selection/ab_test_selection.py +28 -20
- rapidata/rapidata_client/selection/capped_selection.py +23 -16
- rapidata/rapidata_client/selection/conditional_validation_selection.py +43 -24
- rapidata/rapidata_client/selection/demographic_selection.py +21 -6
- rapidata/rapidata_client/selection/effort_selection.py +20 -8
- rapidata/rapidata_client/selection/labeling_selection.py +21 -10
- rapidata/rapidata_client/selection/rapidata_selections.py +23 -14
- rapidata/rapidata_client/selection/shuffling_selection.py +21 -13
- rapidata/rapidata_client/selection/static_selection.py +19 -8
- rapidata/rapidata_client/selection/validation_selection.py +20 -4
- rapidata/rapidata_client/settings/__init__.py +2 -0
- rapidata/rapidata_client/settings/_rapidata_setting.py +22 -3
- rapidata/rapidata_client/settings/alert_on_fast_response.py +8 -5
- rapidata/rapidata_client/settings/allow_neither_both.py +3 -0
- rapidata/rapidata_client/settings/custom_setting.py +3 -2
- rapidata/rapidata_client/settings/free_text_minimum_characters.py +9 -4
- rapidata/rapidata_client/settings/models/translation_behaviour_options.py +3 -2
- rapidata/rapidata_client/settings/mute_video.py +15 -0
- rapidata/rapidata_client/settings/no_shuffle.py +4 -2
- rapidata/rapidata_client/settings/play_video_until_the_end.py +7 -4
- rapidata/rapidata_client/settings/rapidata_settings.py +22 -9
- rapidata/rapidata_client/settings/swap_context_instruction.py +20 -0
- rapidata/rapidata_client/settings/translation_behaviour.py +7 -5
- rapidata/rapidata_client/utils/__init__.py +3 -0
- rapidata/rapidata_client/utils/threaded_uploader.py +153 -0
- rapidata/rapidata_client/validation/__init__.py +2 -0
- rapidata/rapidata_client/validation/rapidata_validation_set.py +68 -21
- rapidata/rapidata_client/validation/rapids/__init__.py +2 -0
- rapidata/rapidata_client/validation/rapids/_validation_rapid_uploader.py +48 -0
- rapidata/rapidata_client/validation/rapids/box.py +37 -12
- rapidata/rapidata_client/validation/rapids/rapids.py +28 -109
- rapidata/rapidata_client/validation/rapids/rapids_manager.py +369 -211
- rapidata/rapidata_client/validation/validation_set_manager.py +417 -294
- rapidata/rapidata_client/workflow/__init__.py +2 -2
- rapidata/rapidata_client/workflow/_base_workflow.py +17 -26
- rapidata/rapidata_client/workflow/_classify_workflow.py +44 -17
- rapidata/rapidata_client/workflow/_compare_workflow.py +33 -14
- rapidata/rapidata_client/workflow/_draw_workflow.py +35 -13
- rapidata/rapidata_client/workflow/_evaluation_workflow.py +20 -6
- rapidata/rapidata_client/workflow/_free_text_workflow.py +34 -15
- rapidata/rapidata_client/workflow/_locate_workflow.py +35 -13
- rapidata/rapidata_client/workflow/_multi_ranking_workflow.py +90 -0
- rapidata/rapidata_client/workflow/_select_words_workflow.py +38 -32
- rapidata/rapidata_client/workflow/_timestamp_workflow.py +35 -13
- rapidata/service/__init__.py +0 -1
- rapidata/service/credential_manager.py +1 -1
- rapidata/service/openapi_service.py +99 -23
- rapidata/types/__init__.py +149 -0
- rapidata-3.0.0a8.dist-info/METADATA +32 -0
- rapidata-3.0.0a8.dist-info/RECORD +1083 -0
- {rapidata-2.37.0.dist-info → rapidata-3.0.0a8.dist-info}/WHEEL +1 -1
- rapidata/rapidata_client/country_codes/__init__.py +0 -1
- rapidata/rapidata_client/country_codes/country_codes.py +0 -19
- rapidata/rapidata_client/datapoints/assets/_base_asset.py +0 -11
- rapidata/rapidata_client/datapoints/assets/_media_asset.py +0 -318
- rapidata/rapidata_client/datapoints/assets/_multi_asset.py +0 -61
- rapidata/rapidata_client/datapoints/assets/_sessions.py +0 -40
- rapidata/rapidata_client/datapoints/assets/_text_asset.py +0 -34
- rapidata/rapidata_client/datapoints/assets/data_type_enum.py +0 -8
- rapidata/rapidata_client/datapoints/metadata/_media_asset_metadata.py +0 -22
- rapidata/rapidata_client/datapoints/metadata/_prompt_metadata.py +0 -18
- rapidata/rapidata_client/logging/__init__.py +0 -2
- rapidata/rapidata_client/logging/logger.py +0 -122
- rapidata/rapidata_client/logging/output_manager.py +0 -20
- rapidata/rapidata_client/order/_rapidata_dataset.py +0 -447
- rapidata/rapidata_client/workflow/_ranking_workflow.py +0 -71
- rapidata/service/local_file_service.py +0 -25
- rapidata-2.37.0.dist-info/METADATA +0 -35
- rapidata-2.37.0.dist-info/RECORD +0 -687
- {rapidata-2.37.0.dist-info → rapidata-3.0.0a8.dist-info/licenses}/LICENSE +0 -0
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
# coding: utf-8
|
|
2
2
|
|
|
3
3
|
"""
|
|
4
|
-
Rapidata
|
|
4
|
+
Rapidata Asset API
|
|
5
5
|
|
|
6
|
-
|
|
6
|
+
The API for the Rapidata Asset service
|
|
7
7
|
|
|
8
8
|
The version of the OpenAPI document: v1
|
|
9
9
|
Generated by OpenAPI Generator (https://openapi-generator.tech)
|
|
@@ -16,26 +16,20 @@ from pydantic import validate_call, Field, StrictFloat, StrictStr, StrictInt
|
|
|
16
16
|
from typing import Any, Dict, List, Optional, Tuple, Union
|
|
17
17
|
from typing_extensions import Annotated
|
|
18
18
|
|
|
19
|
-
from pydantic import Field, StrictStr
|
|
19
|
+
from pydantic import Field, StrictBool, StrictStr
|
|
20
20
|
from typing import List, Optional
|
|
21
21
|
from typing_extensions import Annotated
|
|
22
22
|
from rapidata.api_client.models.boost_leaderboard_model import BoostLeaderboardModel
|
|
23
|
-
from rapidata.api_client.models.create_benchmark_participant_model import CreateBenchmarkParticipantModel
|
|
24
|
-
from rapidata.api_client.models.create_benchmark_participant_result import CreateBenchmarkParticipantResult
|
|
25
23
|
from rapidata.api_client.models.create_leaderboard_model import CreateLeaderboardModel
|
|
26
24
|
from rapidata.api_client.models.create_leaderboard_result import CreateLeaderboardResult
|
|
27
25
|
from rapidata.api_client.models.get_leaderboard_by_id_result import GetLeaderboardByIdResult
|
|
28
26
|
from rapidata.api_client.models.get_standing_by_id_result import GetStandingByIdResult
|
|
29
|
-
from rapidata.api_client.models.
|
|
30
|
-
from rapidata.api_client.models.
|
|
27
|
+
from rapidata.api_client.models.paged_result_of_leaderboards_query_result import PagedResultOfLeaderboardsQueryResult
|
|
28
|
+
from rapidata.api_client.models.paged_result_of_runs_by_leaderboard_result import PagedResultOfRunsByLeaderboardResult
|
|
31
29
|
from rapidata.api_client.models.query_model import QueryModel
|
|
32
|
-
from rapidata.api_client.models.runs_by_leaderboard_result_paged_result import RunsByLeaderboardResultPagedResult
|
|
33
|
-
from rapidata.api_client.models.standing_by_leaderboard_paged_result import StandingByLeaderboardPagedResult
|
|
34
30
|
from rapidata.api_client.models.standings_by_leaderboard_result import StandingsByLeaderboardResult
|
|
35
31
|
from rapidata.api_client.models.submit_participant_result import SubmitParticipantResult
|
|
36
32
|
from rapidata.api_client.models.update_leaderboard_model import UpdateLeaderboardModel
|
|
37
|
-
from rapidata.api_client.models.update_leaderboard_name_model import UpdateLeaderboardNameModel
|
|
38
|
-
from rapidata.api_client.models.update_leaderboard_response_config_model import UpdateLeaderboardResponseConfigModel
|
|
39
33
|
|
|
40
34
|
from rapidata.api_client.api_client import ApiClient, RequestSerialized
|
|
41
35
|
from rapidata.api_client.api_response import ApiResponse
|
|
@@ -309,8 +303,9 @@ class LeaderboardApi:
|
|
|
309
303
|
|
|
310
304
|
# authentication setting
|
|
311
305
|
_auth_settings: List[str] = [
|
|
312
|
-
'
|
|
313
|
-
'
|
|
306
|
+
'OAuth2',
|
|
307
|
+
'OpenIdConnect',
|
|
308
|
+
'Bearer'
|
|
314
309
|
]
|
|
315
310
|
|
|
316
311
|
return self.api_client.param_serialize(
|
|
@@ -335,7 +330,7 @@ class LeaderboardApi:
|
|
|
335
330
|
def leaderboard_leaderboard_id_boost_post(
|
|
336
331
|
self,
|
|
337
332
|
leaderboard_id: Annotated[StrictStr, Field(description="the leaderboard that should be boosted")],
|
|
338
|
-
boost_leaderboard_model:
|
|
333
|
+
boost_leaderboard_model: BoostLeaderboardModel,
|
|
339
334
|
_request_timeout: Union[
|
|
340
335
|
None,
|
|
341
336
|
Annotated[StrictFloat, Field(gt=0)],
|
|
@@ -354,7 +349,7 @@ class LeaderboardApi:
|
|
|
354
349
|
|
|
355
350
|
:param leaderboard_id: the leaderboard that should be boosted (required)
|
|
356
351
|
:type leaderboard_id: str
|
|
357
|
-
:param boost_leaderboard_model:
|
|
352
|
+
:param boost_leaderboard_model: (required)
|
|
358
353
|
:type boost_leaderboard_model: BoostLeaderboardModel
|
|
359
354
|
:param _request_timeout: timeout setting for this request. If one
|
|
360
355
|
number provided, it will be total request
|
|
@@ -405,7 +400,7 @@ class LeaderboardApi:
|
|
|
405
400
|
def leaderboard_leaderboard_id_boost_post_with_http_info(
|
|
406
401
|
self,
|
|
407
402
|
leaderboard_id: Annotated[StrictStr, Field(description="the leaderboard that should be boosted")],
|
|
408
|
-
boost_leaderboard_model:
|
|
403
|
+
boost_leaderboard_model: BoostLeaderboardModel,
|
|
409
404
|
_request_timeout: Union[
|
|
410
405
|
None,
|
|
411
406
|
Annotated[StrictFloat, Field(gt=0)],
|
|
@@ -424,7 +419,7 @@ class LeaderboardApi:
|
|
|
424
419
|
|
|
425
420
|
:param leaderboard_id: the leaderboard that should be boosted (required)
|
|
426
421
|
:type leaderboard_id: str
|
|
427
|
-
:param boost_leaderboard_model:
|
|
422
|
+
:param boost_leaderboard_model: (required)
|
|
428
423
|
:type boost_leaderboard_model: BoostLeaderboardModel
|
|
429
424
|
:param _request_timeout: timeout setting for this request. If one
|
|
430
425
|
number provided, it will be total request
|
|
@@ -475,7 +470,7 @@ class LeaderboardApi:
|
|
|
475
470
|
def leaderboard_leaderboard_id_boost_post_without_preload_content(
|
|
476
471
|
self,
|
|
477
472
|
leaderboard_id: Annotated[StrictStr, Field(description="the leaderboard that should be boosted")],
|
|
478
|
-
boost_leaderboard_model:
|
|
473
|
+
boost_leaderboard_model: BoostLeaderboardModel,
|
|
479
474
|
_request_timeout: Union[
|
|
480
475
|
None,
|
|
481
476
|
Annotated[StrictFloat, Field(gt=0)],
|
|
@@ -494,7 +489,7 @@ class LeaderboardApi:
|
|
|
494
489
|
|
|
495
490
|
:param leaderboard_id: the leaderboard that should be boosted (required)
|
|
496
491
|
:type leaderboard_id: str
|
|
497
|
-
:param boost_leaderboard_model:
|
|
492
|
+
:param boost_leaderboard_model: (required)
|
|
498
493
|
:type boost_leaderboard_model: BoostLeaderboardModel
|
|
499
494
|
:param _request_timeout: timeout setting for this request. If one
|
|
500
495
|
number provided, it will be total request
|
|
@@ -600,8 +595,9 @@ class LeaderboardApi:
|
|
|
600
595
|
|
|
601
596
|
# authentication setting
|
|
602
597
|
_auth_settings: List[str] = [
|
|
603
|
-
'
|
|
604
|
-
'
|
|
598
|
+
'OAuth2',
|
|
599
|
+
'OpenIdConnect',
|
|
600
|
+
'Bearer'
|
|
605
601
|
]
|
|
606
602
|
|
|
607
603
|
return self.api_client.param_serialize(
|
|
@@ -852,8 +848,9 @@ class LeaderboardApi:
|
|
|
852
848
|
|
|
853
849
|
# authentication setting
|
|
854
850
|
_auth_settings: List[str] = [
|
|
855
|
-
'
|
|
856
|
-
'
|
|
851
|
+
'OAuth2',
|
|
852
|
+
'OpenIdConnect',
|
|
853
|
+
'Bearer'
|
|
857
854
|
]
|
|
858
855
|
|
|
859
856
|
return self.api_client.param_serialize(
|
|
@@ -1113,8 +1110,9 @@ class LeaderboardApi:
|
|
|
1113
1110
|
|
|
1114
1111
|
# authentication setting
|
|
1115
1112
|
_auth_settings: List[str] = [
|
|
1116
|
-
'
|
|
1117
|
-
'
|
|
1113
|
+
'OAuth2',
|
|
1114
|
+
'OpenIdConnect',
|
|
1115
|
+
'Bearer'
|
|
1118
1116
|
]
|
|
1119
1117
|
|
|
1120
1118
|
return self.api_client.param_serialize(
|
|
@@ -1136,2260 +1134,10 @@ class LeaderboardApi:
|
|
|
1136
1134
|
|
|
1137
1135
|
|
|
1138
1136
|
@validate_call
|
|
1139
|
-
def
|
|
1140
|
-
self,
|
|
1141
|
-
leaderboard_id: StrictStr,
|
|
1142
|
-
update_leaderboard_name_model: Optional[UpdateLeaderboardNameModel] = None,
|
|
1143
|
-
_request_timeout: Union[
|
|
1144
|
-
None,
|
|
1145
|
-
Annotated[StrictFloat, Field(gt=0)],
|
|
1146
|
-
Tuple[
|
|
1147
|
-
Annotated[StrictFloat, Field(gt=0)],
|
|
1148
|
-
Annotated[StrictFloat, Field(gt=0)]
|
|
1149
|
-
]
|
|
1150
|
-
] = None,
|
|
1151
|
-
_request_auth: Optional[Dict[StrictStr, Any]] = None,
|
|
1152
|
-
_content_type: Optional[StrictStr] = None,
|
|
1153
|
-
_headers: Optional[Dict[StrictStr, Any]] = None,
|
|
1154
|
-
_host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
|
|
1155
|
-
) -> None:
|
|
1156
|
-
"""(Deprecated) Updates the name of a leaderboard.
|
|
1157
|
-
|
|
1158
|
-
|
|
1159
|
-
:param leaderboard_id: (required)
|
|
1160
|
-
:type leaderboard_id: str
|
|
1161
|
-
:param update_leaderboard_name_model:
|
|
1162
|
-
:type update_leaderboard_name_model: UpdateLeaderboardNameModel
|
|
1163
|
-
:param _request_timeout: timeout setting for this request. If one
|
|
1164
|
-
number provided, it will be total request
|
|
1165
|
-
timeout. It can also be a pair (tuple) of
|
|
1166
|
-
(connection, read) timeouts.
|
|
1167
|
-
:type _request_timeout: int, tuple(int, int), optional
|
|
1168
|
-
:param _request_auth: set to override the auth_settings for an a single
|
|
1169
|
-
request; this effectively ignores the
|
|
1170
|
-
authentication in the spec for a single request.
|
|
1171
|
-
:type _request_auth: dict, optional
|
|
1172
|
-
:param _content_type: force content-type for the request.
|
|
1173
|
-
:type _content_type: str, Optional
|
|
1174
|
-
:param _headers: set to override the headers for a single
|
|
1175
|
-
request; this effectively ignores the headers
|
|
1176
|
-
in the spec for a single request.
|
|
1177
|
-
:type _headers: dict, optional
|
|
1178
|
-
:param _host_index: set to override the host_index for a single
|
|
1179
|
-
request; this effectively ignores the host_index
|
|
1180
|
-
in the spec for a single request.
|
|
1181
|
-
:type _host_index: int, optional
|
|
1182
|
-
:return: Returns the result object.
|
|
1183
|
-
""" # noqa: E501
|
|
1184
|
-
warnings.warn("PUT /leaderboard/{leaderboardId}/name is deprecated.", DeprecationWarning)
|
|
1185
|
-
|
|
1186
|
-
_param = self._leaderboard_leaderboard_id_name_put_serialize(
|
|
1187
|
-
leaderboard_id=leaderboard_id,
|
|
1188
|
-
update_leaderboard_name_model=update_leaderboard_name_model,
|
|
1189
|
-
_request_auth=_request_auth,
|
|
1190
|
-
_content_type=_content_type,
|
|
1191
|
-
_headers=_headers,
|
|
1192
|
-
_host_index=_host_index
|
|
1193
|
-
)
|
|
1194
|
-
|
|
1195
|
-
_response_types_map: Dict[str, Optional[str]] = {
|
|
1196
|
-
'204': None,
|
|
1197
|
-
}
|
|
1198
|
-
response_data = self.api_client.call_api(
|
|
1199
|
-
*_param,
|
|
1200
|
-
_request_timeout=_request_timeout
|
|
1201
|
-
)
|
|
1202
|
-
response_data.read()
|
|
1203
|
-
return self.api_client.response_deserialize(
|
|
1204
|
-
response_data=response_data,
|
|
1205
|
-
response_types_map=_response_types_map,
|
|
1206
|
-
).data
|
|
1207
|
-
|
|
1208
|
-
|
|
1209
|
-
@validate_call
|
|
1210
|
-
def leaderboard_leaderboard_id_name_put_with_http_info(
|
|
1211
|
-
self,
|
|
1212
|
-
leaderboard_id: StrictStr,
|
|
1213
|
-
update_leaderboard_name_model: Optional[UpdateLeaderboardNameModel] = None,
|
|
1214
|
-
_request_timeout: Union[
|
|
1215
|
-
None,
|
|
1216
|
-
Annotated[StrictFloat, Field(gt=0)],
|
|
1217
|
-
Tuple[
|
|
1218
|
-
Annotated[StrictFloat, Field(gt=0)],
|
|
1219
|
-
Annotated[StrictFloat, Field(gt=0)]
|
|
1220
|
-
]
|
|
1221
|
-
] = None,
|
|
1222
|
-
_request_auth: Optional[Dict[StrictStr, Any]] = None,
|
|
1223
|
-
_content_type: Optional[StrictStr] = None,
|
|
1224
|
-
_headers: Optional[Dict[StrictStr, Any]] = None,
|
|
1225
|
-
_host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
|
|
1226
|
-
) -> ApiResponse[None]:
|
|
1227
|
-
"""(Deprecated) Updates the name of a leaderboard.
|
|
1228
|
-
|
|
1229
|
-
|
|
1230
|
-
:param leaderboard_id: (required)
|
|
1231
|
-
:type leaderboard_id: str
|
|
1232
|
-
:param update_leaderboard_name_model:
|
|
1233
|
-
:type update_leaderboard_name_model: UpdateLeaderboardNameModel
|
|
1234
|
-
:param _request_timeout: timeout setting for this request. If one
|
|
1235
|
-
number provided, it will be total request
|
|
1236
|
-
timeout. It can also be a pair (tuple) of
|
|
1237
|
-
(connection, read) timeouts.
|
|
1238
|
-
:type _request_timeout: int, tuple(int, int), optional
|
|
1239
|
-
:param _request_auth: set to override the auth_settings for an a single
|
|
1240
|
-
request; this effectively ignores the
|
|
1241
|
-
authentication in the spec for a single request.
|
|
1242
|
-
:type _request_auth: dict, optional
|
|
1243
|
-
:param _content_type: force content-type for the request.
|
|
1244
|
-
:type _content_type: str, Optional
|
|
1245
|
-
:param _headers: set to override the headers for a single
|
|
1246
|
-
request; this effectively ignores the headers
|
|
1247
|
-
in the spec for a single request.
|
|
1248
|
-
:type _headers: dict, optional
|
|
1249
|
-
:param _host_index: set to override the host_index for a single
|
|
1250
|
-
request; this effectively ignores the host_index
|
|
1251
|
-
in the spec for a single request.
|
|
1252
|
-
:type _host_index: int, optional
|
|
1253
|
-
:return: Returns the result object.
|
|
1254
|
-
""" # noqa: E501
|
|
1255
|
-
warnings.warn("PUT /leaderboard/{leaderboardId}/name is deprecated.", DeprecationWarning)
|
|
1256
|
-
|
|
1257
|
-
_param = self._leaderboard_leaderboard_id_name_put_serialize(
|
|
1258
|
-
leaderboard_id=leaderboard_id,
|
|
1259
|
-
update_leaderboard_name_model=update_leaderboard_name_model,
|
|
1260
|
-
_request_auth=_request_auth,
|
|
1261
|
-
_content_type=_content_type,
|
|
1262
|
-
_headers=_headers,
|
|
1263
|
-
_host_index=_host_index
|
|
1264
|
-
)
|
|
1265
|
-
|
|
1266
|
-
_response_types_map: Dict[str, Optional[str]] = {
|
|
1267
|
-
'204': None,
|
|
1268
|
-
}
|
|
1269
|
-
response_data = self.api_client.call_api(
|
|
1270
|
-
*_param,
|
|
1271
|
-
_request_timeout=_request_timeout
|
|
1272
|
-
)
|
|
1273
|
-
response_data.read()
|
|
1274
|
-
return self.api_client.response_deserialize(
|
|
1275
|
-
response_data=response_data,
|
|
1276
|
-
response_types_map=_response_types_map,
|
|
1277
|
-
)
|
|
1278
|
-
|
|
1279
|
-
|
|
1280
|
-
@validate_call
|
|
1281
|
-
def leaderboard_leaderboard_id_name_put_without_preload_content(
|
|
1282
|
-
self,
|
|
1283
|
-
leaderboard_id: StrictStr,
|
|
1284
|
-
update_leaderboard_name_model: Optional[UpdateLeaderboardNameModel] = None,
|
|
1285
|
-
_request_timeout: Union[
|
|
1286
|
-
None,
|
|
1287
|
-
Annotated[StrictFloat, Field(gt=0)],
|
|
1288
|
-
Tuple[
|
|
1289
|
-
Annotated[StrictFloat, Field(gt=0)],
|
|
1290
|
-
Annotated[StrictFloat, Field(gt=0)]
|
|
1291
|
-
]
|
|
1292
|
-
] = None,
|
|
1293
|
-
_request_auth: Optional[Dict[StrictStr, Any]] = None,
|
|
1294
|
-
_content_type: Optional[StrictStr] = None,
|
|
1295
|
-
_headers: Optional[Dict[StrictStr, Any]] = None,
|
|
1296
|
-
_host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
|
|
1297
|
-
) -> RESTResponseType:
|
|
1298
|
-
"""(Deprecated) Updates the name of a leaderboard.
|
|
1299
|
-
|
|
1300
|
-
|
|
1301
|
-
:param leaderboard_id: (required)
|
|
1302
|
-
:type leaderboard_id: str
|
|
1303
|
-
:param update_leaderboard_name_model:
|
|
1304
|
-
:type update_leaderboard_name_model: UpdateLeaderboardNameModel
|
|
1305
|
-
:param _request_timeout: timeout setting for this request. If one
|
|
1306
|
-
number provided, it will be total request
|
|
1307
|
-
timeout. It can also be a pair (tuple) of
|
|
1308
|
-
(connection, read) timeouts.
|
|
1309
|
-
:type _request_timeout: int, tuple(int, int), optional
|
|
1310
|
-
:param _request_auth: set to override the auth_settings for an a single
|
|
1311
|
-
request; this effectively ignores the
|
|
1312
|
-
authentication in the spec for a single request.
|
|
1313
|
-
:type _request_auth: dict, optional
|
|
1314
|
-
:param _content_type: force content-type for the request.
|
|
1315
|
-
:type _content_type: str, Optional
|
|
1316
|
-
:param _headers: set to override the headers for a single
|
|
1317
|
-
request; this effectively ignores the headers
|
|
1318
|
-
in the spec for a single request.
|
|
1319
|
-
:type _headers: dict, optional
|
|
1320
|
-
:param _host_index: set to override the host_index for a single
|
|
1321
|
-
request; this effectively ignores the host_index
|
|
1322
|
-
in the spec for a single request.
|
|
1323
|
-
:type _host_index: int, optional
|
|
1324
|
-
:return: Returns the result object.
|
|
1325
|
-
""" # noqa: E501
|
|
1326
|
-
warnings.warn("PUT /leaderboard/{leaderboardId}/name is deprecated.", DeprecationWarning)
|
|
1327
|
-
|
|
1328
|
-
_param = self._leaderboard_leaderboard_id_name_put_serialize(
|
|
1329
|
-
leaderboard_id=leaderboard_id,
|
|
1330
|
-
update_leaderboard_name_model=update_leaderboard_name_model,
|
|
1331
|
-
_request_auth=_request_auth,
|
|
1332
|
-
_content_type=_content_type,
|
|
1333
|
-
_headers=_headers,
|
|
1334
|
-
_host_index=_host_index
|
|
1335
|
-
)
|
|
1336
|
-
|
|
1337
|
-
_response_types_map: Dict[str, Optional[str]] = {
|
|
1338
|
-
'204': None,
|
|
1339
|
-
}
|
|
1340
|
-
response_data = self.api_client.call_api(
|
|
1341
|
-
*_param,
|
|
1342
|
-
_request_timeout=_request_timeout
|
|
1343
|
-
)
|
|
1344
|
-
return response_data.response
|
|
1345
|
-
|
|
1346
|
-
|
|
1347
|
-
def _leaderboard_leaderboard_id_name_put_serialize(
|
|
1348
|
-
self,
|
|
1349
|
-
leaderboard_id,
|
|
1350
|
-
update_leaderboard_name_model,
|
|
1351
|
-
_request_auth,
|
|
1352
|
-
_content_type,
|
|
1353
|
-
_headers,
|
|
1354
|
-
_host_index,
|
|
1355
|
-
) -> RequestSerialized:
|
|
1356
|
-
|
|
1357
|
-
_host = None
|
|
1358
|
-
|
|
1359
|
-
_collection_formats: Dict[str, str] = {
|
|
1360
|
-
}
|
|
1361
|
-
|
|
1362
|
-
_path_params: Dict[str, str] = {}
|
|
1363
|
-
_query_params: List[Tuple[str, str]] = []
|
|
1364
|
-
_header_params: Dict[str, Optional[str]] = _headers or {}
|
|
1365
|
-
_form_params: List[Tuple[str, str]] = []
|
|
1366
|
-
_files: Dict[
|
|
1367
|
-
str, Union[str, bytes, List[str], List[bytes], List[Tuple[str, bytes]]]
|
|
1368
|
-
] = {}
|
|
1369
|
-
_body_params: Optional[bytes] = None
|
|
1370
|
-
|
|
1371
|
-
# process the path parameters
|
|
1372
|
-
if leaderboard_id is not None:
|
|
1373
|
-
_path_params['leaderboardId'] = leaderboard_id
|
|
1374
|
-
# process the query parameters
|
|
1375
|
-
# process the header parameters
|
|
1376
|
-
# process the form parameters
|
|
1377
|
-
# process the body parameter
|
|
1378
|
-
if update_leaderboard_name_model is not None:
|
|
1379
|
-
_body_params = update_leaderboard_name_model
|
|
1380
|
-
|
|
1381
|
-
|
|
1382
|
-
|
|
1383
|
-
# set the HTTP header `Content-Type`
|
|
1384
|
-
if _content_type:
|
|
1385
|
-
_header_params['Content-Type'] = _content_type
|
|
1386
|
-
else:
|
|
1387
|
-
_default_content_type = (
|
|
1388
|
-
self.api_client.select_header_content_type(
|
|
1389
|
-
[
|
|
1390
|
-
'application/json',
|
|
1391
|
-
'text/json',
|
|
1392
|
-
'application/*+json'
|
|
1393
|
-
]
|
|
1394
|
-
)
|
|
1395
|
-
)
|
|
1396
|
-
if _default_content_type is not None:
|
|
1397
|
-
_header_params['Content-Type'] = _default_content_type
|
|
1398
|
-
|
|
1399
|
-
# authentication setting
|
|
1400
|
-
_auth_settings: List[str] = [
|
|
1401
|
-
'bearer',
|
|
1402
|
-
'oauth2'
|
|
1403
|
-
]
|
|
1404
|
-
|
|
1405
|
-
return self.api_client.param_serialize(
|
|
1406
|
-
method='PUT',
|
|
1407
|
-
resource_path='/leaderboard/{leaderboardId}/name',
|
|
1408
|
-
path_params=_path_params,
|
|
1409
|
-
query_params=_query_params,
|
|
1410
|
-
header_params=_header_params,
|
|
1411
|
-
body=_body_params,
|
|
1412
|
-
post_params=_form_params,
|
|
1413
|
-
files=_files,
|
|
1414
|
-
auth_settings=_auth_settings,
|
|
1415
|
-
collection_formats=_collection_formats,
|
|
1416
|
-
_host=_host,
|
|
1417
|
-
_request_auth=_request_auth
|
|
1418
|
-
)
|
|
1419
|
-
|
|
1420
|
-
|
|
1421
|
-
|
|
1422
|
-
|
|
1423
|
-
@validate_call
|
|
1424
|
-
def leaderboard_leaderboard_id_participant_participant_id_get(
|
|
1425
|
-
self,
|
|
1426
|
-
leaderboard_id: StrictStr,
|
|
1427
|
-
participant_id: StrictStr,
|
|
1428
|
-
_request_timeout: Union[
|
|
1429
|
-
None,
|
|
1430
|
-
Annotated[StrictFloat, Field(gt=0)],
|
|
1431
|
-
Tuple[
|
|
1432
|
-
Annotated[StrictFloat, Field(gt=0)],
|
|
1433
|
-
Annotated[StrictFloat, Field(gt=0)]
|
|
1434
|
-
]
|
|
1435
|
-
] = None,
|
|
1436
|
-
_request_auth: Optional[Dict[StrictStr, Any]] = None,
|
|
1437
|
-
_content_type: Optional[StrictStr] = None,
|
|
1438
|
-
_headers: Optional[Dict[StrictStr, Any]] = None,
|
|
1439
|
-
_host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
|
|
1440
|
-
) -> GetStandingByIdResult:
|
|
1441
|
-
"""(Deprecated) Gets a participant by its ID.
|
|
1442
|
-
|
|
1443
|
-
|
|
1444
|
-
:param leaderboard_id: (required)
|
|
1445
|
-
:type leaderboard_id: str
|
|
1446
|
-
:param participant_id: (required)
|
|
1447
|
-
:type participant_id: str
|
|
1448
|
-
:param _request_timeout: timeout setting for this request. If one
|
|
1449
|
-
number provided, it will be total request
|
|
1450
|
-
timeout. It can also be a pair (tuple) of
|
|
1451
|
-
(connection, read) timeouts.
|
|
1452
|
-
:type _request_timeout: int, tuple(int, int), optional
|
|
1453
|
-
:param _request_auth: set to override the auth_settings for an a single
|
|
1454
|
-
request; this effectively ignores the
|
|
1455
|
-
authentication in the spec for a single request.
|
|
1456
|
-
:type _request_auth: dict, optional
|
|
1457
|
-
:param _content_type: force content-type for the request.
|
|
1458
|
-
:type _content_type: str, Optional
|
|
1459
|
-
:param _headers: set to override the headers for a single
|
|
1460
|
-
request; this effectively ignores the headers
|
|
1461
|
-
in the spec for a single request.
|
|
1462
|
-
:type _headers: dict, optional
|
|
1463
|
-
:param _host_index: set to override the host_index for a single
|
|
1464
|
-
request; this effectively ignores the host_index
|
|
1465
|
-
in the spec for a single request.
|
|
1466
|
-
:type _host_index: int, optional
|
|
1467
|
-
:return: Returns the result object.
|
|
1468
|
-
""" # noqa: E501
|
|
1469
|
-
warnings.warn("GET /leaderboard/{leaderboardId}/participant/{participantId} is deprecated.", DeprecationWarning)
|
|
1470
|
-
|
|
1471
|
-
_param = self._leaderboard_leaderboard_id_participant_participant_id_get_serialize(
|
|
1472
|
-
leaderboard_id=leaderboard_id,
|
|
1473
|
-
participant_id=participant_id,
|
|
1474
|
-
_request_auth=_request_auth,
|
|
1475
|
-
_content_type=_content_type,
|
|
1476
|
-
_headers=_headers,
|
|
1477
|
-
_host_index=_host_index
|
|
1478
|
-
)
|
|
1479
|
-
|
|
1480
|
-
_response_types_map: Dict[str, Optional[str]] = {
|
|
1481
|
-
'200': "GetStandingByIdResult",
|
|
1482
|
-
}
|
|
1483
|
-
response_data = self.api_client.call_api(
|
|
1484
|
-
*_param,
|
|
1485
|
-
_request_timeout=_request_timeout
|
|
1486
|
-
)
|
|
1487
|
-
response_data.read()
|
|
1488
|
-
return self.api_client.response_deserialize(
|
|
1489
|
-
response_data=response_data,
|
|
1490
|
-
response_types_map=_response_types_map,
|
|
1491
|
-
).data
|
|
1492
|
-
|
|
1493
|
-
|
|
1494
|
-
@validate_call
|
|
1495
|
-
def leaderboard_leaderboard_id_participant_participant_id_get_with_http_info(
|
|
1496
|
-
self,
|
|
1497
|
-
leaderboard_id: StrictStr,
|
|
1498
|
-
participant_id: StrictStr,
|
|
1499
|
-
_request_timeout: Union[
|
|
1500
|
-
None,
|
|
1501
|
-
Annotated[StrictFloat, Field(gt=0)],
|
|
1502
|
-
Tuple[
|
|
1503
|
-
Annotated[StrictFloat, Field(gt=0)],
|
|
1504
|
-
Annotated[StrictFloat, Field(gt=0)]
|
|
1505
|
-
]
|
|
1506
|
-
] = None,
|
|
1507
|
-
_request_auth: Optional[Dict[StrictStr, Any]] = None,
|
|
1508
|
-
_content_type: Optional[StrictStr] = None,
|
|
1509
|
-
_headers: Optional[Dict[StrictStr, Any]] = None,
|
|
1510
|
-
_host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
|
|
1511
|
-
) -> ApiResponse[GetStandingByIdResult]:
|
|
1512
|
-
"""(Deprecated) Gets a participant by its ID.
|
|
1513
|
-
|
|
1514
|
-
|
|
1515
|
-
:param leaderboard_id: (required)
|
|
1516
|
-
:type leaderboard_id: str
|
|
1517
|
-
:param participant_id: (required)
|
|
1518
|
-
:type participant_id: str
|
|
1519
|
-
:param _request_timeout: timeout setting for this request. If one
|
|
1520
|
-
number provided, it will be total request
|
|
1521
|
-
timeout. It can also be a pair (tuple) of
|
|
1522
|
-
(connection, read) timeouts.
|
|
1523
|
-
:type _request_timeout: int, tuple(int, int), optional
|
|
1524
|
-
:param _request_auth: set to override the auth_settings for an a single
|
|
1525
|
-
request; this effectively ignores the
|
|
1526
|
-
authentication in the spec for a single request.
|
|
1527
|
-
:type _request_auth: dict, optional
|
|
1528
|
-
:param _content_type: force content-type for the request.
|
|
1529
|
-
:type _content_type: str, Optional
|
|
1530
|
-
:param _headers: set to override the headers for a single
|
|
1531
|
-
request; this effectively ignores the headers
|
|
1532
|
-
in the spec for a single request.
|
|
1533
|
-
:type _headers: dict, optional
|
|
1534
|
-
:param _host_index: set to override the host_index for a single
|
|
1535
|
-
request; this effectively ignores the host_index
|
|
1536
|
-
in the spec for a single request.
|
|
1537
|
-
:type _host_index: int, optional
|
|
1538
|
-
:return: Returns the result object.
|
|
1539
|
-
""" # noqa: E501
|
|
1540
|
-
warnings.warn("GET /leaderboard/{leaderboardId}/participant/{participantId} is deprecated.", DeprecationWarning)
|
|
1541
|
-
|
|
1542
|
-
_param = self._leaderboard_leaderboard_id_participant_participant_id_get_serialize(
|
|
1543
|
-
leaderboard_id=leaderboard_id,
|
|
1544
|
-
participant_id=participant_id,
|
|
1545
|
-
_request_auth=_request_auth,
|
|
1546
|
-
_content_type=_content_type,
|
|
1547
|
-
_headers=_headers,
|
|
1548
|
-
_host_index=_host_index
|
|
1549
|
-
)
|
|
1550
|
-
|
|
1551
|
-
_response_types_map: Dict[str, Optional[str]] = {
|
|
1552
|
-
'200': "GetStandingByIdResult",
|
|
1553
|
-
}
|
|
1554
|
-
response_data = self.api_client.call_api(
|
|
1555
|
-
*_param,
|
|
1556
|
-
_request_timeout=_request_timeout
|
|
1557
|
-
)
|
|
1558
|
-
response_data.read()
|
|
1559
|
-
return self.api_client.response_deserialize(
|
|
1560
|
-
response_data=response_data,
|
|
1561
|
-
response_types_map=_response_types_map,
|
|
1562
|
-
)
|
|
1563
|
-
|
|
1564
|
-
|
|
1565
|
-
@validate_call
|
|
1566
|
-
def leaderboard_leaderboard_id_participant_participant_id_get_without_preload_content(
|
|
1567
|
-
self,
|
|
1568
|
-
leaderboard_id: StrictStr,
|
|
1569
|
-
participant_id: StrictStr,
|
|
1570
|
-
_request_timeout: Union[
|
|
1571
|
-
None,
|
|
1572
|
-
Annotated[StrictFloat, Field(gt=0)],
|
|
1573
|
-
Tuple[
|
|
1574
|
-
Annotated[StrictFloat, Field(gt=0)],
|
|
1575
|
-
Annotated[StrictFloat, Field(gt=0)]
|
|
1576
|
-
]
|
|
1577
|
-
] = None,
|
|
1578
|
-
_request_auth: Optional[Dict[StrictStr, Any]] = None,
|
|
1579
|
-
_content_type: Optional[StrictStr] = None,
|
|
1580
|
-
_headers: Optional[Dict[StrictStr, Any]] = None,
|
|
1581
|
-
_host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
|
|
1582
|
-
) -> RESTResponseType:
|
|
1583
|
-
"""(Deprecated) Gets a participant by its ID.
|
|
1584
|
-
|
|
1585
|
-
|
|
1586
|
-
:param leaderboard_id: (required)
|
|
1587
|
-
:type leaderboard_id: str
|
|
1588
|
-
:param participant_id: (required)
|
|
1589
|
-
:type participant_id: str
|
|
1590
|
-
:param _request_timeout: timeout setting for this request. If one
|
|
1591
|
-
number provided, it will be total request
|
|
1592
|
-
timeout. It can also be a pair (tuple) of
|
|
1593
|
-
(connection, read) timeouts.
|
|
1594
|
-
:type _request_timeout: int, tuple(int, int), optional
|
|
1595
|
-
:param _request_auth: set to override the auth_settings for an a single
|
|
1596
|
-
request; this effectively ignores the
|
|
1597
|
-
authentication in the spec for a single request.
|
|
1598
|
-
:type _request_auth: dict, optional
|
|
1599
|
-
:param _content_type: force content-type for the request.
|
|
1600
|
-
:type _content_type: str, Optional
|
|
1601
|
-
:param _headers: set to override the headers for a single
|
|
1602
|
-
request; this effectively ignores the headers
|
|
1603
|
-
in the spec for a single request.
|
|
1604
|
-
:type _headers: dict, optional
|
|
1605
|
-
:param _host_index: set to override the host_index for a single
|
|
1606
|
-
request; this effectively ignores the host_index
|
|
1607
|
-
in the spec for a single request.
|
|
1608
|
-
:type _host_index: int, optional
|
|
1609
|
-
:return: Returns the result object.
|
|
1610
|
-
""" # noqa: E501
|
|
1611
|
-
warnings.warn("GET /leaderboard/{leaderboardId}/participant/{participantId} is deprecated.", DeprecationWarning)
|
|
1612
|
-
|
|
1613
|
-
_param = self._leaderboard_leaderboard_id_participant_participant_id_get_serialize(
|
|
1614
|
-
leaderboard_id=leaderboard_id,
|
|
1615
|
-
participant_id=participant_id,
|
|
1616
|
-
_request_auth=_request_auth,
|
|
1617
|
-
_content_type=_content_type,
|
|
1618
|
-
_headers=_headers,
|
|
1619
|
-
_host_index=_host_index
|
|
1620
|
-
)
|
|
1621
|
-
|
|
1622
|
-
_response_types_map: Dict[str, Optional[str]] = {
|
|
1623
|
-
'200': "GetStandingByIdResult",
|
|
1624
|
-
}
|
|
1625
|
-
response_data = self.api_client.call_api(
|
|
1626
|
-
*_param,
|
|
1627
|
-
_request_timeout=_request_timeout
|
|
1628
|
-
)
|
|
1629
|
-
return response_data.response
|
|
1630
|
-
|
|
1631
|
-
|
|
1632
|
-
def _leaderboard_leaderboard_id_participant_participant_id_get_serialize(
|
|
1633
|
-
self,
|
|
1634
|
-
leaderboard_id,
|
|
1635
|
-
participant_id,
|
|
1636
|
-
_request_auth,
|
|
1637
|
-
_content_type,
|
|
1638
|
-
_headers,
|
|
1639
|
-
_host_index,
|
|
1640
|
-
) -> RequestSerialized:
|
|
1641
|
-
|
|
1642
|
-
_host = None
|
|
1643
|
-
|
|
1644
|
-
_collection_formats: Dict[str, str] = {
|
|
1645
|
-
}
|
|
1646
|
-
|
|
1647
|
-
_path_params: Dict[str, str] = {}
|
|
1648
|
-
_query_params: List[Tuple[str, str]] = []
|
|
1649
|
-
_header_params: Dict[str, Optional[str]] = _headers or {}
|
|
1650
|
-
_form_params: List[Tuple[str, str]] = []
|
|
1651
|
-
_files: Dict[
|
|
1652
|
-
str, Union[str, bytes, List[str], List[bytes], List[Tuple[str, bytes]]]
|
|
1653
|
-
] = {}
|
|
1654
|
-
_body_params: Optional[bytes] = None
|
|
1655
|
-
|
|
1656
|
-
# process the path parameters
|
|
1657
|
-
if leaderboard_id is not None:
|
|
1658
|
-
_path_params['leaderboardId'] = leaderboard_id
|
|
1659
|
-
if participant_id is not None:
|
|
1660
|
-
_path_params['participantId'] = participant_id
|
|
1661
|
-
# process the query parameters
|
|
1662
|
-
# process the header parameters
|
|
1663
|
-
# process the form parameters
|
|
1664
|
-
# process the body parameter
|
|
1665
|
-
|
|
1666
|
-
|
|
1667
|
-
# set the HTTP header `Accept`
|
|
1668
|
-
if 'Accept' not in _header_params:
|
|
1669
|
-
_header_params['Accept'] = self.api_client.select_header_accept(
|
|
1670
|
-
[
|
|
1671
|
-
'text/plain',
|
|
1672
|
-
'application/json',
|
|
1673
|
-
'text/json'
|
|
1674
|
-
]
|
|
1675
|
-
)
|
|
1676
|
-
|
|
1677
|
-
|
|
1678
|
-
# authentication setting
|
|
1679
|
-
_auth_settings: List[str] = [
|
|
1680
|
-
'bearer',
|
|
1681
|
-
'oauth2'
|
|
1682
|
-
]
|
|
1683
|
-
|
|
1684
|
-
return self.api_client.param_serialize(
|
|
1685
|
-
method='GET',
|
|
1686
|
-
resource_path='/leaderboard/{leaderboardId}/participant/{participantId}',
|
|
1687
|
-
path_params=_path_params,
|
|
1688
|
-
query_params=_query_params,
|
|
1689
|
-
header_params=_header_params,
|
|
1690
|
-
body=_body_params,
|
|
1691
|
-
post_params=_form_params,
|
|
1692
|
-
files=_files,
|
|
1693
|
-
auth_settings=_auth_settings,
|
|
1694
|
-
collection_formats=_collection_formats,
|
|
1695
|
-
_host=_host,
|
|
1696
|
-
_request_auth=_request_auth
|
|
1697
|
-
)
|
|
1698
|
-
|
|
1699
|
-
|
|
1700
|
-
|
|
1701
|
-
|
|
1702
|
-
@validate_call
|
|
1703
|
-
def leaderboard_leaderboard_id_participants_get(
|
|
1704
|
-
self,
|
|
1705
|
-
leaderboard_id: StrictStr,
|
|
1706
|
-
_request_timeout: Union[
|
|
1707
|
-
None,
|
|
1708
|
-
Annotated[StrictFloat, Field(gt=0)],
|
|
1709
|
-
Tuple[
|
|
1710
|
-
Annotated[StrictFloat, Field(gt=0)],
|
|
1711
|
-
Annotated[StrictFloat, Field(gt=0)]
|
|
1712
|
-
]
|
|
1713
|
-
] = None,
|
|
1714
|
-
_request_auth: Optional[Dict[StrictStr, Any]] = None,
|
|
1715
|
-
_content_type: Optional[StrictStr] = None,
|
|
1716
|
-
_headers: Optional[Dict[StrictStr, Any]] = None,
|
|
1717
|
-
_host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
|
|
1718
|
-
) -> StandingByLeaderboardPagedResult:
|
|
1719
|
-
"""(Deprecated) queries all the participants connected to leaderboard by its ID.
|
|
1720
|
-
|
|
1721
|
-
|
|
1722
|
-
:param leaderboard_id: (required)
|
|
1723
|
-
:type leaderboard_id: str
|
|
1724
|
-
:param _request_timeout: timeout setting for this request. If one
|
|
1725
|
-
number provided, it will be total request
|
|
1726
|
-
timeout. It can also be a pair (tuple) of
|
|
1727
|
-
(connection, read) timeouts.
|
|
1728
|
-
:type _request_timeout: int, tuple(int, int), optional
|
|
1729
|
-
:param _request_auth: set to override the auth_settings for an a single
|
|
1730
|
-
request; this effectively ignores the
|
|
1731
|
-
authentication in the spec for a single request.
|
|
1732
|
-
:type _request_auth: dict, optional
|
|
1733
|
-
:param _content_type: force content-type for the request.
|
|
1734
|
-
:type _content_type: str, Optional
|
|
1735
|
-
:param _headers: set to override the headers for a single
|
|
1736
|
-
request; this effectively ignores the headers
|
|
1737
|
-
in the spec for a single request.
|
|
1738
|
-
:type _headers: dict, optional
|
|
1739
|
-
:param _host_index: set to override the host_index for a single
|
|
1740
|
-
request; this effectively ignores the host_index
|
|
1741
|
-
in the spec for a single request.
|
|
1742
|
-
:type _host_index: int, optional
|
|
1743
|
-
:return: Returns the result object.
|
|
1744
|
-
""" # noqa: E501
|
|
1745
|
-
warnings.warn("GET /leaderboard/{leaderboardId}/participants is deprecated.", DeprecationWarning)
|
|
1746
|
-
|
|
1747
|
-
_param = self._leaderboard_leaderboard_id_participants_get_serialize(
|
|
1748
|
-
leaderboard_id=leaderboard_id,
|
|
1749
|
-
_request_auth=_request_auth,
|
|
1750
|
-
_content_type=_content_type,
|
|
1751
|
-
_headers=_headers,
|
|
1752
|
-
_host_index=_host_index
|
|
1753
|
-
)
|
|
1754
|
-
|
|
1755
|
-
_response_types_map: Dict[str, Optional[str]] = {
|
|
1756
|
-
'200': "StandingByLeaderboardPagedResult",
|
|
1757
|
-
}
|
|
1758
|
-
response_data = self.api_client.call_api(
|
|
1759
|
-
*_param,
|
|
1760
|
-
_request_timeout=_request_timeout
|
|
1761
|
-
)
|
|
1762
|
-
response_data.read()
|
|
1763
|
-
return self.api_client.response_deserialize(
|
|
1764
|
-
response_data=response_data,
|
|
1765
|
-
response_types_map=_response_types_map,
|
|
1766
|
-
).data
|
|
1767
|
-
|
|
1768
|
-
|
|
1769
|
-
@validate_call
|
|
1770
|
-
def leaderboard_leaderboard_id_participants_get_with_http_info(
|
|
1771
|
-
self,
|
|
1772
|
-
leaderboard_id: StrictStr,
|
|
1773
|
-
_request_timeout: Union[
|
|
1774
|
-
None,
|
|
1775
|
-
Annotated[StrictFloat, Field(gt=0)],
|
|
1776
|
-
Tuple[
|
|
1777
|
-
Annotated[StrictFloat, Field(gt=0)],
|
|
1778
|
-
Annotated[StrictFloat, Field(gt=0)]
|
|
1779
|
-
]
|
|
1780
|
-
] = None,
|
|
1781
|
-
_request_auth: Optional[Dict[StrictStr, Any]] = None,
|
|
1782
|
-
_content_type: Optional[StrictStr] = None,
|
|
1783
|
-
_headers: Optional[Dict[StrictStr, Any]] = None,
|
|
1784
|
-
_host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
|
|
1785
|
-
) -> ApiResponse[StandingByLeaderboardPagedResult]:
|
|
1786
|
-
"""(Deprecated) queries all the participants connected to leaderboard by its ID.
|
|
1787
|
-
|
|
1788
|
-
|
|
1789
|
-
:param leaderboard_id: (required)
|
|
1790
|
-
:type leaderboard_id: str
|
|
1791
|
-
:param _request_timeout: timeout setting for this request. If one
|
|
1792
|
-
number provided, it will be total request
|
|
1793
|
-
timeout. It can also be a pair (tuple) of
|
|
1794
|
-
(connection, read) timeouts.
|
|
1795
|
-
:type _request_timeout: int, tuple(int, int), optional
|
|
1796
|
-
:param _request_auth: set to override the auth_settings for an a single
|
|
1797
|
-
request; this effectively ignores the
|
|
1798
|
-
authentication in the spec for a single request.
|
|
1799
|
-
:type _request_auth: dict, optional
|
|
1800
|
-
:param _content_type: force content-type for the request.
|
|
1801
|
-
:type _content_type: str, Optional
|
|
1802
|
-
:param _headers: set to override the headers for a single
|
|
1803
|
-
request; this effectively ignores the headers
|
|
1804
|
-
in the spec for a single request.
|
|
1805
|
-
:type _headers: dict, optional
|
|
1806
|
-
:param _host_index: set to override the host_index for a single
|
|
1807
|
-
request; this effectively ignores the host_index
|
|
1808
|
-
in the spec for a single request.
|
|
1809
|
-
:type _host_index: int, optional
|
|
1810
|
-
:return: Returns the result object.
|
|
1811
|
-
""" # noqa: E501
|
|
1812
|
-
warnings.warn("GET /leaderboard/{leaderboardId}/participants is deprecated.", DeprecationWarning)
|
|
1813
|
-
|
|
1814
|
-
_param = self._leaderboard_leaderboard_id_participants_get_serialize(
|
|
1815
|
-
leaderboard_id=leaderboard_id,
|
|
1816
|
-
_request_auth=_request_auth,
|
|
1817
|
-
_content_type=_content_type,
|
|
1818
|
-
_headers=_headers,
|
|
1819
|
-
_host_index=_host_index
|
|
1820
|
-
)
|
|
1821
|
-
|
|
1822
|
-
_response_types_map: Dict[str, Optional[str]] = {
|
|
1823
|
-
'200': "StandingByLeaderboardPagedResult",
|
|
1824
|
-
}
|
|
1825
|
-
response_data = self.api_client.call_api(
|
|
1826
|
-
*_param,
|
|
1827
|
-
_request_timeout=_request_timeout
|
|
1828
|
-
)
|
|
1829
|
-
response_data.read()
|
|
1830
|
-
return self.api_client.response_deserialize(
|
|
1831
|
-
response_data=response_data,
|
|
1832
|
-
response_types_map=_response_types_map,
|
|
1833
|
-
)
|
|
1834
|
-
|
|
1835
|
-
|
|
1836
|
-
@validate_call
|
|
1837
|
-
def leaderboard_leaderboard_id_participants_get_without_preload_content(
|
|
1838
|
-
self,
|
|
1839
|
-
leaderboard_id: StrictStr,
|
|
1840
|
-
_request_timeout: Union[
|
|
1841
|
-
None,
|
|
1842
|
-
Annotated[StrictFloat, Field(gt=0)],
|
|
1843
|
-
Tuple[
|
|
1844
|
-
Annotated[StrictFloat, Field(gt=0)],
|
|
1845
|
-
Annotated[StrictFloat, Field(gt=0)]
|
|
1846
|
-
]
|
|
1847
|
-
] = None,
|
|
1848
|
-
_request_auth: Optional[Dict[StrictStr, Any]] = None,
|
|
1849
|
-
_content_type: Optional[StrictStr] = None,
|
|
1850
|
-
_headers: Optional[Dict[StrictStr, Any]] = None,
|
|
1851
|
-
_host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
|
|
1852
|
-
) -> RESTResponseType:
|
|
1853
|
-
"""(Deprecated) queries all the participants connected to leaderboard by its ID.
|
|
1854
|
-
|
|
1855
|
-
|
|
1856
|
-
:param leaderboard_id: (required)
|
|
1857
|
-
:type leaderboard_id: str
|
|
1858
|
-
:param _request_timeout: timeout setting for this request. If one
|
|
1859
|
-
number provided, it will be total request
|
|
1860
|
-
timeout. It can also be a pair (tuple) of
|
|
1861
|
-
(connection, read) timeouts.
|
|
1862
|
-
:type _request_timeout: int, tuple(int, int), optional
|
|
1863
|
-
:param _request_auth: set to override the auth_settings for an a single
|
|
1864
|
-
request; this effectively ignores the
|
|
1865
|
-
authentication in the spec for a single request.
|
|
1866
|
-
:type _request_auth: dict, optional
|
|
1867
|
-
:param _content_type: force content-type for the request.
|
|
1868
|
-
:type _content_type: str, Optional
|
|
1869
|
-
:param _headers: set to override the headers for a single
|
|
1870
|
-
request; this effectively ignores the headers
|
|
1871
|
-
in the spec for a single request.
|
|
1872
|
-
:type _headers: dict, optional
|
|
1873
|
-
:param _host_index: set to override the host_index for a single
|
|
1874
|
-
request; this effectively ignores the host_index
|
|
1875
|
-
in the spec for a single request.
|
|
1876
|
-
:type _host_index: int, optional
|
|
1877
|
-
:return: Returns the result object.
|
|
1878
|
-
""" # noqa: E501
|
|
1879
|
-
warnings.warn("GET /leaderboard/{leaderboardId}/participants is deprecated.", DeprecationWarning)
|
|
1880
|
-
|
|
1881
|
-
_param = self._leaderboard_leaderboard_id_participants_get_serialize(
|
|
1882
|
-
leaderboard_id=leaderboard_id,
|
|
1883
|
-
_request_auth=_request_auth,
|
|
1884
|
-
_content_type=_content_type,
|
|
1885
|
-
_headers=_headers,
|
|
1886
|
-
_host_index=_host_index
|
|
1887
|
-
)
|
|
1888
|
-
|
|
1889
|
-
_response_types_map: Dict[str, Optional[str]] = {
|
|
1890
|
-
'200': "StandingByLeaderboardPagedResult",
|
|
1891
|
-
}
|
|
1892
|
-
response_data = self.api_client.call_api(
|
|
1893
|
-
*_param,
|
|
1894
|
-
_request_timeout=_request_timeout
|
|
1895
|
-
)
|
|
1896
|
-
return response_data.response
|
|
1897
|
-
|
|
1898
|
-
|
|
1899
|
-
def _leaderboard_leaderboard_id_participants_get_serialize(
|
|
1900
|
-
self,
|
|
1901
|
-
leaderboard_id,
|
|
1902
|
-
_request_auth,
|
|
1903
|
-
_content_type,
|
|
1904
|
-
_headers,
|
|
1905
|
-
_host_index,
|
|
1906
|
-
) -> RequestSerialized:
|
|
1907
|
-
|
|
1908
|
-
_host = None
|
|
1909
|
-
|
|
1910
|
-
_collection_formats: Dict[str, str] = {
|
|
1911
|
-
}
|
|
1912
|
-
|
|
1913
|
-
_path_params: Dict[str, str] = {}
|
|
1914
|
-
_query_params: List[Tuple[str, str]] = []
|
|
1915
|
-
_header_params: Dict[str, Optional[str]] = _headers or {}
|
|
1916
|
-
_form_params: List[Tuple[str, str]] = []
|
|
1917
|
-
_files: Dict[
|
|
1918
|
-
str, Union[str, bytes, List[str], List[bytes], List[Tuple[str, bytes]]]
|
|
1919
|
-
] = {}
|
|
1920
|
-
_body_params: Optional[bytes] = None
|
|
1921
|
-
|
|
1922
|
-
# process the path parameters
|
|
1923
|
-
if leaderboard_id is not None:
|
|
1924
|
-
_path_params['leaderboardId'] = leaderboard_id
|
|
1925
|
-
# process the query parameters
|
|
1926
|
-
# process the header parameters
|
|
1927
|
-
# process the form parameters
|
|
1928
|
-
# process the body parameter
|
|
1929
|
-
|
|
1930
|
-
|
|
1931
|
-
# set the HTTP header `Accept`
|
|
1932
|
-
if 'Accept' not in _header_params:
|
|
1933
|
-
_header_params['Accept'] = self.api_client.select_header_accept(
|
|
1934
|
-
[
|
|
1935
|
-
'text/plain',
|
|
1936
|
-
'application/json',
|
|
1937
|
-
'text/json'
|
|
1938
|
-
]
|
|
1939
|
-
)
|
|
1940
|
-
|
|
1941
|
-
|
|
1942
|
-
# authentication setting
|
|
1943
|
-
_auth_settings: List[str] = [
|
|
1944
|
-
'bearer',
|
|
1945
|
-
'oauth2'
|
|
1946
|
-
]
|
|
1947
|
-
|
|
1948
|
-
return self.api_client.param_serialize(
|
|
1949
|
-
method='GET',
|
|
1950
|
-
resource_path='/leaderboard/{leaderboardId}/participants',
|
|
1951
|
-
path_params=_path_params,
|
|
1952
|
-
query_params=_query_params,
|
|
1953
|
-
header_params=_header_params,
|
|
1954
|
-
body=_body_params,
|
|
1955
|
-
post_params=_form_params,
|
|
1956
|
-
files=_files,
|
|
1957
|
-
auth_settings=_auth_settings,
|
|
1958
|
-
collection_formats=_collection_formats,
|
|
1959
|
-
_host=_host,
|
|
1960
|
-
_request_auth=_request_auth
|
|
1961
|
-
)
|
|
1962
|
-
|
|
1963
|
-
|
|
1964
|
-
|
|
1965
|
-
|
|
1966
|
-
@validate_call
|
|
1967
|
-
def leaderboard_leaderboard_id_participants_participant_id_submit_post(
|
|
1968
|
-
self,
|
|
1969
|
-
leaderboard_id: StrictStr,
|
|
1970
|
-
participant_id: StrictStr,
|
|
1971
|
-
_request_timeout: Union[
|
|
1972
|
-
None,
|
|
1973
|
-
Annotated[StrictFloat, Field(gt=0)],
|
|
1974
|
-
Tuple[
|
|
1975
|
-
Annotated[StrictFloat, Field(gt=0)],
|
|
1976
|
-
Annotated[StrictFloat, Field(gt=0)]
|
|
1977
|
-
]
|
|
1978
|
-
] = None,
|
|
1979
|
-
_request_auth: Optional[Dict[StrictStr, Any]] = None,
|
|
1980
|
-
_content_type: Optional[StrictStr] = None,
|
|
1981
|
-
_headers: Optional[Dict[StrictStr, Any]] = None,
|
|
1982
|
-
_host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
|
|
1983
|
-
) -> SubmitParticipantResult:
|
|
1984
|
-
"""(Deprecated) Submits a participant to a leaderboard.
|
|
1985
|
-
|
|
1986
|
-
|
|
1987
|
-
:param leaderboard_id: (required)
|
|
1988
|
-
:type leaderboard_id: str
|
|
1989
|
-
:param participant_id: (required)
|
|
1990
|
-
:type participant_id: str
|
|
1991
|
-
:param _request_timeout: timeout setting for this request. If one
|
|
1992
|
-
number provided, it will be total request
|
|
1993
|
-
timeout. It can also be a pair (tuple) of
|
|
1994
|
-
(connection, read) timeouts.
|
|
1995
|
-
:type _request_timeout: int, tuple(int, int), optional
|
|
1996
|
-
:param _request_auth: set to override the auth_settings for an a single
|
|
1997
|
-
request; this effectively ignores the
|
|
1998
|
-
authentication in the spec for a single request.
|
|
1999
|
-
:type _request_auth: dict, optional
|
|
2000
|
-
:param _content_type: force content-type for the request.
|
|
2001
|
-
:type _content_type: str, Optional
|
|
2002
|
-
:param _headers: set to override the headers for a single
|
|
2003
|
-
request; this effectively ignores the headers
|
|
2004
|
-
in the spec for a single request.
|
|
2005
|
-
:type _headers: dict, optional
|
|
2006
|
-
:param _host_index: set to override the host_index for a single
|
|
2007
|
-
request; this effectively ignores the host_index
|
|
2008
|
-
in the spec for a single request.
|
|
2009
|
-
:type _host_index: int, optional
|
|
2010
|
-
:return: Returns the result object.
|
|
2011
|
-
""" # noqa: E501
|
|
2012
|
-
warnings.warn("POST /leaderboard/{leaderboardId}/participants/{participantId}/submit is deprecated.", DeprecationWarning)
|
|
2013
|
-
|
|
2014
|
-
_param = self._leaderboard_leaderboard_id_participants_participant_id_submit_post_serialize(
|
|
2015
|
-
leaderboard_id=leaderboard_id,
|
|
2016
|
-
participant_id=participant_id,
|
|
2017
|
-
_request_auth=_request_auth,
|
|
2018
|
-
_content_type=_content_type,
|
|
2019
|
-
_headers=_headers,
|
|
2020
|
-
_host_index=_host_index
|
|
2021
|
-
)
|
|
2022
|
-
|
|
2023
|
-
_response_types_map: Dict[str, Optional[str]] = {
|
|
2024
|
-
'200': "SubmitParticipantResult",
|
|
2025
|
-
}
|
|
2026
|
-
response_data = self.api_client.call_api(
|
|
2027
|
-
*_param,
|
|
2028
|
-
_request_timeout=_request_timeout
|
|
2029
|
-
)
|
|
2030
|
-
response_data.read()
|
|
2031
|
-
return self.api_client.response_deserialize(
|
|
2032
|
-
response_data=response_data,
|
|
2033
|
-
response_types_map=_response_types_map,
|
|
2034
|
-
).data
|
|
2035
|
-
|
|
2036
|
-
|
|
2037
|
-
@validate_call
|
|
2038
|
-
def leaderboard_leaderboard_id_participants_participant_id_submit_post_with_http_info(
|
|
2039
|
-
self,
|
|
2040
|
-
leaderboard_id: StrictStr,
|
|
2041
|
-
participant_id: StrictStr,
|
|
2042
|
-
_request_timeout: Union[
|
|
2043
|
-
None,
|
|
2044
|
-
Annotated[StrictFloat, Field(gt=0)],
|
|
2045
|
-
Tuple[
|
|
2046
|
-
Annotated[StrictFloat, Field(gt=0)],
|
|
2047
|
-
Annotated[StrictFloat, Field(gt=0)]
|
|
2048
|
-
]
|
|
2049
|
-
] = None,
|
|
2050
|
-
_request_auth: Optional[Dict[StrictStr, Any]] = None,
|
|
2051
|
-
_content_type: Optional[StrictStr] = None,
|
|
2052
|
-
_headers: Optional[Dict[StrictStr, Any]] = None,
|
|
2053
|
-
_host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
|
|
2054
|
-
) -> ApiResponse[SubmitParticipantResult]:
|
|
2055
|
-
"""(Deprecated) Submits a participant to a leaderboard.
|
|
2056
|
-
|
|
2057
|
-
|
|
2058
|
-
:param leaderboard_id: (required)
|
|
2059
|
-
:type leaderboard_id: str
|
|
2060
|
-
:param participant_id: (required)
|
|
2061
|
-
:type participant_id: str
|
|
2062
|
-
:param _request_timeout: timeout setting for this request. If one
|
|
2063
|
-
number provided, it will be total request
|
|
2064
|
-
timeout. It can also be a pair (tuple) of
|
|
2065
|
-
(connection, read) timeouts.
|
|
2066
|
-
:type _request_timeout: int, tuple(int, int), optional
|
|
2067
|
-
:param _request_auth: set to override the auth_settings for an a single
|
|
2068
|
-
request; this effectively ignores the
|
|
2069
|
-
authentication in the spec for a single request.
|
|
2070
|
-
:type _request_auth: dict, optional
|
|
2071
|
-
:param _content_type: force content-type for the request.
|
|
2072
|
-
:type _content_type: str, Optional
|
|
2073
|
-
:param _headers: set to override the headers for a single
|
|
2074
|
-
request; this effectively ignores the headers
|
|
2075
|
-
in the spec for a single request.
|
|
2076
|
-
:type _headers: dict, optional
|
|
2077
|
-
:param _host_index: set to override the host_index for a single
|
|
2078
|
-
request; this effectively ignores the host_index
|
|
2079
|
-
in the spec for a single request.
|
|
2080
|
-
:type _host_index: int, optional
|
|
2081
|
-
:return: Returns the result object.
|
|
2082
|
-
""" # noqa: E501
|
|
2083
|
-
warnings.warn("POST /leaderboard/{leaderboardId}/participants/{participantId}/submit is deprecated.", DeprecationWarning)
|
|
2084
|
-
|
|
2085
|
-
_param = self._leaderboard_leaderboard_id_participants_participant_id_submit_post_serialize(
|
|
2086
|
-
leaderboard_id=leaderboard_id,
|
|
2087
|
-
participant_id=participant_id,
|
|
2088
|
-
_request_auth=_request_auth,
|
|
2089
|
-
_content_type=_content_type,
|
|
2090
|
-
_headers=_headers,
|
|
2091
|
-
_host_index=_host_index
|
|
2092
|
-
)
|
|
2093
|
-
|
|
2094
|
-
_response_types_map: Dict[str, Optional[str]] = {
|
|
2095
|
-
'200': "SubmitParticipantResult",
|
|
2096
|
-
}
|
|
2097
|
-
response_data = self.api_client.call_api(
|
|
2098
|
-
*_param,
|
|
2099
|
-
_request_timeout=_request_timeout
|
|
2100
|
-
)
|
|
2101
|
-
response_data.read()
|
|
2102
|
-
return self.api_client.response_deserialize(
|
|
2103
|
-
response_data=response_data,
|
|
2104
|
-
response_types_map=_response_types_map,
|
|
2105
|
-
)
|
|
2106
|
-
|
|
2107
|
-
|
|
2108
|
-
@validate_call
|
|
2109
|
-
def leaderboard_leaderboard_id_participants_participant_id_submit_post_without_preload_content(
|
|
2110
|
-
self,
|
|
2111
|
-
leaderboard_id: StrictStr,
|
|
2112
|
-
participant_id: StrictStr,
|
|
2113
|
-
_request_timeout: Union[
|
|
2114
|
-
None,
|
|
2115
|
-
Annotated[StrictFloat, Field(gt=0)],
|
|
2116
|
-
Tuple[
|
|
2117
|
-
Annotated[StrictFloat, Field(gt=0)],
|
|
2118
|
-
Annotated[StrictFloat, Field(gt=0)]
|
|
2119
|
-
]
|
|
2120
|
-
] = None,
|
|
2121
|
-
_request_auth: Optional[Dict[StrictStr, Any]] = None,
|
|
2122
|
-
_content_type: Optional[StrictStr] = None,
|
|
2123
|
-
_headers: Optional[Dict[StrictStr, Any]] = None,
|
|
2124
|
-
_host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
|
|
2125
|
-
) -> RESTResponseType:
|
|
2126
|
-
"""(Deprecated) Submits a participant to a leaderboard.
|
|
2127
|
-
|
|
2128
|
-
|
|
2129
|
-
:param leaderboard_id: (required)
|
|
2130
|
-
:type leaderboard_id: str
|
|
2131
|
-
:param participant_id: (required)
|
|
2132
|
-
:type participant_id: str
|
|
2133
|
-
:param _request_timeout: timeout setting for this request. If one
|
|
2134
|
-
number provided, it will be total request
|
|
2135
|
-
timeout. It can also be a pair (tuple) of
|
|
2136
|
-
(connection, read) timeouts.
|
|
2137
|
-
:type _request_timeout: int, tuple(int, int), optional
|
|
2138
|
-
:param _request_auth: set to override the auth_settings for an a single
|
|
2139
|
-
request; this effectively ignores the
|
|
2140
|
-
authentication in the spec for a single request.
|
|
2141
|
-
:type _request_auth: dict, optional
|
|
2142
|
-
:param _content_type: force content-type for the request.
|
|
2143
|
-
:type _content_type: str, Optional
|
|
2144
|
-
:param _headers: set to override the headers for a single
|
|
2145
|
-
request; this effectively ignores the headers
|
|
2146
|
-
in the spec for a single request.
|
|
2147
|
-
:type _headers: dict, optional
|
|
2148
|
-
:param _host_index: set to override the host_index for a single
|
|
2149
|
-
request; this effectively ignores the host_index
|
|
2150
|
-
in the spec for a single request.
|
|
2151
|
-
:type _host_index: int, optional
|
|
2152
|
-
:return: Returns the result object.
|
|
2153
|
-
""" # noqa: E501
|
|
2154
|
-
warnings.warn("POST /leaderboard/{leaderboardId}/participants/{participantId}/submit is deprecated.", DeprecationWarning)
|
|
2155
|
-
|
|
2156
|
-
_param = self._leaderboard_leaderboard_id_participants_participant_id_submit_post_serialize(
|
|
2157
|
-
leaderboard_id=leaderboard_id,
|
|
2158
|
-
participant_id=participant_id,
|
|
2159
|
-
_request_auth=_request_auth,
|
|
2160
|
-
_content_type=_content_type,
|
|
2161
|
-
_headers=_headers,
|
|
2162
|
-
_host_index=_host_index
|
|
2163
|
-
)
|
|
2164
|
-
|
|
2165
|
-
_response_types_map: Dict[str, Optional[str]] = {
|
|
2166
|
-
'200': "SubmitParticipantResult",
|
|
2167
|
-
}
|
|
2168
|
-
response_data = self.api_client.call_api(
|
|
2169
|
-
*_param,
|
|
2170
|
-
_request_timeout=_request_timeout
|
|
2171
|
-
)
|
|
2172
|
-
return response_data.response
|
|
2173
|
-
|
|
2174
|
-
|
|
2175
|
-
def _leaderboard_leaderboard_id_participants_participant_id_submit_post_serialize(
|
|
2176
|
-
self,
|
|
2177
|
-
leaderboard_id,
|
|
2178
|
-
participant_id,
|
|
2179
|
-
_request_auth,
|
|
2180
|
-
_content_type,
|
|
2181
|
-
_headers,
|
|
2182
|
-
_host_index,
|
|
2183
|
-
) -> RequestSerialized:
|
|
2184
|
-
|
|
2185
|
-
_host = None
|
|
2186
|
-
|
|
2187
|
-
_collection_formats: Dict[str, str] = {
|
|
2188
|
-
}
|
|
2189
|
-
|
|
2190
|
-
_path_params: Dict[str, str] = {}
|
|
2191
|
-
_query_params: List[Tuple[str, str]] = []
|
|
2192
|
-
_header_params: Dict[str, Optional[str]] = _headers or {}
|
|
2193
|
-
_form_params: List[Tuple[str, str]] = []
|
|
2194
|
-
_files: Dict[
|
|
2195
|
-
str, Union[str, bytes, List[str], List[bytes], List[Tuple[str, bytes]]]
|
|
2196
|
-
] = {}
|
|
2197
|
-
_body_params: Optional[bytes] = None
|
|
2198
|
-
|
|
2199
|
-
# process the path parameters
|
|
2200
|
-
if leaderboard_id is not None:
|
|
2201
|
-
_path_params['leaderboardId'] = leaderboard_id
|
|
2202
|
-
if participant_id is not None:
|
|
2203
|
-
_path_params['participantId'] = participant_id
|
|
2204
|
-
# process the query parameters
|
|
2205
|
-
# process the header parameters
|
|
2206
|
-
# process the form parameters
|
|
2207
|
-
# process the body parameter
|
|
2208
|
-
|
|
2209
|
-
|
|
2210
|
-
# set the HTTP header `Accept`
|
|
2211
|
-
if 'Accept' not in _header_params:
|
|
2212
|
-
_header_params['Accept'] = self.api_client.select_header_accept(
|
|
2213
|
-
[
|
|
2214
|
-
'text/plain',
|
|
2215
|
-
'application/json',
|
|
2216
|
-
'text/json'
|
|
2217
|
-
]
|
|
2218
|
-
)
|
|
2219
|
-
|
|
2220
|
-
|
|
2221
|
-
# authentication setting
|
|
2222
|
-
_auth_settings: List[str] = [
|
|
2223
|
-
'bearer',
|
|
2224
|
-
'oauth2'
|
|
2225
|
-
]
|
|
2226
|
-
|
|
2227
|
-
return self.api_client.param_serialize(
|
|
2228
|
-
method='POST',
|
|
2229
|
-
resource_path='/leaderboard/{leaderboardId}/participants/{participantId}/submit',
|
|
2230
|
-
path_params=_path_params,
|
|
2231
|
-
query_params=_query_params,
|
|
2232
|
-
header_params=_header_params,
|
|
2233
|
-
body=_body_params,
|
|
2234
|
-
post_params=_form_params,
|
|
2235
|
-
files=_files,
|
|
2236
|
-
auth_settings=_auth_settings,
|
|
2237
|
-
collection_formats=_collection_formats,
|
|
2238
|
-
_host=_host,
|
|
2239
|
-
_request_auth=_request_auth
|
|
2240
|
-
)
|
|
2241
|
-
|
|
2242
|
-
|
|
2243
|
-
|
|
2244
|
-
|
|
2245
|
-
@validate_call
|
|
2246
|
-
def leaderboard_leaderboard_id_participants_post(
|
|
2247
|
-
self,
|
|
2248
|
-
leaderboard_id: StrictStr,
|
|
2249
|
-
create_benchmark_participant_model: Optional[CreateBenchmarkParticipantModel] = None,
|
|
2250
|
-
_request_timeout: Union[
|
|
2251
|
-
None,
|
|
2252
|
-
Annotated[StrictFloat, Field(gt=0)],
|
|
2253
|
-
Tuple[
|
|
2254
|
-
Annotated[StrictFloat, Field(gt=0)],
|
|
2255
|
-
Annotated[StrictFloat, Field(gt=0)]
|
|
2256
|
-
]
|
|
2257
|
-
] = None,
|
|
2258
|
-
_request_auth: Optional[Dict[StrictStr, Any]] = None,
|
|
2259
|
-
_content_type: Optional[StrictStr] = None,
|
|
2260
|
-
_headers: Optional[Dict[StrictStr, Any]] = None,
|
|
2261
|
-
_host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
|
|
2262
|
-
) -> CreateBenchmarkParticipantResult:
|
|
2263
|
-
"""(Deprecated) Creates a participant in a leaderboard.
|
|
2264
|
-
|
|
2265
|
-
|
|
2266
|
-
:param leaderboard_id: (required)
|
|
2267
|
-
:type leaderboard_id: str
|
|
2268
|
-
:param create_benchmark_participant_model:
|
|
2269
|
-
:type create_benchmark_participant_model: CreateBenchmarkParticipantModel
|
|
2270
|
-
:param _request_timeout: timeout setting for this request. If one
|
|
2271
|
-
number provided, it will be total request
|
|
2272
|
-
timeout. It can also be a pair (tuple) of
|
|
2273
|
-
(connection, read) timeouts.
|
|
2274
|
-
:type _request_timeout: int, tuple(int, int), optional
|
|
2275
|
-
:param _request_auth: set to override the auth_settings for an a single
|
|
2276
|
-
request; this effectively ignores the
|
|
2277
|
-
authentication in the spec for a single request.
|
|
2278
|
-
:type _request_auth: dict, optional
|
|
2279
|
-
:param _content_type: force content-type for the request.
|
|
2280
|
-
:type _content_type: str, Optional
|
|
2281
|
-
:param _headers: set to override the headers for a single
|
|
2282
|
-
request; this effectively ignores the headers
|
|
2283
|
-
in the spec for a single request.
|
|
2284
|
-
:type _headers: dict, optional
|
|
2285
|
-
:param _host_index: set to override the host_index for a single
|
|
2286
|
-
request; this effectively ignores the host_index
|
|
2287
|
-
in the spec for a single request.
|
|
2288
|
-
:type _host_index: int, optional
|
|
2289
|
-
:return: Returns the result object.
|
|
2290
|
-
""" # noqa: E501
|
|
2291
|
-
warnings.warn("POST /leaderboard/{leaderboardId}/participants is deprecated.", DeprecationWarning)
|
|
2292
|
-
|
|
2293
|
-
_param = self._leaderboard_leaderboard_id_participants_post_serialize(
|
|
2294
|
-
leaderboard_id=leaderboard_id,
|
|
2295
|
-
create_benchmark_participant_model=create_benchmark_participant_model,
|
|
2296
|
-
_request_auth=_request_auth,
|
|
2297
|
-
_content_type=_content_type,
|
|
2298
|
-
_headers=_headers,
|
|
2299
|
-
_host_index=_host_index
|
|
2300
|
-
)
|
|
2301
|
-
|
|
2302
|
-
_response_types_map: Dict[str, Optional[str]] = {
|
|
2303
|
-
'200': "CreateBenchmarkParticipantResult",
|
|
2304
|
-
}
|
|
2305
|
-
response_data = self.api_client.call_api(
|
|
2306
|
-
*_param,
|
|
2307
|
-
_request_timeout=_request_timeout
|
|
2308
|
-
)
|
|
2309
|
-
response_data.read()
|
|
2310
|
-
return self.api_client.response_deserialize(
|
|
2311
|
-
response_data=response_data,
|
|
2312
|
-
response_types_map=_response_types_map,
|
|
2313
|
-
).data
|
|
2314
|
-
|
|
2315
|
-
|
|
2316
|
-
@validate_call
|
|
2317
|
-
def leaderboard_leaderboard_id_participants_post_with_http_info(
|
|
2318
|
-
self,
|
|
2319
|
-
leaderboard_id: StrictStr,
|
|
2320
|
-
create_benchmark_participant_model: Optional[CreateBenchmarkParticipantModel] = None,
|
|
2321
|
-
_request_timeout: Union[
|
|
2322
|
-
None,
|
|
2323
|
-
Annotated[StrictFloat, Field(gt=0)],
|
|
2324
|
-
Tuple[
|
|
2325
|
-
Annotated[StrictFloat, Field(gt=0)],
|
|
2326
|
-
Annotated[StrictFloat, Field(gt=0)]
|
|
2327
|
-
]
|
|
2328
|
-
] = None,
|
|
2329
|
-
_request_auth: Optional[Dict[StrictStr, Any]] = None,
|
|
2330
|
-
_content_type: Optional[StrictStr] = None,
|
|
2331
|
-
_headers: Optional[Dict[StrictStr, Any]] = None,
|
|
2332
|
-
_host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
|
|
2333
|
-
) -> ApiResponse[CreateBenchmarkParticipantResult]:
|
|
2334
|
-
"""(Deprecated) Creates a participant in a leaderboard.
|
|
2335
|
-
|
|
2336
|
-
|
|
2337
|
-
:param leaderboard_id: (required)
|
|
2338
|
-
:type leaderboard_id: str
|
|
2339
|
-
:param create_benchmark_participant_model:
|
|
2340
|
-
:type create_benchmark_participant_model: CreateBenchmarkParticipantModel
|
|
2341
|
-
:param _request_timeout: timeout setting for this request. If one
|
|
2342
|
-
number provided, it will be total request
|
|
2343
|
-
timeout. It can also be a pair (tuple) of
|
|
2344
|
-
(connection, read) timeouts.
|
|
2345
|
-
:type _request_timeout: int, tuple(int, int), optional
|
|
2346
|
-
:param _request_auth: set to override the auth_settings for an a single
|
|
2347
|
-
request; this effectively ignores the
|
|
2348
|
-
authentication in the spec for a single request.
|
|
2349
|
-
:type _request_auth: dict, optional
|
|
2350
|
-
:param _content_type: force content-type for the request.
|
|
2351
|
-
:type _content_type: str, Optional
|
|
2352
|
-
:param _headers: set to override the headers for a single
|
|
2353
|
-
request; this effectively ignores the headers
|
|
2354
|
-
in the spec for a single request.
|
|
2355
|
-
:type _headers: dict, optional
|
|
2356
|
-
:param _host_index: set to override the host_index for a single
|
|
2357
|
-
request; this effectively ignores the host_index
|
|
2358
|
-
in the spec for a single request.
|
|
2359
|
-
:type _host_index: int, optional
|
|
2360
|
-
:return: Returns the result object.
|
|
2361
|
-
""" # noqa: E501
|
|
2362
|
-
warnings.warn("POST /leaderboard/{leaderboardId}/participants is deprecated.", DeprecationWarning)
|
|
2363
|
-
|
|
2364
|
-
_param = self._leaderboard_leaderboard_id_participants_post_serialize(
|
|
2365
|
-
leaderboard_id=leaderboard_id,
|
|
2366
|
-
create_benchmark_participant_model=create_benchmark_participant_model,
|
|
2367
|
-
_request_auth=_request_auth,
|
|
2368
|
-
_content_type=_content_type,
|
|
2369
|
-
_headers=_headers,
|
|
2370
|
-
_host_index=_host_index
|
|
2371
|
-
)
|
|
2372
|
-
|
|
2373
|
-
_response_types_map: Dict[str, Optional[str]] = {
|
|
2374
|
-
'200': "CreateBenchmarkParticipantResult",
|
|
2375
|
-
}
|
|
2376
|
-
response_data = self.api_client.call_api(
|
|
2377
|
-
*_param,
|
|
2378
|
-
_request_timeout=_request_timeout
|
|
2379
|
-
)
|
|
2380
|
-
response_data.read()
|
|
2381
|
-
return self.api_client.response_deserialize(
|
|
2382
|
-
response_data=response_data,
|
|
2383
|
-
response_types_map=_response_types_map,
|
|
2384
|
-
)
|
|
2385
|
-
|
|
2386
|
-
|
|
2387
|
-
@validate_call
|
|
2388
|
-
def leaderboard_leaderboard_id_participants_post_without_preload_content(
|
|
2389
|
-
self,
|
|
2390
|
-
leaderboard_id: StrictStr,
|
|
2391
|
-
create_benchmark_participant_model: Optional[CreateBenchmarkParticipantModel] = None,
|
|
2392
|
-
_request_timeout: Union[
|
|
2393
|
-
None,
|
|
2394
|
-
Annotated[StrictFloat, Field(gt=0)],
|
|
2395
|
-
Tuple[
|
|
2396
|
-
Annotated[StrictFloat, Field(gt=0)],
|
|
2397
|
-
Annotated[StrictFloat, Field(gt=0)]
|
|
2398
|
-
]
|
|
2399
|
-
] = None,
|
|
2400
|
-
_request_auth: Optional[Dict[StrictStr, Any]] = None,
|
|
2401
|
-
_content_type: Optional[StrictStr] = None,
|
|
2402
|
-
_headers: Optional[Dict[StrictStr, Any]] = None,
|
|
2403
|
-
_host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
|
|
2404
|
-
) -> RESTResponseType:
|
|
2405
|
-
"""(Deprecated) Creates a participant in a leaderboard.
|
|
2406
|
-
|
|
2407
|
-
|
|
2408
|
-
:param leaderboard_id: (required)
|
|
2409
|
-
:type leaderboard_id: str
|
|
2410
|
-
:param create_benchmark_participant_model:
|
|
2411
|
-
:type create_benchmark_participant_model: CreateBenchmarkParticipantModel
|
|
2412
|
-
:param _request_timeout: timeout setting for this request. If one
|
|
2413
|
-
number provided, it will be total request
|
|
2414
|
-
timeout. It can also be a pair (tuple) of
|
|
2415
|
-
(connection, read) timeouts.
|
|
2416
|
-
:type _request_timeout: int, tuple(int, int), optional
|
|
2417
|
-
:param _request_auth: set to override the auth_settings for an a single
|
|
2418
|
-
request; this effectively ignores the
|
|
2419
|
-
authentication in the spec for a single request.
|
|
2420
|
-
:type _request_auth: dict, optional
|
|
2421
|
-
:param _content_type: force content-type for the request.
|
|
2422
|
-
:type _content_type: str, Optional
|
|
2423
|
-
:param _headers: set to override the headers for a single
|
|
2424
|
-
request; this effectively ignores the headers
|
|
2425
|
-
in the spec for a single request.
|
|
2426
|
-
:type _headers: dict, optional
|
|
2427
|
-
:param _host_index: set to override the host_index for a single
|
|
2428
|
-
request; this effectively ignores the host_index
|
|
2429
|
-
in the spec for a single request.
|
|
2430
|
-
:type _host_index: int, optional
|
|
2431
|
-
:return: Returns the result object.
|
|
2432
|
-
""" # noqa: E501
|
|
2433
|
-
warnings.warn("POST /leaderboard/{leaderboardId}/participants is deprecated.", DeprecationWarning)
|
|
2434
|
-
|
|
2435
|
-
_param = self._leaderboard_leaderboard_id_participants_post_serialize(
|
|
2436
|
-
leaderboard_id=leaderboard_id,
|
|
2437
|
-
create_benchmark_participant_model=create_benchmark_participant_model,
|
|
2438
|
-
_request_auth=_request_auth,
|
|
2439
|
-
_content_type=_content_type,
|
|
2440
|
-
_headers=_headers,
|
|
2441
|
-
_host_index=_host_index
|
|
2442
|
-
)
|
|
2443
|
-
|
|
2444
|
-
_response_types_map: Dict[str, Optional[str]] = {
|
|
2445
|
-
'200': "CreateBenchmarkParticipantResult",
|
|
2446
|
-
}
|
|
2447
|
-
response_data = self.api_client.call_api(
|
|
2448
|
-
*_param,
|
|
2449
|
-
_request_timeout=_request_timeout
|
|
2450
|
-
)
|
|
2451
|
-
return response_data.response
|
|
2452
|
-
|
|
2453
|
-
|
|
2454
|
-
def _leaderboard_leaderboard_id_participants_post_serialize(
|
|
2455
|
-
self,
|
|
2456
|
-
leaderboard_id,
|
|
2457
|
-
create_benchmark_participant_model,
|
|
2458
|
-
_request_auth,
|
|
2459
|
-
_content_type,
|
|
2460
|
-
_headers,
|
|
2461
|
-
_host_index,
|
|
2462
|
-
) -> RequestSerialized:
|
|
2463
|
-
|
|
2464
|
-
_host = None
|
|
2465
|
-
|
|
2466
|
-
_collection_formats: Dict[str, str] = {
|
|
2467
|
-
}
|
|
2468
|
-
|
|
2469
|
-
_path_params: Dict[str, str] = {}
|
|
2470
|
-
_query_params: List[Tuple[str, str]] = []
|
|
2471
|
-
_header_params: Dict[str, Optional[str]] = _headers or {}
|
|
2472
|
-
_form_params: List[Tuple[str, str]] = []
|
|
2473
|
-
_files: Dict[
|
|
2474
|
-
str, Union[str, bytes, List[str], List[bytes], List[Tuple[str, bytes]]]
|
|
2475
|
-
] = {}
|
|
2476
|
-
_body_params: Optional[bytes] = None
|
|
2477
|
-
|
|
2478
|
-
# process the path parameters
|
|
2479
|
-
if leaderboard_id is not None:
|
|
2480
|
-
_path_params['leaderboardId'] = leaderboard_id
|
|
2481
|
-
# process the query parameters
|
|
2482
|
-
# process the header parameters
|
|
2483
|
-
# process the form parameters
|
|
2484
|
-
# process the body parameter
|
|
2485
|
-
if create_benchmark_participant_model is not None:
|
|
2486
|
-
_body_params = create_benchmark_participant_model
|
|
2487
|
-
|
|
2488
|
-
|
|
2489
|
-
# set the HTTP header `Accept`
|
|
2490
|
-
if 'Accept' not in _header_params:
|
|
2491
|
-
_header_params['Accept'] = self.api_client.select_header_accept(
|
|
2492
|
-
[
|
|
2493
|
-
'text/plain',
|
|
2494
|
-
'application/json',
|
|
2495
|
-
'text/json'
|
|
2496
|
-
]
|
|
2497
|
-
)
|
|
2498
|
-
|
|
2499
|
-
# set the HTTP header `Content-Type`
|
|
2500
|
-
if _content_type:
|
|
2501
|
-
_header_params['Content-Type'] = _content_type
|
|
2502
|
-
else:
|
|
2503
|
-
_default_content_type = (
|
|
2504
|
-
self.api_client.select_header_content_type(
|
|
2505
|
-
[
|
|
2506
|
-
'application/json',
|
|
2507
|
-
'text/json',
|
|
2508
|
-
'application/*+json'
|
|
2509
|
-
]
|
|
2510
|
-
)
|
|
2511
|
-
)
|
|
2512
|
-
if _default_content_type is not None:
|
|
2513
|
-
_header_params['Content-Type'] = _default_content_type
|
|
2514
|
-
|
|
2515
|
-
# authentication setting
|
|
2516
|
-
_auth_settings: List[str] = [
|
|
2517
|
-
'bearer',
|
|
2518
|
-
'oauth2'
|
|
2519
|
-
]
|
|
2520
|
-
|
|
2521
|
-
return self.api_client.param_serialize(
|
|
2522
|
-
method='POST',
|
|
2523
|
-
resource_path='/leaderboard/{leaderboardId}/participants',
|
|
2524
|
-
path_params=_path_params,
|
|
2525
|
-
query_params=_query_params,
|
|
2526
|
-
header_params=_header_params,
|
|
2527
|
-
body=_body_params,
|
|
2528
|
-
post_params=_form_params,
|
|
2529
|
-
files=_files,
|
|
2530
|
-
auth_settings=_auth_settings,
|
|
2531
|
-
collection_formats=_collection_formats,
|
|
2532
|
-
_host=_host,
|
|
2533
|
-
_request_auth=_request_auth
|
|
2534
|
-
)
|
|
2535
|
-
|
|
2536
|
-
|
|
2537
|
-
|
|
2538
|
-
|
|
2539
|
-
@validate_call
|
|
2540
|
-
def leaderboard_leaderboard_id_patch(
|
|
2541
|
-
self,
|
|
2542
|
-
leaderboard_id: StrictStr,
|
|
2543
|
-
update_leaderboard_model: Optional[UpdateLeaderboardModel] = None,
|
|
2544
|
-
_request_timeout: Union[
|
|
2545
|
-
None,
|
|
2546
|
-
Annotated[StrictFloat, Field(gt=0)],
|
|
2547
|
-
Tuple[
|
|
2548
|
-
Annotated[StrictFloat, Field(gt=0)],
|
|
2549
|
-
Annotated[StrictFloat, Field(gt=0)]
|
|
2550
|
-
]
|
|
2551
|
-
] = None,
|
|
2552
|
-
_request_auth: Optional[Dict[StrictStr, Any]] = None,
|
|
2553
|
-
_content_type: Optional[StrictStr] = None,
|
|
2554
|
-
_headers: Optional[Dict[StrictStr, Any]] = None,
|
|
2555
|
-
_host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
|
|
2556
|
-
) -> None:
|
|
2557
|
-
"""Updates the response config of a leaderboard.
|
|
2558
|
-
|
|
2559
|
-
|
|
2560
|
-
:param leaderboard_id: (required)
|
|
2561
|
-
:type leaderboard_id: str
|
|
2562
|
-
:param update_leaderboard_model:
|
|
2563
|
-
:type update_leaderboard_model: UpdateLeaderboardModel
|
|
2564
|
-
:param _request_timeout: timeout setting for this request. If one
|
|
2565
|
-
number provided, it will be total request
|
|
2566
|
-
timeout. It can also be a pair (tuple) of
|
|
2567
|
-
(connection, read) timeouts.
|
|
2568
|
-
:type _request_timeout: int, tuple(int, int), optional
|
|
2569
|
-
:param _request_auth: set to override the auth_settings for an a single
|
|
2570
|
-
request; this effectively ignores the
|
|
2571
|
-
authentication in the spec for a single request.
|
|
2572
|
-
:type _request_auth: dict, optional
|
|
2573
|
-
:param _content_type: force content-type for the request.
|
|
2574
|
-
:type _content_type: str, Optional
|
|
2575
|
-
:param _headers: set to override the headers for a single
|
|
2576
|
-
request; this effectively ignores the headers
|
|
2577
|
-
in the spec for a single request.
|
|
2578
|
-
:type _headers: dict, optional
|
|
2579
|
-
:param _host_index: set to override the host_index for a single
|
|
2580
|
-
request; this effectively ignores the host_index
|
|
2581
|
-
in the spec for a single request.
|
|
2582
|
-
:type _host_index: int, optional
|
|
2583
|
-
:return: Returns the result object.
|
|
2584
|
-
""" # noqa: E501
|
|
2585
|
-
|
|
2586
|
-
_param = self._leaderboard_leaderboard_id_patch_serialize(
|
|
2587
|
-
leaderboard_id=leaderboard_id,
|
|
2588
|
-
update_leaderboard_model=update_leaderboard_model,
|
|
2589
|
-
_request_auth=_request_auth,
|
|
2590
|
-
_content_type=_content_type,
|
|
2591
|
-
_headers=_headers,
|
|
2592
|
-
_host_index=_host_index
|
|
2593
|
-
)
|
|
2594
|
-
|
|
2595
|
-
_response_types_map: Dict[str, Optional[str]] = {
|
|
2596
|
-
'204': None,
|
|
2597
|
-
}
|
|
2598
|
-
response_data = self.api_client.call_api(
|
|
2599
|
-
*_param,
|
|
2600
|
-
_request_timeout=_request_timeout
|
|
2601
|
-
)
|
|
2602
|
-
response_data.read()
|
|
2603
|
-
return self.api_client.response_deserialize(
|
|
2604
|
-
response_data=response_data,
|
|
2605
|
-
response_types_map=_response_types_map,
|
|
2606
|
-
).data
|
|
2607
|
-
|
|
2608
|
-
|
|
2609
|
-
@validate_call
|
|
2610
|
-
def leaderboard_leaderboard_id_patch_with_http_info(
|
|
2611
|
-
self,
|
|
2612
|
-
leaderboard_id: StrictStr,
|
|
2613
|
-
update_leaderboard_model: Optional[UpdateLeaderboardModel] = None,
|
|
2614
|
-
_request_timeout: Union[
|
|
2615
|
-
None,
|
|
2616
|
-
Annotated[StrictFloat, Field(gt=0)],
|
|
2617
|
-
Tuple[
|
|
2618
|
-
Annotated[StrictFloat, Field(gt=0)],
|
|
2619
|
-
Annotated[StrictFloat, Field(gt=0)]
|
|
2620
|
-
]
|
|
2621
|
-
] = None,
|
|
2622
|
-
_request_auth: Optional[Dict[StrictStr, Any]] = None,
|
|
2623
|
-
_content_type: Optional[StrictStr] = None,
|
|
2624
|
-
_headers: Optional[Dict[StrictStr, Any]] = None,
|
|
2625
|
-
_host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
|
|
2626
|
-
) -> ApiResponse[None]:
|
|
2627
|
-
"""Updates the response config of a leaderboard.
|
|
2628
|
-
|
|
2629
|
-
|
|
2630
|
-
:param leaderboard_id: (required)
|
|
2631
|
-
:type leaderboard_id: str
|
|
2632
|
-
:param update_leaderboard_model:
|
|
2633
|
-
:type update_leaderboard_model: UpdateLeaderboardModel
|
|
2634
|
-
:param _request_timeout: timeout setting for this request. If one
|
|
2635
|
-
number provided, it will be total request
|
|
2636
|
-
timeout. It can also be a pair (tuple) of
|
|
2637
|
-
(connection, read) timeouts.
|
|
2638
|
-
:type _request_timeout: int, tuple(int, int), optional
|
|
2639
|
-
:param _request_auth: set to override the auth_settings for an a single
|
|
2640
|
-
request; this effectively ignores the
|
|
2641
|
-
authentication in the spec for a single request.
|
|
2642
|
-
:type _request_auth: dict, optional
|
|
2643
|
-
:param _content_type: force content-type for the request.
|
|
2644
|
-
:type _content_type: str, Optional
|
|
2645
|
-
:param _headers: set to override the headers for a single
|
|
2646
|
-
request; this effectively ignores the headers
|
|
2647
|
-
in the spec for a single request.
|
|
2648
|
-
:type _headers: dict, optional
|
|
2649
|
-
:param _host_index: set to override the host_index for a single
|
|
2650
|
-
request; this effectively ignores the host_index
|
|
2651
|
-
in the spec for a single request.
|
|
2652
|
-
:type _host_index: int, optional
|
|
2653
|
-
:return: Returns the result object.
|
|
2654
|
-
""" # noqa: E501
|
|
2655
|
-
|
|
2656
|
-
_param = self._leaderboard_leaderboard_id_patch_serialize(
|
|
2657
|
-
leaderboard_id=leaderboard_id,
|
|
2658
|
-
update_leaderboard_model=update_leaderboard_model,
|
|
2659
|
-
_request_auth=_request_auth,
|
|
2660
|
-
_content_type=_content_type,
|
|
2661
|
-
_headers=_headers,
|
|
2662
|
-
_host_index=_host_index
|
|
2663
|
-
)
|
|
2664
|
-
|
|
2665
|
-
_response_types_map: Dict[str, Optional[str]] = {
|
|
2666
|
-
'204': None,
|
|
2667
|
-
}
|
|
2668
|
-
response_data = self.api_client.call_api(
|
|
2669
|
-
*_param,
|
|
2670
|
-
_request_timeout=_request_timeout
|
|
2671
|
-
)
|
|
2672
|
-
response_data.read()
|
|
2673
|
-
return self.api_client.response_deserialize(
|
|
2674
|
-
response_data=response_data,
|
|
2675
|
-
response_types_map=_response_types_map,
|
|
2676
|
-
)
|
|
2677
|
-
|
|
2678
|
-
|
|
2679
|
-
@validate_call
|
|
2680
|
-
def leaderboard_leaderboard_id_patch_without_preload_content(
|
|
2681
|
-
self,
|
|
2682
|
-
leaderboard_id: StrictStr,
|
|
2683
|
-
update_leaderboard_model: Optional[UpdateLeaderboardModel] = None,
|
|
2684
|
-
_request_timeout: Union[
|
|
2685
|
-
None,
|
|
2686
|
-
Annotated[StrictFloat, Field(gt=0)],
|
|
2687
|
-
Tuple[
|
|
2688
|
-
Annotated[StrictFloat, Field(gt=0)],
|
|
2689
|
-
Annotated[StrictFloat, Field(gt=0)]
|
|
2690
|
-
]
|
|
2691
|
-
] = None,
|
|
2692
|
-
_request_auth: Optional[Dict[StrictStr, Any]] = None,
|
|
2693
|
-
_content_type: Optional[StrictStr] = None,
|
|
2694
|
-
_headers: Optional[Dict[StrictStr, Any]] = None,
|
|
2695
|
-
_host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
|
|
2696
|
-
) -> RESTResponseType:
|
|
2697
|
-
"""Updates the response config of a leaderboard.
|
|
2698
|
-
|
|
2699
|
-
|
|
2700
|
-
:param leaderboard_id: (required)
|
|
2701
|
-
:type leaderboard_id: str
|
|
2702
|
-
:param update_leaderboard_model:
|
|
2703
|
-
:type update_leaderboard_model: UpdateLeaderboardModel
|
|
2704
|
-
:param _request_timeout: timeout setting for this request. If one
|
|
2705
|
-
number provided, it will be total request
|
|
2706
|
-
timeout. It can also be a pair (tuple) of
|
|
2707
|
-
(connection, read) timeouts.
|
|
2708
|
-
:type _request_timeout: int, tuple(int, int), optional
|
|
2709
|
-
:param _request_auth: set to override the auth_settings for an a single
|
|
2710
|
-
request; this effectively ignores the
|
|
2711
|
-
authentication in the spec for a single request.
|
|
2712
|
-
:type _request_auth: dict, optional
|
|
2713
|
-
:param _content_type: force content-type for the request.
|
|
2714
|
-
:type _content_type: str, Optional
|
|
2715
|
-
:param _headers: set to override the headers for a single
|
|
2716
|
-
request; this effectively ignores the headers
|
|
2717
|
-
in the spec for a single request.
|
|
2718
|
-
:type _headers: dict, optional
|
|
2719
|
-
:param _host_index: set to override the host_index for a single
|
|
2720
|
-
request; this effectively ignores the host_index
|
|
2721
|
-
in the spec for a single request.
|
|
2722
|
-
:type _host_index: int, optional
|
|
2723
|
-
:return: Returns the result object.
|
|
2724
|
-
""" # noqa: E501
|
|
2725
|
-
|
|
2726
|
-
_param = self._leaderboard_leaderboard_id_patch_serialize(
|
|
2727
|
-
leaderboard_id=leaderboard_id,
|
|
2728
|
-
update_leaderboard_model=update_leaderboard_model,
|
|
2729
|
-
_request_auth=_request_auth,
|
|
2730
|
-
_content_type=_content_type,
|
|
2731
|
-
_headers=_headers,
|
|
2732
|
-
_host_index=_host_index
|
|
2733
|
-
)
|
|
2734
|
-
|
|
2735
|
-
_response_types_map: Dict[str, Optional[str]] = {
|
|
2736
|
-
'204': None,
|
|
2737
|
-
}
|
|
2738
|
-
response_data = self.api_client.call_api(
|
|
2739
|
-
*_param,
|
|
2740
|
-
_request_timeout=_request_timeout
|
|
2741
|
-
)
|
|
2742
|
-
return response_data.response
|
|
2743
|
-
|
|
2744
|
-
|
|
2745
|
-
def _leaderboard_leaderboard_id_patch_serialize(
|
|
2746
|
-
self,
|
|
2747
|
-
leaderboard_id,
|
|
2748
|
-
update_leaderboard_model,
|
|
2749
|
-
_request_auth,
|
|
2750
|
-
_content_type,
|
|
2751
|
-
_headers,
|
|
2752
|
-
_host_index,
|
|
2753
|
-
) -> RequestSerialized:
|
|
2754
|
-
|
|
2755
|
-
_host = None
|
|
2756
|
-
|
|
2757
|
-
_collection_formats: Dict[str, str] = {
|
|
2758
|
-
}
|
|
2759
|
-
|
|
2760
|
-
_path_params: Dict[str, str] = {}
|
|
2761
|
-
_query_params: List[Tuple[str, str]] = []
|
|
2762
|
-
_header_params: Dict[str, Optional[str]] = _headers or {}
|
|
2763
|
-
_form_params: List[Tuple[str, str]] = []
|
|
2764
|
-
_files: Dict[
|
|
2765
|
-
str, Union[str, bytes, List[str], List[bytes], List[Tuple[str, bytes]]]
|
|
2766
|
-
] = {}
|
|
2767
|
-
_body_params: Optional[bytes] = None
|
|
2768
|
-
|
|
2769
|
-
# process the path parameters
|
|
2770
|
-
if leaderboard_id is not None:
|
|
2771
|
-
_path_params['leaderboardId'] = leaderboard_id
|
|
2772
|
-
# process the query parameters
|
|
2773
|
-
# process the header parameters
|
|
2774
|
-
# process the form parameters
|
|
2775
|
-
# process the body parameter
|
|
2776
|
-
if update_leaderboard_model is not None:
|
|
2777
|
-
_body_params = update_leaderboard_model
|
|
2778
|
-
|
|
2779
|
-
|
|
2780
|
-
|
|
2781
|
-
# set the HTTP header `Content-Type`
|
|
2782
|
-
if _content_type:
|
|
2783
|
-
_header_params['Content-Type'] = _content_type
|
|
2784
|
-
else:
|
|
2785
|
-
_default_content_type = (
|
|
2786
|
-
self.api_client.select_header_content_type(
|
|
2787
|
-
[
|
|
2788
|
-
'application/json',
|
|
2789
|
-
'text/json',
|
|
2790
|
-
'application/*+json'
|
|
2791
|
-
]
|
|
2792
|
-
)
|
|
2793
|
-
)
|
|
2794
|
-
if _default_content_type is not None:
|
|
2795
|
-
_header_params['Content-Type'] = _default_content_type
|
|
2796
|
-
|
|
2797
|
-
# authentication setting
|
|
2798
|
-
_auth_settings: List[str] = [
|
|
2799
|
-
'bearer',
|
|
2800
|
-
'oauth2'
|
|
2801
|
-
]
|
|
2802
|
-
|
|
2803
|
-
return self.api_client.param_serialize(
|
|
2804
|
-
method='PATCH',
|
|
2805
|
-
resource_path='/leaderboard/{leaderboardId}',
|
|
2806
|
-
path_params=_path_params,
|
|
2807
|
-
query_params=_query_params,
|
|
2808
|
-
header_params=_header_params,
|
|
2809
|
-
body=_body_params,
|
|
2810
|
-
post_params=_form_params,
|
|
2811
|
-
files=_files,
|
|
2812
|
-
auth_settings=_auth_settings,
|
|
2813
|
-
collection_formats=_collection_formats,
|
|
2814
|
-
_host=_host,
|
|
2815
|
-
_request_auth=_request_auth
|
|
2816
|
-
)
|
|
2817
|
-
|
|
2818
|
-
|
|
2819
|
-
|
|
2820
|
-
|
|
2821
|
-
@validate_call
|
|
2822
|
-
def leaderboard_leaderboard_id_prompts_get(
|
|
2823
|
-
self,
|
|
2824
|
-
leaderboard_id: StrictStr,
|
|
2825
|
-
request: Optional[QueryModel] = None,
|
|
2826
|
-
_request_timeout: Union[
|
|
2827
|
-
None,
|
|
2828
|
-
Annotated[StrictFloat, Field(gt=0)],
|
|
2829
|
-
Tuple[
|
|
2830
|
-
Annotated[StrictFloat, Field(gt=0)],
|
|
2831
|
-
Annotated[StrictFloat, Field(gt=0)]
|
|
2832
|
-
]
|
|
2833
|
-
] = None,
|
|
2834
|
-
_request_auth: Optional[Dict[StrictStr, Any]] = None,
|
|
2835
|
-
_content_type: Optional[StrictStr] = None,
|
|
2836
|
-
_headers: Optional[Dict[StrictStr, Any]] = None,
|
|
2837
|
-
_host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
|
|
2838
|
-
) -> PromptByBenchmarkResultPagedResult:
|
|
2839
|
-
"""(Deprecated) returns the paged prompts of a leaderboard by its ID.
|
|
2840
|
-
|
|
2841
|
-
|
|
2842
|
-
:param leaderboard_id: (required)
|
|
2843
|
-
:type leaderboard_id: str
|
|
2844
|
-
:param request:
|
|
2845
|
-
:type request: QueryModel
|
|
2846
|
-
:param _request_timeout: timeout setting for this request. If one
|
|
2847
|
-
number provided, it will be total request
|
|
2848
|
-
timeout. It can also be a pair (tuple) of
|
|
2849
|
-
(connection, read) timeouts.
|
|
2850
|
-
:type _request_timeout: int, tuple(int, int), optional
|
|
2851
|
-
:param _request_auth: set to override the auth_settings for an a single
|
|
2852
|
-
request; this effectively ignores the
|
|
2853
|
-
authentication in the spec for a single request.
|
|
2854
|
-
:type _request_auth: dict, optional
|
|
2855
|
-
:param _content_type: force content-type for the request.
|
|
2856
|
-
:type _content_type: str, Optional
|
|
2857
|
-
:param _headers: set to override the headers for a single
|
|
2858
|
-
request; this effectively ignores the headers
|
|
2859
|
-
in the spec for a single request.
|
|
2860
|
-
:type _headers: dict, optional
|
|
2861
|
-
:param _host_index: set to override the host_index for a single
|
|
2862
|
-
request; this effectively ignores the host_index
|
|
2863
|
-
in the spec for a single request.
|
|
2864
|
-
:type _host_index: int, optional
|
|
2865
|
-
:return: Returns the result object.
|
|
2866
|
-
""" # noqa: E501
|
|
2867
|
-
warnings.warn("GET /leaderboard/{leaderboardId}/prompts is deprecated.", DeprecationWarning)
|
|
2868
|
-
|
|
2869
|
-
_param = self._leaderboard_leaderboard_id_prompts_get_serialize(
|
|
2870
|
-
leaderboard_id=leaderboard_id,
|
|
2871
|
-
request=request,
|
|
2872
|
-
_request_auth=_request_auth,
|
|
2873
|
-
_content_type=_content_type,
|
|
2874
|
-
_headers=_headers,
|
|
2875
|
-
_host_index=_host_index
|
|
2876
|
-
)
|
|
2877
|
-
|
|
2878
|
-
_response_types_map: Dict[str, Optional[str]] = {
|
|
2879
|
-
'200': "PromptByBenchmarkResultPagedResult",
|
|
2880
|
-
}
|
|
2881
|
-
response_data = self.api_client.call_api(
|
|
2882
|
-
*_param,
|
|
2883
|
-
_request_timeout=_request_timeout
|
|
2884
|
-
)
|
|
2885
|
-
response_data.read()
|
|
2886
|
-
return self.api_client.response_deserialize(
|
|
2887
|
-
response_data=response_data,
|
|
2888
|
-
response_types_map=_response_types_map,
|
|
2889
|
-
).data
|
|
2890
|
-
|
|
2891
|
-
|
|
2892
|
-
@validate_call
|
|
2893
|
-
def leaderboard_leaderboard_id_prompts_get_with_http_info(
|
|
2894
|
-
self,
|
|
2895
|
-
leaderboard_id: StrictStr,
|
|
2896
|
-
request: Optional[QueryModel] = None,
|
|
2897
|
-
_request_timeout: Union[
|
|
2898
|
-
None,
|
|
2899
|
-
Annotated[StrictFloat, Field(gt=0)],
|
|
2900
|
-
Tuple[
|
|
2901
|
-
Annotated[StrictFloat, Field(gt=0)],
|
|
2902
|
-
Annotated[StrictFloat, Field(gt=0)]
|
|
2903
|
-
]
|
|
2904
|
-
] = None,
|
|
2905
|
-
_request_auth: Optional[Dict[StrictStr, Any]] = None,
|
|
2906
|
-
_content_type: Optional[StrictStr] = None,
|
|
2907
|
-
_headers: Optional[Dict[StrictStr, Any]] = None,
|
|
2908
|
-
_host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
|
|
2909
|
-
) -> ApiResponse[PromptByBenchmarkResultPagedResult]:
|
|
2910
|
-
"""(Deprecated) returns the paged prompts of a leaderboard by its ID.
|
|
2911
|
-
|
|
2912
|
-
|
|
2913
|
-
:param leaderboard_id: (required)
|
|
2914
|
-
:type leaderboard_id: str
|
|
2915
|
-
:param request:
|
|
2916
|
-
:type request: QueryModel
|
|
2917
|
-
:param _request_timeout: timeout setting for this request. If one
|
|
2918
|
-
number provided, it will be total request
|
|
2919
|
-
timeout. It can also be a pair (tuple) of
|
|
2920
|
-
(connection, read) timeouts.
|
|
2921
|
-
:type _request_timeout: int, tuple(int, int), optional
|
|
2922
|
-
:param _request_auth: set to override the auth_settings for an a single
|
|
2923
|
-
request; this effectively ignores the
|
|
2924
|
-
authentication in the spec for a single request.
|
|
2925
|
-
:type _request_auth: dict, optional
|
|
2926
|
-
:param _content_type: force content-type for the request.
|
|
2927
|
-
:type _content_type: str, Optional
|
|
2928
|
-
:param _headers: set to override the headers for a single
|
|
2929
|
-
request; this effectively ignores the headers
|
|
2930
|
-
in the spec for a single request.
|
|
2931
|
-
:type _headers: dict, optional
|
|
2932
|
-
:param _host_index: set to override the host_index for a single
|
|
2933
|
-
request; this effectively ignores the host_index
|
|
2934
|
-
in the spec for a single request.
|
|
2935
|
-
:type _host_index: int, optional
|
|
2936
|
-
:return: Returns the result object.
|
|
2937
|
-
""" # noqa: E501
|
|
2938
|
-
warnings.warn("GET /leaderboard/{leaderboardId}/prompts is deprecated.", DeprecationWarning)
|
|
2939
|
-
|
|
2940
|
-
_param = self._leaderboard_leaderboard_id_prompts_get_serialize(
|
|
2941
|
-
leaderboard_id=leaderboard_id,
|
|
2942
|
-
request=request,
|
|
2943
|
-
_request_auth=_request_auth,
|
|
2944
|
-
_content_type=_content_type,
|
|
2945
|
-
_headers=_headers,
|
|
2946
|
-
_host_index=_host_index
|
|
2947
|
-
)
|
|
2948
|
-
|
|
2949
|
-
_response_types_map: Dict[str, Optional[str]] = {
|
|
2950
|
-
'200': "PromptByBenchmarkResultPagedResult",
|
|
2951
|
-
}
|
|
2952
|
-
response_data = self.api_client.call_api(
|
|
2953
|
-
*_param,
|
|
2954
|
-
_request_timeout=_request_timeout
|
|
2955
|
-
)
|
|
2956
|
-
response_data.read()
|
|
2957
|
-
return self.api_client.response_deserialize(
|
|
2958
|
-
response_data=response_data,
|
|
2959
|
-
response_types_map=_response_types_map,
|
|
2960
|
-
)
|
|
2961
|
-
|
|
2962
|
-
|
|
2963
|
-
@validate_call
|
|
2964
|
-
def leaderboard_leaderboard_id_prompts_get_without_preload_content(
|
|
2965
|
-
self,
|
|
2966
|
-
leaderboard_id: StrictStr,
|
|
2967
|
-
request: Optional[QueryModel] = None,
|
|
2968
|
-
_request_timeout: Union[
|
|
2969
|
-
None,
|
|
2970
|
-
Annotated[StrictFloat, Field(gt=0)],
|
|
2971
|
-
Tuple[
|
|
2972
|
-
Annotated[StrictFloat, Field(gt=0)],
|
|
2973
|
-
Annotated[StrictFloat, Field(gt=0)]
|
|
2974
|
-
]
|
|
2975
|
-
] = None,
|
|
2976
|
-
_request_auth: Optional[Dict[StrictStr, Any]] = None,
|
|
2977
|
-
_content_type: Optional[StrictStr] = None,
|
|
2978
|
-
_headers: Optional[Dict[StrictStr, Any]] = None,
|
|
2979
|
-
_host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
|
|
2980
|
-
) -> RESTResponseType:
|
|
2981
|
-
"""(Deprecated) returns the paged prompts of a leaderboard by its ID.
|
|
2982
|
-
|
|
2983
|
-
|
|
2984
|
-
:param leaderboard_id: (required)
|
|
2985
|
-
:type leaderboard_id: str
|
|
2986
|
-
:param request:
|
|
2987
|
-
:type request: QueryModel
|
|
2988
|
-
:param _request_timeout: timeout setting for this request. If one
|
|
2989
|
-
number provided, it will be total request
|
|
2990
|
-
timeout. It can also be a pair (tuple) of
|
|
2991
|
-
(connection, read) timeouts.
|
|
2992
|
-
:type _request_timeout: int, tuple(int, int), optional
|
|
2993
|
-
:param _request_auth: set to override the auth_settings for an a single
|
|
2994
|
-
request; this effectively ignores the
|
|
2995
|
-
authentication in the spec for a single request.
|
|
2996
|
-
:type _request_auth: dict, optional
|
|
2997
|
-
:param _content_type: force content-type for the request.
|
|
2998
|
-
:type _content_type: str, Optional
|
|
2999
|
-
:param _headers: set to override the headers for a single
|
|
3000
|
-
request; this effectively ignores the headers
|
|
3001
|
-
in the spec for a single request.
|
|
3002
|
-
:type _headers: dict, optional
|
|
3003
|
-
:param _host_index: set to override the host_index for a single
|
|
3004
|
-
request; this effectively ignores the host_index
|
|
3005
|
-
in the spec for a single request.
|
|
3006
|
-
:type _host_index: int, optional
|
|
3007
|
-
:return: Returns the result object.
|
|
3008
|
-
""" # noqa: E501
|
|
3009
|
-
warnings.warn("GET /leaderboard/{leaderboardId}/prompts is deprecated.", DeprecationWarning)
|
|
3010
|
-
|
|
3011
|
-
_param = self._leaderboard_leaderboard_id_prompts_get_serialize(
|
|
3012
|
-
leaderboard_id=leaderboard_id,
|
|
3013
|
-
request=request,
|
|
3014
|
-
_request_auth=_request_auth,
|
|
3015
|
-
_content_type=_content_type,
|
|
3016
|
-
_headers=_headers,
|
|
3017
|
-
_host_index=_host_index
|
|
3018
|
-
)
|
|
3019
|
-
|
|
3020
|
-
_response_types_map: Dict[str, Optional[str]] = {
|
|
3021
|
-
'200': "PromptByBenchmarkResultPagedResult",
|
|
3022
|
-
}
|
|
3023
|
-
response_data = self.api_client.call_api(
|
|
3024
|
-
*_param,
|
|
3025
|
-
_request_timeout=_request_timeout
|
|
3026
|
-
)
|
|
3027
|
-
return response_data.response
|
|
3028
|
-
|
|
3029
|
-
|
|
3030
|
-
def _leaderboard_leaderboard_id_prompts_get_serialize(
|
|
3031
|
-
self,
|
|
3032
|
-
leaderboard_id,
|
|
3033
|
-
request,
|
|
3034
|
-
_request_auth,
|
|
3035
|
-
_content_type,
|
|
3036
|
-
_headers,
|
|
3037
|
-
_host_index,
|
|
3038
|
-
) -> RequestSerialized:
|
|
3039
|
-
|
|
3040
|
-
_host = None
|
|
3041
|
-
|
|
3042
|
-
_collection_formats: Dict[str, str] = {
|
|
3043
|
-
}
|
|
3044
|
-
|
|
3045
|
-
_path_params: Dict[str, str] = {}
|
|
3046
|
-
_query_params: List[Tuple[str, str]] = []
|
|
3047
|
-
_header_params: Dict[str, Optional[str]] = _headers or {}
|
|
3048
|
-
_form_params: List[Tuple[str, str]] = []
|
|
3049
|
-
_files: Dict[
|
|
3050
|
-
str, Union[str, bytes, List[str], List[bytes], List[Tuple[str, bytes]]]
|
|
3051
|
-
] = {}
|
|
3052
|
-
_body_params: Optional[bytes] = None
|
|
3053
|
-
|
|
3054
|
-
# process the path parameters
|
|
3055
|
-
if leaderboard_id is not None:
|
|
3056
|
-
_path_params['leaderboardId'] = leaderboard_id
|
|
3057
|
-
# process the query parameters
|
|
3058
|
-
if request is not None:
|
|
3059
|
-
|
|
3060
|
-
_query_params.append(('request', request))
|
|
3061
|
-
|
|
3062
|
-
# process the header parameters
|
|
3063
|
-
# process the form parameters
|
|
3064
|
-
# process the body parameter
|
|
3065
|
-
|
|
3066
|
-
|
|
3067
|
-
# set the HTTP header `Accept`
|
|
3068
|
-
if 'Accept' not in _header_params:
|
|
3069
|
-
_header_params['Accept'] = self.api_client.select_header_accept(
|
|
3070
|
-
[
|
|
3071
|
-
'text/plain',
|
|
3072
|
-
'application/json',
|
|
3073
|
-
'text/json'
|
|
3074
|
-
]
|
|
3075
|
-
)
|
|
3076
|
-
|
|
3077
|
-
|
|
3078
|
-
# authentication setting
|
|
3079
|
-
_auth_settings: List[str] = [
|
|
3080
|
-
'bearer',
|
|
3081
|
-
'oauth2'
|
|
3082
|
-
]
|
|
3083
|
-
|
|
3084
|
-
return self.api_client.param_serialize(
|
|
3085
|
-
method='GET',
|
|
3086
|
-
resource_path='/leaderboard/{leaderboardId}/prompts',
|
|
3087
|
-
path_params=_path_params,
|
|
3088
|
-
query_params=_query_params,
|
|
3089
|
-
header_params=_header_params,
|
|
3090
|
-
body=_body_params,
|
|
3091
|
-
post_params=_form_params,
|
|
3092
|
-
files=_files,
|
|
3093
|
-
auth_settings=_auth_settings,
|
|
3094
|
-
collection_formats=_collection_formats,
|
|
3095
|
-
_host=_host,
|
|
3096
|
-
_request_auth=_request_auth
|
|
3097
|
-
)
|
|
3098
|
-
|
|
3099
|
-
|
|
3100
|
-
|
|
3101
|
-
|
|
3102
|
-
@validate_call
|
|
3103
|
-
def leaderboard_leaderboard_id_prompts_post(
|
|
3104
|
-
self,
|
|
3105
|
-
leaderboard_id: Annotated[StrictStr, Field(description="The leaderboard id.")],
|
|
3106
|
-
body: Annotated[Optional[StrictStr], Field(description="The prompt")] = None,
|
|
3107
|
-
_request_timeout: Union[
|
|
3108
|
-
None,
|
|
3109
|
-
Annotated[StrictFloat, Field(gt=0)],
|
|
3110
|
-
Tuple[
|
|
3111
|
-
Annotated[StrictFloat, Field(gt=0)],
|
|
3112
|
-
Annotated[StrictFloat, Field(gt=0)]
|
|
3113
|
-
]
|
|
3114
|
-
] = None,
|
|
3115
|
-
_request_auth: Optional[Dict[StrictStr, Any]] = None,
|
|
3116
|
-
_content_type: Optional[StrictStr] = None,
|
|
3117
|
-
_headers: Optional[Dict[StrictStr, Any]] = None,
|
|
3118
|
-
_host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
|
|
3119
|
-
) -> None:
|
|
3120
|
-
"""(Deprecated) adds a new prompt to a leaderboard.
|
|
3121
|
-
|
|
3122
|
-
|
|
3123
|
-
:param leaderboard_id: The leaderboard id. (required)
|
|
3124
|
-
:type leaderboard_id: str
|
|
3125
|
-
:param body: The prompt
|
|
3126
|
-
:type body: str
|
|
3127
|
-
:param _request_timeout: timeout setting for this request. If one
|
|
3128
|
-
number provided, it will be total request
|
|
3129
|
-
timeout. It can also be a pair (tuple) of
|
|
3130
|
-
(connection, read) timeouts.
|
|
3131
|
-
:type _request_timeout: int, tuple(int, int), optional
|
|
3132
|
-
:param _request_auth: set to override the auth_settings for an a single
|
|
3133
|
-
request; this effectively ignores the
|
|
3134
|
-
authentication in the spec for a single request.
|
|
3135
|
-
:type _request_auth: dict, optional
|
|
3136
|
-
:param _content_type: force content-type for the request.
|
|
3137
|
-
:type _content_type: str, Optional
|
|
3138
|
-
:param _headers: set to override the headers for a single
|
|
3139
|
-
request; this effectively ignores the headers
|
|
3140
|
-
in the spec for a single request.
|
|
3141
|
-
:type _headers: dict, optional
|
|
3142
|
-
:param _host_index: set to override the host_index for a single
|
|
3143
|
-
request; this effectively ignores the host_index
|
|
3144
|
-
in the spec for a single request.
|
|
3145
|
-
:type _host_index: int, optional
|
|
3146
|
-
:return: Returns the result object.
|
|
3147
|
-
""" # noqa: E501
|
|
3148
|
-
warnings.warn("POST /leaderboard/{leaderboardId}/prompts is deprecated.", DeprecationWarning)
|
|
3149
|
-
|
|
3150
|
-
_param = self._leaderboard_leaderboard_id_prompts_post_serialize(
|
|
3151
|
-
leaderboard_id=leaderboard_id,
|
|
3152
|
-
body=body,
|
|
3153
|
-
_request_auth=_request_auth,
|
|
3154
|
-
_content_type=_content_type,
|
|
3155
|
-
_headers=_headers,
|
|
3156
|
-
_host_index=_host_index
|
|
3157
|
-
)
|
|
3158
|
-
|
|
3159
|
-
_response_types_map: Dict[str, Optional[str]] = {
|
|
3160
|
-
'204': None,
|
|
3161
|
-
}
|
|
3162
|
-
response_data = self.api_client.call_api(
|
|
3163
|
-
*_param,
|
|
3164
|
-
_request_timeout=_request_timeout
|
|
3165
|
-
)
|
|
3166
|
-
response_data.read()
|
|
3167
|
-
return self.api_client.response_deserialize(
|
|
3168
|
-
response_data=response_data,
|
|
3169
|
-
response_types_map=_response_types_map,
|
|
3170
|
-
).data
|
|
3171
|
-
|
|
3172
|
-
|
|
3173
|
-
@validate_call
|
|
3174
|
-
def leaderboard_leaderboard_id_prompts_post_with_http_info(
|
|
3175
|
-
self,
|
|
3176
|
-
leaderboard_id: Annotated[StrictStr, Field(description="The leaderboard id.")],
|
|
3177
|
-
body: Annotated[Optional[StrictStr], Field(description="The prompt")] = None,
|
|
3178
|
-
_request_timeout: Union[
|
|
3179
|
-
None,
|
|
3180
|
-
Annotated[StrictFloat, Field(gt=0)],
|
|
3181
|
-
Tuple[
|
|
3182
|
-
Annotated[StrictFloat, Field(gt=0)],
|
|
3183
|
-
Annotated[StrictFloat, Field(gt=0)]
|
|
3184
|
-
]
|
|
3185
|
-
] = None,
|
|
3186
|
-
_request_auth: Optional[Dict[StrictStr, Any]] = None,
|
|
3187
|
-
_content_type: Optional[StrictStr] = None,
|
|
3188
|
-
_headers: Optional[Dict[StrictStr, Any]] = None,
|
|
3189
|
-
_host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
|
|
3190
|
-
) -> ApiResponse[None]:
|
|
3191
|
-
"""(Deprecated) adds a new prompt to a leaderboard.
|
|
3192
|
-
|
|
3193
|
-
|
|
3194
|
-
:param leaderboard_id: The leaderboard id. (required)
|
|
3195
|
-
:type leaderboard_id: str
|
|
3196
|
-
:param body: The prompt
|
|
3197
|
-
:type body: str
|
|
3198
|
-
:param _request_timeout: timeout setting for this request. If one
|
|
3199
|
-
number provided, it will be total request
|
|
3200
|
-
timeout. It can also be a pair (tuple) of
|
|
3201
|
-
(connection, read) timeouts.
|
|
3202
|
-
:type _request_timeout: int, tuple(int, int), optional
|
|
3203
|
-
:param _request_auth: set to override the auth_settings for an a single
|
|
3204
|
-
request; this effectively ignores the
|
|
3205
|
-
authentication in the spec for a single request.
|
|
3206
|
-
:type _request_auth: dict, optional
|
|
3207
|
-
:param _content_type: force content-type for the request.
|
|
3208
|
-
:type _content_type: str, Optional
|
|
3209
|
-
:param _headers: set to override the headers for a single
|
|
3210
|
-
request; this effectively ignores the headers
|
|
3211
|
-
in the spec for a single request.
|
|
3212
|
-
:type _headers: dict, optional
|
|
3213
|
-
:param _host_index: set to override the host_index for a single
|
|
3214
|
-
request; this effectively ignores the host_index
|
|
3215
|
-
in the spec for a single request.
|
|
3216
|
-
:type _host_index: int, optional
|
|
3217
|
-
:return: Returns the result object.
|
|
3218
|
-
""" # noqa: E501
|
|
3219
|
-
warnings.warn("POST /leaderboard/{leaderboardId}/prompts is deprecated.", DeprecationWarning)
|
|
3220
|
-
|
|
3221
|
-
_param = self._leaderboard_leaderboard_id_prompts_post_serialize(
|
|
3222
|
-
leaderboard_id=leaderboard_id,
|
|
3223
|
-
body=body,
|
|
3224
|
-
_request_auth=_request_auth,
|
|
3225
|
-
_content_type=_content_type,
|
|
3226
|
-
_headers=_headers,
|
|
3227
|
-
_host_index=_host_index
|
|
3228
|
-
)
|
|
3229
|
-
|
|
3230
|
-
_response_types_map: Dict[str, Optional[str]] = {
|
|
3231
|
-
'204': None,
|
|
3232
|
-
}
|
|
3233
|
-
response_data = self.api_client.call_api(
|
|
3234
|
-
*_param,
|
|
3235
|
-
_request_timeout=_request_timeout
|
|
3236
|
-
)
|
|
3237
|
-
response_data.read()
|
|
3238
|
-
return self.api_client.response_deserialize(
|
|
3239
|
-
response_data=response_data,
|
|
3240
|
-
response_types_map=_response_types_map,
|
|
3241
|
-
)
|
|
3242
|
-
|
|
3243
|
-
|
|
3244
|
-
@validate_call
|
|
3245
|
-
def leaderboard_leaderboard_id_prompts_post_without_preload_content(
|
|
3246
|
-
self,
|
|
3247
|
-
leaderboard_id: Annotated[StrictStr, Field(description="The leaderboard id.")],
|
|
3248
|
-
body: Annotated[Optional[StrictStr], Field(description="The prompt")] = None,
|
|
3249
|
-
_request_timeout: Union[
|
|
3250
|
-
None,
|
|
3251
|
-
Annotated[StrictFloat, Field(gt=0)],
|
|
3252
|
-
Tuple[
|
|
3253
|
-
Annotated[StrictFloat, Field(gt=0)],
|
|
3254
|
-
Annotated[StrictFloat, Field(gt=0)]
|
|
3255
|
-
]
|
|
3256
|
-
] = None,
|
|
3257
|
-
_request_auth: Optional[Dict[StrictStr, Any]] = None,
|
|
3258
|
-
_content_type: Optional[StrictStr] = None,
|
|
3259
|
-
_headers: Optional[Dict[StrictStr, Any]] = None,
|
|
3260
|
-
_host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
|
|
3261
|
-
) -> RESTResponseType:
|
|
3262
|
-
"""(Deprecated) adds a new prompt to a leaderboard.
|
|
3263
|
-
|
|
3264
|
-
|
|
3265
|
-
:param leaderboard_id: The leaderboard id. (required)
|
|
3266
|
-
:type leaderboard_id: str
|
|
3267
|
-
:param body: The prompt
|
|
3268
|
-
:type body: str
|
|
3269
|
-
:param _request_timeout: timeout setting for this request. If one
|
|
3270
|
-
number provided, it will be total request
|
|
3271
|
-
timeout. It can also be a pair (tuple) of
|
|
3272
|
-
(connection, read) timeouts.
|
|
3273
|
-
:type _request_timeout: int, tuple(int, int), optional
|
|
3274
|
-
:param _request_auth: set to override the auth_settings for an a single
|
|
3275
|
-
request; this effectively ignores the
|
|
3276
|
-
authentication in the spec for a single request.
|
|
3277
|
-
:type _request_auth: dict, optional
|
|
3278
|
-
:param _content_type: force content-type for the request.
|
|
3279
|
-
:type _content_type: str, Optional
|
|
3280
|
-
:param _headers: set to override the headers for a single
|
|
3281
|
-
request; this effectively ignores the headers
|
|
3282
|
-
in the spec for a single request.
|
|
3283
|
-
:type _headers: dict, optional
|
|
3284
|
-
:param _host_index: set to override the host_index for a single
|
|
3285
|
-
request; this effectively ignores the host_index
|
|
3286
|
-
in the spec for a single request.
|
|
3287
|
-
:type _host_index: int, optional
|
|
3288
|
-
:return: Returns the result object.
|
|
3289
|
-
""" # noqa: E501
|
|
3290
|
-
warnings.warn("POST /leaderboard/{leaderboardId}/prompts is deprecated.", DeprecationWarning)
|
|
3291
|
-
|
|
3292
|
-
_param = self._leaderboard_leaderboard_id_prompts_post_serialize(
|
|
3293
|
-
leaderboard_id=leaderboard_id,
|
|
3294
|
-
body=body,
|
|
3295
|
-
_request_auth=_request_auth,
|
|
3296
|
-
_content_type=_content_type,
|
|
3297
|
-
_headers=_headers,
|
|
3298
|
-
_host_index=_host_index
|
|
3299
|
-
)
|
|
3300
|
-
|
|
3301
|
-
_response_types_map: Dict[str, Optional[str]] = {
|
|
3302
|
-
'204': None,
|
|
3303
|
-
}
|
|
3304
|
-
response_data = self.api_client.call_api(
|
|
3305
|
-
*_param,
|
|
3306
|
-
_request_timeout=_request_timeout
|
|
3307
|
-
)
|
|
3308
|
-
return response_data.response
|
|
3309
|
-
|
|
3310
|
-
|
|
3311
|
-
def _leaderboard_leaderboard_id_prompts_post_serialize(
|
|
3312
|
-
self,
|
|
3313
|
-
leaderboard_id,
|
|
3314
|
-
body,
|
|
3315
|
-
_request_auth,
|
|
3316
|
-
_content_type,
|
|
3317
|
-
_headers,
|
|
3318
|
-
_host_index,
|
|
3319
|
-
) -> RequestSerialized:
|
|
3320
|
-
|
|
3321
|
-
_host = None
|
|
3322
|
-
|
|
3323
|
-
_collection_formats: Dict[str, str] = {
|
|
3324
|
-
}
|
|
3325
|
-
|
|
3326
|
-
_path_params: Dict[str, str] = {}
|
|
3327
|
-
_query_params: List[Tuple[str, str]] = []
|
|
3328
|
-
_header_params: Dict[str, Optional[str]] = _headers or {}
|
|
3329
|
-
_form_params: List[Tuple[str, str]] = []
|
|
3330
|
-
_files: Dict[
|
|
3331
|
-
str, Union[str, bytes, List[str], List[bytes], List[Tuple[str, bytes]]]
|
|
3332
|
-
] = {}
|
|
3333
|
-
_body_params: Optional[bytes] = None
|
|
3334
|
-
|
|
3335
|
-
# process the path parameters
|
|
3336
|
-
if leaderboard_id is not None:
|
|
3337
|
-
_path_params['leaderboardId'] = leaderboard_id
|
|
3338
|
-
# process the query parameters
|
|
3339
|
-
# process the header parameters
|
|
3340
|
-
# process the form parameters
|
|
3341
|
-
# process the body parameter
|
|
3342
|
-
if body is not None:
|
|
3343
|
-
_body_params = body
|
|
3344
|
-
|
|
3345
|
-
|
|
3346
|
-
|
|
3347
|
-
# set the HTTP header `Content-Type`
|
|
3348
|
-
if _content_type:
|
|
3349
|
-
_header_params['Content-Type'] = _content_type
|
|
3350
|
-
else:
|
|
3351
|
-
_default_content_type = (
|
|
3352
|
-
self.api_client.select_header_content_type(
|
|
3353
|
-
[
|
|
3354
|
-
'application/json',
|
|
3355
|
-
'text/json',
|
|
3356
|
-
'application/*+json',
|
|
3357
|
-
'text/plain'
|
|
3358
|
-
]
|
|
3359
|
-
)
|
|
3360
|
-
)
|
|
3361
|
-
if _default_content_type is not None:
|
|
3362
|
-
_header_params['Content-Type'] = _default_content_type
|
|
3363
|
-
|
|
3364
|
-
# authentication setting
|
|
3365
|
-
_auth_settings: List[str] = [
|
|
3366
|
-
'bearer',
|
|
3367
|
-
'oauth2'
|
|
3368
|
-
]
|
|
3369
|
-
|
|
3370
|
-
return self.api_client.param_serialize(
|
|
3371
|
-
method='POST',
|
|
3372
|
-
resource_path='/leaderboard/{leaderboardId}/prompts',
|
|
3373
|
-
path_params=_path_params,
|
|
3374
|
-
query_params=_query_params,
|
|
3375
|
-
header_params=_header_params,
|
|
3376
|
-
body=_body_params,
|
|
3377
|
-
post_params=_form_params,
|
|
3378
|
-
files=_files,
|
|
3379
|
-
auth_settings=_auth_settings,
|
|
3380
|
-
collection_formats=_collection_formats,
|
|
3381
|
-
_host=_host,
|
|
3382
|
-
_request_auth=_request_auth
|
|
3383
|
-
)
|
|
3384
|
-
|
|
3385
|
-
|
|
3386
|
-
|
|
3387
|
-
|
|
3388
|
-
@validate_call
|
|
3389
|
-
def leaderboard_leaderboard_id_response_config_put(
|
|
1137
|
+
def leaderboard_leaderboard_id_patch(
|
|
3390
1138
|
self,
|
|
3391
1139
|
leaderboard_id: StrictStr,
|
|
3392
|
-
|
|
1140
|
+
update_leaderboard_model: UpdateLeaderboardModel,
|
|
3393
1141
|
_request_timeout: Union[
|
|
3394
1142
|
None,
|
|
3395
1143
|
Annotated[StrictFloat, Field(gt=0)],
|
|
@@ -3403,13 +1151,13 @@ class LeaderboardApi:
|
|
|
3403
1151
|
_headers: Optional[Dict[StrictStr, Any]] = None,
|
|
3404
1152
|
_host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
|
|
3405
1153
|
) -> None:
|
|
3406
|
-
"""
|
|
1154
|
+
"""Updates the response config of a leaderboard.
|
|
3407
1155
|
|
|
3408
1156
|
|
|
3409
1157
|
:param leaderboard_id: (required)
|
|
3410
1158
|
:type leaderboard_id: str
|
|
3411
|
-
:param
|
|
3412
|
-
:type
|
|
1159
|
+
:param update_leaderboard_model: (required)
|
|
1160
|
+
:type update_leaderboard_model: UpdateLeaderboardModel
|
|
3413
1161
|
:param _request_timeout: timeout setting for this request. If one
|
|
3414
1162
|
number provided, it will be total request
|
|
3415
1163
|
timeout. It can also be a pair (tuple) of
|
|
@@ -3431,11 +1179,10 @@ class LeaderboardApi:
|
|
|
3431
1179
|
:type _host_index: int, optional
|
|
3432
1180
|
:return: Returns the result object.
|
|
3433
1181
|
""" # noqa: E501
|
|
3434
|
-
warnings.warn("PUT /leaderboard/{leaderboardId}/response-config is deprecated.", DeprecationWarning)
|
|
3435
1182
|
|
|
3436
|
-
_param = self.
|
|
1183
|
+
_param = self._leaderboard_leaderboard_id_patch_serialize(
|
|
3437
1184
|
leaderboard_id=leaderboard_id,
|
|
3438
|
-
|
|
1185
|
+
update_leaderboard_model=update_leaderboard_model,
|
|
3439
1186
|
_request_auth=_request_auth,
|
|
3440
1187
|
_content_type=_content_type,
|
|
3441
1188
|
_headers=_headers,
|
|
@@ -3457,10 +1204,10 @@ class LeaderboardApi:
|
|
|
3457
1204
|
|
|
3458
1205
|
|
|
3459
1206
|
@validate_call
|
|
3460
|
-
def
|
|
1207
|
+
def leaderboard_leaderboard_id_patch_with_http_info(
|
|
3461
1208
|
self,
|
|
3462
1209
|
leaderboard_id: StrictStr,
|
|
3463
|
-
|
|
1210
|
+
update_leaderboard_model: UpdateLeaderboardModel,
|
|
3464
1211
|
_request_timeout: Union[
|
|
3465
1212
|
None,
|
|
3466
1213
|
Annotated[StrictFloat, Field(gt=0)],
|
|
@@ -3474,13 +1221,13 @@ class LeaderboardApi:
|
|
|
3474
1221
|
_headers: Optional[Dict[StrictStr, Any]] = None,
|
|
3475
1222
|
_host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
|
|
3476
1223
|
) -> ApiResponse[None]:
|
|
3477
|
-
"""
|
|
1224
|
+
"""Updates the response config of a leaderboard.
|
|
3478
1225
|
|
|
3479
1226
|
|
|
3480
1227
|
:param leaderboard_id: (required)
|
|
3481
1228
|
:type leaderboard_id: str
|
|
3482
|
-
:param
|
|
3483
|
-
:type
|
|
1229
|
+
:param update_leaderboard_model: (required)
|
|
1230
|
+
:type update_leaderboard_model: UpdateLeaderboardModel
|
|
3484
1231
|
:param _request_timeout: timeout setting for this request. If one
|
|
3485
1232
|
number provided, it will be total request
|
|
3486
1233
|
timeout. It can also be a pair (tuple) of
|
|
@@ -3502,11 +1249,10 @@ class LeaderboardApi:
|
|
|
3502
1249
|
:type _host_index: int, optional
|
|
3503
1250
|
:return: Returns the result object.
|
|
3504
1251
|
""" # noqa: E501
|
|
3505
|
-
warnings.warn("PUT /leaderboard/{leaderboardId}/response-config is deprecated.", DeprecationWarning)
|
|
3506
1252
|
|
|
3507
|
-
_param = self.
|
|
1253
|
+
_param = self._leaderboard_leaderboard_id_patch_serialize(
|
|
3508
1254
|
leaderboard_id=leaderboard_id,
|
|
3509
|
-
|
|
1255
|
+
update_leaderboard_model=update_leaderboard_model,
|
|
3510
1256
|
_request_auth=_request_auth,
|
|
3511
1257
|
_content_type=_content_type,
|
|
3512
1258
|
_headers=_headers,
|
|
@@ -3528,10 +1274,10 @@ class LeaderboardApi:
|
|
|
3528
1274
|
|
|
3529
1275
|
|
|
3530
1276
|
@validate_call
|
|
3531
|
-
def
|
|
1277
|
+
def leaderboard_leaderboard_id_patch_without_preload_content(
|
|
3532
1278
|
self,
|
|
3533
1279
|
leaderboard_id: StrictStr,
|
|
3534
|
-
|
|
1280
|
+
update_leaderboard_model: UpdateLeaderboardModel,
|
|
3535
1281
|
_request_timeout: Union[
|
|
3536
1282
|
None,
|
|
3537
1283
|
Annotated[StrictFloat, Field(gt=0)],
|
|
@@ -3545,13 +1291,13 @@ class LeaderboardApi:
|
|
|
3545
1291
|
_headers: Optional[Dict[StrictStr, Any]] = None,
|
|
3546
1292
|
_host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
|
|
3547
1293
|
) -> RESTResponseType:
|
|
3548
|
-
"""
|
|
1294
|
+
"""Updates the response config of a leaderboard.
|
|
3549
1295
|
|
|
3550
1296
|
|
|
3551
1297
|
:param leaderboard_id: (required)
|
|
3552
1298
|
:type leaderboard_id: str
|
|
3553
|
-
:param
|
|
3554
|
-
:type
|
|
1299
|
+
:param update_leaderboard_model: (required)
|
|
1300
|
+
:type update_leaderboard_model: UpdateLeaderboardModel
|
|
3555
1301
|
:param _request_timeout: timeout setting for this request. If one
|
|
3556
1302
|
number provided, it will be total request
|
|
3557
1303
|
timeout. It can also be a pair (tuple) of
|
|
@@ -3573,11 +1319,10 @@ class LeaderboardApi:
|
|
|
3573
1319
|
:type _host_index: int, optional
|
|
3574
1320
|
:return: Returns the result object.
|
|
3575
1321
|
""" # noqa: E501
|
|
3576
|
-
warnings.warn("PUT /leaderboard/{leaderboardId}/response-config is deprecated.", DeprecationWarning)
|
|
3577
1322
|
|
|
3578
|
-
_param = self.
|
|
1323
|
+
_param = self._leaderboard_leaderboard_id_patch_serialize(
|
|
3579
1324
|
leaderboard_id=leaderboard_id,
|
|
3580
|
-
|
|
1325
|
+
update_leaderboard_model=update_leaderboard_model,
|
|
3581
1326
|
_request_auth=_request_auth,
|
|
3582
1327
|
_content_type=_content_type,
|
|
3583
1328
|
_headers=_headers,
|
|
@@ -3594,10 +1339,10 @@ class LeaderboardApi:
|
|
|
3594
1339
|
return response_data.response
|
|
3595
1340
|
|
|
3596
1341
|
|
|
3597
|
-
def
|
|
1342
|
+
def _leaderboard_leaderboard_id_patch_serialize(
|
|
3598
1343
|
self,
|
|
3599
1344
|
leaderboard_id,
|
|
3600
|
-
|
|
1345
|
+
update_leaderboard_model,
|
|
3601
1346
|
_request_auth,
|
|
3602
1347
|
_content_type,
|
|
3603
1348
|
_headers,
|
|
@@ -3625,8 +1370,8 @@ class LeaderboardApi:
|
|
|
3625
1370
|
# process the header parameters
|
|
3626
1371
|
# process the form parameters
|
|
3627
1372
|
# process the body parameter
|
|
3628
|
-
if
|
|
3629
|
-
_body_params =
|
|
1373
|
+
if update_leaderboard_model is not None:
|
|
1374
|
+
_body_params = update_leaderboard_model
|
|
3630
1375
|
|
|
3631
1376
|
|
|
3632
1377
|
|
|
@@ -3648,13 +1393,14 @@ class LeaderboardApi:
|
|
|
3648
1393
|
|
|
3649
1394
|
# authentication setting
|
|
3650
1395
|
_auth_settings: List[str] = [
|
|
3651
|
-
'
|
|
3652
|
-
'
|
|
1396
|
+
'OAuth2',
|
|
1397
|
+
'OpenIdConnect',
|
|
1398
|
+
'Bearer'
|
|
3653
1399
|
]
|
|
3654
1400
|
|
|
3655
1401
|
return self.api_client.param_serialize(
|
|
3656
|
-
method='
|
|
3657
|
-
resource_path='/leaderboard/{leaderboardId}
|
|
1402
|
+
method='PATCH',
|
|
1403
|
+
resource_path='/leaderboard/{leaderboardId}',
|
|
3658
1404
|
path_params=_path_params,
|
|
3659
1405
|
query_params=_query_params,
|
|
3660
1406
|
header_params=_header_params,
|
|
@@ -3687,7 +1433,7 @@ class LeaderboardApi:
|
|
|
3687
1433
|
_content_type: Optional[StrictStr] = None,
|
|
3688
1434
|
_headers: Optional[Dict[StrictStr, Any]] = None,
|
|
3689
1435
|
_host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
|
|
3690
|
-
) ->
|
|
1436
|
+
) -> PagedResultOfRunsByLeaderboardResult:
|
|
3691
1437
|
"""Gets the runs related to a leaderboard
|
|
3692
1438
|
|
|
3693
1439
|
|
|
@@ -3727,7 +1473,7 @@ class LeaderboardApi:
|
|
|
3727
1473
|
)
|
|
3728
1474
|
|
|
3729
1475
|
_response_types_map: Dict[str, Optional[str]] = {
|
|
3730
|
-
'200': "
|
|
1476
|
+
'200': "PagedResultOfRunsByLeaderboardResult",
|
|
3731
1477
|
}
|
|
3732
1478
|
response_data = self.api_client.call_api(
|
|
3733
1479
|
*_param,
|
|
@@ -3757,7 +1503,7 @@ class LeaderboardApi:
|
|
|
3757
1503
|
_content_type: Optional[StrictStr] = None,
|
|
3758
1504
|
_headers: Optional[Dict[StrictStr, Any]] = None,
|
|
3759
1505
|
_host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
|
|
3760
|
-
) -> ApiResponse[
|
|
1506
|
+
) -> ApiResponse[PagedResultOfRunsByLeaderboardResult]:
|
|
3761
1507
|
"""Gets the runs related to a leaderboard
|
|
3762
1508
|
|
|
3763
1509
|
|
|
@@ -3797,7 +1543,7 @@ class LeaderboardApi:
|
|
|
3797
1543
|
)
|
|
3798
1544
|
|
|
3799
1545
|
_response_types_map: Dict[str, Optional[str]] = {
|
|
3800
|
-
'200': "
|
|
1546
|
+
'200': "PagedResultOfRunsByLeaderboardResult",
|
|
3801
1547
|
}
|
|
3802
1548
|
response_data = self.api_client.call_api(
|
|
3803
1549
|
*_param,
|
|
@@ -3867,7 +1613,7 @@ class LeaderboardApi:
|
|
|
3867
1613
|
)
|
|
3868
1614
|
|
|
3869
1615
|
_response_types_map: Dict[str, Optional[str]] = {
|
|
3870
|
-
'200': "
|
|
1616
|
+
'200': "PagedResultOfRunsByLeaderboardResult",
|
|
3871
1617
|
}
|
|
3872
1618
|
response_data = self.api_client.call_api(
|
|
3873
1619
|
*_param,
|
|
@@ -3926,8 +1672,9 @@ class LeaderboardApi:
|
|
|
3926
1672
|
|
|
3927
1673
|
# authentication setting
|
|
3928
1674
|
_auth_settings: List[str] = [
|
|
3929
|
-
'
|
|
3930
|
-
'
|
|
1675
|
+
'OAuth2',
|
|
1676
|
+
'OpenIdConnect',
|
|
1677
|
+
'Bearer'
|
|
3931
1678
|
]
|
|
3932
1679
|
|
|
3933
1680
|
return self.api_client.param_serialize(
|
|
@@ -3951,8 +1698,10 @@ class LeaderboardApi:
|
|
|
3951
1698
|
@validate_call
|
|
3952
1699
|
def leaderboard_leaderboard_id_standings_get(
|
|
3953
1700
|
self,
|
|
3954
|
-
leaderboard_id:
|
|
3955
|
-
tags:
|
|
1701
|
+
leaderboard_id: StrictStr,
|
|
1702
|
+
tags: Optional[List[StrictStr]] = None,
|
|
1703
|
+
use_weighted_scoring: Optional[StrictBool] = None,
|
|
1704
|
+
include_confidence_intervals: Optional[StrictBool] = None,
|
|
3956
1705
|
_request_timeout: Union[
|
|
3957
1706
|
None,
|
|
3958
1707
|
Annotated[StrictFloat, Field(gt=0)],
|
|
@@ -3966,13 +1715,17 @@ class LeaderboardApi:
|
|
|
3966
1715
|
_headers: Optional[Dict[StrictStr, Any]] = None,
|
|
3967
1716
|
_host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
|
|
3968
1717
|
) -> StandingsByLeaderboardResult:
|
|
3969
|
-
"""
|
|
1718
|
+
"""leaderboard_leaderboard_id_standings_get
|
|
3970
1719
|
|
|
3971
1720
|
|
|
3972
|
-
:param leaderboard_id:
|
|
1721
|
+
:param leaderboard_id: (required)
|
|
3973
1722
|
:type leaderboard_id: str
|
|
3974
|
-
:param tags:
|
|
1723
|
+
:param tags:
|
|
3975
1724
|
:type tags: List[str]
|
|
1725
|
+
:param use_weighted_scoring:
|
|
1726
|
+
:type use_weighted_scoring: bool
|
|
1727
|
+
:param include_confidence_intervals:
|
|
1728
|
+
:type include_confidence_intervals: bool
|
|
3976
1729
|
:param _request_timeout: timeout setting for this request. If one
|
|
3977
1730
|
number provided, it will be total request
|
|
3978
1731
|
timeout. It can also be a pair (tuple) of
|
|
@@ -3998,6 +1751,8 @@ class LeaderboardApi:
|
|
|
3998
1751
|
_param = self._leaderboard_leaderboard_id_standings_get_serialize(
|
|
3999
1752
|
leaderboard_id=leaderboard_id,
|
|
4000
1753
|
tags=tags,
|
|
1754
|
+
use_weighted_scoring=use_weighted_scoring,
|
|
1755
|
+
include_confidence_intervals=include_confidence_intervals,
|
|
4001
1756
|
_request_auth=_request_auth,
|
|
4002
1757
|
_content_type=_content_type,
|
|
4003
1758
|
_headers=_headers,
|
|
@@ -4021,8 +1776,10 @@ class LeaderboardApi:
|
|
|
4021
1776
|
@validate_call
|
|
4022
1777
|
def leaderboard_leaderboard_id_standings_get_with_http_info(
|
|
4023
1778
|
self,
|
|
4024
|
-
leaderboard_id:
|
|
4025
|
-
tags:
|
|
1779
|
+
leaderboard_id: StrictStr,
|
|
1780
|
+
tags: Optional[List[StrictStr]] = None,
|
|
1781
|
+
use_weighted_scoring: Optional[StrictBool] = None,
|
|
1782
|
+
include_confidence_intervals: Optional[StrictBool] = None,
|
|
4026
1783
|
_request_timeout: Union[
|
|
4027
1784
|
None,
|
|
4028
1785
|
Annotated[StrictFloat, Field(gt=0)],
|
|
@@ -4036,13 +1793,17 @@ class LeaderboardApi:
|
|
|
4036
1793
|
_headers: Optional[Dict[StrictStr, Any]] = None,
|
|
4037
1794
|
_host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
|
|
4038
1795
|
) -> ApiResponse[StandingsByLeaderboardResult]:
|
|
4039
|
-
"""
|
|
1796
|
+
"""leaderboard_leaderboard_id_standings_get
|
|
4040
1797
|
|
|
4041
1798
|
|
|
4042
|
-
:param leaderboard_id:
|
|
1799
|
+
:param leaderboard_id: (required)
|
|
4043
1800
|
:type leaderboard_id: str
|
|
4044
|
-
:param tags:
|
|
1801
|
+
:param tags:
|
|
4045
1802
|
:type tags: List[str]
|
|
1803
|
+
:param use_weighted_scoring:
|
|
1804
|
+
:type use_weighted_scoring: bool
|
|
1805
|
+
:param include_confidence_intervals:
|
|
1806
|
+
:type include_confidence_intervals: bool
|
|
4046
1807
|
:param _request_timeout: timeout setting for this request. If one
|
|
4047
1808
|
number provided, it will be total request
|
|
4048
1809
|
timeout. It can also be a pair (tuple) of
|
|
@@ -4068,6 +1829,8 @@ class LeaderboardApi:
|
|
|
4068
1829
|
_param = self._leaderboard_leaderboard_id_standings_get_serialize(
|
|
4069
1830
|
leaderboard_id=leaderboard_id,
|
|
4070
1831
|
tags=tags,
|
|
1832
|
+
use_weighted_scoring=use_weighted_scoring,
|
|
1833
|
+
include_confidence_intervals=include_confidence_intervals,
|
|
4071
1834
|
_request_auth=_request_auth,
|
|
4072
1835
|
_content_type=_content_type,
|
|
4073
1836
|
_headers=_headers,
|
|
@@ -4091,8 +1854,10 @@ class LeaderboardApi:
|
|
|
4091
1854
|
@validate_call
|
|
4092
1855
|
def leaderboard_leaderboard_id_standings_get_without_preload_content(
|
|
4093
1856
|
self,
|
|
4094
|
-
leaderboard_id:
|
|
4095
|
-
tags:
|
|
1857
|
+
leaderboard_id: StrictStr,
|
|
1858
|
+
tags: Optional[List[StrictStr]] = None,
|
|
1859
|
+
use_weighted_scoring: Optional[StrictBool] = None,
|
|
1860
|
+
include_confidence_intervals: Optional[StrictBool] = None,
|
|
4096
1861
|
_request_timeout: Union[
|
|
4097
1862
|
None,
|
|
4098
1863
|
Annotated[StrictFloat, Field(gt=0)],
|
|
@@ -4106,13 +1871,17 @@ class LeaderboardApi:
|
|
|
4106
1871
|
_headers: Optional[Dict[StrictStr, Any]] = None,
|
|
4107
1872
|
_host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
|
|
4108
1873
|
) -> RESTResponseType:
|
|
4109
|
-
"""
|
|
1874
|
+
"""leaderboard_leaderboard_id_standings_get
|
|
4110
1875
|
|
|
4111
1876
|
|
|
4112
|
-
:param leaderboard_id:
|
|
1877
|
+
:param leaderboard_id: (required)
|
|
4113
1878
|
:type leaderboard_id: str
|
|
4114
|
-
:param tags:
|
|
1879
|
+
:param tags:
|
|
4115
1880
|
:type tags: List[str]
|
|
1881
|
+
:param use_weighted_scoring:
|
|
1882
|
+
:type use_weighted_scoring: bool
|
|
1883
|
+
:param include_confidence_intervals:
|
|
1884
|
+
:type include_confidence_intervals: bool
|
|
4116
1885
|
:param _request_timeout: timeout setting for this request. If one
|
|
4117
1886
|
number provided, it will be total request
|
|
4118
1887
|
timeout. It can also be a pair (tuple) of
|
|
@@ -4138,6 +1907,8 @@ class LeaderboardApi:
|
|
|
4138
1907
|
_param = self._leaderboard_leaderboard_id_standings_get_serialize(
|
|
4139
1908
|
leaderboard_id=leaderboard_id,
|
|
4140
1909
|
tags=tags,
|
|
1910
|
+
use_weighted_scoring=use_weighted_scoring,
|
|
1911
|
+
include_confidence_intervals=include_confidence_intervals,
|
|
4141
1912
|
_request_auth=_request_auth,
|
|
4142
1913
|
_content_type=_content_type,
|
|
4143
1914
|
_headers=_headers,
|
|
@@ -4158,6 +1929,8 @@ class LeaderboardApi:
|
|
|
4158
1929
|
self,
|
|
4159
1930
|
leaderboard_id,
|
|
4160
1931
|
tags,
|
|
1932
|
+
use_weighted_scoring,
|
|
1933
|
+
include_confidence_intervals,
|
|
4161
1934
|
_request_auth,
|
|
4162
1935
|
_content_type,
|
|
4163
1936
|
_headers,
|
|
@@ -4187,6 +1960,14 @@ class LeaderboardApi:
|
|
|
4187
1960
|
|
|
4188
1961
|
_query_params.append(('tags', tags))
|
|
4189
1962
|
|
|
1963
|
+
if use_weighted_scoring is not None:
|
|
1964
|
+
|
|
1965
|
+
_query_params.append(('useWeightedScoring', use_weighted_scoring))
|
|
1966
|
+
|
|
1967
|
+
if include_confidence_intervals is not None:
|
|
1968
|
+
|
|
1969
|
+
_query_params.append(('includeConfidenceIntervals', include_confidence_intervals))
|
|
1970
|
+
|
|
4190
1971
|
# process the header parameters
|
|
4191
1972
|
# process the form parameters
|
|
4192
1973
|
# process the body parameter
|
|
@@ -4205,8 +1986,9 @@ class LeaderboardApi:
|
|
|
4205
1986
|
|
|
4206
1987
|
# authentication setting
|
|
4207
1988
|
_auth_settings: List[str] = [
|
|
4208
|
-
'
|
|
4209
|
-
'
|
|
1989
|
+
'OAuth2',
|
|
1990
|
+
'OpenIdConnect',
|
|
1991
|
+
'Bearer'
|
|
4210
1992
|
]
|
|
4211
1993
|
|
|
4212
1994
|
return self.api_client.param_serialize(
|
|
@@ -4230,7 +2012,7 @@ class LeaderboardApi:
|
|
|
4230
2012
|
@validate_call
|
|
4231
2013
|
def leaderboard_post(
|
|
4232
2014
|
self,
|
|
4233
|
-
create_leaderboard_model:
|
|
2015
|
+
create_leaderboard_model: CreateLeaderboardModel,
|
|
4234
2016
|
_request_timeout: Union[
|
|
4235
2017
|
None,
|
|
4236
2018
|
Annotated[StrictFloat, Field(gt=0)],
|
|
@@ -4247,7 +2029,7 @@ class LeaderboardApi:
|
|
|
4247
2029
|
"""Creates a new leaderboard with the specified name and criteria.
|
|
4248
2030
|
|
|
4249
2031
|
|
|
4250
|
-
:param create_leaderboard_model:
|
|
2032
|
+
:param create_leaderboard_model: (required)
|
|
4251
2033
|
:type create_leaderboard_model: CreateLeaderboardModel
|
|
4252
2034
|
:param _request_timeout: timeout setting for this request. If one
|
|
4253
2035
|
number provided, it will be total request
|
|
@@ -4296,7 +2078,7 @@ class LeaderboardApi:
|
|
|
4296
2078
|
@validate_call
|
|
4297
2079
|
def leaderboard_post_with_http_info(
|
|
4298
2080
|
self,
|
|
4299
|
-
create_leaderboard_model:
|
|
2081
|
+
create_leaderboard_model: CreateLeaderboardModel,
|
|
4300
2082
|
_request_timeout: Union[
|
|
4301
2083
|
None,
|
|
4302
2084
|
Annotated[StrictFloat, Field(gt=0)],
|
|
@@ -4313,7 +2095,7 @@ class LeaderboardApi:
|
|
|
4313
2095
|
"""Creates a new leaderboard with the specified name and criteria.
|
|
4314
2096
|
|
|
4315
2097
|
|
|
4316
|
-
:param create_leaderboard_model:
|
|
2098
|
+
:param create_leaderboard_model: (required)
|
|
4317
2099
|
:type create_leaderboard_model: CreateLeaderboardModel
|
|
4318
2100
|
:param _request_timeout: timeout setting for this request. If one
|
|
4319
2101
|
number provided, it will be total request
|
|
@@ -4362,7 +2144,7 @@ class LeaderboardApi:
|
|
|
4362
2144
|
@validate_call
|
|
4363
2145
|
def leaderboard_post_without_preload_content(
|
|
4364
2146
|
self,
|
|
4365
|
-
create_leaderboard_model:
|
|
2147
|
+
create_leaderboard_model: CreateLeaderboardModel,
|
|
4366
2148
|
_request_timeout: Union[
|
|
4367
2149
|
None,
|
|
4368
2150
|
Annotated[StrictFloat, Field(gt=0)],
|
|
@@ -4379,7 +2161,7 @@ class LeaderboardApi:
|
|
|
4379
2161
|
"""Creates a new leaderboard with the specified name and criteria.
|
|
4380
2162
|
|
|
4381
2163
|
|
|
4382
|
-
:param create_leaderboard_model:
|
|
2164
|
+
:param create_leaderboard_model: (required)
|
|
4383
2165
|
:type create_leaderboard_model: CreateLeaderboardModel
|
|
4384
2166
|
:param _request_timeout: timeout setting for this request. If one
|
|
4385
2167
|
number provided, it will be total request
|
|
@@ -4481,8 +2263,9 @@ class LeaderboardApi:
|
|
|
4481
2263
|
|
|
4482
2264
|
# authentication setting
|
|
4483
2265
|
_auth_settings: List[str] = [
|
|
4484
|
-
'
|
|
4485
|
-
'
|
|
2266
|
+
'OAuth2',
|
|
2267
|
+
'OpenIdConnect',
|
|
2268
|
+
'Bearer'
|
|
4486
2269
|
]
|
|
4487
2270
|
|
|
4488
2271
|
return self.api_client.param_serialize(
|
|
@@ -4506,7 +2289,7 @@ class LeaderboardApi:
|
|
|
4506
2289
|
@validate_call
|
|
4507
2290
|
def leaderboards_get(
|
|
4508
2291
|
self,
|
|
4509
|
-
request: Optional[QueryModel] = None,
|
|
2292
|
+
request: Annotated[Optional[QueryModel], Field(description="Query parameters")] = None,
|
|
4510
2293
|
_request_timeout: Union[
|
|
4511
2294
|
None,
|
|
4512
2295
|
Annotated[StrictFloat, Field(gt=0)],
|
|
@@ -4519,11 +2302,11 @@ class LeaderboardApi:
|
|
|
4519
2302
|
_content_type: Optional[StrictStr] = None,
|
|
4520
2303
|
_headers: Optional[Dict[StrictStr, Any]] = None,
|
|
4521
2304
|
_host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
|
|
4522
|
-
) ->
|
|
4523
|
-
"""Queries all leaderboards
|
|
2305
|
+
) -> PagedResultOfLeaderboardsQueryResult:
|
|
2306
|
+
"""Queries all leaderboards for a specific benchmark.
|
|
4524
2307
|
|
|
4525
2308
|
|
|
4526
|
-
:param request:
|
|
2309
|
+
:param request: Query parameters
|
|
4527
2310
|
:type request: QueryModel
|
|
4528
2311
|
:param _request_timeout: timeout setting for this request. If one
|
|
4529
2312
|
number provided, it will be total request
|
|
@@ -4556,7 +2339,7 @@ class LeaderboardApi:
|
|
|
4556
2339
|
)
|
|
4557
2340
|
|
|
4558
2341
|
_response_types_map: Dict[str, Optional[str]] = {
|
|
4559
|
-
'200': "
|
|
2342
|
+
'200': "PagedResultOfLeaderboardsQueryResult",
|
|
4560
2343
|
}
|
|
4561
2344
|
response_data = self.api_client.call_api(
|
|
4562
2345
|
*_param,
|
|
@@ -4572,7 +2355,7 @@ class LeaderboardApi:
|
|
|
4572
2355
|
@validate_call
|
|
4573
2356
|
def leaderboards_get_with_http_info(
|
|
4574
2357
|
self,
|
|
4575
|
-
request: Optional[QueryModel] = None,
|
|
2358
|
+
request: Annotated[Optional[QueryModel], Field(description="Query parameters")] = None,
|
|
4576
2359
|
_request_timeout: Union[
|
|
4577
2360
|
None,
|
|
4578
2361
|
Annotated[StrictFloat, Field(gt=0)],
|
|
@@ -4585,11 +2368,11 @@ class LeaderboardApi:
|
|
|
4585
2368
|
_content_type: Optional[StrictStr] = None,
|
|
4586
2369
|
_headers: Optional[Dict[StrictStr, Any]] = None,
|
|
4587
2370
|
_host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
|
|
4588
|
-
) -> ApiResponse[
|
|
4589
|
-
"""Queries all leaderboards
|
|
2371
|
+
) -> ApiResponse[PagedResultOfLeaderboardsQueryResult]:
|
|
2372
|
+
"""Queries all leaderboards for a specific benchmark.
|
|
4590
2373
|
|
|
4591
2374
|
|
|
4592
|
-
:param request:
|
|
2375
|
+
:param request: Query parameters
|
|
4593
2376
|
:type request: QueryModel
|
|
4594
2377
|
:param _request_timeout: timeout setting for this request. If one
|
|
4595
2378
|
number provided, it will be total request
|
|
@@ -4622,7 +2405,7 @@ class LeaderboardApi:
|
|
|
4622
2405
|
)
|
|
4623
2406
|
|
|
4624
2407
|
_response_types_map: Dict[str, Optional[str]] = {
|
|
4625
|
-
'200': "
|
|
2408
|
+
'200': "PagedResultOfLeaderboardsQueryResult",
|
|
4626
2409
|
}
|
|
4627
2410
|
response_data = self.api_client.call_api(
|
|
4628
2411
|
*_param,
|
|
@@ -4638,7 +2421,7 @@ class LeaderboardApi:
|
|
|
4638
2421
|
@validate_call
|
|
4639
2422
|
def leaderboards_get_without_preload_content(
|
|
4640
2423
|
self,
|
|
4641
|
-
request: Optional[QueryModel] = None,
|
|
2424
|
+
request: Annotated[Optional[QueryModel], Field(description="Query parameters")] = None,
|
|
4642
2425
|
_request_timeout: Union[
|
|
4643
2426
|
None,
|
|
4644
2427
|
Annotated[StrictFloat, Field(gt=0)],
|
|
@@ -4652,10 +2435,10 @@ class LeaderboardApi:
|
|
|
4652
2435
|
_headers: Optional[Dict[StrictStr, Any]] = None,
|
|
4653
2436
|
_host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
|
|
4654
2437
|
) -> RESTResponseType:
|
|
4655
|
-
"""Queries all leaderboards
|
|
2438
|
+
"""Queries all leaderboards for a specific benchmark.
|
|
4656
2439
|
|
|
4657
2440
|
|
|
4658
|
-
:param request:
|
|
2441
|
+
:param request: Query parameters
|
|
4659
2442
|
:type request: QueryModel
|
|
4660
2443
|
:param _request_timeout: timeout setting for this request. If one
|
|
4661
2444
|
number provided, it will be total request
|
|
@@ -4688,7 +2471,7 @@ class LeaderboardApi:
|
|
|
4688
2471
|
)
|
|
4689
2472
|
|
|
4690
2473
|
_response_types_map: Dict[str, Optional[str]] = {
|
|
4691
|
-
'200': "
|
|
2474
|
+
'200': "PagedResultOfLeaderboardsQueryResult",
|
|
4692
2475
|
}
|
|
4693
2476
|
response_data = self.api_client.call_api(
|
|
4694
2477
|
*_param,
|
|
@@ -4744,8 +2527,9 @@ class LeaderboardApi:
|
|
|
4744
2527
|
|
|
4745
2528
|
# authentication setting
|
|
4746
2529
|
_auth_settings: List[str] = [
|
|
4747
|
-
'
|
|
4748
|
-
'
|
|
2530
|
+
'OAuth2',
|
|
2531
|
+
'OpenIdConnect',
|
|
2532
|
+
'Bearer'
|
|
4749
2533
|
]
|
|
4750
2534
|
|
|
4751
2535
|
return self.api_client.param_serialize(
|