rapidata 2.35.1__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 +25 -16
- rapidata/api_client/__init__.py +84 -408
- rapidata/api_client/api/__init__.py +6 -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 +904 -245
- rapidata/api_client/api/campaign_api.py +582 -24
- 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 +364 -123
- 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 +140 -2067
- 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 -1480
- 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 +300 -0
- 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 +377 -1835
- 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 -382
- 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 +49 -26
- 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_model_truth.py +7 -1
- 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.py +121 -0
- rapidata/api_client/models/and_filter_filters_inner.py +282 -0
- rapidata/api_client/models/are_rapids_active_result.py +2 -2
- rapidata/api_client/models/asset_metadata.py +11 -9
- rapidata/api_client/models/asset_type.py +40 -0
- 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_mode.py +37 -0
- rapidata/api_client/models/boost_query_result.py +7 -10
- 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_filter.py +98 -0
- rapidata/api_client/models/campaign_query_result.py +15 -13
- rapidata/api_client/models/campaign_status.py +2 -2
- rapidata/api_client/models/change_boost_model.py +89 -0
- rapidata/api_client/models/classification_metadata.py +12 -1
- 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_rapid_blueprint.py +5 -3
- rapidata/api_client/models/compare_rapid_blueprint1.py +96 -0
- rapidata/api_client/models/compare_workflow_config.py +34 -23
- rapidata/api_client/models/compare_workflow_config_context_asset.py +174 -0
- rapidata/api_client/models/compare_workflow_config_model.py +15 -5
- rapidata/api_client/models/compare_workflow_model.py +34 -6
- 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/count_metadata.py +12 -1
- rapidata/api_client/models/country_filter.py +98 -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 +45 -7
- 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 +42 -15
- 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 +30 -101
- 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/demographic_filter.py +100 -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/effort_capped_selection.py +2 -11
- 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_config.py +13 -3
- rapidata/api_client/models/evaluation_workflow_model.py +16 -6
- 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 +6 -6
- 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/file_type_metadata.py +11 -6
- rapidata/api_client/models/file_type_metadata_model.py +2 -8
- rapidata/api_client/models/filter.py +7 -25
- 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/free_text_payload.py +10 -3
- rapidata/api_client/models/free_text_rapid_blueprint.py +10 -3
- 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 +5 -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 +10 -21
- 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 +31 -4
- 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 +95 -0
- rapidata/api_client/models/get_public_responses_result_response.py +112 -0
- rapidata/api_client/models/get_rapid_responses_result.py +6 -12
- rapidata/api_client/models/get_recommended_validation_set_result.py +95 -0
- 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 +125 -0
- rapidata/api_client/models/get_simple_workflow_results_model.py +20 -15
- rapidata/api_client/models/get_standing_by_id_result.py +6 -14
- rapidata/api_client/models/get_validation_rapids_result.py +32 -41
- 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 +5 -11
- rapidata/api_client/models/get_workflow_results_result.py +34 -23
- 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/image_dimension_metadata.py +12 -1
- 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 +11 -13
- rapidata/api_client/models/language_filter.py +98 -0
- rapidata/api_client/models/leaderboard_query_result.py +29 -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/location_metadata.py +12 -1
- 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/new_user_filter.py +96 -0
- rapidata/api_client/models/newsletter_model.py +6 -6
- rapidata/api_client/models/not_available_yet_result.py +4 -13
- rapidata/api_client/models/not_filter.py +117 -0
- 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/or_filter.py +121 -0
- rapidata/api_client/models/order_model.py +15 -14
- rapidata/api_client/models/order_state.py +2 -2
- rapidata/api_client/models/original_filename_metadata.py +12 -1
- 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 +6 -14
- 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.py +12 -1
- rapidata/api_client/models/prompt_metadata_input.py +5 -7
- rapidata/api_client/models/prompt_type.py +38 -0
- rapidata/api_client/models/proxy_file_wrapper.py +17 -2
- rapidata/api_client/models/public_order_model.py +2 -2
- rapidata/api_client/models/public_rapid_response.py +112 -0
- 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_modality.py +46 -0
- rapidata/api_client/models/rapid_model.py +33 -49
- 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 +9 -15
- rapidata/api_client/models/response_count_filter.py +103 -0
- rapidata/api_client/models/response_count_user_filter_model.py +2 -8
- rapidata/api_client/models/retrieval_mode.py +2 -2
- rapidata/api_client/models/root_filter.py +5 -14
- rapidata/api_client/models/run_status.py +2 -2
- rapidata/api_client/models/runs_by_leaderboard_result.py +6 -12
- rapidata/api_client/models/sample_by_identifier.py +125 -0
- rapidata/api_client/models/sample_by_identifier_paged_result.py +105 -0
- 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 +15 -5
- rapidata/api_client/models/simple_workflow_config_blueprint.py +37 -23
- rapidata/api_client/models/simple_workflow_config_model.py +11 -3
- rapidata/api_client/models/simple_workflow_model.py +14 -4
- 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 +5 -11
- rapidata/api_client/models/sort_direction.py +2 -2
- rapidata/api_client/models/source_url_metadata.py +12 -1
- rapidata/api_client/models/standing_by_benchmark.py +113 -0
- rapidata/api_client/models/standing_by_leaderboard.py +19 -21
- 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/streams_metadata.py +12 -1
- 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 +18 -2
- 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.py +9 -1
- 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 +106 -0
- 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/user_score_filter.py +102 -0
- rapidata/api_client/models/user_state.py +38 -0
- rapidata/api_client/models/user_state_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 +39 -5
- rapidata/api_client/models/validation_set_overview_model.py +2 -2
- rapidata/api_client/models/video_duration_metadata.py +12 -1
- rapidata/api_client/models/workflow_aggregation_step_model.py +3 -12
- 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 +384 -318
- rapidata/rapidata_client/__init__.py +17 -22
- rapidata/rapidata_client/api/rapidata_api_client.py +253 -0
- 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 +90 -46
- rapidata/rapidata_client/benchmark/rapidata_benchmark.py +388 -225
- rapidata/rapidata_client/benchmark/rapidata_benchmark_manager.py +172 -65
- rapidata/rapidata_client/config/__init__.py +4 -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 +36 -0
- rapidata/rapidata_client/config/tracer.py +184 -0
- rapidata/rapidata_client/config/upload_config.py +64 -0
- rapidata/rapidata_client/datapoints/__init__.py +8 -3
- rapidata/rapidata_client/datapoints/_asset_uploader.py +184 -0
- rapidata/rapidata_client/datapoints/_datapoint.py +92 -0
- 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/assets/constants.py +7 -0
- 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 +15 -41
- 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 +51 -20
- 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 +273 -122
- rapidata/rapidata_client/order/rapidata_order.py +316 -160
- rapidata/rapidata_client/order/rapidata_order_manager.py +680 -421
- rapidata/rapidata_client/rapidata_client.py +115 -37
- 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/__init__.py +1 -1
- 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 +31 -8
- rapidata/rapidata_client/selection/labeling_selection.py +34 -11
- rapidata/rapidata_client/selection/{retrieval_modes.py → rapidata_retrieval_modes.py} +7 -4
- 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 +96 -18
- 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 +29 -83
- rapidata/rapidata_client/validation/rapids/rapids_manager.py +369 -211
- rapidata/rapidata_client/validation/validation_set_manager.py +505 -276
- rapidata/rapidata_client/workflow/__init__.py +2 -2
- rapidata/rapidata_client/workflow/_base_workflow.py +25 -7
- rapidata/rapidata_client/workflow/_classify_workflow.py +58 -15
- rapidata/rapidata_client/workflow/_compare_workflow.py +44 -9
- rapidata/rapidata_client/workflow/_draw_workflow.py +40 -10
- rapidata/rapidata_client/workflow/_evaluation_workflow.py +28 -7
- rapidata/rapidata_client/workflow/_free_text_workflow.py +46 -9
- rapidata/rapidata_client/workflow/_locate_workflow.py +40 -10
- rapidata/rapidata_client/workflow/_multi_ranking_workflow.py +90 -0
- rapidata/rapidata_client/workflow/_select_words_workflow.py +51 -11
- rapidata/rapidata_client/workflow/_timestamp_workflow.py +42 -11
- rapidata/service/__init__.py +0 -1
- rapidata/service/credential_manager.py +14 -14
- rapidata/service/openapi_service.py +119 -34
- 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.35.1.dist-info → rapidata-3.0.0a8.dist-info}/WHEEL +1 -1
- rapidata/rapidata_client/api/rapidata_exception.py +0 -107
- 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 -306
- rapidata/rapidata_client/datapoints/assets/_multi_asset.py +0 -61
- rapidata/rapidata_client/datapoints/assets/_sessions.py +0 -35
- 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/datapoint.py +0 -108
- 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 -396
- rapidata/rapidata_client/workflow/_ranking_workflow.py +0 -47
- rapidata/service/local_file_service.py +0 -25
- rapidata-2.35.1.dist-info/METADATA +0 -35
- rapidata-2.35.1.dist-info/RECORD +0 -657
- {rapidata-2.35.1.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,22 +16,26 @@ 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
|
|
20
|
-
from typing import Optional
|
|
19
|
+
from pydantic import Field, StrictBool, StrictStr
|
|
20
|
+
from typing import List, Optional
|
|
21
21
|
from typing_extensions import Annotated
|
|
22
|
-
from rapidata.api_client.models.benchmark_query_result_paged_result import BenchmarkQueryResultPagedResult
|
|
23
22
|
from rapidata.api_client.models.create_benchmark_model import CreateBenchmarkModel
|
|
24
23
|
from rapidata.api_client.models.create_benchmark_participant_model import CreateBenchmarkParticipantModel
|
|
25
24
|
from rapidata.api_client.models.create_benchmark_participant_result import CreateBenchmarkParticipantResult
|
|
25
|
+
from rapidata.api_client.models.create_benchmark_prompt_result import CreateBenchmarkPromptResult
|
|
26
26
|
from rapidata.api_client.models.create_benchmark_result import CreateBenchmarkResult
|
|
27
|
+
from rapidata.api_client.models.fork_benchmark_result import ForkBenchmarkResult
|
|
27
28
|
from rapidata.api_client.models.get_benchmark_by_id_result import GetBenchmarkByIdResult
|
|
28
|
-
from rapidata.api_client.models.
|
|
29
|
-
from rapidata.api_client.models.
|
|
29
|
+
from rapidata.api_client.models.paged_result_of_benchmark_query_result import PagedResultOfBenchmarkQueryResult
|
|
30
|
+
from rapidata.api_client.models.paged_result_of_leaderboards_query_result import PagedResultOfLeaderboardsQueryResult
|
|
31
|
+
from rapidata.api_client.models.paged_result_of_participant_by_benchmark import PagedResultOfParticipantByBenchmark
|
|
32
|
+
from rapidata.api_client.models.paged_result_of_prompt_by_benchmark_result import PagedResultOfPromptByBenchmarkResult
|
|
33
|
+
from rapidata.api_client.models.paged_result_of_sample_by_identifier import PagedResultOfSampleByIdentifier
|
|
30
34
|
from rapidata.api_client.models.query_model import QueryModel
|
|
31
|
-
from rapidata.api_client.models.
|
|
35
|
+
from rapidata.api_client.models.standings_by_benchmark_result import StandingsByBenchmarkResult
|
|
32
36
|
from rapidata.api_client.models.submit_prompt_model import SubmitPromptModel
|
|
33
37
|
from rapidata.api_client.models.tags_by_benchmark_result import TagsByBenchmarkResult
|
|
34
|
-
from rapidata.api_client.models.
|
|
38
|
+
from rapidata.api_client.models.update_benchmark_model import UpdateBenchmarkModel
|
|
35
39
|
|
|
36
40
|
from rapidata.api_client.api_client import ApiClient, RequestSerialized
|
|
37
41
|
from rapidata.api_client.api_response import ApiResponse
|
|
@@ -281,8 +285,9 @@ class BenchmarkApi:
|
|
|
281
285
|
|
|
282
286
|
# authentication setting
|
|
283
287
|
_auth_settings: List[str] = [
|
|
284
|
-
'
|
|
285
|
-
'
|
|
288
|
+
'OAuth2',
|
|
289
|
+
'OpenIdConnect',
|
|
290
|
+
'Bearer'
|
|
286
291
|
]
|
|
287
292
|
|
|
288
293
|
return self.api_client.param_serialize(
|
|
@@ -304,7 +309,7 @@ class BenchmarkApi:
|
|
|
304
309
|
|
|
305
310
|
|
|
306
311
|
@validate_call
|
|
307
|
-
def
|
|
312
|
+
def benchmark_benchmark_id_fork_post(
|
|
308
313
|
self,
|
|
309
314
|
benchmark_id: StrictStr,
|
|
310
315
|
_request_timeout: Union[
|
|
@@ -319,8 +324,8 @@ class BenchmarkApi:
|
|
|
319
324
|
_content_type: Optional[StrictStr] = None,
|
|
320
325
|
_headers: Optional[Dict[StrictStr, Any]] = None,
|
|
321
326
|
_host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
|
|
322
|
-
) ->
|
|
323
|
-
"""
|
|
327
|
+
) -> ForkBenchmarkResult:
|
|
328
|
+
"""Creates a copy of a public benchmark and all of its related entities
|
|
324
329
|
|
|
325
330
|
|
|
326
331
|
:param benchmark_id: (required)
|
|
@@ -347,7 +352,7 @@ class BenchmarkApi:
|
|
|
347
352
|
:return: Returns the result object.
|
|
348
353
|
""" # noqa: E501
|
|
349
354
|
|
|
350
|
-
_param = self.
|
|
355
|
+
_param = self._benchmark_benchmark_id_fork_post_serialize(
|
|
351
356
|
benchmark_id=benchmark_id,
|
|
352
357
|
_request_auth=_request_auth,
|
|
353
358
|
_content_type=_content_type,
|
|
@@ -356,7 +361,7 @@ class BenchmarkApi:
|
|
|
356
361
|
)
|
|
357
362
|
|
|
358
363
|
_response_types_map: Dict[str, Optional[str]] = {
|
|
359
|
-
'200': "
|
|
364
|
+
'200': "ForkBenchmarkResult",
|
|
360
365
|
}
|
|
361
366
|
response_data = self.api_client.call_api(
|
|
362
367
|
*_param,
|
|
@@ -370,7 +375,7 @@ class BenchmarkApi:
|
|
|
370
375
|
|
|
371
376
|
|
|
372
377
|
@validate_call
|
|
373
|
-
def
|
|
378
|
+
def benchmark_benchmark_id_fork_post_with_http_info(
|
|
374
379
|
self,
|
|
375
380
|
benchmark_id: StrictStr,
|
|
376
381
|
_request_timeout: Union[
|
|
@@ -385,8 +390,8 @@ class BenchmarkApi:
|
|
|
385
390
|
_content_type: Optional[StrictStr] = None,
|
|
386
391
|
_headers: Optional[Dict[StrictStr, Any]] = None,
|
|
387
392
|
_host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
|
|
388
|
-
) -> ApiResponse[
|
|
389
|
-
"""
|
|
393
|
+
) -> ApiResponse[ForkBenchmarkResult]:
|
|
394
|
+
"""Creates a copy of a public benchmark and all of its related entities
|
|
390
395
|
|
|
391
396
|
|
|
392
397
|
:param benchmark_id: (required)
|
|
@@ -413,7 +418,7 @@ class BenchmarkApi:
|
|
|
413
418
|
:return: Returns the result object.
|
|
414
419
|
""" # noqa: E501
|
|
415
420
|
|
|
416
|
-
_param = self.
|
|
421
|
+
_param = self._benchmark_benchmark_id_fork_post_serialize(
|
|
417
422
|
benchmark_id=benchmark_id,
|
|
418
423
|
_request_auth=_request_auth,
|
|
419
424
|
_content_type=_content_type,
|
|
@@ -422,7 +427,7 @@ class BenchmarkApi:
|
|
|
422
427
|
)
|
|
423
428
|
|
|
424
429
|
_response_types_map: Dict[str, Optional[str]] = {
|
|
425
|
-
'200': "
|
|
430
|
+
'200': "ForkBenchmarkResult",
|
|
426
431
|
}
|
|
427
432
|
response_data = self.api_client.call_api(
|
|
428
433
|
*_param,
|
|
@@ -436,7 +441,7 @@ class BenchmarkApi:
|
|
|
436
441
|
|
|
437
442
|
|
|
438
443
|
@validate_call
|
|
439
|
-
def
|
|
444
|
+
def benchmark_benchmark_id_fork_post_without_preload_content(
|
|
440
445
|
self,
|
|
441
446
|
benchmark_id: StrictStr,
|
|
442
447
|
_request_timeout: Union[
|
|
@@ -452,7 +457,7 @@ class BenchmarkApi:
|
|
|
452
457
|
_headers: Optional[Dict[StrictStr, Any]] = None,
|
|
453
458
|
_host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
|
|
454
459
|
) -> RESTResponseType:
|
|
455
|
-
"""
|
|
460
|
+
"""Creates a copy of a public benchmark and all of its related entities
|
|
456
461
|
|
|
457
462
|
|
|
458
463
|
:param benchmark_id: (required)
|
|
@@ -479,7 +484,7 @@ class BenchmarkApi:
|
|
|
479
484
|
:return: Returns the result object.
|
|
480
485
|
""" # noqa: E501
|
|
481
486
|
|
|
482
|
-
_param = self.
|
|
487
|
+
_param = self._benchmark_benchmark_id_fork_post_serialize(
|
|
483
488
|
benchmark_id=benchmark_id,
|
|
484
489
|
_request_auth=_request_auth,
|
|
485
490
|
_content_type=_content_type,
|
|
@@ -488,7 +493,7 @@ class BenchmarkApi:
|
|
|
488
493
|
)
|
|
489
494
|
|
|
490
495
|
_response_types_map: Dict[str, Optional[str]] = {
|
|
491
|
-
'200': "
|
|
496
|
+
'200': "ForkBenchmarkResult",
|
|
492
497
|
}
|
|
493
498
|
response_data = self.api_client.call_api(
|
|
494
499
|
*_param,
|
|
@@ -497,7 +502,7 @@ class BenchmarkApi:
|
|
|
497
502
|
return response_data.response
|
|
498
503
|
|
|
499
504
|
|
|
500
|
-
def
|
|
505
|
+
def _benchmark_benchmark_id_fork_post_serialize(
|
|
501
506
|
self,
|
|
502
507
|
benchmark_id,
|
|
503
508
|
_request_auth,
|
|
@@ -542,13 +547,14 @@ class BenchmarkApi:
|
|
|
542
547
|
|
|
543
548
|
# authentication setting
|
|
544
549
|
_auth_settings: List[str] = [
|
|
545
|
-
'
|
|
546
|
-
'
|
|
550
|
+
'OAuth2',
|
|
551
|
+
'OpenIdConnect',
|
|
552
|
+
'Bearer'
|
|
547
553
|
]
|
|
548
554
|
|
|
549
555
|
return self.api_client.param_serialize(
|
|
550
|
-
method='
|
|
551
|
-
resource_path='/benchmark/{benchmarkId}',
|
|
556
|
+
method='POST',
|
|
557
|
+
resource_path='/benchmark/{benchmarkId}/fork',
|
|
552
558
|
path_params=_path_params,
|
|
553
559
|
query_params=_query_params,
|
|
554
560
|
header_params=_header_params,
|
|
@@ -565,10 +571,9 @@ class BenchmarkApi:
|
|
|
565
571
|
|
|
566
572
|
|
|
567
573
|
@validate_call
|
|
568
|
-
def
|
|
574
|
+
def benchmark_benchmark_id_get(
|
|
569
575
|
self,
|
|
570
576
|
benchmark_id: StrictStr,
|
|
571
|
-
update_benchmark_name_model: Optional[UpdateBenchmarkNameModel] = None,
|
|
572
577
|
_request_timeout: Union[
|
|
573
578
|
None,
|
|
574
579
|
Annotated[StrictFloat, Field(gt=0)],
|
|
@@ -581,14 +586,12 @@ class BenchmarkApi:
|
|
|
581
586
|
_content_type: Optional[StrictStr] = None,
|
|
582
587
|
_headers: Optional[Dict[StrictStr, Any]] = None,
|
|
583
588
|
_host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
|
|
584
|
-
) ->
|
|
585
|
-
"""
|
|
589
|
+
) -> GetBenchmarkByIdResult:
|
|
590
|
+
"""Returns a single benchmark by its ID.
|
|
586
591
|
|
|
587
592
|
|
|
588
593
|
:param benchmark_id: (required)
|
|
589
594
|
:type benchmark_id: str
|
|
590
|
-
:param update_benchmark_name_model:
|
|
591
|
-
:type update_benchmark_name_model: UpdateBenchmarkNameModel
|
|
592
595
|
:param _request_timeout: timeout setting for this request. If one
|
|
593
596
|
number provided, it will be total request
|
|
594
597
|
timeout. It can also be a pair (tuple) of
|
|
@@ -611,9 +614,8 @@ class BenchmarkApi:
|
|
|
611
614
|
:return: Returns the result object.
|
|
612
615
|
""" # noqa: E501
|
|
613
616
|
|
|
614
|
-
_param = self.
|
|
617
|
+
_param = self._benchmark_benchmark_id_get_serialize(
|
|
615
618
|
benchmark_id=benchmark_id,
|
|
616
|
-
update_benchmark_name_model=update_benchmark_name_model,
|
|
617
619
|
_request_auth=_request_auth,
|
|
618
620
|
_content_type=_content_type,
|
|
619
621
|
_headers=_headers,
|
|
@@ -621,7 +623,7 @@ class BenchmarkApi:
|
|
|
621
623
|
)
|
|
622
624
|
|
|
623
625
|
_response_types_map: Dict[str, Optional[str]] = {
|
|
624
|
-
'
|
|
626
|
+
'200': "GetBenchmarkByIdResult",
|
|
625
627
|
}
|
|
626
628
|
response_data = self.api_client.call_api(
|
|
627
629
|
*_param,
|
|
@@ -635,10 +637,9 @@ class BenchmarkApi:
|
|
|
635
637
|
|
|
636
638
|
|
|
637
639
|
@validate_call
|
|
638
|
-
def
|
|
640
|
+
def benchmark_benchmark_id_get_with_http_info(
|
|
639
641
|
self,
|
|
640
642
|
benchmark_id: StrictStr,
|
|
641
|
-
update_benchmark_name_model: Optional[UpdateBenchmarkNameModel] = None,
|
|
642
643
|
_request_timeout: Union[
|
|
643
644
|
None,
|
|
644
645
|
Annotated[StrictFloat, Field(gt=0)],
|
|
@@ -651,14 +652,12 @@ class BenchmarkApi:
|
|
|
651
652
|
_content_type: Optional[StrictStr] = None,
|
|
652
653
|
_headers: Optional[Dict[StrictStr, Any]] = None,
|
|
653
654
|
_host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
|
|
654
|
-
) -> ApiResponse[
|
|
655
|
-
"""
|
|
655
|
+
) -> ApiResponse[GetBenchmarkByIdResult]:
|
|
656
|
+
"""Returns a single benchmark by its ID.
|
|
656
657
|
|
|
657
658
|
|
|
658
659
|
:param benchmark_id: (required)
|
|
659
660
|
:type benchmark_id: str
|
|
660
|
-
:param update_benchmark_name_model:
|
|
661
|
-
:type update_benchmark_name_model: UpdateBenchmarkNameModel
|
|
662
661
|
:param _request_timeout: timeout setting for this request. If one
|
|
663
662
|
number provided, it will be total request
|
|
664
663
|
timeout. It can also be a pair (tuple) of
|
|
@@ -681,9 +680,8 @@ class BenchmarkApi:
|
|
|
681
680
|
:return: Returns the result object.
|
|
682
681
|
""" # noqa: E501
|
|
683
682
|
|
|
684
|
-
_param = self.
|
|
683
|
+
_param = self._benchmark_benchmark_id_get_serialize(
|
|
685
684
|
benchmark_id=benchmark_id,
|
|
686
|
-
update_benchmark_name_model=update_benchmark_name_model,
|
|
687
685
|
_request_auth=_request_auth,
|
|
688
686
|
_content_type=_content_type,
|
|
689
687
|
_headers=_headers,
|
|
@@ -691,7 +689,7 @@ class BenchmarkApi:
|
|
|
691
689
|
)
|
|
692
690
|
|
|
693
691
|
_response_types_map: Dict[str, Optional[str]] = {
|
|
694
|
-
'
|
|
692
|
+
'200': "GetBenchmarkByIdResult",
|
|
695
693
|
}
|
|
696
694
|
response_data = self.api_client.call_api(
|
|
697
695
|
*_param,
|
|
@@ -705,10 +703,9 @@ class BenchmarkApi:
|
|
|
705
703
|
|
|
706
704
|
|
|
707
705
|
@validate_call
|
|
708
|
-
def
|
|
706
|
+
def benchmark_benchmark_id_get_without_preload_content(
|
|
709
707
|
self,
|
|
710
708
|
benchmark_id: StrictStr,
|
|
711
|
-
update_benchmark_name_model: Optional[UpdateBenchmarkNameModel] = None,
|
|
712
709
|
_request_timeout: Union[
|
|
713
710
|
None,
|
|
714
711
|
Annotated[StrictFloat, Field(gt=0)],
|
|
@@ -722,13 +719,11 @@ class BenchmarkApi:
|
|
|
722
719
|
_headers: Optional[Dict[StrictStr, Any]] = None,
|
|
723
720
|
_host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
|
|
724
721
|
) -> RESTResponseType:
|
|
725
|
-
"""
|
|
722
|
+
"""Returns a single benchmark by its ID.
|
|
726
723
|
|
|
727
724
|
|
|
728
725
|
:param benchmark_id: (required)
|
|
729
726
|
:type benchmark_id: str
|
|
730
|
-
:param update_benchmark_name_model:
|
|
731
|
-
:type update_benchmark_name_model: UpdateBenchmarkNameModel
|
|
732
727
|
:param _request_timeout: timeout setting for this request. If one
|
|
733
728
|
number provided, it will be total request
|
|
734
729
|
timeout. It can also be a pair (tuple) of
|
|
@@ -751,9 +746,8 @@ class BenchmarkApi:
|
|
|
751
746
|
:return: Returns the result object.
|
|
752
747
|
""" # noqa: E501
|
|
753
748
|
|
|
754
|
-
_param = self.
|
|
749
|
+
_param = self._benchmark_benchmark_id_get_serialize(
|
|
755
750
|
benchmark_id=benchmark_id,
|
|
756
|
-
update_benchmark_name_model=update_benchmark_name_model,
|
|
757
751
|
_request_auth=_request_auth,
|
|
758
752
|
_content_type=_content_type,
|
|
759
753
|
_headers=_headers,
|
|
@@ -761,7 +755,7 @@ class BenchmarkApi:
|
|
|
761
755
|
)
|
|
762
756
|
|
|
763
757
|
_response_types_map: Dict[str, Optional[str]] = {
|
|
764
|
-
'
|
|
758
|
+
'200': "GetBenchmarkByIdResult",
|
|
765
759
|
}
|
|
766
760
|
response_data = self.api_client.call_api(
|
|
767
761
|
*_param,
|
|
@@ -770,10 +764,9 @@ class BenchmarkApi:
|
|
|
770
764
|
return response_data.response
|
|
771
765
|
|
|
772
766
|
|
|
773
|
-
def
|
|
767
|
+
def _benchmark_benchmark_id_get_serialize(
|
|
774
768
|
self,
|
|
775
769
|
benchmark_id,
|
|
776
|
-
update_benchmark_name_model,
|
|
777
770
|
_request_auth,
|
|
778
771
|
_content_type,
|
|
779
772
|
_headers,
|
|
@@ -801,36 +794,29 @@ class BenchmarkApi:
|
|
|
801
794
|
# process the header parameters
|
|
802
795
|
# process the form parameters
|
|
803
796
|
# process the body parameter
|
|
804
|
-
if update_benchmark_name_model is not None:
|
|
805
|
-
_body_params = update_benchmark_name_model
|
|
806
797
|
|
|
807
798
|
|
|
808
|
-
|
|
809
|
-
|
|
810
|
-
|
|
811
|
-
|
|
812
|
-
|
|
813
|
-
|
|
814
|
-
|
|
815
|
-
|
|
816
|
-
'application/json',
|
|
817
|
-
'text/json',
|
|
818
|
-
'application/*+json'
|
|
819
|
-
]
|
|
820
|
-
)
|
|
799
|
+
# set the HTTP header `Accept`
|
|
800
|
+
if 'Accept' not in _header_params:
|
|
801
|
+
_header_params['Accept'] = self.api_client.select_header_accept(
|
|
802
|
+
[
|
|
803
|
+
'text/plain',
|
|
804
|
+
'application/json',
|
|
805
|
+
'text/json'
|
|
806
|
+
]
|
|
821
807
|
)
|
|
822
|
-
|
|
823
|
-
_header_params['Content-Type'] = _default_content_type
|
|
808
|
+
|
|
824
809
|
|
|
825
810
|
# authentication setting
|
|
826
811
|
_auth_settings: List[str] = [
|
|
827
|
-
'
|
|
828
|
-
'
|
|
812
|
+
'OAuth2',
|
|
813
|
+
'OpenIdConnect',
|
|
814
|
+
'Bearer'
|
|
829
815
|
]
|
|
830
816
|
|
|
831
817
|
return self.api_client.param_serialize(
|
|
832
|
-
method='
|
|
833
|
-
resource_path='/benchmark/{benchmarkId}
|
|
818
|
+
method='GET',
|
|
819
|
+
resource_path='/benchmark/{benchmarkId}',
|
|
834
820
|
path_params=_path_params,
|
|
835
821
|
query_params=_query_params,
|
|
836
822
|
header_params=_header_params,
|
|
@@ -847,10 +833,10 @@ class BenchmarkApi:
|
|
|
847
833
|
|
|
848
834
|
|
|
849
835
|
@validate_call
|
|
850
|
-
def
|
|
836
|
+
def benchmark_benchmark_id_leaderboards_get(
|
|
851
837
|
self,
|
|
852
|
-
|
|
853
|
-
|
|
838
|
+
benchmark_id: Annotated[StrictStr, Field(description="The Id of the benchmark whoms leaderboards will be returned")],
|
|
839
|
+
request: Annotated[Optional[QueryModel], Field(description="Query parameters")] = None,
|
|
854
840
|
_request_timeout: Union[
|
|
855
841
|
None,
|
|
856
842
|
Annotated[StrictFloat, Field(gt=0)],
|
|
@@ -863,14 +849,14 @@ class BenchmarkApi:
|
|
|
863
849
|
_content_type: Optional[StrictStr] = None,
|
|
864
850
|
_headers: Optional[Dict[StrictStr, Any]] = None,
|
|
865
851
|
_host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
|
|
866
|
-
) ->
|
|
867
|
-
"""
|
|
852
|
+
) -> PagedResultOfLeaderboardsQueryResult:
|
|
853
|
+
"""Queries all leaderboards for the current user's benchmarks.
|
|
868
854
|
|
|
869
855
|
|
|
870
|
-
:param
|
|
871
|
-
:type participant_id: str
|
|
872
|
-
:param benchmark_id: (required)
|
|
856
|
+
:param benchmark_id: The Id of the benchmark whoms leaderboards will be returned (required)
|
|
873
857
|
:type benchmark_id: str
|
|
858
|
+
:param request: Query parameters
|
|
859
|
+
:type request: QueryModel
|
|
874
860
|
:param _request_timeout: timeout setting for this request. If one
|
|
875
861
|
number provided, it will be total request
|
|
876
862
|
timeout. It can also be a pair (tuple) of
|
|
@@ -892,11 +878,10 @@ class BenchmarkApi:
|
|
|
892
878
|
:type _host_index: int, optional
|
|
893
879
|
:return: Returns the result object.
|
|
894
880
|
""" # noqa: E501
|
|
895
|
-
warnings.warn("DELETE /benchmark/{benchmarkId}/participant/{participantId} is deprecated.", DeprecationWarning)
|
|
896
881
|
|
|
897
|
-
_param = self.
|
|
898
|
-
participant_id=participant_id,
|
|
882
|
+
_param = self._benchmark_benchmark_id_leaderboards_get_serialize(
|
|
899
883
|
benchmark_id=benchmark_id,
|
|
884
|
+
request=request,
|
|
900
885
|
_request_auth=_request_auth,
|
|
901
886
|
_content_type=_content_type,
|
|
902
887
|
_headers=_headers,
|
|
@@ -904,7 +889,7 @@ class BenchmarkApi:
|
|
|
904
889
|
)
|
|
905
890
|
|
|
906
891
|
_response_types_map: Dict[str, Optional[str]] = {
|
|
907
|
-
'
|
|
892
|
+
'200': "PagedResultOfLeaderboardsQueryResult",
|
|
908
893
|
}
|
|
909
894
|
response_data = self.api_client.call_api(
|
|
910
895
|
*_param,
|
|
@@ -918,10 +903,10 @@ class BenchmarkApi:
|
|
|
918
903
|
|
|
919
904
|
|
|
920
905
|
@validate_call
|
|
921
|
-
def
|
|
906
|
+
def benchmark_benchmark_id_leaderboards_get_with_http_info(
|
|
922
907
|
self,
|
|
923
|
-
|
|
924
|
-
|
|
908
|
+
benchmark_id: Annotated[StrictStr, Field(description="The Id of the benchmark whoms leaderboards will be returned")],
|
|
909
|
+
request: Annotated[Optional[QueryModel], Field(description="Query parameters")] = None,
|
|
925
910
|
_request_timeout: Union[
|
|
926
911
|
None,
|
|
927
912
|
Annotated[StrictFloat, Field(gt=0)],
|
|
@@ -934,14 +919,14 @@ class BenchmarkApi:
|
|
|
934
919
|
_content_type: Optional[StrictStr] = None,
|
|
935
920
|
_headers: Optional[Dict[StrictStr, Any]] = None,
|
|
936
921
|
_host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
|
|
937
|
-
) -> ApiResponse[
|
|
938
|
-
"""
|
|
922
|
+
) -> ApiResponse[PagedResultOfLeaderboardsQueryResult]:
|
|
923
|
+
"""Queries all leaderboards for the current user's benchmarks.
|
|
939
924
|
|
|
940
925
|
|
|
941
|
-
:param
|
|
942
|
-
:type participant_id: str
|
|
943
|
-
:param benchmark_id: (required)
|
|
926
|
+
:param benchmark_id: The Id of the benchmark whoms leaderboards will be returned (required)
|
|
944
927
|
:type benchmark_id: str
|
|
928
|
+
:param request: Query parameters
|
|
929
|
+
:type request: QueryModel
|
|
945
930
|
:param _request_timeout: timeout setting for this request. If one
|
|
946
931
|
number provided, it will be total request
|
|
947
932
|
timeout. It can also be a pair (tuple) of
|
|
@@ -963,11 +948,10 @@ class BenchmarkApi:
|
|
|
963
948
|
:type _host_index: int, optional
|
|
964
949
|
:return: Returns the result object.
|
|
965
950
|
""" # noqa: E501
|
|
966
|
-
warnings.warn("DELETE /benchmark/{benchmarkId}/participant/{participantId} is deprecated.", DeprecationWarning)
|
|
967
951
|
|
|
968
|
-
_param = self.
|
|
969
|
-
participant_id=participant_id,
|
|
952
|
+
_param = self._benchmark_benchmark_id_leaderboards_get_serialize(
|
|
970
953
|
benchmark_id=benchmark_id,
|
|
954
|
+
request=request,
|
|
971
955
|
_request_auth=_request_auth,
|
|
972
956
|
_content_type=_content_type,
|
|
973
957
|
_headers=_headers,
|
|
@@ -975,7 +959,7 @@ class BenchmarkApi:
|
|
|
975
959
|
)
|
|
976
960
|
|
|
977
961
|
_response_types_map: Dict[str, Optional[str]] = {
|
|
978
|
-
'
|
|
962
|
+
'200': "PagedResultOfLeaderboardsQueryResult",
|
|
979
963
|
}
|
|
980
964
|
response_data = self.api_client.call_api(
|
|
981
965
|
*_param,
|
|
@@ -989,10 +973,10 @@ class BenchmarkApi:
|
|
|
989
973
|
|
|
990
974
|
|
|
991
975
|
@validate_call
|
|
992
|
-
def
|
|
976
|
+
def benchmark_benchmark_id_leaderboards_get_without_preload_content(
|
|
993
977
|
self,
|
|
994
|
-
|
|
995
|
-
|
|
978
|
+
benchmark_id: Annotated[StrictStr, Field(description="The Id of the benchmark whoms leaderboards will be returned")],
|
|
979
|
+
request: Annotated[Optional[QueryModel], Field(description="Query parameters")] = None,
|
|
996
980
|
_request_timeout: Union[
|
|
997
981
|
None,
|
|
998
982
|
Annotated[StrictFloat, Field(gt=0)],
|
|
@@ -1006,13 +990,13 @@ class BenchmarkApi:
|
|
|
1006
990
|
_headers: Optional[Dict[StrictStr, Any]] = None,
|
|
1007
991
|
_host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
|
|
1008
992
|
) -> RESTResponseType:
|
|
1009
|
-
"""
|
|
993
|
+
"""Queries all leaderboards for the current user's benchmarks.
|
|
1010
994
|
|
|
1011
995
|
|
|
1012
|
-
:param
|
|
1013
|
-
:type participant_id: str
|
|
1014
|
-
:param benchmark_id: (required)
|
|
996
|
+
:param benchmark_id: The Id of the benchmark whoms leaderboards will be returned (required)
|
|
1015
997
|
:type benchmark_id: str
|
|
998
|
+
:param request: Query parameters
|
|
999
|
+
:type request: QueryModel
|
|
1016
1000
|
:param _request_timeout: timeout setting for this request. If one
|
|
1017
1001
|
number provided, it will be total request
|
|
1018
1002
|
timeout. It can also be a pair (tuple) of
|
|
@@ -1034,11 +1018,10 @@ class BenchmarkApi:
|
|
|
1034
1018
|
:type _host_index: int, optional
|
|
1035
1019
|
:return: Returns the result object.
|
|
1036
1020
|
""" # noqa: E501
|
|
1037
|
-
warnings.warn("DELETE /benchmark/{benchmarkId}/participant/{participantId} is deprecated.", DeprecationWarning)
|
|
1038
1021
|
|
|
1039
|
-
_param = self.
|
|
1040
|
-
participant_id=participant_id,
|
|
1022
|
+
_param = self._benchmark_benchmark_id_leaderboards_get_serialize(
|
|
1041
1023
|
benchmark_id=benchmark_id,
|
|
1024
|
+
request=request,
|
|
1042
1025
|
_request_auth=_request_auth,
|
|
1043
1026
|
_content_type=_content_type,
|
|
1044
1027
|
_headers=_headers,
|
|
@@ -1046,7 +1029,7 @@ class BenchmarkApi:
|
|
|
1046
1029
|
)
|
|
1047
1030
|
|
|
1048
1031
|
_response_types_map: Dict[str, Optional[str]] = {
|
|
1049
|
-
'
|
|
1032
|
+
'200': "PagedResultOfLeaderboardsQueryResult",
|
|
1050
1033
|
}
|
|
1051
1034
|
response_data = self.api_client.call_api(
|
|
1052
1035
|
*_param,
|
|
@@ -1055,10 +1038,10 @@ class BenchmarkApi:
|
|
|
1055
1038
|
return response_data.response
|
|
1056
1039
|
|
|
1057
1040
|
|
|
1058
|
-
def
|
|
1041
|
+
def _benchmark_benchmark_id_leaderboards_get_serialize(
|
|
1059
1042
|
self,
|
|
1060
|
-
participant_id,
|
|
1061
1043
|
benchmark_id,
|
|
1044
|
+
request,
|
|
1062
1045
|
_request_auth,
|
|
1063
1046
|
_content_type,
|
|
1064
1047
|
_headers,
|
|
@@ -1080,27 +1063,39 @@ class BenchmarkApi:
|
|
|
1080
1063
|
_body_params: Optional[bytes] = None
|
|
1081
1064
|
|
|
1082
1065
|
# process the path parameters
|
|
1083
|
-
if participant_id is not None:
|
|
1084
|
-
_path_params['participantId'] = participant_id
|
|
1085
1066
|
if benchmark_id is not None:
|
|
1086
1067
|
_path_params['benchmarkId'] = benchmark_id
|
|
1087
1068
|
# process the query parameters
|
|
1069
|
+
if request is not None:
|
|
1070
|
+
|
|
1071
|
+
_query_params.append(('request', request))
|
|
1072
|
+
|
|
1088
1073
|
# process the header parameters
|
|
1089
1074
|
# process the form parameters
|
|
1090
1075
|
# process the body parameter
|
|
1091
1076
|
|
|
1092
1077
|
|
|
1078
|
+
# set the HTTP header `Accept`
|
|
1079
|
+
if 'Accept' not in _header_params:
|
|
1080
|
+
_header_params['Accept'] = self.api_client.select_header_accept(
|
|
1081
|
+
[
|
|
1082
|
+
'text/plain',
|
|
1083
|
+
'application/json',
|
|
1084
|
+
'text/json'
|
|
1085
|
+
]
|
|
1086
|
+
)
|
|
1093
1087
|
|
|
1094
1088
|
|
|
1095
1089
|
# authentication setting
|
|
1096
1090
|
_auth_settings: List[str] = [
|
|
1097
|
-
'
|
|
1098
|
-
'
|
|
1091
|
+
'OAuth2',
|
|
1092
|
+
'OpenIdConnect',
|
|
1093
|
+
'Bearer'
|
|
1099
1094
|
]
|
|
1100
1095
|
|
|
1101
1096
|
return self.api_client.param_serialize(
|
|
1102
|
-
method='
|
|
1103
|
-
resource_path='/benchmark/{benchmarkId}/
|
|
1097
|
+
method='GET',
|
|
1098
|
+
resource_path='/benchmark/{benchmarkId}/leaderboards',
|
|
1104
1099
|
path_params=_path_params,
|
|
1105
1100
|
query_params=_query_params,
|
|
1106
1101
|
header_params=_header_params,
|
|
@@ -1132,7 +1127,7 @@ class BenchmarkApi:
|
|
|
1132
1127
|
_content_type: Optional[StrictStr] = None,
|
|
1133
1128
|
_headers: Optional[Dict[StrictStr, Any]] = None,
|
|
1134
1129
|
_host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
|
|
1135
|
-
) ->
|
|
1130
|
+
) -> PagedResultOfParticipantByBenchmark:
|
|
1136
1131
|
"""Query all participants within a benchmark
|
|
1137
1132
|
|
|
1138
1133
|
|
|
@@ -1169,7 +1164,7 @@ class BenchmarkApi:
|
|
|
1169
1164
|
)
|
|
1170
1165
|
|
|
1171
1166
|
_response_types_map: Dict[str, Optional[str]] = {
|
|
1172
|
-
'200': "
|
|
1167
|
+
'200': "PagedResultOfParticipantByBenchmark",
|
|
1173
1168
|
}
|
|
1174
1169
|
response_data = self.api_client.call_api(
|
|
1175
1170
|
*_param,
|
|
@@ -1198,7 +1193,7 @@ class BenchmarkApi:
|
|
|
1198
1193
|
_content_type: Optional[StrictStr] = None,
|
|
1199
1194
|
_headers: Optional[Dict[StrictStr, Any]] = None,
|
|
1200
1195
|
_host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
|
|
1201
|
-
) -> ApiResponse[
|
|
1196
|
+
) -> ApiResponse[PagedResultOfParticipantByBenchmark]:
|
|
1202
1197
|
"""Query all participants within a benchmark
|
|
1203
1198
|
|
|
1204
1199
|
|
|
@@ -1235,7 +1230,7 @@ class BenchmarkApi:
|
|
|
1235
1230
|
)
|
|
1236
1231
|
|
|
1237
1232
|
_response_types_map: Dict[str, Optional[str]] = {
|
|
1238
|
-
'200': "
|
|
1233
|
+
'200': "PagedResultOfParticipantByBenchmark",
|
|
1239
1234
|
}
|
|
1240
1235
|
response_data = self.api_client.call_api(
|
|
1241
1236
|
*_param,
|
|
@@ -1301,7 +1296,7 @@ class BenchmarkApi:
|
|
|
1301
1296
|
)
|
|
1302
1297
|
|
|
1303
1298
|
_response_types_map: Dict[str, Optional[str]] = {
|
|
1304
|
-
'200': "
|
|
1299
|
+
'200': "PagedResultOfParticipantByBenchmark",
|
|
1305
1300
|
}
|
|
1306
1301
|
response_data = self.api_client.call_api(
|
|
1307
1302
|
*_param,
|
|
@@ -1355,8 +1350,9 @@ class BenchmarkApi:
|
|
|
1355
1350
|
|
|
1356
1351
|
# authentication setting
|
|
1357
1352
|
_auth_settings: List[str] = [
|
|
1358
|
-
'
|
|
1359
|
-
'
|
|
1353
|
+
'OAuth2',
|
|
1354
|
+
'OpenIdConnect',
|
|
1355
|
+
'Bearer'
|
|
1360
1356
|
]
|
|
1361
1357
|
|
|
1362
1358
|
return self.api_client.param_serialize(
|
|
@@ -1378,10 +1374,10 @@ class BenchmarkApi:
|
|
|
1378
1374
|
|
|
1379
1375
|
|
|
1380
1376
|
@validate_call
|
|
1381
|
-
def
|
|
1377
|
+
def benchmark_benchmark_id_participants_post(
|
|
1382
1378
|
self,
|
|
1383
1379
|
benchmark_id: StrictStr,
|
|
1384
|
-
|
|
1380
|
+
create_benchmark_participant_model: CreateBenchmarkParticipantModel,
|
|
1385
1381
|
_request_timeout: Union[
|
|
1386
1382
|
None,
|
|
1387
1383
|
Annotated[StrictFloat, Field(gt=0)],
|
|
@@ -1394,14 +1390,14 @@ class BenchmarkApi:
|
|
|
1394
1390
|
_content_type: Optional[StrictStr] = None,
|
|
1395
1391
|
_headers: Optional[Dict[StrictStr, Any]] = None,
|
|
1396
1392
|
_host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
|
|
1397
|
-
) ->
|
|
1398
|
-
"""
|
|
1393
|
+
) -> CreateBenchmarkParticipantResult:
|
|
1394
|
+
"""Creates a participant in a benchmark.
|
|
1399
1395
|
|
|
1400
1396
|
|
|
1401
1397
|
:param benchmark_id: (required)
|
|
1402
1398
|
:type benchmark_id: str
|
|
1403
|
-
:param
|
|
1404
|
-
:type
|
|
1399
|
+
:param create_benchmark_participant_model: (required)
|
|
1400
|
+
:type create_benchmark_participant_model: CreateBenchmarkParticipantModel
|
|
1405
1401
|
:param _request_timeout: timeout setting for this request. If one
|
|
1406
1402
|
number provided, it will be total request
|
|
1407
1403
|
timeout. It can also be a pair (tuple) of
|
|
@@ -1423,11 +1419,10 @@ class BenchmarkApi:
|
|
|
1423
1419
|
:type _host_index: int, optional
|
|
1424
1420
|
:return: Returns the result object.
|
|
1425
1421
|
""" # noqa: E501
|
|
1426
|
-
warnings.warn("POST /benchmark/{benchmarkId}/participants/{participantId}/submit is deprecated.", DeprecationWarning)
|
|
1427
1422
|
|
|
1428
|
-
_param = self.
|
|
1423
|
+
_param = self._benchmark_benchmark_id_participants_post_serialize(
|
|
1429
1424
|
benchmark_id=benchmark_id,
|
|
1430
|
-
|
|
1425
|
+
create_benchmark_participant_model=create_benchmark_participant_model,
|
|
1431
1426
|
_request_auth=_request_auth,
|
|
1432
1427
|
_content_type=_content_type,
|
|
1433
1428
|
_headers=_headers,
|
|
@@ -1435,7 +1430,7 @@ class BenchmarkApi:
|
|
|
1435
1430
|
)
|
|
1436
1431
|
|
|
1437
1432
|
_response_types_map: Dict[str, Optional[str]] = {
|
|
1438
|
-
'200': "
|
|
1433
|
+
'200': "CreateBenchmarkParticipantResult",
|
|
1439
1434
|
}
|
|
1440
1435
|
response_data = self.api_client.call_api(
|
|
1441
1436
|
*_param,
|
|
@@ -1449,10 +1444,10 @@ class BenchmarkApi:
|
|
|
1449
1444
|
|
|
1450
1445
|
|
|
1451
1446
|
@validate_call
|
|
1452
|
-
def
|
|
1447
|
+
def benchmark_benchmark_id_participants_post_with_http_info(
|
|
1453
1448
|
self,
|
|
1454
1449
|
benchmark_id: StrictStr,
|
|
1455
|
-
|
|
1450
|
+
create_benchmark_participant_model: CreateBenchmarkParticipantModel,
|
|
1456
1451
|
_request_timeout: Union[
|
|
1457
1452
|
None,
|
|
1458
1453
|
Annotated[StrictFloat, Field(gt=0)],
|
|
@@ -1465,14 +1460,14 @@ class BenchmarkApi:
|
|
|
1465
1460
|
_content_type: Optional[StrictStr] = None,
|
|
1466
1461
|
_headers: Optional[Dict[StrictStr, Any]] = None,
|
|
1467
1462
|
_host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
|
|
1468
|
-
) -> ApiResponse[
|
|
1469
|
-
"""
|
|
1463
|
+
) -> ApiResponse[CreateBenchmarkParticipantResult]:
|
|
1464
|
+
"""Creates a participant in a benchmark.
|
|
1470
1465
|
|
|
1471
1466
|
|
|
1472
1467
|
:param benchmark_id: (required)
|
|
1473
1468
|
:type benchmark_id: str
|
|
1474
|
-
:param
|
|
1475
|
-
:type
|
|
1469
|
+
:param create_benchmark_participant_model: (required)
|
|
1470
|
+
:type create_benchmark_participant_model: CreateBenchmarkParticipantModel
|
|
1476
1471
|
:param _request_timeout: timeout setting for this request. If one
|
|
1477
1472
|
number provided, it will be total request
|
|
1478
1473
|
timeout. It can also be a pair (tuple) of
|
|
@@ -1494,11 +1489,10 @@ class BenchmarkApi:
|
|
|
1494
1489
|
:type _host_index: int, optional
|
|
1495
1490
|
:return: Returns the result object.
|
|
1496
1491
|
""" # noqa: E501
|
|
1497
|
-
warnings.warn("POST /benchmark/{benchmarkId}/participants/{participantId}/submit is deprecated.", DeprecationWarning)
|
|
1498
1492
|
|
|
1499
|
-
_param = self.
|
|
1493
|
+
_param = self._benchmark_benchmark_id_participants_post_serialize(
|
|
1500
1494
|
benchmark_id=benchmark_id,
|
|
1501
|
-
|
|
1495
|
+
create_benchmark_participant_model=create_benchmark_participant_model,
|
|
1502
1496
|
_request_auth=_request_auth,
|
|
1503
1497
|
_content_type=_content_type,
|
|
1504
1498
|
_headers=_headers,
|
|
@@ -1506,7 +1500,7 @@ class BenchmarkApi:
|
|
|
1506
1500
|
)
|
|
1507
1501
|
|
|
1508
1502
|
_response_types_map: Dict[str, Optional[str]] = {
|
|
1509
|
-
'200': "
|
|
1503
|
+
'200': "CreateBenchmarkParticipantResult",
|
|
1510
1504
|
}
|
|
1511
1505
|
response_data = self.api_client.call_api(
|
|
1512
1506
|
*_param,
|
|
@@ -1520,10 +1514,10 @@ class BenchmarkApi:
|
|
|
1520
1514
|
|
|
1521
1515
|
|
|
1522
1516
|
@validate_call
|
|
1523
|
-
def
|
|
1517
|
+
def benchmark_benchmark_id_participants_post_without_preload_content(
|
|
1524
1518
|
self,
|
|
1525
1519
|
benchmark_id: StrictStr,
|
|
1526
|
-
|
|
1520
|
+
create_benchmark_participant_model: CreateBenchmarkParticipantModel,
|
|
1527
1521
|
_request_timeout: Union[
|
|
1528
1522
|
None,
|
|
1529
1523
|
Annotated[StrictFloat, Field(gt=0)],
|
|
@@ -1537,13 +1531,13 @@ class BenchmarkApi:
|
|
|
1537
1531
|
_headers: Optional[Dict[StrictStr, Any]] = None,
|
|
1538
1532
|
_host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
|
|
1539
1533
|
) -> RESTResponseType:
|
|
1540
|
-
"""
|
|
1534
|
+
"""Creates a participant in a benchmark.
|
|
1541
1535
|
|
|
1542
1536
|
|
|
1543
1537
|
:param benchmark_id: (required)
|
|
1544
1538
|
:type benchmark_id: str
|
|
1545
|
-
:param
|
|
1546
|
-
:type
|
|
1539
|
+
:param create_benchmark_participant_model: (required)
|
|
1540
|
+
:type create_benchmark_participant_model: CreateBenchmarkParticipantModel
|
|
1547
1541
|
:param _request_timeout: timeout setting for this request. If one
|
|
1548
1542
|
number provided, it will be total request
|
|
1549
1543
|
timeout. It can also be a pair (tuple) of
|
|
@@ -1565,11 +1559,10 @@ class BenchmarkApi:
|
|
|
1565
1559
|
:type _host_index: int, optional
|
|
1566
1560
|
:return: Returns the result object.
|
|
1567
1561
|
""" # noqa: E501
|
|
1568
|
-
warnings.warn("POST /benchmark/{benchmarkId}/participants/{participantId}/submit is deprecated.", DeprecationWarning)
|
|
1569
1562
|
|
|
1570
|
-
_param = self.
|
|
1563
|
+
_param = self._benchmark_benchmark_id_participants_post_serialize(
|
|
1571
1564
|
benchmark_id=benchmark_id,
|
|
1572
|
-
|
|
1565
|
+
create_benchmark_participant_model=create_benchmark_participant_model,
|
|
1573
1566
|
_request_auth=_request_auth,
|
|
1574
1567
|
_content_type=_content_type,
|
|
1575
1568
|
_headers=_headers,
|
|
@@ -1577,7 +1570,7 @@ class BenchmarkApi:
|
|
|
1577
1570
|
)
|
|
1578
1571
|
|
|
1579
1572
|
_response_types_map: Dict[str, Optional[str]] = {
|
|
1580
|
-
'200': "
|
|
1573
|
+
'200': "CreateBenchmarkParticipantResult",
|
|
1581
1574
|
}
|
|
1582
1575
|
response_data = self.api_client.call_api(
|
|
1583
1576
|
*_param,
|
|
@@ -1586,10 +1579,10 @@ class BenchmarkApi:
|
|
|
1586
1579
|
return response_data.response
|
|
1587
1580
|
|
|
1588
1581
|
|
|
1589
|
-
def
|
|
1582
|
+
def _benchmark_benchmark_id_participants_post_serialize(
|
|
1590
1583
|
self,
|
|
1591
1584
|
benchmark_id,
|
|
1592
|
-
|
|
1585
|
+
create_benchmark_participant_model,
|
|
1593
1586
|
_request_auth,
|
|
1594
1587
|
_content_type,
|
|
1595
1588
|
_headers,
|
|
@@ -1613,12 +1606,12 @@ class BenchmarkApi:
|
|
|
1613
1606
|
# process the path parameters
|
|
1614
1607
|
if benchmark_id is not None:
|
|
1615
1608
|
_path_params['benchmarkId'] = benchmark_id
|
|
1616
|
-
if participant_id is not None:
|
|
1617
|
-
_path_params['participantId'] = participant_id
|
|
1618
1609
|
# process the query parameters
|
|
1619
1610
|
# process the header parameters
|
|
1620
1611
|
# process the form parameters
|
|
1621
1612
|
# process the body parameter
|
|
1613
|
+
if create_benchmark_participant_model is not None:
|
|
1614
|
+
_body_params = create_benchmark_participant_model
|
|
1622
1615
|
|
|
1623
1616
|
|
|
1624
1617
|
# set the HTTP header `Accept`
|
|
@@ -1631,16 +1624,32 @@ class BenchmarkApi:
|
|
|
1631
1624
|
]
|
|
1632
1625
|
)
|
|
1633
1626
|
|
|
1627
|
+
# set the HTTP header `Content-Type`
|
|
1628
|
+
if _content_type:
|
|
1629
|
+
_header_params['Content-Type'] = _content_type
|
|
1630
|
+
else:
|
|
1631
|
+
_default_content_type = (
|
|
1632
|
+
self.api_client.select_header_content_type(
|
|
1633
|
+
[
|
|
1634
|
+
'application/json',
|
|
1635
|
+
'text/json',
|
|
1636
|
+
'application/*+json'
|
|
1637
|
+
]
|
|
1638
|
+
)
|
|
1639
|
+
)
|
|
1640
|
+
if _default_content_type is not None:
|
|
1641
|
+
_header_params['Content-Type'] = _default_content_type
|
|
1634
1642
|
|
|
1635
1643
|
# authentication setting
|
|
1636
1644
|
_auth_settings: List[str] = [
|
|
1637
|
-
'
|
|
1638
|
-
'
|
|
1645
|
+
'OAuth2',
|
|
1646
|
+
'OpenIdConnect',
|
|
1647
|
+
'Bearer'
|
|
1639
1648
|
]
|
|
1640
1649
|
|
|
1641
1650
|
return self.api_client.param_serialize(
|
|
1642
1651
|
method='POST',
|
|
1643
|
-
resource_path='/benchmark/{benchmarkId}/participants
|
|
1652
|
+
resource_path='/benchmark/{benchmarkId}/participants',
|
|
1644
1653
|
path_params=_path_params,
|
|
1645
1654
|
query_params=_query_params,
|
|
1646
1655
|
header_params=_header_params,
|
|
@@ -1657,10 +1666,10 @@ class BenchmarkApi:
|
|
|
1657
1666
|
|
|
1658
1667
|
|
|
1659
1668
|
@validate_call
|
|
1660
|
-
def
|
|
1669
|
+
def benchmark_benchmark_id_patch(
|
|
1661
1670
|
self,
|
|
1662
1671
|
benchmark_id: StrictStr,
|
|
1663
|
-
|
|
1672
|
+
update_benchmark_model: UpdateBenchmarkModel,
|
|
1664
1673
|
_request_timeout: Union[
|
|
1665
1674
|
None,
|
|
1666
1675
|
Annotated[StrictFloat, Field(gt=0)],
|
|
@@ -1673,14 +1682,14 @@ class BenchmarkApi:
|
|
|
1673
1682
|
_content_type: Optional[StrictStr] = None,
|
|
1674
1683
|
_headers: Optional[Dict[StrictStr, Any]] = None,
|
|
1675
1684
|
_host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
|
|
1676
|
-
) ->
|
|
1677
|
-
"""
|
|
1685
|
+
) -> None:
|
|
1686
|
+
"""Updates a benchmark using patch semantics.
|
|
1678
1687
|
|
|
1679
1688
|
|
|
1680
1689
|
:param benchmark_id: (required)
|
|
1681
1690
|
:type benchmark_id: str
|
|
1682
|
-
:param
|
|
1683
|
-
:type
|
|
1691
|
+
:param update_benchmark_model: (required)
|
|
1692
|
+
:type update_benchmark_model: UpdateBenchmarkModel
|
|
1684
1693
|
:param _request_timeout: timeout setting for this request. If one
|
|
1685
1694
|
number provided, it will be total request
|
|
1686
1695
|
timeout. It can also be a pair (tuple) of
|
|
@@ -1703,9 +1712,9 @@ class BenchmarkApi:
|
|
|
1703
1712
|
:return: Returns the result object.
|
|
1704
1713
|
""" # noqa: E501
|
|
1705
1714
|
|
|
1706
|
-
_param = self.
|
|
1715
|
+
_param = self._benchmark_benchmark_id_patch_serialize(
|
|
1707
1716
|
benchmark_id=benchmark_id,
|
|
1708
|
-
|
|
1717
|
+
update_benchmark_model=update_benchmark_model,
|
|
1709
1718
|
_request_auth=_request_auth,
|
|
1710
1719
|
_content_type=_content_type,
|
|
1711
1720
|
_headers=_headers,
|
|
@@ -1713,7 +1722,7 @@ class BenchmarkApi:
|
|
|
1713
1722
|
)
|
|
1714
1723
|
|
|
1715
1724
|
_response_types_map: Dict[str, Optional[str]] = {
|
|
1716
|
-
'
|
|
1725
|
+
'204': None,
|
|
1717
1726
|
}
|
|
1718
1727
|
response_data = self.api_client.call_api(
|
|
1719
1728
|
*_param,
|
|
@@ -1727,10 +1736,10 @@ class BenchmarkApi:
|
|
|
1727
1736
|
|
|
1728
1737
|
|
|
1729
1738
|
@validate_call
|
|
1730
|
-
def
|
|
1739
|
+
def benchmark_benchmark_id_patch_with_http_info(
|
|
1731
1740
|
self,
|
|
1732
1741
|
benchmark_id: StrictStr,
|
|
1733
|
-
|
|
1742
|
+
update_benchmark_model: UpdateBenchmarkModel,
|
|
1734
1743
|
_request_timeout: Union[
|
|
1735
1744
|
None,
|
|
1736
1745
|
Annotated[StrictFloat, Field(gt=0)],
|
|
@@ -1743,14 +1752,14 @@ class BenchmarkApi:
|
|
|
1743
1752
|
_content_type: Optional[StrictStr] = None,
|
|
1744
1753
|
_headers: Optional[Dict[StrictStr, Any]] = None,
|
|
1745
1754
|
_host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
|
|
1746
|
-
) -> ApiResponse[
|
|
1747
|
-
"""
|
|
1755
|
+
) -> ApiResponse[None]:
|
|
1756
|
+
"""Updates a benchmark using patch semantics.
|
|
1748
1757
|
|
|
1749
1758
|
|
|
1750
1759
|
:param benchmark_id: (required)
|
|
1751
1760
|
:type benchmark_id: str
|
|
1752
|
-
:param
|
|
1753
|
-
:type
|
|
1761
|
+
:param update_benchmark_model: (required)
|
|
1762
|
+
:type update_benchmark_model: UpdateBenchmarkModel
|
|
1754
1763
|
:param _request_timeout: timeout setting for this request. If one
|
|
1755
1764
|
number provided, it will be total request
|
|
1756
1765
|
timeout. It can also be a pair (tuple) of
|
|
@@ -1773,9 +1782,9 @@ class BenchmarkApi:
|
|
|
1773
1782
|
:return: Returns the result object.
|
|
1774
1783
|
""" # noqa: E501
|
|
1775
1784
|
|
|
1776
|
-
_param = self.
|
|
1785
|
+
_param = self._benchmark_benchmark_id_patch_serialize(
|
|
1777
1786
|
benchmark_id=benchmark_id,
|
|
1778
|
-
|
|
1787
|
+
update_benchmark_model=update_benchmark_model,
|
|
1779
1788
|
_request_auth=_request_auth,
|
|
1780
1789
|
_content_type=_content_type,
|
|
1781
1790
|
_headers=_headers,
|
|
@@ -1783,7 +1792,7 @@ class BenchmarkApi:
|
|
|
1783
1792
|
)
|
|
1784
1793
|
|
|
1785
1794
|
_response_types_map: Dict[str, Optional[str]] = {
|
|
1786
|
-
'
|
|
1795
|
+
'204': None,
|
|
1787
1796
|
}
|
|
1788
1797
|
response_data = self.api_client.call_api(
|
|
1789
1798
|
*_param,
|
|
@@ -1797,10 +1806,10 @@ class BenchmarkApi:
|
|
|
1797
1806
|
|
|
1798
1807
|
|
|
1799
1808
|
@validate_call
|
|
1800
|
-
def
|
|
1809
|
+
def benchmark_benchmark_id_patch_without_preload_content(
|
|
1801
1810
|
self,
|
|
1802
1811
|
benchmark_id: StrictStr,
|
|
1803
|
-
|
|
1812
|
+
update_benchmark_model: UpdateBenchmarkModel,
|
|
1804
1813
|
_request_timeout: Union[
|
|
1805
1814
|
None,
|
|
1806
1815
|
Annotated[StrictFloat, Field(gt=0)],
|
|
@@ -1814,13 +1823,13 @@ class BenchmarkApi:
|
|
|
1814
1823
|
_headers: Optional[Dict[StrictStr, Any]] = None,
|
|
1815
1824
|
_host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
|
|
1816
1825
|
) -> RESTResponseType:
|
|
1817
|
-
"""
|
|
1826
|
+
"""Updates a benchmark using patch semantics.
|
|
1818
1827
|
|
|
1819
1828
|
|
|
1820
1829
|
:param benchmark_id: (required)
|
|
1821
1830
|
:type benchmark_id: str
|
|
1822
|
-
:param
|
|
1823
|
-
:type
|
|
1831
|
+
:param update_benchmark_model: (required)
|
|
1832
|
+
:type update_benchmark_model: UpdateBenchmarkModel
|
|
1824
1833
|
:param _request_timeout: timeout setting for this request. If one
|
|
1825
1834
|
number provided, it will be total request
|
|
1826
1835
|
timeout. It can also be a pair (tuple) of
|
|
@@ -1843,9 +1852,9 @@ class BenchmarkApi:
|
|
|
1843
1852
|
:return: Returns the result object.
|
|
1844
1853
|
""" # noqa: E501
|
|
1845
1854
|
|
|
1846
|
-
_param = self.
|
|
1855
|
+
_param = self._benchmark_benchmark_id_patch_serialize(
|
|
1847
1856
|
benchmark_id=benchmark_id,
|
|
1848
|
-
|
|
1857
|
+
update_benchmark_model=update_benchmark_model,
|
|
1849
1858
|
_request_auth=_request_auth,
|
|
1850
1859
|
_content_type=_content_type,
|
|
1851
1860
|
_headers=_headers,
|
|
@@ -1853,7 +1862,7 @@ class BenchmarkApi:
|
|
|
1853
1862
|
)
|
|
1854
1863
|
|
|
1855
1864
|
_response_types_map: Dict[str, Optional[str]] = {
|
|
1856
|
-
'
|
|
1865
|
+
'204': None,
|
|
1857
1866
|
}
|
|
1858
1867
|
response_data = self.api_client.call_api(
|
|
1859
1868
|
*_param,
|
|
@@ -1862,10 +1871,10 @@ class BenchmarkApi:
|
|
|
1862
1871
|
return response_data.response
|
|
1863
1872
|
|
|
1864
1873
|
|
|
1865
|
-
def
|
|
1874
|
+
def _benchmark_benchmark_id_patch_serialize(
|
|
1866
1875
|
self,
|
|
1867
1876
|
benchmark_id,
|
|
1868
|
-
|
|
1877
|
+
update_benchmark_model,
|
|
1869
1878
|
_request_auth,
|
|
1870
1879
|
_content_type,
|
|
1871
1880
|
_headers,
|
|
@@ -1893,19 +1902,10 @@ class BenchmarkApi:
|
|
|
1893
1902
|
# process the header parameters
|
|
1894
1903
|
# process the form parameters
|
|
1895
1904
|
# process the body parameter
|
|
1896
|
-
if
|
|
1897
|
-
_body_params =
|
|
1905
|
+
if update_benchmark_model is not None:
|
|
1906
|
+
_body_params = update_benchmark_model
|
|
1898
1907
|
|
|
1899
1908
|
|
|
1900
|
-
# set the HTTP header `Accept`
|
|
1901
|
-
if 'Accept' not in _header_params:
|
|
1902
|
-
_header_params['Accept'] = self.api_client.select_header_accept(
|
|
1903
|
-
[
|
|
1904
|
-
'text/plain',
|
|
1905
|
-
'application/json',
|
|
1906
|
-
'text/json'
|
|
1907
|
-
]
|
|
1908
|
-
)
|
|
1909
1909
|
|
|
1910
1910
|
# set the HTTP header `Content-Type`
|
|
1911
1911
|
if _content_type:
|
|
@@ -1925,13 +1925,14 @@ class BenchmarkApi:
|
|
|
1925
1925
|
|
|
1926
1926
|
# authentication setting
|
|
1927
1927
|
_auth_settings: List[str] = [
|
|
1928
|
-
'
|
|
1929
|
-
'
|
|
1928
|
+
'OAuth2',
|
|
1929
|
+
'OpenIdConnect',
|
|
1930
|
+
'Bearer'
|
|
1930
1931
|
]
|
|
1931
1932
|
|
|
1932
1933
|
return self.api_client.param_serialize(
|
|
1933
|
-
method='
|
|
1934
|
-
resource_path='/benchmark/{benchmarkId}
|
|
1934
|
+
method='PATCH',
|
|
1935
|
+
resource_path='/benchmark/{benchmarkId}',
|
|
1935
1936
|
path_params=_path_params,
|
|
1936
1937
|
query_params=_query_params,
|
|
1937
1938
|
header_params=_header_params,
|
|
@@ -1951,7 +1952,7 @@ class BenchmarkApi:
|
|
|
1951
1952
|
def benchmark_benchmark_id_prompt_post(
|
|
1952
1953
|
self,
|
|
1953
1954
|
benchmark_id: Annotated[StrictStr, Field(description="The benchmark id.")],
|
|
1954
|
-
submit_prompt_model:
|
|
1955
|
+
submit_prompt_model: SubmitPromptModel,
|
|
1955
1956
|
_request_timeout: Union[
|
|
1956
1957
|
None,
|
|
1957
1958
|
Annotated[StrictFloat, Field(gt=0)],
|
|
@@ -1964,13 +1965,13 @@ class BenchmarkApi:
|
|
|
1964
1965
|
_content_type: Optional[StrictStr] = None,
|
|
1965
1966
|
_headers: Optional[Dict[StrictStr, Any]] = None,
|
|
1966
1967
|
_host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
|
|
1967
|
-
) ->
|
|
1968
|
+
) -> CreateBenchmarkPromptResult:
|
|
1968
1969
|
"""Adds a new prompt to a benchmark.
|
|
1969
1970
|
|
|
1970
1971
|
|
|
1971
1972
|
:param benchmark_id: The benchmark id. (required)
|
|
1972
1973
|
:type benchmark_id: str
|
|
1973
|
-
:param submit_prompt_model:
|
|
1974
|
+
:param submit_prompt_model: (required)
|
|
1974
1975
|
:type submit_prompt_model: SubmitPromptModel
|
|
1975
1976
|
:param _request_timeout: timeout setting for this request. If one
|
|
1976
1977
|
number provided, it will be total request
|
|
@@ -2004,7 +2005,7 @@ class BenchmarkApi:
|
|
|
2004
2005
|
)
|
|
2005
2006
|
|
|
2006
2007
|
_response_types_map: Dict[str, Optional[str]] = {
|
|
2007
|
-
'
|
|
2008
|
+
'200': "CreateBenchmarkPromptResult",
|
|
2008
2009
|
}
|
|
2009
2010
|
response_data = self.api_client.call_api(
|
|
2010
2011
|
*_param,
|
|
@@ -2021,7 +2022,7 @@ class BenchmarkApi:
|
|
|
2021
2022
|
def benchmark_benchmark_id_prompt_post_with_http_info(
|
|
2022
2023
|
self,
|
|
2023
2024
|
benchmark_id: Annotated[StrictStr, Field(description="The benchmark id.")],
|
|
2024
|
-
submit_prompt_model:
|
|
2025
|
+
submit_prompt_model: SubmitPromptModel,
|
|
2025
2026
|
_request_timeout: Union[
|
|
2026
2027
|
None,
|
|
2027
2028
|
Annotated[StrictFloat, Field(gt=0)],
|
|
@@ -2034,13 +2035,13 @@ class BenchmarkApi:
|
|
|
2034
2035
|
_content_type: Optional[StrictStr] = None,
|
|
2035
2036
|
_headers: Optional[Dict[StrictStr, Any]] = None,
|
|
2036
2037
|
_host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
|
|
2037
|
-
) -> ApiResponse[
|
|
2038
|
+
) -> ApiResponse[CreateBenchmarkPromptResult]:
|
|
2038
2039
|
"""Adds a new prompt to a benchmark.
|
|
2039
2040
|
|
|
2040
2041
|
|
|
2041
2042
|
:param benchmark_id: The benchmark id. (required)
|
|
2042
2043
|
:type benchmark_id: str
|
|
2043
|
-
:param submit_prompt_model:
|
|
2044
|
+
:param submit_prompt_model: (required)
|
|
2044
2045
|
:type submit_prompt_model: SubmitPromptModel
|
|
2045
2046
|
:param _request_timeout: timeout setting for this request. If one
|
|
2046
2047
|
number provided, it will be total request
|
|
@@ -2074,7 +2075,7 @@ class BenchmarkApi:
|
|
|
2074
2075
|
)
|
|
2075
2076
|
|
|
2076
2077
|
_response_types_map: Dict[str, Optional[str]] = {
|
|
2077
|
-
'
|
|
2078
|
+
'200': "CreateBenchmarkPromptResult",
|
|
2078
2079
|
}
|
|
2079
2080
|
response_data = self.api_client.call_api(
|
|
2080
2081
|
*_param,
|
|
@@ -2091,7 +2092,7 @@ class BenchmarkApi:
|
|
|
2091
2092
|
def benchmark_benchmark_id_prompt_post_without_preload_content(
|
|
2092
2093
|
self,
|
|
2093
2094
|
benchmark_id: Annotated[StrictStr, Field(description="The benchmark id.")],
|
|
2094
|
-
submit_prompt_model:
|
|
2095
|
+
submit_prompt_model: SubmitPromptModel,
|
|
2095
2096
|
_request_timeout: Union[
|
|
2096
2097
|
None,
|
|
2097
2098
|
Annotated[StrictFloat, Field(gt=0)],
|
|
@@ -2110,7 +2111,7 @@ class BenchmarkApi:
|
|
|
2110
2111
|
|
|
2111
2112
|
:param benchmark_id: The benchmark id. (required)
|
|
2112
2113
|
:type benchmark_id: str
|
|
2113
|
-
:param submit_prompt_model:
|
|
2114
|
+
:param submit_prompt_model: (required)
|
|
2114
2115
|
:type submit_prompt_model: SubmitPromptModel
|
|
2115
2116
|
:param _request_timeout: timeout setting for this request. If one
|
|
2116
2117
|
number provided, it will be total request
|
|
@@ -2144,7 +2145,7 @@ class BenchmarkApi:
|
|
|
2144
2145
|
)
|
|
2145
2146
|
|
|
2146
2147
|
_response_types_map: Dict[str, Optional[str]] = {
|
|
2147
|
-
'
|
|
2148
|
+
'200': "CreateBenchmarkPromptResult",
|
|
2148
2149
|
}
|
|
2149
2150
|
response_data = self.api_client.call_api(
|
|
2150
2151
|
*_param,
|
|
@@ -2188,6 +2189,15 @@ class BenchmarkApi:
|
|
|
2188
2189
|
_body_params = submit_prompt_model
|
|
2189
2190
|
|
|
2190
2191
|
|
|
2192
|
+
# set the HTTP header `Accept`
|
|
2193
|
+
if 'Accept' not in _header_params:
|
|
2194
|
+
_header_params['Accept'] = self.api_client.select_header_accept(
|
|
2195
|
+
[
|
|
2196
|
+
'text/plain',
|
|
2197
|
+
'application/json',
|
|
2198
|
+
'text/json'
|
|
2199
|
+
]
|
|
2200
|
+
)
|
|
2191
2201
|
|
|
2192
2202
|
# set the HTTP header `Content-Type`
|
|
2193
2203
|
if _content_type:
|
|
@@ -2207,8 +2217,9 @@ class BenchmarkApi:
|
|
|
2207
2217
|
|
|
2208
2218
|
# authentication setting
|
|
2209
2219
|
_auth_settings: List[str] = [
|
|
2210
|
-
'
|
|
2211
|
-
'
|
|
2220
|
+
'OAuth2',
|
|
2221
|
+
'OpenIdConnect',
|
|
2222
|
+
'Bearer'
|
|
2212
2223
|
]
|
|
2213
2224
|
|
|
2214
2225
|
return self.api_client.param_serialize(
|
|
@@ -2246,7 +2257,7 @@ class BenchmarkApi:
|
|
|
2246
2257
|
_content_type: Optional[StrictStr] = None,
|
|
2247
2258
|
_headers: Optional[Dict[StrictStr, Any]] = None,
|
|
2248
2259
|
_host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
|
|
2249
|
-
) ->
|
|
2260
|
+
) -> PagedResultOfPromptByBenchmarkResult:
|
|
2250
2261
|
"""Returns the paged prompts of a benchmark by its ID.
|
|
2251
2262
|
|
|
2252
2263
|
|
|
@@ -2286,7 +2297,7 @@ class BenchmarkApi:
|
|
|
2286
2297
|
)
|
|
2287
2298
|
|
|
2288
2299
|
_response_types_map: Dict[str, Optional[str]] = {
|
|
2289
|
-
'200': "
|
|
2300
|
+
'200': "PagedResultOfPromptByBenchmarkResult",
|
|
2290
2301
|
}
|
|
2291
2302
|
response_data = self.api_client.call_api(
|
|
2292
2303
|
*_param,
|
|
@@ -2316,7 +2327,7 @@ class BenchmarkApi:
|
|
|
2316
2327
|
_content_type: Optional[StrictStr] = None,
|
|
2317
2328
|
_headers: Optional[Dict[StrictStr, Any]] = None,
|
|
2318
2329
|
_host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
|
|
2319
|
-
) -> ApiResponse[
|
|
2330
|
+
) -> ApiResponse[PagedResultOfPromptByBenchmarkResult]:
|
|
2320
2331
|
"""Returns the paged prompts of a benchmark by its ID.
|
|
2321
2332
|
|
|
2322
2333
|
|
|
@@ -2356,7 +2367,7 @@ class BenchmarkApi:
|
|
|
2356
2367
|
)
|
|
2357
2368
|
|
|
2358
2369
|
_response_types_map: Dict[str, Optional[str]] = {
|
|
2359
|
-
'200': "
|
|
2370
|
+
'200': "PagedResultOfPromptByBenchmarkResult",
|
|
2360
2371
|
}
|
|
2361
2372
|
response_data = self.api_client.call_api(
|
|
2362
2373
|
*_param,
|
|
@@ -2426,7 +2437,7 @@ class BenchmarkApi:
|
|
|
2426
2437
|
)
|
|
2427
2438
|
|
|
2428
2439
|
_response_types_map: Dict[str, Optional[str]] = {
|
|
2429
|
-
'200': "
|
|
2440
|
+
'200': "PagedResultOfPromptByBenchmarkResult",
|
|
2430
2441
|
}
|
|
2431
2442
|
response_data = self.api_client.call_api(
|
|
2432
2443
|
*_param,
|
|
@@ -2485,8 +2496,9 @@ class BenchmarkApi:
|
|
|
2485
2496
|
|
|
2486
2497
|
# authentication setting
|
|
2487
2498
|
_auth_settings: List[str] = [
|
|
2488
|
-
'
|
|
2489
|
-
'
|
|
2499
|
+
'OAuth2',
|
|
2500
|
+
'OpenIdConnect',
|
|
2501
|
+
'Bearer'
|
|
2490
2502
|
]
|
|
2491
2503
|
|
|
2492
2504
|
return self.api_client.param_serialize(
|
|
@@ -2507,6 +2519,650 @@ class BenchmarkApi:
|
|
|
2507
2519
|
|
|
2508
2520
|
|
|
2509
2521
|
|
|
2522
|
+
@validate_call
|
|
2523
|
+
def benchmark_benchmark_id_samples_identifier_get(
|
|
2524
|
+
self,
|
|
2525
|
+
benchmark_id: Annotated[StrictStr, Field(description="The id of the benchmark to query")],
|
|
2526
|
+
identifier: Annotated[StrictStr, Field(description="The identifier to filter all samples for")],
|
|
2527
|
+
request: Annotated[Optional[QueryModel], Field(description="additional query settings")] = None,
|
|
2528
|
+
_request_timeout: Union[
|
|
2529
|
+
None,
|
|
2530
|
+
Annotated[StrictFloat, Field(gt=0)],
|
|
2531
|
+
Tuple[
|
|
2532
|
+
Annotated[StrictFloat, Field(gt=0)],
|
|
2533
|
+
Annotated[StrictFloat, Field(gt=0)]
|
|
2534
|
+
]
|
|
2535
|
+
] = None,
|
|
2536
|
+
_request_auth: Optional[Dict[StrictStr, Any]] = None,
|
|
2537
|
+
_content_type: Optional[StrictStr] = None,
|
|
2538
|
+
_headers: Optional[Dict[StrictStr, Any]] = None,
|
|
2539
|
+
_host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
|
|
2540
|
+
) -> PagedResultOfSampleByIdentifier:
|
|
2541
|
+
"""Returns the paged prompts of a benchmark by its ID.
|
|
2542
|
+
|
|
2543
|
+
|
|
2544
|
+
:param benchmark_id: The id of the benchmark to query (required)
|
|
2545
|
+
:type benchmark_id: str
|
|
2546
|
+
:param identifier: The identifier to filter all samples for (required)
|
|
2547
|
+
:type identifier: str
|
|
2548
|
+
:param request: additional query settings
|
|
2549
|
+
:type request: QueryModel
|
|
2550
|
+
:param _request_timeout: timeout setting for this request. If one
|
|
2551
|
+
number provided, it will be total request
|
|
2552
|
+
timeout. It can also be a pair (tuple) of
|
|
2553
|
+
(connection, read) timeouts.
|
|
2554
|
+
:type _request_timeout: int, tuple(int, int), optional
|
|
2555
|
+
:param _request_auth: set to override the auth_settings for an a single
|
|
2556
|
+
request; this effectively ignores the
|
|
2557
|
+
authentication in the spec for a single request.
|
|
2558
|
+
:type _request_auth: dict, optional
|
|
2559
|
+
:param _content_type: force content-type for the request.
|
|
2560
|
+
:type _content_type: str, Optional
|
|
2561
|
+
:param _headers: set to override the headers for a single
|
|
2562
|
+
request; this effectively ignores the headers
|
|
2563
|
+
in the spec for a single request.
|
|
2564
|
+
:type _headers: dict, optional
|
|
2565
|
+
:param _host_index: set to override the host_index for a single
|
|
2566
|
+
request; this effectively ignores the host_index
|
|
2567
|
+
in the spec for a single request.
|
|
2568
|
+
:type _host_index: int, optional
|
|
2569
|
+
:return: Returns the result object.
|
|
2570
|
+
""" # noqa: E501
|
|
2571
|
+
|
|
2572
|
+
_param = self._benchmark_benchmark_id_samples_identifier_get_serialize(
|
|
2573
|
+
benchmark_id=benchmark_id,
|
|
2574
|
+
identifier=identifier,
|
|
2575
|
+
request=request,
|
|
2576
|
+
_request_auth=_request_auth,
|
|
2577
|
+
_content_type=_content_type,
|
|
2578
|
+
_headers=_headers,
|
|
2579
|
+
_host_index=_host_index
|
|
2580
|
+
)
|
|
2581
|
+
|
|
2582
|
+
_response_types_map: Dict[str, Optional[str]] = {
|
|
2583
|
+
'200': "PagedResultOfSampleByIdentifier",
|
|
2584
|
+
}
|
|
2585
|
+
response_data = self.api_client.call_api(
|
|
2586
|
+
*_param,
|
|
2587
|
+
_request_timeout=_request_timeout
|
|
2588
|
+
)
|
|
2589
|
+
response_data.read()
|
|
2590
|
+
return self.api_client.response_deserialize(
|
|
2591
|
+
response_data=response_data,
|
|
2592
|
+
response_types_map=_response_types_map,
|
|
2593
|
+
).data
|
|
2594
|
+
|
|
2595
|
+
|
|
2596
|
+
@validate_call
|
|
2597
|
+
def benchmark_benchmark_id_samples_identifier_get_with_http_info(
|
|
2598
|
+
self,
|
|
2599
|
+
benchmark_id: Annotated[StrictStr, Field(description="The id of the benchmark to query")],
|
|
2600
|
+
identifier: Annotated[StrictStr, Field(description="The identifier to filter all samples for")],
|
|
2601
|
+
request: Annotated[Optional[QueryModel], Field(description="additional query settings")] = None,
|
|
2602
|
+
_request_timeout: Union[
|
|
2603
|
+
None,
|
|
2604
|
+
Annotated[StrictFloat, Field(gt=0)],
|
|
2605
|
+
Tuple[
|
|
2606
|
+
Annotated[StrictFloat, Field(gt=0)],
|
|
2607
|
+
Annotated[StrictFloat, Field(gt=0)]
|
|
2608
|
+
]
|
|
2609
|
+
] = None,
|
|
2610
|
+
_request_auth: Optional[Dict[StrictStr, Any]] = None,
|
|
2611
|
+
_content_type: Optional[StrictStr] = None,
|
|
2612
|
+
_headers: Optional[Dict[StrictStr, Any]] = None,
|
|
2613
|
+
_host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
|
|
2614
|
+
) -> ApiResponse[PagedResultOfSampleByIdentifier]:
|
|
2615
|
+
"""Returns the paged prompts of a benchmark by its ID.
|
|
2616
|
+
|
|
2617
|
+
|
|
2618
|
+
:param benchmark_id: The id of the benchmark to query (required)
|
|
2619
|
+
:type benchmark_id: str
|
|
2620
|
+
:param identifier: The identifier to filter all samples for (required)
|
|
2621
|
+
:type identifier: str
|
|
2622
|
+
:param request: additional query settings
|
|
2623
|
+
:type request: QueryModel
|
|
2624
|
+
:param _request_timeout: timeout setting for this request. If one
|
|
2625
|
+
number provided, it will be total request
|
|
2626
|
+
timeout. It can also be a pair (tuple) of
|
|
2627
|
+
(connection, read) timeouts.
|
|
2628
|
+
:type _request_timeout: int, tuple(int, int), optional
|
|
2629
|
+
:param _request_auth: set to override the auth_settings for an a single
|
|
2630
|
+
request; this effectively ignores the
|
|
2631
|
+
authentication in the spec for a single request.
|
|
2632
|
+
:type _request_auth: dict, optional
|
|
2633
|
+
:param _content_type: force content-type for the request.
|
|
2634
|
+
:type _content_type: str, Optional
|
|
2635
|
+
:param _headers: set to override the headers for a single
|
|
2636
|
+
request; this effectively ignores the headers
|
|
2637
|
+
in the spec for a single request.
|
|
2638
|
+
:type _headers: dict, optional
|
|
2639
|
+
:param _host_index: set to override the host_index for a single
|
|
2640
|
+
request; this effectively ignores the host_index
|
|
2641
|
+
in the spec for a single request.
|
|
2642
|
+
:type _host_index: int, optional
|
|
2643
|
+
:return: Returns the result object.
|
|
2644
|
+
""" # noqa: E501
|
|
2645
|
+
|
|
2646
|
+
_param = self._benchmark_benchmark_id_samples_identifier_get_serialize(
|
|
2647
|
+
benchmark_id=benchmark_id,
|
|
2648
|
+
identifier=identifier,
|
|
2649
|
+
request=request,
|
|
2650
|
+
_request_auth=_request_auth,
|
|
2651
|
+
_content_type=_content_type,
|
|
2652
|
+
_headers=_headers,
|
|
2653
|
+
_host_index=_host_index
|
|
2654
|
+
)
|
|
2655
|
+
|
|
2656
|
+
_response_types_map: Dict[str, Optional[str]] = {
|
|
2657
|
+
'200': "PagedResultOfSampleByIdentifier",
|
|
2658
|
+
}
|
|
2659
|
+
response_data = self.api_client.call_api(
|
|
2660
|
+
*_param,
|
|
2661
|
+
_request_timeout=_request_timeout
|
|
2662
|
+
)
|
|
2663
|
+
response_data.read()
|
|
2664
|
+
return self.api_client.response_deserialize(
|
|
2665
|
+
response_data=response_data,
|
|
2666
|
+
response_types_map=_response_types_map,
|
|
2667
|
+
)
|
|
2668
|
+
|
|
2669
|
+
|
|
2670
|
+
@validate_call
|
|
2671
|
+
def benchmark_benchmark_id_samples_identifier_get_without_preload_content(
|
|
2672
|
+
self,
|
|
2673
|
+
benchmark_id: Annotated[StrictStr, Field(description="The id of the benchmark to query")],
|
|
2674
|
+
identifier: Annotated[StrictStr, Field(description="The identifier to filter all samples for")],
|
|
2675
|
+
request: Annotated[Optional[QueryModel], Field(description="additional query settings")] = None,
|
|
2676
|
+
_request_timeout: Union[
|
|
2677
|
+
None,
|
|
2678
|
+
Annotated[StrictFloat, Field(gt=0)],
|
|
2679
|
+
Tuple[
|
|
2680
|
+
Annotated[StrictFloat, Field(gt=0)],
|
|
2681
|
+
Annotated[StrictFloat, Field(gt=0)]
|
|
2682
|
+
]
|
|
2683
|
+
] = None,
|
|
2684
|
+
_request_auth: Optional[Dict[StrictStr, Any]] = None,
|
|
2685
|
+
_content_type: Optional[StrictStr] = None,
|
|
2686
|
+
_headers: Optional[Dict[StrictStr, Any]] = None,
|
|
2687
|
+
_host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
|
|
2688
|
+
) -> RESTResponseType:
|
|
2689
|
+
"""Returns the paged prompts of a benchmark by its ID.
|
|
2690
|
+
|
|
2691
|
+
|
|
2692
|
+
:param benchmark_id: The id of the benchmark to query (required)
|
|
2693
|
+
:type benchmark_id: str
|
|
2694
|
+
:param identifier: The identifier to filter all samples for (required)
|
|
2695
|
+
:type identifier: str
|
|
2696
|
+
:param request: additional query settings
|
|
2697
|
+
:type request: QueryModel
|
|
2698
|
+
:param _request_timeout: timeout setting for this request. If one
|
|
2699
|
+
number provided, it will be total request
|
|
2700
|
+
timeout. It can also be a pair (tuple) of
|
|
2701
|
+
(connection, read) timeouts.
|
|
2702
|
+
:type _request_timeout: int, tuple(int, int), optional
|
|
2703
|
+
:param _request_auth: set to override the auth_settings for an a single
|
|
2704
|
+
request; this effectively ignores the
|
|
2705
|
+
authentication in the spec for a single request.
|
|
2706
|
+
:type _request_auth: dict, optional
|
|
2707
|
+
:param _content_type: force content-type for the request.
|
|
2708
|
+
:type _content_type: str, Optional
|
|
2709
|
+
:param _headers: set to override the headers for a single
|
|
2710
|
+
request; this effectively ignores the headers
|
|
2711
|
+
in the spec for a single request.
|
|
2712
|
+
:type _headers: dict, optional
|
|
2713
|
+
:param _host_index: set to override the host_index for a single
|
|
2714
|
+
request; this effectively ignores the host_index
|
|
2715
|
+
in the spec for a single request.
|
|
2716
|
+
:type _host_index: int, optional
|
|
2717
|
+
:return: Returns the result object.
|
|
2718
|
+
""" # noqa: E501
|
|
2719
|
+
|
|
2720
|
+
_param = self._benchmark_benchmark_id_samples_identifier_get_serialize(
|
|
2721
|
+
benchmark_id=benchmark_id,
|
|
2722
|
+
identifier=identifier,
|
|
2723
|
+
request=request,
|
|
2724
|
+
_request_auth=_request_auth,
|
|
2725
|
+
_content_type=_content_type,
|
|
2726
|
+
_headers=_headers,
|
|
2727
|
+
_host_index=_host_index
|
|
2728
|
+
)
|
|
2729
|
+
|
|
2730
|
+
_response_types_map: Dict[str, Optional[str]] = {
|
|
2731
|
+
'200': "PagedResultOfSampleByIdentifier",
|
|
2732
|
+
}
|
|
2733
|
+
response_data = self.api_client.call_api(
|
|
2734
|
+
*_param,
|
|
2735
|
+
_request_timeout=_request_timeout
|
|
2736
|
+
)
|
|
2737
|
+
return response_data.response
|
|
2738
|
+
|
|
2739
|
+
|
|
2740
|
+
def _benchmark_benchmark_id_samples_identifier_get_serialize(
|
|
2741
|
+
self,
|
|
2742
|
+
benchmark_id,
|
|
2743
|
+
identifier,
|
|
2744
|
+
request,
|
|
2745
|
+
_request_auth,
|
|
2746
|
+
_content_type,
|
|
2747
|
+
_headers,
|
|
2748
|
+
_host_index,
|
|
2749
|
+
) -> RequestSerialized:
|
|
2750
|
+
|
|
2751
|
+
_host = None
|
|
2752
|
+
|
|
2753
|
+
_collection_formats: Dict[str, str] = {
|
|
2754
|
+
}
|
|
2755
|
+
|
|
2756
|
+
_path_params: Dict[str, str] = {}
|
|
2757
|
+
_query_params: List[Tuple[str, str]] = []
|
|
2758
|
+
_header_params: Dict[str, Optional[str]] = _headers or {}
|
|
2759
|
+
_form_params: List[Tuple[str, str]] = []
|
|
2760
|
+
_files: Dict[
|
|
2761
|
+
str, Union[str, bytes, List[str], List[bytes], List[Tuple[str, bytes]]]
|
|
2762
|
+
] = {}
|
|
2763
|
+
_body_params: Optional[bytes] = None
|
|
2764
|
+
|
|
2765
|
+
# process the path parameters
|
|
2766
|
+
if benchmark_id is not None:
|
|
2767
|
+
_path_params['benchmarkId'] = benchmark_id
|
|
2768
|
+
if identifier is not None:
|
|
2769
|
+
_path_params['identifier'] = identifier
|
|
2770
|
+
# process the query parameters
|
|
2771
|
+
if request is not None:
|
|
2772
|
+
|
|
2773
|
+
_query_params.append(('request', request))
|
|
2774
|
+
|
|
2775
|
+
# process the header parameters
|
|
2776
|
+
# process the form parameters
|
|
2777
|
+
# process the body parameter
|
|
2778
|
+
|
|
2779
|
+
|
|
2780
|
+
# set the HTTP header `Accept`
|
|
2781
|
+
if 'Accept' not in _header_params:
|
|
2782
|
+
_header_params['Accept'] = self.api_client.select_header_accept(
|
|
2783
|
+
[
|
|
2784
|
+
'text/plain',
|
|
2785
|
+
'application/json',
|
|
2786
|
+
'text/json'
|
|
2787
|
+
]
|
|
2788
|
+
)
|
|
2789
|
+
|
|
2790
|
+
|
|
2791
|
+
# authentication setting
|
|
2792
|
+
_auth_settings: List[str] = [
|
|
2793
|
+
'OAuth2',
|
|
2794
|
+
'OpenIdConnect',
|
|
2795
|
+
'Bearer'
|
|
2796
|
+
]
|
|
2797
|
+
|
|
2798
|
+
return self.api_client.param_serialize(
|
|
2799
|
+
method='GET',
|
|
2800
|
+
resource_path='/benchmark/{benchmarkId}/samples/{identifier}',
|
|
2801
|
+
path_params=_path_params,
|
|
2802
|
+
query_params=_query_params,
|
|
2803
|
+
header_params=_header_params,
|
|
2804
|
+
body=_body_params,
|
|
2805
|
+
post_params=_form_params,
|
|
2806
|
+
files=_files,
|
|
2807
|
+
auth_settings=_auth_settings,
|
|
2808
|
+
collection_formats=_collection_formats,
|
|
2809
|
+
_host=_host,
|
|
2810
|
+
_request_auth=_request_auth
|
|
2811
|
+
)
|
|
2812
|
+
|
|
2813
|
+
|
|
2814
|
+
|
|
2815
|
+
|
|
2816
|
+
@validate_call
|
|
2817
|
+
def benchmark_benchmark_id_standings_get(
|
|
2818
|
+
self,
|
|
2819
|
+
benchmark_id: StrictStr,
|
|
2820
|
+
tags: Optional[List[StrictStr]] = None,
|
|
2821
|
+
participant_ids: Optional[List[StrictStr]] = None,
|
|
2822
|
+
leaderboard_ids: Optional[List[StrictStr]] = None,
|
|
2823
|
+
use_weighted_scoring: Optional[StrictBool] = None,
|
|
2824
|
+
include_confidence_intervals: Optional[StrictBool] = None,
|
|
2825
|
+
_request_timeout: Union[
|
|
2826
|
+
None,
|
|
2827
|
+
Annotated[StrictFloat, Field(gt=0)],
|
|
2828
|
+
Tuple[
|
|
2829
|
+
Annotated[StrictFloat, Field(gt=0)],
|
|
2830
|
+
Annotated[StrictFloat, Field(gt=0)]
|
|
2831
|
+
]
|
|
2832
|
+
] = None,
|
|
2833
|
+
_request_auth: Optional[Dict[StrictStr, Any]] = None,
|
|
2834
|
+
_content_type: Optional[StrictStr] = None,
|
|
2835
|
+
_headers: Optional[Dict[StrictStr, Any]] = None,
|
|
2836
|
+
_host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
|
|
2837
|
+
) -> StandingsByBenchmarkResult:
|
|
2838
|
+
"""benchmark_benchmark_id_standings_get
|
|
2839
|
+
|
|
2840
|
+
|
|
2841
|
+
:param benchmark_id: (required)
|
|
2842
|
+
:type benchmark_id: str
|
|
2843
|
+
:param tags:
|
|
2844
|
+
:type tags: List[str]
|
|
2845
|
+
:param participant_ids:
|
|
2846
|
+
:type participant_ids: List[str]
|
|
2847
|
+
:param leaderboard_ids:
|
|
2848
|
+
:type leaderboard_ids: List[str]
|
|
2849
|
+
:param use_weighted_scoring:
|
|
2850
|
+
:type use_weighted_scoring: bool
|
|
2851
|
+
:param include_confidence_intervals:
|
|
2852
|
+
:type include_confidence_intervals: bool
|
|
2853
|
+
:param _request_timeout: timeout setting for this request. If one
|
|
2854
|
+
number provided, it will be total request
|
|
2855
|
+
timeout. It can also be a pair (tuple) of
|
|
2856
|
+
(connection, read) timeouts.
|
|
2857
|
+
:type _request_timeout: int, tuple(int, int), optional
|
|
2858
|
+
:param _request_auth: set to override the auth_settings for an a single
|
|
2859
|
+
request; this effectively ignores the
|
|
2860
|
+
authentication in the spec for a single request.
|
|
2861
|
+
:type _request_auth: dict, optional
|
|
2862
|
+
:param _content_type: force content-type for the request.
|
|
2863
|
+
:type _content_type: str, Optional
|
|
2864
|
+
:param _headers: set to override the headers for a single
|
|
2865
|
+
request; this effectively ignores the headers
|
|
2866
|
+
in the spec for a single request.
|
|
2867
|
+
:type _headers: dict, optional
|
|
2868
|
+
:param _host_index: set to override the host_index for a single
|
|
2869
|
+
request; this effectively ignores the host_index
|
|
2870
|
+
in the spec for a single request.
|
|
2871
|
+
:type _host_index: int, optional
|
|
2872
|
+
:return: Returns the result object.
|
|
2873
|
+
""" # noqa: E501
|
|
2874
|
+
|
|
2875
|
+
_param = self._benchmark_benchmark_id_standings_get_serialize(
|
|
2876
|
+
benchmark_id=benchmark_id,
|
|
2877
|
+
tags=tags,
|
|
2878
|
+
participant_ids=participant_ids,
|
|
2879
|
+
leaderboard_ids=leaderboard_ids,
|
|
2880
|
+
use_weighted_scoring=use_weighted_scoring,
|
|
2881
|
+
include_confidence_intervals=include_confidence_intervals,
|
|
2882
|
+
_request_auth=_request_auth,
|
|
2883
|
+
_content_type=_content_type,
|
|
2884
|
+
_headers=_headers,
|
|
2885
|
+
_host_index=_host_index
|
|
2886
|
+
)
|
|
2887
|
+
|
|
2888
|
+
_response_types_map: Dict[str, Optional[str]] = {
|
|
2889
|
+
'200': "StandingsByBenchmarkResult",
|
|
2890
|
+
}
|
|
2891
|
+
response_data = self.api_client.call_api(
|
|
2892
|
+
*_param,
|
|
2893
|
+
_request_timeout=_request_timeout
|
|
2894
|
+
)
|
|
2895
|
+
response_data.read()
|
|
2896
|
+
return self.api_client.response_deserialize(
|
|
2897
|
+
response_data=response_data,
|
|
2898
|
+
response_types_map=_response_types_map,
|
|
2899
|
+
).data
|
|
2900
|
+
|
|
2901
|
+
|
|
2902
|
+
@validate_call
|
|
2903
|
+
def benchmark_benchmark_id_standings_get_with_http_info(
|
|
2904
|
+
self,
|
|
2905
|
+
benchmark_id: StrictStr,
|
|
2906
|
+
tags: Optional[List[StrictStr]] = None,
|
|
2907
|
+
participant_ids: Optional[List[StrictStr]] = None,
|
|
2908
|
+
leaderboard_ids: Optional[List[StrictStr]] = None,
|
|
2909
|
+
use_weighted_scoring: Optional[StrictBool] = None,
|
|
2910
|
+
include_confidence_intervals: Optional[StrictBool] = None,
|
|
2911
|
+
_request_timeout: Union[
|
|
2912
|
+
None,
|
|
2913
|
+
Annotated[StrictFloat, Field(gt=0)],
|
|
2914
|
+
Tuple[
|
|
2915
|
+
Annotated[StrictFloat, Field(gt=0)],
|
|
2916
|
+
Annotated[StrictFloat, Field(gt=0)]
|
|
2917
|
+
]
|
|
2918
|
+
] = None,
|
|
2919
|
+
_request_auth: Optional[Dict[StrictStr, Any]] = None,
|
|
2920
|
+
_content_type: Optional[StrictStr] = None,
|
|
2921
|
+
_headers: Optional[Dict[StrictStr, Any]] = None,
|
|
2922
|
+
_host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
|
|
2923
|
+
) -> ApiResponse[StandingsByBenchmarkResult]:
|
|
2924
|
+
"""benchmark_benchmark_id_standings_get
|
|
2925
|
+
|
|
2926
|
+
|
|
2927
|
+
:param benchmark_id: (required)
|
|
2928
|
+
:type benchmark_id: str
|
|
2929
|
+
:param tags:
|
|
2930
|
+
:type tags: List[str]
|
|
2931
|
+
:param participant_ids:
|
|
2932
|
+
:type participant_ids: List[str]
|
|
2933
|
+
:param leaderboard_ids:
|
|
2934
|
+
:type leaderboard_ids: List[str]
|
|
2935
|
+
:param use_weighted_scoring:
|
|
2936
|
+
:type use_weighted_scoring: bool
|
|
2937
|
+
:param include_confidence_intervals:
|
|
2938
|
+
:type include_confidence_intervals: bool
|
|
2939
|
+
:param _request_timeout: timeout setting for this request. If one
|
|
2940
|
+
number provided, it will be total request
|
|
2941
|
+
timeout. It can also be a pair (tuple) of
|
|
2942
|
+
(connection, read) timeouts.
|
|
2943
|
+
:type _request_timeout: int, tuple(int, int), optional
|
|
2944
|
+
:param _request_auth: set to override the auth_settings for an a single
|
|
2945
|
+
request; this effectively ignores the
|
|
2946
|
+
authentication in the spec for a single request.
|
|
2947
|
+
:type _request_auth: dict, optional
|
|
2948
|
+
:param _content_type: force content-type for the request.
|
|
2949
|
+
:type _content_type: str, Optional
|
|
2950
|
+
:param _headers: set to override the headers for a single
|
|
2951
|
+
request; this effectively ignores the headers
|
|
2952
|
+
in the spec for a single request.
|
|
2953
|
+
:type _headers: dict, optional
|
|
2954
|
+
:param _host_index: set to override the host_index for a single
|
|
2955
|
+
request; this effectively ignores the host_index
|
|
2956
|
+
in the spec for a single request.
|
|
2957
|
+
:type _host_index: int, optional
|
|
2958
|
+
:return: Returns the result object.
|
|
2959
|
+
""" # noqa: E501
|
|
2960
|
+
|
|
2961
|
+
_param = self._benchmark_benchmark_id_standings_get_serialize(
|
|
2962
|
+
benchmark_id=benchmark_id,
|
|
2963
|
+
tags=tags,
|
|
2964
|
+
participant_ids=participant_ids,
|
|
2965
|
+
leaderboard_ids=leaderboard_ids,
|
|
2966
|
+
use_weighted_scoring=use_weighted_scoring,
|
|
2967
|
+
include_confidence_intervals=include_confidence_intervals,
|
|
2968
|
+
_request_auth=_request_auth,
|
|
2969
|
+
_content_type=_content_type,
|
|
2970
|
+
_headers=_headers,
|
|
2971
|
+
_host_index=_host_index
|
|
2972
|
+
)
|
|
2973
|
+
|
|
2974
|
+
_response_types_map: Dict[str, Optional[str]] = {
|
|
2975
|
+
'200': "StandingsByBenchmarkResult",
|
|
2976
|
+
}
|
|
2977
|
+
response_data = self.api_client.call_api(
|
|
2978
|
+
*_param,
|
|
2979
|
+
_request_timeout=_request_timeout
|
|
2980
|
+
)
|
|
2981
|
+
response_data.read()
|
|
2982
|
+
return self.api_client.response_deserialize(
|
|
2983
|
+
response_data=response_data,
|
|
2984
|
+
response_types_map=_response_types_map,
|
|
2985
|
+
)
|
|
2986
|
+
|
|
2987
|
+
|
|
2988
|
+
@validate_call
|
|
2989
|
+
def benchmark_benchmark_id_standings_get_without_preload_content(
|
|
2990
|
+
self,
|
|
2991
|
+
benchmark_id: StrictStr,
|
|
2992
|
+
tags: Optional[List[StrictStr]] = None,
|
|
2993
|
+
participant_ids: Optional[List[StrictStr]] = None,
|
|
2994
|
+
leaderboard_ids: Optional[List[StrictStr]] = None,
|
|
2995
|
+
use_weighted_scoring: Optional[StrictBool] = None,
|
|
2996
|
+
include_confidence_intervals: Optional[StrictBool] = None,
|
|
2997
|
+
_request_timeout: Union[
|
|
2998
|
+
None,
|
|
2999
|
+
Annotated[StrictFloat, Field(gt=0)],
|
|
3000
|
+
Tuple[
|
|
3001
|
+
Annotated[StrictFloat, Field(gt=0)],
|
|
3002
|
+
Annotated[StrictFloat, Field(gt=0)]
|
|
3003
|
+
]
|
|
3004
|
+
] = None,
|
|
3005
|
+
_request_auth: Optional[Dict[StrictStr, Any]] = None,
|
|
3006
|
+
_content_type: Optional[StrictStr] = None,
|
|
3007
|
+
_headers: Optional[Dict[StrictStr, Any]] = None,
|
|
3008
|
+
_host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
|
|
3009
|
+
) -> RESTResponseType:
|
|
3010
|
+
"""benchmark_benchmark_id_standings_get
|
|
3011
|
+
|
|
3012
|
+
|
|
3013
|
+
:param benchmark_id: (required)
|
|
3014
|
+
:type benchmark_id: str
|
|
3015
|
+
:param tags:
|
|
3016
|
+
:type tags: List[str]
|
|
3017
|
+
:param participant_ids:
|
|
3018
|
+
:type participant_ids: List[str]
|
|
3019
|
+
:param leaderboard_ids:
|
|
3020
|
+
:type leaderboard_ids: List[str]
|
|
3021
|
+
:param use_weighted_scoring:
|
|
3022
|
+
:type use_weighted_scoring: bool
|
|
3023
|
+
:param include_confidence_intervals:
|
|
3024
|
+
:type include_confidence_intervals: bool
|
|
3025
|
+
:param _request_timeout: timeout setting for this request. If one
|
|
3026
|
+
number provided, it will be total request
|
|
3027
|
+
timeout. It can also be a pair (tuple) of
|
|
3028
|
+
(connection, read) timeouts.
|
|
3029
|
+
:type _request_timeout: int, tuple(int, int), optional
|
|
3030
|
+
:param _request_auth: set to override the auth_settings for an a single
|
|
3031
|
+
request; this effectively ignores the
|
|
3032
|
+
authentication in the spec for a single request.
|
|
3033
|
+
:type _request_auth: dict, optional
|
|
3034
|
+
:param _content_type: force content-type for the request.
|
|
3035
|
+
:type _content_type: str, Optional
|
|
3036
|
+
:param _headers: set to override the headers for a single
|
|
3037
|
+
request; this effectively ignores the headers
|
|
3038
|
+
in the spec for a single request.
|
|
3039
|
+
:type _headers: dict, optional
|
|
3040
|
+
:param _host_index: set to override the host_index for a single
|
|
3041
|
+
request; this effectively ignores the host_index
|
|
3042
|
+
in the spec for a single request.
|
|
3043
|
+
:type _host_index: int, optional
|
|
3044
|
+
:return: Returns the result object.
|
|
3045
|
+
""" # noqa: E501
|
|
3046
|
+
|
|
3047
|
+
_param = self._benchmark_benchmark_id_standings_get_serialize(
|
|
3048
|
+
benchmark_id=benchmark_id,
|
|
3049
|
+
tags=tags,
|
|
3050
|
+
participant_ids=participant_ids,
|
|
3051
|
+
leaderboard_ids=leaderboard_ids,
|
|
3052
|
+
use_weighted_scoring=use_weighted_scoring,
|
|
3053
|
+
include_confidence_intervals=include_confidence_intervals,
|
|
3054
|
+
_request_auth=_request_auth,
|
|
3055
|
+
_content_type=_content_type,
|
|
3056
|
+
_headers=_headers,
|
|
3057
|
+
_host_index=_host_index
|
|
3058
|
+
)
|
|
3059
|
+
|
|
3060
|
+
_response_types_map: Dict[str, Optional[str]] = {
|
|
3061
|
+
'200': "StandingsByBenchmarkResult",
|
|
3062
|
+
}
|
|
3063
|
+
response_data = self.api_client.call_api(
|
|
3064
|
+
*_param,
|
|
3065
|
+
_request_timeout=_request_timeout
|
|
3066
|
+
)
|
|
3067
|
+
return response_data.response
|
|
3068
|
+
|
|
3069
|
+
|
|
3070
|
+
def _benchmark_benchmark_id_standings_get_serialize(
|
|
3071
|
+
self,
|
|
3072
|
+
benchmark_id,
|
|
3073
|
+
tags,
|
|
3074
|
+
participant_ids,
|
|
3075
|
+
leaderboard_ids,
|
|
3076
|
+
use_weighted_scoring,
|
|
3077
|
+
include_confidence_intervals,
|
|
3078
|
+
_request_auth,
|
|
3079
|
+
_content_type,
|
|
3080
|
+
_headers,
|
|
3081
|
+
_host_index,
|
|
3082
|
+
) -> RequestSerialized:
|
|
3083
|
+
|
|
3084
|
+
_host = None
|
|
3085
|
+
|
|
3086
|
+
_collection_formats: Dict[str, str] = {
|
|
3087
|
+
'tags': 'multi',
|
|
3088
|
+
'participantIds': 'multi',
|
|
3089
|
+
'leaderboardIds': 'multi',
|
|
3090
|
+
}
|
|
3091
|
+
|
|
3092
|
+
_path_params: Dict[str, str] = {}
|
|
3093
|
+
_query_params: List[Tuple[str, str]] = []
|
|
3094
|
+
_header_params: Dict[str, Optional[str]] = _headers or {}
|
|
3095
|
+
_form_params: List[Tuple[str, str]] = []
|
|
3096
|
+
_files: Dict[
|
|
3097
|
+
str, Union[str, bytes, List[str], List[bytes], List[Tuple[str, bytes]]]
|
|
3098
|
+
] = {}
|
|
3099
|
+
_body_params: Optional[bytes] = None
|
|
3100
|
+
|
|
3101
|
+
# process the path parameters
|
|
3102
|
+
if benchmark_id is not None:
|
|
3103
|
+
_path_params['benchmarkId'] = benchmark_id
|
|
3104
|
+
# process the query parameters
|
|
3105
|
+
if tags is not None:
|
|
3106
|
+
|
|
3107
|
+
_query_params.append(('tags', tags))
|
|
3108
|
+
|
|
3109
|
+
if participant_ids is not None:
|
|
3110
|
+
|
|
3111
|
+
_query_params.append(('participantIds', participant_ids))
|
|
3112
|
+
|
|
3113
|
+
if leaderboard_ids is not None:
|
|
3114
|
+
|
|
3115
|
+
_query_params.append(('leaderboardIds', leaderboard_ids))
|
|
3116
|
+
|
|
3117
|
+
if use_weighted_scoring is not None:
|
|
3118
|
+
|
|
3119
|
+
_query_params.append(('useWeightedScoring', use_weighted_scoring))
|
|
3120
|
+
|
|
3121
|
+
if include_confidence_intervals is not None:
|
|
3122
|
+
|
|
3123
|
+
_query_params.append(('includeConfidenceIntervals', include_confidence_intervals))
|
|
3124
|
+
|
|
3125
|
+
# process the header parameters
|
|
3126
|
+
# process the form parameters
|
|
3127
|
+
# process the body parameter
|
|
3128
|
+
|
|
3129
|
+
|
|
3130
|
+
# set the HTTP header `Accept`
|
|
3131
|
+
if 'Accept' not in _header_params:
|
|
3132
|
+
_header_params['Accept'] = self.api_client.select_header_accept(
|
|
3133
|
+
[
|
|
3134
|
+
'text/plain',
|
|
3135
|
+
'application/json',
|
|
3136
|
+
'text/json'
|
|
3137
|
+
]
|
|
3138
|
+
)
|
|
3139
|
+
|
|
3140
|
+
|
|
3141
|
+
# authentication setting
|
|
3142
|
+
_auth_settings: List[str] = [
|
|
3143
|
+
'OAuth2',
|
|
3144
|
+
'OpenIdConnect',
|
|
3145
|
+
'Bearer'
|
|
3146
|
+
]
|
|
3147
|
+
|
|
3148
|
+
return self.api_client.param_serialize(
|
|
3149
|
+
method='GET',
|
|
3150
|
+
resource_path='/benchmark/{benchmarkId}/standings',
|
|
3151
|
+
path_params=_path_params,
|
|
3152
|
+
query_params=_query_params,
|
|
3153
|
+
header_params=_header_params,
|
|
3154
|
+
body=_body_params,
|
|
3155
|
+
post_params=_form_params,
|
|
3156
|
+
files=_files,
|
|
3157
|
+
auth_settings=_auth_settings,
|
|
3158
|
+
collection_formats=_collection_formats,
|
|
3159
|
+
_host=_host,
|
|
3160
|
+
_request_auth=_request_auth
|
|
3161
|
+
)
|
|
3162
|
+
|
|
3163
|
+
|
|
3164
|
+
|
|
3165
|
+
|
|
2510
3166
|
@validate_call
|
|
2511
3167
|
def benchmark_benchmark_id_tags_get(
|
|
2512
3168
|
self,
|
|
@@ -2746,8 +3402,9 @@ class BenchmarkApi:
|
|
|
2746
3402
|
|
|
2747
3403
|
# authentication setting
|
|
2748
3404
|
_auth_settings: List[str] = [
|
|
2749
|
-
'
|
|
2750
|
-
'
|
|
3405
|
+
'OAuth2',
|
|
3406
|
+
'OpenIdConnect',
|
|
3407
|
+
'Bearer'
|
|
2751
3408
|
]
|
|
2752
3409
|
|
|
2753
3410
|
return self.api_client.param_serialize(
|
|
@@ -2771,7 +3428,7 @@ class BenchmarkApi:
|
|
|
2771
3428
|
@validate_call
|
|
2772
3429
|
def benchmark_post(
|
|
2773
3430
|
self,
|
|
2774
|
-
create_benchmark_model:
|
|
3431
|
+
create_benchmark_model: CreateBenchmarkModel,
|
|
2775
3432
|
_request_timeout: Union[
|
|
2776
3433
|
None,
|
|
2777
3434
|
Annotated[StrictFloat, Field(gt=0)],
|
|
@@ -2788,7 +3445,7 @@ class BenchmarkApi:
|
|
|
2788
3445
|
"""Creates a benchmark
|
|
2789
3446
|
|
|
2790
3447
|
|
|
2791
|
-
:param create_benchmark_model:
|
|
3448
|
+
:param create_benchmark_model: (required)
|
|
2792
3449
|
:type create_benchmark_model: CreateBenchmarkModel
|
|
2793
3450
|
:param _request_timeout: timeout setting for this request. If one
|
|
2794
3451
|
number provided, it will be total request
|
|
@@ -2837,7 +3494,7 @@ class BenchmarkApi:
|
|
|
2837
3494
|
@validate_call
|
|
2838
3495
|
def benchmark_post_with_http_info(
|
|
2839
3496
|
self,
|
|
2840
|
-
create_benchmark_model:
|
|
3497
|
+
create_benchmark_model: CreateBenchmarkModel,
|
|
2841
3498
|
_request_timeout: Union[
|
|
2842
3499
|
None,
|
|
2843
3500
|
Annotated[StrictFloat, Field(gt=0)],
|
|
@@ -2854,7 +3511,7 @@ class BenchmarkApi:
|
|
|
2854
3511
|
"""Creates a benchmark
|
|
2855
3512
|
|
|
2856
3513
|
|
|
2857
|
-
:param create_benchmark_model:
|
|
3514
|
+
:param create_benchmark_model: (required)
|
|
2858
3515
|
:type create_benchmark_model: CreateBenchmarkModel
|
|
2859
3516
|
:param _request_timeout: timeout setting for this request. If one
|
|
2860
3517
|
number provided, it will be total request
|
|
@@ -2903,7 +3560,7 @@ class BenchmarkApi:
|
|
|
2903
3560
|
@validate_call
|
|
2904
3561
|
def benchmark_post_without_preload_content(
|
|
2905
3562
|
self,
|
|
2906
|
-
create_benchmark_model:
|
|
3563
|
+
create_benchmark_model: CreateBenchmarkModel,
|
|
2907
3564
|
_request_timeout: Union[
|
|
2908
3565
|
None,
|
|
2909
3566
|
Annotated[StrictFloat, Field(gt=0)],
|
|
@@ -2920,7 +3577,7 @@ class BenchmarkApi:
|
|
|
2920
3577
|
"""Creates a benchmark
|
|
2921
3578
|
|
|
2922
3579
|
|
|
2923
|
-
:param create_benchmark_model:
|
|
3580
|
+
:param create_benchmark_model: (required)
|
|
2924
3581
|
:type create_benchmark_model: CreateBenchmarkModel
|
|
2925
3582
|
:param _request_timeout: timeout setting for this request. If one
|
|
2926
3583
|
number provided, it will be total request
|
|
@@ -3022,8 +3679,9 @@ class BenchmarkApi:
|
|
|
3022
3679
|
|
|
3023
3680
|
# authentication setting
|
|
3024
3681
|
_auth_settings: List[str] = [
|
|
3025
|
-
'
|
|
3026
|
-
'
|
|
3682
|
+
'OAuth2',
|
|
3683
|
+
'OpenIdConnect',
|
|
3684
|
+
'Bearer'
|
|
3027
3685
|
]
|
|
3028
3686
|
|
|
3029
3687
|
return self.api_client.param_serialize(
|
|
@@ -3060,7 +3718,7 @@ class BenchmarkApi:
|
|
|
3060
3718
|
_content_type: Optional[StrictStr] = None,
|
|
3061
3719
|
_headers: Optional[Dict[StrictStr, Any]] = None,
|
|
3062
3720
|
_host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
|
|
3063
|
-
) ->
|
|
3721
|
+
) -> PagedResultOfBenchmarkQueryResult:
|
|
3064
3722
|
"""Queries all benchmarks of the user.
|
|
3065
3723
|
|
|
3066
3724
|
|
|
@@ -3097,7 +3755,7 @@ class BenchmarkApi:
|
|
|
3097
3755
|
)
|
|
3098
3756
|
|
|
3099
3757
|
_response_types_map: Dict[str, Optional[str]] = {
|
|
3100
|
-
'200': "
|
|
3758
|
+
'200': "PagedResultOfBenchmarkQueryResult",
|
|
3101
3759
|
}
|
|
3102
3760
|
response_data = self.api_client.call_api(
|
|
3103
3761
|
*_param,
|
|
@@ -3126,7 +3784,7 @@ class BenchmarkApi:
|
|
|
3126
3784
|
_content_type: Optional[StrictStr] = None,
|
|
3127
3785
|
_headers: Optional[Dict[StrictStr, Any]] = None,
|
|
3128
3786
|
_host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
|
|
3129
|
-
) -> ApiResponse[
|
|
3787
|
+
) -> ApiResponse[PagedResultOfBenchmarkQueryResult]:
|
|
3130
3788
|
"""Queries all benchmarks of the user.
|
|
3131
3789
|
|
|
3132
3790
|
|
|
@@ -3163,7 +3821,7 @@ class BenchmarkApi:
|
|
|
3163
3821
|
)
|
|
3164
3822
|
|
|
3165
3823
|
_response_types_map: Dict[str, Optional[str]] = {
|
|
3166
|
-
'200': "
|
|
3824
|
+
'200': "PagedResultOfBenchmarkQueryResult",
|
|
3167
3825
|
}
|
|
3168
3826
|
response_data = self.api_client.call_api(
|
|
3169
3827
|
*_param,
|
|
@@ -3229,7 +3887,7 @@ class BenchmarkApi:
|
|
|
3229
3887
|
)
|
|
3230
3888
|
|
|
3231
3889
|
_response_types_map: Dict[str, Optional[str]] = {
|
|
3232
|
-
'200': "
|
|
3890
|
+
'200': "PagedResultOfBenchmarkQueryResult",
|
|
3233
3891
|
}
|
|
3234
3892
|
response_data = self.api_client.call_api(
|
|
3235
3893
|
*_param,
|
|
@@ -3285,8 +3943,9 @@ class BenchmarkApi:
|
|
|
3285
3943
|
|
|
3286
3944
|
# authentication setting
|
|
3287
3945
|
_auth_settings: List[str] = [
|
|
3288
|
-
'
|
|
3289
|
-
'
|
|
3946
|
+
'OAuth2',
|
|
3947
|
+
'OpenIdConnect',
|
|
3948
|
+
'Bearer'
|
|
3290
3949
|
]
|
|
3291
3950
|
|
|
3292
3951
|
return self.api_client.param_serialize(
|