rapidata 2.28.2__py3-none-any.whl → 2.44.3__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.
- rapidata/__init__.py +11 -10
- rapidata/api_client/__init__.py +83 -355
- rapidata/api_client/api/__init__.py +8 -2
- rapidata/api_client/api/asset_api.py +853 -0
- rapidata/api_client/api/audience_api.py +1133 -0
- rapidata/api_client/api/benchmark_api.py +3966 -0
- rapidata/api_client/api/campaign_api.py +222 -444
- rapidata/api_client/api/client_api.py +38 -33
- rapidata/api_client/api/coco_api.py +0 -571
- rapidata/api_client/api/compare_workflow_api.py +11 -10
- rapidata/api_client/api/customer_rapid_api.py +644 -72
- rapidata/api_client/api/datapoint_api.py +8 -530
- rapidata/api_client/api/dataset_api.py +228 -3469
- rapidata/api_client/api/evaluation_workflow_api.py +29 -82
- rapidata/api_client/api/feedback_api.py +11 -281
- rapidata/api_client/api/grouped_ranking_workflow_api.py +319 -0
- rapidata/api_client/api/identity_api.py +83 -1171
- rapidata/api_client/api/leaderboard_api.py +356 -312
- rapidata/api_client/api/newsletter_api.py +20 -19
- rapidata/api_client/api/order_api.py +758 -5487
- rapidata/api_client/api/participant_api.py +2181 -0
- rapidata/api_client/api/pipeline_api.py +24 -1783
- rapidata/api_client/api/prompt_api.py +320 -0
- 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 +510 -3659
- rapidata/api_client/api/workflow_api.py +32 -825
- 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 -332
- rapidata/api_client/models/ab_test_selection_a_inner.py +1 -1
- rapidata/api_client/models/add_campaign_model.py +3 -3
- rapidata/api_client/models/add_user_response_result.py +10 -5
- rapidata/api_client/models/add_validation_rapid_model.py +55 -24
- 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/add_validation_text_rapid_model.py +1 -3
- 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/and_user_filter_model.py +106 -0
- rapidata/api_client/models/and_user_filter_model_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_status.py +38 -0
- rapidata/api_client/models/benchmark_query_result.py +98 -0
- rapidata/api_client/models/benchmark_query_result_paged_result.py +105 -0
- rapidata/api_client/models/boost_leaderboard_model.py +89 -0
- rapidata/api_client/models/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 +89 -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 +6 -8
- 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_metadata_value.py +31 -17
- 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 +8 -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 +99 -0
- rapidata/api_client/models/create_audience_result.py +87 -0
- rapidata/api_client/models/create_benchmark_model.py +87 -0
- rapidata/api_client/models/create_benchmark_participant_model.py +87 -0
- rapidata/api_client/models/create_benchmark_participant_result.py +89 -0
- rapidata/api_client/models/create_benchmark_prompt_result.py +87 -0
- rapidata/api_client/models/create_benchmark_result.py +87 -0
- 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 +6 -4
- 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 +134 -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 +6 -18
- 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_leaderboard_model.py +59 -10
- rapidata/api_client/models/create_leaderboard_result.py +17 -5
- 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 +6 -4
- rapidata/api_client/models/create_rapid_result.py +2 -2
- rapidata/api_client/models/create_sample_model.py +93 -0
- 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/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 +120 -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.py +104 -0
- rapidata/api_client/models/file_asset_input1.py +104 -0
- rapidata/api_client/models/file_asset_input1_file.py +168 -0
- rapidata/api_client/models/file_asset_input2.py +104 -0
- rapidata/api_client/models/file_asset_input3.py +104 -0
- rapidata/api_client/models/file_asset_input_file.py +168 -0
- rapidata/api_client/models/file_asset_metadata_value.py +252 -0
- rapidata/api_client/models/file_asset_model_metadata_value.py +25 -81
- rapidata/api_client/models/file_stream_result.py +122 -0
- rapidata/api_client/models/file_type.py +39 -0
- rapidata/api_client/models/file_type_metadata.py +110 -0
- rapidata/api_client/models/file_type_metadata_model.py +97 -0
- rapidata/api_client/models/filter.py +7 -25
- rapidata/api_client/models/filter_operator.py +3 -2
- rapidata/api_client/models/fork_benchmark_result.py +87 -0
- rapidata/api_client/models/form_file_wrapper.py +135 -0
- 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 +111 -0
- rapidata/api_client/models/get_available_validation_sets_result.py +2 -2
- rapidata/api_client/models/get_benchmark_by_id_query.py +96 -0
- rapidata/api_client/models/get_benchmark_by_id_query_result.py +94 -0
- rapidata/api_client/models/get_benchmark_by_id_query_result_paged_result.py +105 -0
- rapidata/api_client/models/get_benchmark_by_id_result.py +96 -0
- 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_leaderboard_by_id_result.py +50 -6
- rapidata/api_client/models/get_order_by_id_result.py +12 -5
- rapidata/api_client/models/get_participant_by_id_result.py +9 -20
- 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 +96 -0
- 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_campaign_filter.py +282 -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_country_filter.py +98 -0
- rapidata/api_client/models/i_campaign_filter_demographic_filter.py +100 -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_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 +103 -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 +103 -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 +282 -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_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 +104 -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/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 +46 -4
- 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/local_file_wrapper.py +120 -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 +130 -0
- rapidata/api_client/models/multi_asset_input1.py +110 -0
- rapidata/api_client/models/multi_asset_input1_assets_inner.py +198 -0
- rapidata/api_client/models/multi_asset_input2.py +110 -0
- rapidata/api_client/models/multi_asset_input3.py +110 -0
- rapidata/api_client/models/multi_asset_input3_assets_inner.py +198 -0
- rapidata/api_client/models/multi_asset_input_assets_inner.py +156 -0
- 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/not_user_filter_model.py +3 -3
- 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/or_filter.py +121 -0
- rapidata/api_client/models/or_user_filter_model.py +3 -3
- 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_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 +94 -0
- rapidata/api_client/models/participant_by_benchmark_paged_result.py +105 -0
- rapidata/api_client/models/participant_by_leaderboard.py +19 -8
- rapidata/api_client/models/participant_status.py +4 -5
- rapidata/api_client/models/pipeline_id_workflow_config_put_request.py +140 -0
- 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/potential_validation_rapid.py +103 -0
- rapidata/api_client/models/potential_validation_rapid_paged_result.py +105 -0
- rapidata/api_client/models/potential_validation_rapid_truth.py +280 -0
- rapidata/api_client/models/preliminary_download_model.py +5 -5
- rapidata/api_client/models/preview_order_model.py +87 -0
- rapidata/api_client/models/problem_details.py +2 -20
- rapidata/api_client/models/prompt_asset_metadata_input.py +6 -8
- rapidata/api_client/models/prompt_asset_metadata_input_asset.py +154 -0
- rapidata/api_client/models/prompt_by_benchmark_result.py +112 -0
- rapidata/api_client/models/prompt_by_benchmark_result_paged_result.py +105 -0
- rapidata/api_client/models/prompt_metadata.py +12 -1
- rapidata/api_client/models/prompt_metadata_input.py +2 -2
- rapidata/api_client/models/prompt_type.py +38 -0
- rapidata/api_client/models/proxy_file_wrapper.py +129 -0
- 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 +111 -0
- rapidata/api_client/models/query_datapoints_by_dataset_id_result.py +95 -0
- rapidata/api_client/models/query_model.py +10 -5
- rapidata/api_client/models/query_validation_model.py +97 -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 +39 -0
- rapidata/api_client/models/runs_by_leaderboard_result.py +104 -0
- rapidata/api_client/models/runs_by_leaderboard_result_paged_result.py +105 -0
- 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 +121 -0
- rapidata/api_client/models/sample_by_participant_paged_result.py +105 -0
- 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 -7
- 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 +113 -0
- rapidata/api_client/models/standing_by_leaderboard_paged_result.py +105 -0
- rapidata/api_client/models/standing_status.py +38 -0
- rapidata/api_client/models/standings_by_benchmark_result.py +95 -0
- rapidata/api_client/models/standings_by_leaderboard_result.py +95 -0
- 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 +138 -0
- rapidata/api_client/models/streams_metadata.py +12 -1
- rapidata/api_client/models/string_segment.py +105 -0
- rapidata/api_client/models/submit_coco_model.py +1 -3
- rapidata/api_client/models/submit_order_model.py +87 -0
- rapidata/api_client/models/submit_participant_result.py +89 -0
- rapidata/api_client/models/submit_prompt_model.py +107 -0
- rapidata/api_client/models/submit_prompt_model_prompt_asset.py +202 -0
- rapidata/api_client/models/tags_by_benchmark_result.py +87 -0
- rapidata/api_client/models/text_asset.py +3 -5
- rapidata/api_client/models/text_asset_input.py +120 -0
- 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 +2 -2
- 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 +102 -0
- rapidata/api_client/models/update_benchmark_model.py +99 -0
- rapidata/api_client/models/update_benchmark_name_model.py +87 -0
- 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_leaderboard_model.py +106 -0
- rapidata/api_client/models/update_leaderboard_name_model.py +87 -0
- rapidata/api_client/models/update_leaderboard_response_config_model.py +89 -0
- 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 +87 -0
- rapidata/api_client/models/update_priority_model.py +87 -0
- rapidata/api_client/models/update_prompt_tags_model.py +87 -0
- rapidata/api_client/models/update_should_alert_model.py +87 -0
- rapidata/api_client/models/update_validation_rapid_model.py +28 -10
- 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_set_model.py +39 -5
- rapidata/api_client/models/validation_set_overview_model.py +2 -2
- rapidata/api_client/models/validation_set_zip_post_request_blueprint.py +252 -0
- 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 +151 -0
- rapidata/api_client/rest.py +16 -9
- rapidata/api_client_README.md +373 -336
- rapidata/rapidata_client/__init__.py +9 -18
- rapidata/rapidata_client/api/rapidata_api_client.py +253 -0
- rapidata/rapidata_client/benchmark/_detail_mapper.py +32 -0
- rapidata/rapidata_client/benchmark/leaderboard/__init__.py +0 -0
- rapidata/rapidata_client/benchmark/leaderboard/rapidata_leaderboard.py +221 -0
- rapidata/rapidata_client/benchmark/participant/__init__.py +0 -0
- rapidata/rapidata_client/benchmark/participant/_participant.py +147 -0
- rapidata/rapidata_client/benchmark/rapidata_benchmark.py +546 -0
- rapidata/rapidata_client/benchmark/rapidata_benchmark_manager.py +219 -0
- 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 +10 -0
- rapidata/rapidata_client/datapoints/_asset_uploader.py +169 -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 -0
- rapidata/rapidata_client/datapoints/assets/constants.py +7 -0
- rapidata/rapidata_client/{metadata → datapoints/metadata}/__init__.py +1 -0
- rapidata/rapidata_client/datapoints/metadata/_media_asset_metadata.py +26 -0
- rapidata/rapidata_client/datapoints/metadata/_private_text_metadata.py +16 -0
- rapidata/rapidata_client/datapoints/metadata/_prompt_identifier_metadata.py +14 -0
- rapidata/rapidata_client/datapoints/metadata/_prompt_metadata.py +12 -0
- rapidata/rapidata_client/datapoints/metadata/_public_text_metadata.py +16 -0
- rapidata/rapidata_client/{metadata → datapoints/metadata}/_select_words_metadata.py +4 -5
- rapidata/rapidata_client/demographic/demographic_manager.py +44 -19
- rapidata/rapidata_client/exceptions/__init__.py +1 -0
- rapidata/rapidata_client/exceptions/failed_upload_exception.py +20 -0
- rapidata/rapidata_client/filter/__init__.py +1 -0
- rapidata/rapidata_client/filter/_base_filter.py +27 -6
- rapidata/rapidata_client/filter/age_filter.py +21 -10
- rapidata/rapidata_client/filter/and_filter.py +42 -0
- rapidata/rapidata_client/filter/campaign_filter.py +18 -10
- rapidata/rapidata_client/filter/country_filter.py +34 -12
- rapidata/rapidata_client/filter/custom_filter.py +22 -12
- rapidata/rapidata_client/filter/gender_filter.py +22 -10
- rapidata/rapidata_client/filter/language_filter.py +39 -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 +11 -4
- rapidata/rapidata_client/filter/not_filter.py +23 -11
- rapidata/rapidata_client/filter/or_filter.py +23 -11
- rapidata/rapidata_client/filter/rapidata_filters.py +19 -13
- rapidata/rapidata_client/filter/response_count_filter.py +36 -20
- rapidata/rapidata_client/filter/user_score_filter.py +47 -24
- rapidata/rapidata_client/order/_rapidata_order_builder.py +289 -154
- rapidata/rapidata_client/order/dataset/_rapidata_dataset.py +153 -0
- rapidata/rapidata_client/order/rapidata_order.py +316 -163
- rapidata/rapidata_client/order/rapidata_order_manager.py +688 -430
- rapidata/rapidata_client/order/rapidata_results.py +86 -63
- rapidata/rapidata_client/rapidata_client.py +98 -36
- rapidata/rapidata_client/referee/__init__.py +1 -1
- rapidata/rapidata_client/referee/_base_referee.py +7 -3
- rapidata/rapidata_client/referee/_early_stopping_referee.py +20 -11
- rapidata/rapidata_client/referee/_naive_referee.py +18 -3
- rapidata/rapidata_client/selection/__init__.py +2 -2
- 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 +40 -10
- 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 +17 -8
- 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 +15 -2
- 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 +16 -3
- rapidata/rapidata_client/settings/swap_context_instruction.py +20 -0
- rapidata/rapidata_client/settings/translation_behaviour.py +7 -5
- rapidata/rapidata_client/validation/rapidata_validation_set.py +106 -12
- rapidata/rapidata_client/validation/rapids/_validation_rapid_uploader.py +62 -0
- rapidata/rapidata_client/validation/rapids/box.py +37 -12
- rapidata/rapidata_client/validation/rapids/rapids.py +28 -103
- rapidata/rapidata_client/validation/rapids/rapids_manager.py +315 -208
- rapidata/rapidata_client/validation/validation_set_manager.py +511 -274
- rapidata/rapidata_client/workflow/__init__.py +2 -1
- 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 +87 -0
- rapidata/rapidata_client/workflow/_ranking_workflow.py +109 -25
- 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 +79 -24
- rapidata/types/__init__.py +166 -0
- rapidata-2.44.3.dist-info/METADATA +32 -0
- rapidata-2.44.3.dist-info/RECORD +1014 -0
- {rapidata-2.28.2.dist-info → rapidata-2.44.3.dist-info}/WHEEL +1 -1
- rapidata/rapidata_client/api/rapidata_exception.py +0 -107
- rapidata/rapidata_client/assets/__init__.py +0 -10
- rapidata/rapidata_client/assets/_base_asset.py +0 -11
- rapidata/rapidata_client/assets/_media_asset.py +0 -306
- rapidata/rapidata_client/assets/_multi_asset.py +0 -61
- rapidata/rapidata_client/assets/_sessions.py +0 -35
- rapidata/rapidata_client/assets/_text_asset.py +0 -34
- rapidata/rapidata_client/assets/data_type_enum.py +0 -7
- rapidata/rapidata_client/country_codes/__init__.py +0 -1
- rapidata/rapidata_client/country_codes/country_codes.py +0 -19
- rapidata/rapidata_client/leaderboard/rapidata_leaderboard.py +0 -127
- rapidata/rapidata_client/leaderboard/rapidata_leaderboard_manager.py +0 -92
- 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/metadata/_media_asset_metadata.py +0 -15
- rapidata/rapidata_client/metadata/_private_text_metadata.py +0 -17
- rapidata/rapidata_client/metadata/_prompt_metadata.py +0 -18
- rapidata/rapidata_client/metadata/_public_text_metadata.py +0 -17
- rapidata/rapidata_client/order/_rapidata_dataset.py +0 -461
- rapidata/service/local_file_service.py +0 -25
- rapidata-2.28.2.dist-info/METADATA +0 -35
- rapidata-2.28.2.dist-info/RECORD +0 -574
- /rapidata/rapidata_client/{leaderboard → benchmark}/__init__.py +0 -0
- /rapidata/rapidata_client/{metadata → datapoints/metadata}/_base_metadata.py +0 -0
- {rapidata-2.28.2.dist-info → rapidata-2.44.3.dist-info/licenses}/LICENSE +0 -0
|
@@ -0,0 +1,3966 @@
|
|
|
1
|
+
# coding: utf-8
|
|
2
|
+
|
|
3
|
+
"""
|
|
4
|
+
Rapidata Asset API
|
|
5
|
+
|
|
6
|
+
The API for the Rapidata Asset service
|
|
7
|
+
|
|
8
|
+
The version of the OpenAPI document: v1
|
|
9
|
+
Generated by OpenAPI Generator (https://openapi-generator.tech)
|
|
10
|
+
|
|
11
|
+
Do not edit the class manually.
|
|
12
|
+
""" # noqa: E501
|
|
13
|
+
|
|
14
|
+
import warnings
|
|
15
|
+
from pydantic import validate_call, Field, StrictFloat, StrictStr, StrictInt
|
|
16
|
+
from typing import Any, Dict, List, Optional, Tuple, Union
|
|
17
|
+
from typing_extensions import Annotated
|
|
18
|
+
|
|
19
|
+
from pydantic import Field, StrictBool, StrictStr
|
|
20
|
+
from typing import List, Optional
|
|
21
|
+
from typing_extensions import Annotated
|
|
22
|
+
from rapidata.api_client.models.create_benchmark_model import CreateBenchmarkModel
|
|
23
|
+
from rapidata.api_client.models.create_benchmark_participant_model import CreateBenchmarkParticipantModel
|
|
24
|
+
from rapidata.api_client.models.create_benchmark_participant_result import CreateBenchmarkParticipantResult
|
|
25
|
+
from rapidata.api_client.models.create_benchmark_prompt_result import CreateBenchmarkPromptResult
|
|
26
|
+
from rapidata.api_client.models.create_benchmark_result import CreateBenchmarkResult
|
|
27
|
+
from rapidata.api_client.models.fork_benchmark_result import ForkBenchmarkResult
|
|
28
|
+
from rapidata.api_client.models.get_benchmark_by_id_result import GetBenchmarkByIdResult
|
|
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
|
|
34
|
+
from rapidata.api_client.models.query_model import QueryModel
|
|
35
|
+
from rapidata.api_client.models.standings_by_benchmark_result import StandingsByBenchmarkResult
|
|
36
|
+
from rapidata.api_client.models.submit_prompt_model import SubmitPromptModel
|
|
37
|
+
from rapidata.api_client.models.tags_by_benchmark_result import TagsByBenchmarkResult
|
|
38
|
+
from rapidata.api_client.models.update_benchmark_model import UpdateBenchmarkModel
|
|
39
|
+
|
|
40
|
+
from rapidata.api_client.api_client import ApiClient, RequestSerialized
|
|
41
|
+
from rapidata.api_client.api_response import ApiResponse
|
|
42
|
+
from rapidata.api_client.rest import RESTResponseType
|
|
43
|
+
|
|
44
|
+
|
|
45
|
+
class BenchmarkApi:
|
|
46
|
+
"""NOTE: This class is auto generated by OpenAPI Generator
|
|
47
|
+
Ref: https://openapi-generator.tech
|
|
48
|
+
|
|
49
|
+
Do not edit the class manually.
|
|
50
|
+
"""
|
|
51
|
+
|
|
52
|
+
def __init__(self, api_client=None) -> None:
|
|
53
|
+
if api_client is None:
|
|
54
|
+
api_client = ApiClient.get_default()
|
|
55
|
+
self.api_client = api_client
|
|
56
|
+
|
|
57
|
+
|
|
58
|
+
@validate_call
|
|
59
|
+
def benchmark_benchmark_id_delete(
|
|
60
|
+
self,
|
|
61
|
+
benchmark_id: StrictStr,
|
|
62
|
+
_request_timeout: Union[
|
|
63
|
+
None,
|
|
64
|
+
Annotated[StrictFloat, Field(gt=0)],
|
|
65
|
+
Tuple[
|
|
66
|
+
Annotated[StrictFloat, Field(gt=0)],
|
|
67
|
+
Annotated[StrictFloat, Field(gt=0)]
|
|
68
|
+
]
|
|
69
|
+
] = None,
|
|
70
|
+
_request_auth: Optional[Dict[StrictStr, Any]] = None,
|
|
71
|
+
_content_type: Optional[StrictStr] = None,
|
|
72
|
+
_headers: Optional[Dict[StrictStr, Any]] = None,
|
|
73
|
+
_host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
|
|
74
|
+
) -> None:
|
|
75
|
+
"""Deletes a single benchmark.
|
|
76
|
+
|
|
77
|
+
|
|
78
|
+
:param benchmark_id: (required)
|
|
79
|
+
:type benchmark_id: str
|
|
80
|
+
:param _request_timeout: timeout setting for this request. If one
|
|
81
|
+
number provided, it will be total request
|
|
82
|
+
timeout. It can also be a pair (tuple) of
|
|
83
|
+
(connection, read) timeouts.
|
|
84
|
+
:type _request_timeout: int, tuple(int, int), optional
|
|
85
|
+
:param _request_auth: set to override the auth_settings for an a single
|
|
86
|
+
request; this effectively ignores the
|
|
87
|
+
authentication in the spec for a single request.
|
|
88
|
+
:type _request_auth: dict, optional
|
|
89
|
+
:param _content_type: force content-type for the request.
|
|
90
|
+
:type _content_type: str, Optional
|
|
91
|
+
:param _headers: set to override the headers for a single
|
|
92
|
+
request; this effectively ignores the headers
|
|
93
|
+
in the spec for a single request.
|
|
94
|
+
:type _headers: dict, optional
|
|
95
|
+
:param _host_index: set to override the host_index for a single
|
|
96
|
+
request; this effectively ignores the host_index
|
|
97
|
+
in the spec for a single request.
|
|
98
|
+
:type _host_index: int, optional
|
|
99
|
+
:return: Returns the result object.
|
|
100
|
+
""" # noqa: E501
|
|
101
|
+
|
|
102
|
+
_param = self._benchmark_benchmark_id_delete_serialize(
|
|
103
|
+
benchmark_id=benchmark_id,
|
|
104
|
+
_request_auth=_request_auth,
|
|
105
|
+
_content_type=_content_type,
|
|
106
|
+
_headers=_headers,
|
|
107
|
+
_host_index=_host_index
|
|
108
|
+
)
|
|
109
|
+
|
|
110
|
+
_response_types_map: Dict[str, Optional[str]] = {
|
|
111
|
+
'204': None,
|
|
112
|
+
}
|
|
113
|
+
response_data = self.api_client.call_api(
|
|
114
|
+
*_param,
|
|
115
|
+
_request_timeout=_request_timeout
|
|
116
|
+
)
|
|
117
|
+
response_data.read()
|
|
118
|
+
return self.api_client.response_deserialize(
|
|
119
|
+
response_data=response_data,
|
|
120
|
+
response_types_map=_response_types_map,
|
|
121
|
+
).data
|
|
122
|
+
|
|
123
|
+
|
|
124
|
+
@validate_call
|
|
125
|
+
def benchmark_benchmark_id_delete_with_http_info(
|
|
126
|
+
self,
|
|
127
|
+
benchmark_id: StrictStr,
|
|
128
|
+
_request_timeout: Union[
|
|
129
|
+
None,
|
|
130
|
+
Annotated[StrictFloat, Field(gt=0)],
|
|
131
|
+
Tuple[
|
|
132
|
+
Annotated[StrictFloat, Field(gt=0)],
|
|
133
|
+
Annotated[StrictFloat, Field(gt=0)]
|
|
134
|
+
]
|
|
135
|
+
] = None,
|
|
136
|
+
_request_auth: Optional[Dict[StrictStr, Any]] = None,
|
|
137
|
+
_content_type: Optional[StrictStr] = None,
|
|
138
|
+
_headers: Optional[Dict[StrictStr, Any]] = None,
|
|
139
|
+
_host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
|
|
140
|
+
) -> ApiResponse[None]:
|
|
141
|
+
"""Deletes a single benchmark.
|
|
142
|
+
|
|
143
|
+
|
|
144
|
+
:param benchmark_id: (required)
|
|
145
|
+
:type benchmark_id: str
|
|
146
|
+
:param _request_timeout: timeout setting for this request. If one
|
|
147
|
+
number provided, it will be total request
|
|
148
|
+
timeout. It can also be a pair (tuple) of
|
|
149
|
+
(connection, read) timeouts.
|
|
150
|
+
:type _request_timeout: int, tuple(int, int), optional
|
|
151
|
+
:param _request_auth: set to override the auth_settings for an a single
|
|
152
|
+
request; this effectively ignores the
|
|
153
|
+
authentication in the spec for a single request.
|
|
154
|
+
:type _request_auth: dict, optional
|
|
155
|
+
:param _content_type: force content-type for the request.
|
|
156
|
+
:type _content_type: str, Optional
|
|
157
|
+
:param _headers: set to override the headers for a single
|
|
158
|
+
request; this effectively ignores the headers
|
|
159
|
+
in the spec for a single request.
|
|
160
|
+
:type _headers: dict, optional
|
|
161
|
+
:param _host_index: set to override the host_index for a single
|
|
162
|
+
request; this effectively ignores the host_index
|
|
163
|
+
in the spec for a single request.
|
|
164
|
+
:type _host_index: int, optional
|
|
165
|
+
:return: Returns the result object.
|
|
166
|
+
""" # noqa: E501
|
|
167
|
+
|
|
168
|
+
_param = self._benchmark_benchmark_id_delete_serialize(
|
|
169
|
+
benchmark_id=benchmark_id,
|
|
170
|
+
_request_auth=_request_auth,
|
|
171
|
+
_content_type=_content_type,
|
|
172
|
+
_headers=_headers,
|
|
173
|
+
_host_index=_host_index
|
|
174
|
+
)
|
|
175
|
+
|
|
176
|
+
_response_types_map: Dict[str, Optional[str]] = {
|
|
177
|
+
'204': None,
|
|
178
|
+
}
|
|
179
|
+
response_data = self.api_client.call_api(
|
|
180
|
+
*_param,
|
|
181
|
+
_request_timeout=_request_timeout
|
|
182
|
+
)
|
|
183
|
+
response_data.read()
|
|
184
|
+
return self.api_client.response_deserialize(
|
|
185
|
+
response_data=response_data,
|
|
186
|
+
response_types_map=_response_types_map,
|
|
187
|
+
)
|
|
188
|
+
|
|
189
|
+
|
|
190
|
+
@validate_call
|
|
191
|
+
def benchmark_benchmark_id_delete_without_preload_content(
|
|
192
|
+
self,
|
|
193
|
+
benchmark_id: StrictStr,
|
|
194
|
+
_request_timeout: Union[
|
|
195
|
+
None,
|
|
196
|
+
Annotated[StrictFloat, Field(gt=0)],
|
|
197
|
+
Tuple[
|
|
198
|
+
Annotated[StrictFloat, Field(gt=0)],
|
|
199
|
+
Annotated[StrictFloat, Field(gt=0)]
|
|
200
|
+
]
|
|
201
|
+
] = None,
|
|
202
|
+
_request_auth: Optional[Dict[StrictStr, Any]] = None,
|
|
203
|
+
_content_type: Optional[StrictStr] = None,
|
|
204
|
+
_headers: Optional[Dict[StrictStr, Any]] = None,
|
|
205
|
+
_host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
|
|
206
|
+
) -> RESTResponseType:
|
|
207
|
+
"""Deletes a single benchmark.
|
|
208
|
+
|
|
209
|
+
|
|
210
|
+
:param benchmark_id: (required)
|
|
211
|
+
:type benchmark_id: str
|
|
212
|
+
:param _request_timeout: timeout setting for this request. If one
|
|
213
|
+
number provided, it will be total request
|
|
214
|
+
timeout. It can also be a pair (tuple) of
|
|
215
|
+
(connection, read) timeouts.
|
|
216
|
+
:type _request_timeout: int, tuple(int, int), optional
|
|
217
|
+
:param _request_auth: set to override the auth_settings for an a single
|
|
218
|
+
request; this effectively ignores the
|
|
219
|
+
authentication in the spec for a single request.
|
|
220
|
+
:type _request_auth: dict, optional
|
|
221
|
+
:param _content_type: force content-type for the request.
|
|
222
|
+
:type _content_type: str, Optional
|
|
223
|
+
:param _headers: set to override the headers for a single
|
|
224
|
+
request; this effectively ignores the headers
|
|
225
|
+
in the spec for a single request.
|
|
226
|
+
:type _headers: dict, optional
|
|
227
|
+
:param _host_index: set to override the host_index for a single
|
|
228
|
+
request; this effectively ignores the host_index
|
|
229
|
+
in the spec for a single request.
|
|
230
|
+
:type _host_index: int, optional
|
|
231
|
+
:return: Returns the result object.
|
|
232
|
+
""" # noqa: E501
|
|
233
|
+
|
|
234
|
+
_param = self._benchmark_benchmark_id_delete_serialize(
|
|
235
|
+
benchmark_id=benchmark_id,
|
|
236
|
+
_request_auth=_request_auth,
|
|
237
|
+
_content_type=_content_type,
|
|
238
|
+
_headers=_headers,
|
|
239
|
+
_host_index=_host_index
|
|
240
|
+
)
|
|
241
|
+
|
|
242
|
+
_response_types_map: Dict[str, Optional[str]] = {
|
|
243
|
+
'204': None,
|
|
244
|
+
}
|
|
245
|
+
response_data = self.api_client.call_api(
|
|
246
|
+
*_param,
|
|
247
|
+
_request_timeout=_request_timeout
|
|
248
|
+
)
|
|
249
|
+
return response_data.response
|
|
250
|
+
|
|
251
|
+
|
|
252
|
+
def _benchmark_benchmark_id_delete_serialize(
|
|
253
|
+
self,
|
|
254
|
+
benchmark_id,
|
|
255
|
+
_request_auth,
|
|
256
|
+
_content_type,
|
|
257
|
+
_headers,
|
|
258
|
+
_host_index,
|
|
259
|
+
) -> RequestSerialized:
|
|
260
|
+
|
|
261
|
+
_host = None
|
|
262
|
+
|
|
263
|
+
_collection_formats: Dict[str, str] = {
|
|
264
|
+
}
|
|
265
|
+
|
|
266
|
+
_path_params: Dict[str, str] = {}
|
|
267
|
+
_query_params: List[Tuple[str, str]] = []
|
|
268
|
+
_header_params: Dict[str, Optional[str]] = _headers or {}
|
|
269
|
+
_form_params: List[Tuple[str, str]] = []
|
|
270
|
+
_files: Dict[
|
|
271
|
+
str, Union[str, bytes, List[str], List[bytes], List[Tuple[str, bytes]]]
|
|
272
|
+
] = {}
|
|
273
|
+
_body_params: Optional[bytes] = None
|
|
274
|
+
|
|
275
|
+
# process the path parameters
|
|
276
|
+
if benchmark_id is not None:
|
|
277
|
+
_path_params['benchmarkId'] = benchmark_id
|
|
278
|
+
# process the query parameters
|
|
279
|
+
# process the header parameters
|
|
280
|
+
# process the form parameters
|
|
281
|
+
# process the body parameter
|
|
282
|
+
|
|
283
|
+
|
|
284
|
+
|
|
285
|
+
|
|
286
|
+
# authentication setting
|
|
287
|
+
_auth_settings: List[str] = [
|
|
288
|
+
'OAuth2',
|
|
289
|
+
'OpenIdConnect',
|
|
290
|
+
'Bearer'
|
|
291
|
+
]
|
|
292
|
+
|
|
293
|
+
return self.api_client.param_serialize(
|
|
294
|
+
method='DELETE',
|
|
295
|
+
resource_path='/benchmark/{benchmarkId}',
|
|
296
|
+
path_params=_path_params,
|
|
297
|
+
query_params=_query_params,
|
|
298
|
+
header_params=_header_params,
|
|
299
|
+
body=_body_params,
|
|
300
|
+
post_params=_form_params,
|
|
301
|
+
files=_files,
|
|
302
|
+
auth_settings=_auth_settings,
|
|
303
|
+
collection_formats=_collection_formats,
|
|
304
|
+
_host=_host,
|
|
305
|
+
_request_auth=_request_auth
|
|
306
|
+
)
|
|
307
|
+
|
|
308
|
+
|
|
309
|
+
|
|
310
|
+
|
|
311
|
+
@validate_call
|
|
312
|
+
def benchmark_benchmark_id_fork_post(
|
|
313
|
+
self,
|
|
314
|
+
benchmark_id: StrictStr,
|
|
315
|
+
_request_timeout: Union[
|
|
316
|
+
None,
|
|
317
|
+
Annotated[StrictFloat, Field(gt=0)],
|
|
318
|
+
Tuple[
|
|
319
|
+
Annotated[StrictFloat, Field(gt=0)],
|
|
320
|
+
Annotated[StrictFloat, Field(gt=0)]
|
|
321
|
+
]
|
|
322
|
+
] = None,
|
|
323
|
+
_request_auth: Optional[Dict[StrictStr, Any]] = None,
|
|
324
|
+
_content_type: Optional[StrictStr] = None,
|
|
325
|
+
_headers: Optional[Dict[StrictStr, Any]] = None,
|
|
326
|
+
_host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
|
|
327
|
+
) -> ForkBenchmarkResult:
|
|
328
|
+
"""Creates a copy of a public benchmark and all of its related entities
|
|
329
|
+
|
|
330
|
+
|
|
331
|
+
:param benchmark_id: (required)
|
|
332
|
+
:type benchmark_id: str
|
|
333
|
+
:param _request_timeout: timeout setting for this request. If one
|
|
334
|
+
number provided, it will be total request
|
|
335
|
+
timeout. It can also be a pair (tuple) of
|
|
336
|
+
(connection, read) timeouts.
|
|
337
|
+
:type _request_timeout: int, tuple(int, int), optional
|
|
338
|
+
:param _request_auth: set to override the auth_settings for an a single
|
|
339
|
+
request; this effectively ignores the
|
|
340
|
+
authentication in the spec for a single request.
|
|
341
|
+
:type _request_auth: dict, optional
|
|
342
|
+
:param _content_type: force content-type for the request.
|
|
343
|
+
:type _content_type: str, Optional
|
|
344
|
+
:param _headers: set to override the headers for a single
|
|
345
|
+
request; this effectively ignores the headers
|
|
346
|
+
in the spec for a single request.
|
|
347
|
+
:type _headers: dict, optional
|
|
348
|
+
:param _host_index: set to override the host_index for a single
|
|
349
|
+
request; this effectively ignores the host_index
|
|
350
|
+
in the spec for a single request.
|
|
351
|
+
:type _host_index: int, optional
|
|
352
|
+
:return: Returns the result object.
|
|
353
|
+
""" # noqa: E501
|
|
354
|
+
|
|
355
|
+
_param = self._benchmark_benchmark_id_fork_post_serialize(
|
|
356
|
+
benchmark_id=benchmark_id,
|
|
357
|
+
_request_auth=_request_auth,
|
|
358
|
+
_content_type=_content_type,
|
|
359
|
+
_headers=_headers,
|
|
360
|
+
_host_index=_host_index
|
|
361
|
+
)
|
|
362
|
+
|
|
363
|
+
_response_types_map: Dict[str, Optional[str]] = {
|
|
364
|
+
'200': "ForkBenchmarkResult",
|
|
365
|
+
}
|
|
366
|
+
response_data = self.api_client.call_api(
|
|
367
|
+
*_param,
|
|
368
|
+
_request_timeout=_request_timeout
|
|
369
|
+
)
|
|
370
|
+
response_data.read()
|
|
371
|
+
return self.api_client.response_deserialize(
|
|
372
|
+
response_data=response_data,
|
|
373
|
+
response_types_map=_response_types_map,
|
|
374
|
+
).data
|
|
375
|
+
|
|
376
|
+
|
|
377
|
+
@validate_call
|
|
378
|
+
def benchmark_benchmark_id_fork_post_with_http_info(
|
|
379
|
+
self,
|
|
380
|
+
benchmark_id: StrictStr,
|
|
381
|
+
_request_timeout: Union[
|
|
382
|
+
None,
|
|
383
|
+
Annotated[StrictFloat, Field(gt=0)],
|
|
384
|
+
Tuple[
|
|
385
|
+
Annotated[StrictFloat, Field(gt=0)],
|
|
386
|
+
Annotated[StrictFloat, Field(gt=0)]
|
|
387
|
+
]
|
|
388
|
+
] = None,
|
|
389
|
+
_request_auth: Optional[Dict[StrictStr, Any]] = None,
|
|
390
|
+
_content_type: Optional[StrictStr] = None,
|
|
391
|
+
_headers: Optional[Dict[StrictStr, Any]] = None,
|
|
392
|
+
_host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
|
|
393
|
+
) -> ApiResponse[ForkBenchmarkResult]:
|
|
394
|
+
"""Creates a copy of a public benchmark and all of its related entities
|
|
395
|
+
|
|
396
|
+
|
|
397
|
+
:param benchmark_id: (required)
|
|
398
|
+
:type benchmark_id: str
|
|
399
|
+
:param _request_timeout: timeout setting for this request. If one
|
|
400
|
+
number provided, it will be total request
|
|
401
|
+
timeout. It can also be a pair (tuple) of
|
|
402
|
+
(connection, read) timeouts.
|
|
403
|
+
:type _request_timeout: int, tuple(int, int), optional
|
|
404
|
+
:param _request_auth: set to override the auth_settings for an a single
|
|
405
|
+
request; this effectively ignores the
|
|
406
|
+
authentication in the spec for a single request.
|
|
407
|
+
:type _request_auth: dict, optional
|
|
408
|
+
:param _content_type: force content-type for the request.
|
|
409
|
+
:type _content_type: str, Optional
|
|
410
|
+
:param _headers: set to override the headers for a single
|
|
411
|
+
request; this effectively ignores the headers
|
|
412
|
+
in the spec for a single request.
|
|
413
|
+
:type _headers: dict, optional
|
|
414
|
+
:param _host_index: set to override the host_index for a single
|
|
415
|
+
request; this effectively ignores the host_index
|
|
416
|
+
in the spec for a single request.
|
|
417
|
+
:type _host_index: int, optional
|
|
418
|
+
:return: Returns the result object.
|
|
419
|
+
""" # noqa: E501
|
|
420
|
+
|
|
421
|
+
_param = self._benchmark_benchmark_id_fork_post_serialize(
|
|
422
|
+
benchmark_id=benchmark_id,
|
|
423
|
+
_request_auth=_request_auth,
|
|
424
|
+
_content_type=_content_type,
|
|
425
|
+
_headers=_headers,
|
|
426
|
+
_host_index=_host_index
|
|
427
|
+
)
|
|
428
|
+
|
|
429
|
+
_response_types_map: Dict[str, Optional[str]] = {
|
|
430
|
+
'200': "ForkBenchmarkResult",
|
|
431
|
+
}
|
|
432
|
+
response_data = self.api_client.call_api(
|
|
433
|
+
*_param,
|
|
434
|
+
_request_timeout=_request_timeout
|
|
435
|
+
)
|
|
436
|
+
response_data.read()
|
|
437
|
+
return self.api_client.response_deserialize(
|
|
438
|
+
response_data=response_data,
|
|
439
|
+
response_types_map=_response_types_map,
|
|
440
|
+
)
|
|
441
|
+
|
|
442
|
+
|
|
443
|
+
@validate_call
|
|
444
|
+
def benchmark_benchmark_id_fork_post_without_preload_content(
|
|
445
|
+
self,
|
|
446
|
+
benchmark_id: StrictStr,
|
|
447
|
+
_request_timeout: Union[
|
|
448
|
+
None,
|
|
449
|
+
Annotated[StrictFloat, Field(gt=0)],
|
|
450
|
+
Tuple[
|
|
451
|
+
Annotated[StrictFloat, Field(gt=0)],
|
|
452
|
+
Annotated[StrictFloat, Field(gt=0)]
|
|
453
|
+
]
|
|
454
|
+
] = None,
|
|
455
|
+
_request_auth: Optional[Dict[StrictStr, Any]] = None,
|
|
456
|
+
_content_type: Optional[StrictStr] = None,
|
|
457
|
+
_headers: Optional[Dict[StrictStr, Any]] = None,
|
|
458
|
+
_host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
|
|
459
|
+
) -> RESTResponseType:
|
|
460
|
+
"""Creates a copy of a public benchmark and all of its related entities
|
|
461
|
+
|
|
462
|
+
|
|
463
|
+
:param benchmark_id: (required)
|
|
464
|
+
:type benchmark_id: str
|
|
465
|
+
:param _request_timeout: timeout setting for this request. If one
|
|
466
|
+
number provided, it will be total request
|
|
467
|
+
timeout. It can also be a pair (tuple) of
|
|
468
|
+
(connection, read) timeouts.
|
|
469
|
+
:type _request_timeout: int, tuple(int, int), optional
|
|
470
|
+
:param _request_auth: set to override the auth_settings for an a single
|
|
471
|
+
request; this effectively ignores the
|
|
472
|
+
authentication in the spec for a single request.
|
|
473
|
+
:type _request_auth: dict, optional
|
|
474
|
+
:param _content_type: force content-type for the request.
|
|
475
|
+
:type _content_type: str, Optional
|
|
476
|
+
:param _headers: set to override the headers for a single
|
|
477
|
+
request; this effectively ignores the headers
|
|
478
|
+
in the spec for a single request.
|
|
479
|
+
:type _headers: dict, optional
|
|
480
|
+
:param _host_index: set to override the host_index for a single
|
|
481
|
+
request; this effectively ignores the host_index
|
|
482
|
+
in the spec for a single request.
|
|
483
|
+
:type _host_index: int, optional
|
|
484
|
+
:return: Returns the result object.
|
|
485
|
+
""" # noqa: E501
|
|
486
|
+
|
|
487
|
+
_param = self._benchmark_benchmark_id_fork_post_serialize(
|
|
488
|
+
benchmark_id=benchmark_id,
|
|
489
|
+
_request_auth=_request_auth,
|
|
490
|
+
_content_type=_content_type,
|
|
491
|
+
_headers=_headers,
|
|
492
|
+
_host_index=_host_index
|
|
493
|
+
)
|
|
494
|
+
|
|
495
|
+
_response_types_map: Dict[str, Optional[str]] = {
|
|
496
|
+
'200': "ForkBenchmarkResult",
|
|
497
|
+
}
|
|
498
|
+
response_data = self.api_client.call_api(
|
|
499
|
+
*_param,
|
|
500
|
+
_request_timeout=_request_timeout
|
|
501
|
+
)
|
|
502
|
+
return response_data.response
|
|
503
|
+
|
|
504
|
+
|
|
505
|
+
def _benchmark_benchmark_id_fork_post_serialize(
|
|
506
|
+
self,
|
|
507
|
+
benchmark_id,
|
|
508
|
+
_request_auth,
|
|
509
|
+
_content_type,
|
|
510
|
+
_headers,
|
|
511
|
+
_host_index,
|
|
512
|
+
) -> RequestSerialized:
|
|
513
|
+
|
|
514
|
+
_host = None
|
|
515
|
+
|
|
516
|
+
_collection_formats: Dict[str, str] = {
|
|
517
|
+
}
|
|
518
|
+
|
|
519
|
+
_path_params: Dict[str, str] = {}
|
|
520
|
+
_query_params: List[Tuple[str, str]] = []
|
|
521
|
+
_header_params: Dict[str, Optional[str]] = _headers or {}
|
|
522
|
+
_form_params: List[Tuple[str, str]] = []
|
|
523
|
+
_files: Dict[
|
|
524
|
+
str, Union[str, bytes, List[str], List[bytes], List[Tuple[str, bytes]]]
|
|
525
|
+
] = {}
|
|
526
|
+
_body_params: Optional[bytes] = None
|
|
527
|
+
|
|
528
|
+
# process the path parameters
|
|
529
|
+
if benchmark_id is not None:
|
|
530
|
+
_path_params['benchmarkId'] = benchmark_id
|
|
531
|
+
# process the query parameters
|
|
532
|
+
# process the header parameters
|
|
533
|
+
# process the form parameters
|
|
534
|
+
# process the body parameter
|
|
535
|
+
|
|
536
|
+
|
|
537
|
+
# set the HTTP header `Accept`
|
|
538
|
+
if 'Accept' not in _header_params:
|
|
539
|
+
_header_params['Accept'] = self.api_client.select_header_accept(
|
|
540
|
+
[
|
|
541
|
+
'text/plain',
|
|
542
|
+
'application/json',
|
|
543
|
+
'text/json'
|
|
544
|
+
]
|
|
545
|
+
)
|
|
546
|
+
|
|
547
|
+
|
|
548
|
+
# authentication setting
|
|
549
|
+
_auth_settings: List[str] = [
|
|
550
|
+
'OAuth2',
|
|
551
|
+
'OpenIdConnect',
|
|
552
|
+
'Bearer'
|
|
553
|
+
]
|
|
554
|
+
|
|
555
|
+
return self.api_client.param_serialize(
|
|
556
|
+
method='POST',
|
|
557
|
+
resource_path='/benchmark/{benchmarkId}/fork',
|
|
558
|
+
path_params=_path_params,
|
|
559
|
+
query_params=_query_params,
|
|
560
|
+
header_params=_header_params,
|
|
561
|
+
body=_body_params,
|
|
562
|
+
post_params=_form_params,
|
|
563
|
+
files=_files,
|
|
564
|
+
auth_settings=_auth_settings,
|
|
565
|
+
collection_formats=_collection_formats,
|
|
566
|
+
_host=_host,
|
|
567
|
+
_request_auth=_request_auth
|
|
568
|
+
)
|
|
569
|
+
|
|
570
|
+
|
|
571
|
+
|
|
572
|
+
|
|
573
|
+
@validate_call
|
|
574
|
+
def benchmark_benchmark_id_get(
|
|
575
|
+
self,
|
|
576
|
+
benchmark_id: StrictStr,
|
|
577
|
+
_request_timeout: Union[
|
|
578
|
+
None,
|
|
579
|
+
Annotated[StrictFloat, Field(gt=0)],
|
|
580
|
+
Tuple[
|
|
581
|
+
Annotated[StrictFloat, Field(gt=0)],
|
|
582
|
+
Annotated[StrictFloat, Field(gt=0)]
|
|
583
|
+
]
|
|
584
|
+
] = None,
|
|
585
|
+
_request_auth: Optional[Dict[StrictStr, Any]] = None,
|
|
586
|
+
_content_type: Optional[StrictStr] = None,
|
|
587
|
+
_headers: Optional[Dict[StrictStr, Any]] = None,
|
|
588
|
+
_host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
|
|
589
|
+
) -> GetBenchmarkByIdResult:
|
|
590
|
+
"""Returns a single benchmark by its ID.
|
|
591
|
+
|
|
592
|
+
|
|
593
|
+
:param benchmark_id: (required)
|
|
594
|
+
:type benchmark_id: str
|
|
595
|
+
:param _request_timeout: timeout setting for this request. If one
|
|
596
|
+
number provided, it will be total request
|
|
597
|
+
timeout. It can also be a pair (tuple) of
|
|
598
|
+
(connection, read) timeouts.
|
|
599
|
+
:type _request_timeout: int, tuple(int, int), optional
|
|
600
|
+
:param _request_auth: set to override the auth_settings for an a single
|
|
601
|
+
request; this effectively ignores the
|
|
602
|
+
authentication in the spec for a single request.
|
|
603
|
+
:type _request_auth: dict, optional
|
|
604
|
+
:param _content_type: force content-type for the request.
|
|
605
|
+
:type _content_type: str, Optional
|
|
606
|
+
:param _headers: set to override the headers for a single
|
|
607
|
+
request; this effectively ignores the headers
|
|
608
|
+
in the spec for a single request.
|
|
609
|
+
:type _headers: dict, optional
|
|
610
|
+
:param _host_index: set to override the host_index for a single
|
|
611
|
+
request; this effectively ignores the host_index
|
|
612
|
+
in the spec for a single request.
|
|
613
|
+
:type _host_index: int, optional
|
|
614
|
+
:return: Returns the result object.
|
|
615
|
+
""" # noqa: E501
|
|
616
|
+
|
|
617
|
+
_param = self._benchmark_benchmark_id_get_serialize(
|
|
618
|
+
benchmark_id=benchmark_id,
|
|
619
|
+
_request_auth=_request_auth,
|
|
620
|
+
_content_type=_content_type,
|
|
621
|
+
_headers=_headers,
|
|
622
|
+
_host_index=_host_index
|
|
623
|
+
)
|
|
624
|
+
|
|
625
|
+
_response_types_map: Dict[str, Optional[str]] = {
|
|
626
|
+
'200': "GetBenchmarkByIdResult",
|
|
627
|
+
}
|
|
628
|
+
response_data = self.api_client.call_api(
|
|
629
|
+
*_param,
|
|
630
|
+
_request_timeout=_request_timeout
|
|
631
|
+
)
|
|
632
|
+
response_data.read()
|
|
633
|
+
return self.api_client.response_deserialize(
|
|
634
|
+
response_data=response_data,
|
|
635
|
+
response_types_map=_response_types_map,
|
|
636
|
+
).data
|
|
637
|
+
|
|
638
|
+
|
|
639
|
+
@validate_call
|
|
640
|
+
def benchmark_benchmark_id_get_with_http_info(
|
|
641
|
+
self,
|
|
642
|
+
benchmark_id: StrictStr,
|
|
643
|
+
_request_timeout: Union[
|
|
644
|
+
None,
|
|
645
|
+
Annotated[StrictFloat, Field(gt=0)],
|
|
646
|
+
Tuple[
|
|
647
|
+
Annotated[StrictFloat, Field(gt=0)],
|
|
648
|
+
Annotated[StrictFloat, Field(gt=0)]
|
|
649
|
+
]
|
|
650
|
+
] = None,
|
|
651
|
+
_request_auth: Optional[Dict[StrictStr, Any]] = None,
|
|
652
|
+
_content_type: Optional[StrictStr] = None,
|
|
653
|
+
_headers: Optional[Dict[StrictStr, Any]] = None,
|
|
654
|
+
_host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
|
|
655
|
+
) -> ApiResponse[GetBenchmarkByIdResult]:
|
|
656
|
+
"""Returns a single benchmark by its ID.
|
|
657
|
+
|
|
658
|
+
|
|
659
|
+
:param benchmark_id: (required)
|
|
660
|
+
:type benchmark_id: str
|
|
661
|
+
:param _request_timeout: timeout setting for this request. If one
|
|
662
|
+
number provided, it will be total request
|
|
663
|
+
timeout. It can also be a pair (tuple) of
|
|
664
|
+
(connection, read) timeouts.
|
|
665
|
+
:type _request_timeout: int, tuple(int, int), optional
|
|
666
|
+
:param _request_auth: set to override the auth_settings for an a single
|
|
667
|
+
request; this effectively ignores the
|
|
668
|
+
authentication in the spec for a single request.
|
|
669
|
+
:type _request_auth: dict, optional
|
|
670
|
+
:param _content_type: force content-type for the request.
|
|
671
|
+
:type _content_type: str, Optional
|
|
672
|
+
:param _headers: set to override the headers for a single
|
|
673
|
+
request; this effectively ignores the headers
|
|
674
|
+
in the spec for a single request.
|
|
675
|
+
:type _headers: dict, optional
|
|
676
|
+
:param _host_index: set to override the host_index for a single
|
|
677
|
+
request; this effectively ignores the host_index
|
|
678
|
+
in the spec for a single request.
|
|
679
|
+
:type _host_index: int, optional
|
|
680
|
+
:return: Returns the result object.
|
|
681
|
+
""" # noqa: E501
|
|
682
|
+
|
|
683
|
+
_param = self._benchmark_benchmark_id_get_serialize(
|
|
684
|
+
benchmark_id=benchmark_id,
|
|
685
|
+
_request_auth=_request_auth,
|
|
686
|
+
_content_type=_content_type,
|
|
687
|
+
_headers=_headers,
|
|
688
|
+
_host_index=_host_index
|
|
689
|
+
)
|
|
690
|
+
|
|
691
|
+
_response_types_map: Dict[str, Optional[str]] = {
|
|
692
|
+
'200': "GetBenchmarkByIdResult",
|
|
693
|
+
}
|
|
694
|
+
response_data = self.api_client.call_api(
|
|
695
|
+
*_param,
|
|
696
|
+
_request_timeout=_request_timeout
|
|
697
|
+
)
|
|
698
|
+
response_data.read()
|
|
699
|
+
return self.api_client.response_deserialize(
|
|
700
|
+
response_data=response_data,
|
|
701
|
+
response_types_map=_response_types_map,
|
|
702
|
+
)
|
|
703
|
+
|
|
704
|
+
|
|
705
|
+
@validate_call
|
|
706
|
+
def benchmark_benchmark_id_get_without_preload_content(
|
|
707
|
+
self,
|
|
708
|
+
benchmark_id: StrictStr,
|
|
709
|
+
_request_timeout: Union[
|
|
710
|
+
None,
|
|
711
|
+
Annotated[StrictFloat, Field(gt=0)],
|
|
712
|
+
Tuple[
|
|
713
|
+
Annotated[StrictFloat, Field(gt=0)],
|
|
714
|
+
Annotated[StrictFloat, Field(gt=0)]
|
|
715
|
+
]
|
|
716
|
+
] = None,
|
|
717
|
+
_request_auth: Optional[Dict[StrictStr, Any]] = None,
|
|
718
|
+
_content_type: Optional[StrictStr] = None,
|
|
719
|
+
_headers: Optional[Dict[StrictStr, Any]] = None,
|
|
720
|
+
_host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
|
|
721
|
+
) -> RESTResponseType:
|
|
722
|
+
"""Returns a single benchmark by its ID.
|
|
723
|
+
|
|
724
|
+
|
|
725
|
+
:param benchmark_id: (required)
|
|
726
|
+
:type benchmark_id: str
|
|
727
|
+
:param _request_timeout: timeout setting for this request. If one
|
|
728
|
+
number provided, it will be total request
|
|
729
|
+
timeout. It can also be a pair (tuple) of
|
|
730
|
+
(connection, read) timeouts.
|
|
731
|
+
:type _request_timeout: int, tuple(int, int), optional
|
|
732
|
+
:param _request_auth: set to override the auth_settings for an a single
|
|
733
|
+
request; this effectively ignores the
|
|
734
|
+
authentication in the spec for a single request.
|
|
735
|
+
:type _request_auth: dict, optional
|
|
736
|
+
:param _content_type: force content-type for the request.
|
|
737
|
+
:type _content_type: str, Optional
|
|
738
|
+
:param _headers: set to override the headers for a single
|
|
739
|
+
request; this effectively ignores the headers
|
|
740
|
+
in the spec for a single request.
|
|
741
|
+
:type _headers: dict, optional
|
|
742
|
+
:param _host_index: set to override the host_index for a single
|
|
743
|
+
request; this effectively ignores the host_index
|
|
744
|
+
in the spec for a single request.
|
|
745
|
+
:type _host_index: int, optional
|
|
746
|
+
:return: Returns the result object.
|
|
747
|
+
""" # noqa: E501
|
|
748
|
+
|
|
749
|
+
_param = self._benchmark_benchmark_id_get_serialize(
|
|
750
|
+
benchmark_id=benchmark_id,
|
|
751
|
+
_request_auth=_request_auth,
|
|
752
|
+
_content_type=_content_type,
|
|
753
|
+
_headers=_headers,
|
|
754
|
+
_host_index=_host_index
|
|
755
|
+
)
|
|
756
|
+
|
|
757
|
+
_response_types_map: Dict[str, Optional[str]] = {
|
|
758
|
+
'200': "GetBenchmarkByIdResult",
|
|
759
|
+
}
|
|
760
|
+
response_data = self.api_client.call_api(
|
|
761
|
+
*_param,
|
|
762
|
+
_request_timeout=_request_timeout
|
|
763
|
+
)
|
|
764
|
+
return response_data.response
|
|
765
|
+
|
|
766
|
+
|
|
767
|
+
def _benchmark_benchmark_id_get_serialize(
|
|
768
|
+
self,
|
|
769
|
+
benchmark_id,
|
|
770
|
+
_request_auth,
|
|
771
|
+
_content_type,
|
|
772
|
+
_headers,
|
|
773
|
+
_host_index,
|
|
774
|
+
) -> RequestSerialized:
|
|
775
|
+
|
|
776
|
+
_host = None
|
|
777
|
+
|
|
778
|
+
_collection_formats: Dict[str, str] = {
|
|
779
|
+
}
|
|
780
|
+
|
|
781
|
+
_path_params: Dict[str, str] = {}
|
|
782
|
+
_query_params: List[Tuple[str, str]] = []
|
|
783
|
+
_header_params: Dict[str, Optional[str]] = _headers or {}
|
|
784
|
+
_form_params: List[Tuple[str, str]] = []
|
|
785
|
+
_files: Dict[
|
|
786
|
+
str, Union[str, bytes, List[str], List[bytes], List[Tuple[str, bytes]]]
|
|
787
|
+
] = {}
|
|
788
|
+
_body_params: Optional[bytes] = None
|
|
789
|
+
|
|
790
|
+
# process the path parameters
|
|
791
|
+
if benchmark_id is not None:
|
|
792
|
+
_path_params['benchmarkId'] = benchmark_id
|
|
793
|
+
# process the query parameters
|
|
794
|
+
# process the header parameters
|
|
795
|
+
# process the form parameters
|
|
796
|
+
# process the body parameter
|
|
797
|
+
|
|
798
|
+
|
|
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
|
+
]
|
|
807
|
+
)
|
|
808
|
+
|
|
809
|
+
|
|
810
|
+
# authentication setting
|
|
811
|
+
_auth_settings: List[str] = [
|
|
812
|
+
'OAuth2',
|
|
813
|
+
'OpenIdConnect',
|
|
814
|
+
'Bearer'
|
|
815
|
+
]
|
|
816
|
+
|
|
817
|
+
return self.api_client.param_serialize(
|
|
818
|
+
method='GET',
|
|
819
|
+
resource_path='/benchmark/{benchmarkId}',
|
|
820
|
+
path_params=_path_params,
|
|
821
|
+
query_params=_query_params,
|
|
822
|
+
header_params=_header_params,
|
|
823
|
+
body=_body_params,
|
|
824
|
+
post_params=_form_params,
|
|
825
|
+
files=_files,
|
|
826
|
+
auth_settings=_auth_settings,
|
|
827
|
+
collection_formats=_collection_formats,
|
|
828
|
+
_host=_host,
|
|
829
|
+
_request_auth=_request_auth
|
|
830
|
+
)
|
|
831
|
+
|
|
832
|
+
|
|
833
|
+
|
|
834
|
+
|
|
835
|
+
@validate_call
|
|
836
|
+
def benchmark_benchmark_id_leaderboards_get(
|
|
837
|
+
self,
|
|
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,
|
|
840
|
+
_request_timeout: Union[
|
|
841
|
+
None,
|
|
842
|
+
Annotated[StrictFloat, Field(gt=0)],
|
|
843
|
+
Tuple[
|
|
844
|
+
Annotated[StrictFloat, Field(gt=0)],
|
|
845
|
+
Annotated[StrictFloat, Field(gt=0)]
|
|
846
|
+
]
|
|
847
|
+
] = None,
|
|
848
|
+
_request_auth: Optional[Dict[StrictStr, Any]] = None,
|
|
849
|
+
_content_type: Optional[StrictStr] = None,
|
|
850
|
+
_headers: Optional[Dict[StrictStr, Any]] = None,
|
|
851
|
+
_host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
|
|
852
|
+
) -> PagedResultOfLeaderboardsQueryResult:
|
|
853
|
+
"""Queries all leaderboards for the current user's benchmarks.
|
|
854
|
+
|
|
855
|
+
|
|
856
|
+
:param benchmark_id: The Id of the benchmark whoms leaderboards will be returned (required)
|
|
857
|
+
:type benchmark_id: str
|
|
858
|
+
:param request: Query parameters
|
|
859
|
+
:type request: QueryModel
|
|
860
|
+
:param _request_timeout: timeout setting for this request. If one
|
|
861
|
+
number provided, it will be total request
|
|
862
|
+
timeout. It can also be a pair (tuple) of
|
|
863
|
+
(connection, read) timeouts.
|
|
864
|
+
:type _request_timeout: int, tuple(int, int), optional
|
|
865
|
+
:param _request_auth: set to override the auth_settings for an a single
|
|
866
|
+
request; this effectively ignores the
|
|
867
|
+
authentication in the spec for a single request.
|
|
868
|
+
:type _request_auth: dict, optional
|
|
869
|
+
:param _content_type: force content-type for the request.
|
|
870
|
+
:type _content_type: str, Optional
|
|
871
|
+
:param _headers: set to override the headers for a single
|
|
872
|
+
request; this effectively ignores the headers
|
|
873
|
+
in the spec for a single request.
|
|
874
|
+
:type _headers: dict, optional
|
|
875
|
+
:param _host_index: set to override the host_index for a single
|
|
876
|
+
request; this effectively ignores the host_index
|
|
877
|
+
in the spec for a single request.
|
|
878
|
+
:type _host_index: int, optional
|
|
879
|
+
:return: Returns the result object.
|
|
880
|
+
""" # noqa: E501
|
|
881
|
+
|
|
882
|
+
_param = self._benchmark_benchmark_id_leaderboards_get_serialize(
|
|
883
|
+
benchmark_id=benchmark_id,
|
|
884
|
+
request=request,
|
|
885
|
+
_request_auth=_request_auth,
|
|
886
|
+
_content_type=_content_type,
|
|
887
|
+
_headers=_headers,
|
|
888
|
+
_host_index=_host_index
|
|
889
|
+
)
|
|
890
|
+
|
|
891
|
+
_response_types_map: Dict[str, Optional[str]] = {
|
|
892
|
+
'200': "PagedResultOfLeaderboardsQueryResult",
|
|
893
|
+
}
|
|
894
|
+
response_data = self.api_client.call_api(
|
|
895
|
+
*_param,
|
|
896
|
+
_request_timeout=_request_timeout
|
|
897
|
+
)
|
|
898
|
+
response_data.read()
|
|
899
|
+
return self.api_client.response_deserialize(
|
|
900
|
+
response_data=response_data,
|
|
901
|
+
response_types_map=_response_types_map,
|
|
902
|
+
).data
|
|
903
|
+
|
|
904
|
+
|
|
905
|
+
@validate_call
|
|
906
|
+
def benchmark_benchmark_id_leaderboards_get_with_http_info(
|
|
907
|
+
self,
|
|
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,
|
|
910
|
+
_request_timeout: Union[
|
|
911
|
+
None,
|
|
912
|
+
Annotated[StrictFloat, Field(gt=0)],
|
|
913
|
+
Tuple[
|
|
914
|
+
Annotated[StrictFloat, Field(gt=0)],
|
|
915
|
+
Annotated[StrictFloat, Field(gt=0)]
|
|
916
|
+
]
|
|
917
|
+
] = None,
|
|
918
|
+
_request_auth: Optional[Dict[StrictStr, Any]] = None,
|
|
919
|
+
_content_type: Optional[StrictStr] = None,
|
|
920
|
+
_headers: Optional[Dict[StrictStr, Any]] = None,
|
|
921
|
+
_host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
|
|
922
|
+
) -> ApiResponse[PagedResultOfLeaderboardsQueryResult]:
|
|
923
|
+
"""Queries all leaderboards for the current user's benchmarks.
|
|
924
|
+
|
|
925
|
+
|
|
926
|
+
:param benchmark_id: The Id of the benchmark whoms leaderboards will be returned (required)
|
|
927
|
+
:type benchmark_id: str
|
|
928
|
+
:param request: Query parameters
|
|
929
|
+
:type request: QueryModel
|
|
930
|
+
:param _request_timeout: timeout setting for this request. If one
|
|
931
|
+
number provided, it will be total request
|
|
932
|
+
timeout. It can also be a pair (tuple) of
|
|
933
|
+
(connection, read) timeouts.
|
|
934
|
+
:type _request_timeout: int, tuple(int, int), optional
|
|
935
|
+
:param _request_auth: set to override the auth_settings for an a single
|
|
936
|
+
request; this effectively ignores the
|
|
937
|
+
authentication in the spec for a single request.
|
|
938
|
+
:type _request_auth: dict, optional
|
|
939
|
+
:param _content_type: force content-type for the request.
|
|
940
|
+
:type _content_type: str, Optional
|
|
941
|
+
:param _headers: set to override the headers for a single
|
|
942
|
+
request; this effectively ignores the headers
|
|
943
|
+
in the spec for a single request.
|
|
944
|
+
:type _headers: dict, optional
|
|
945
|
+
:param _host_index: set to override the host_index for a single
|
|
946
|
+
request; this effectively ignores the host_index
|
|
947
|
+
in the spec for a single request.
|
|
948
|
+
:type _host_index: int, optional
|
|
949
|
+
:return: Returns the result object.
|
|
950
|
+
""" # noqa: E501
|
|
951
|
+
|
|
952
|
+
_param = self._benchmark_benchmark_id_leaderboards_get_serialize(
|
|
953
|
+
benchmark_id=benchmark_id,
|
|
954
|
+
request=request,
|
|
955
|
+
_request_auth=_request_auth,
|
|
956
|
+
_content_type=_content_type,
|
|
957
|
+
_headers=_headers,
|
|
958
|
+
_host_index=_host_index
|
|
959
|
+
)
|
|
960
|
+
|
|
961
|
+
_response_types_map: Dict[str, Optional[str]] = {
|
|
962
|
+
'200': "PagedResultOfLeaderboardsQueryResult",
|
|
963
|
+
}
|
|
964
|
+
response_data = self.api_client.call_api(
|
|
965
|
+
*_param,
|
|
966
|
+
_request_timeout=_request_timeout
|
|
967
|
+
)
|
|
968
|
+
response_data.read()
|
|
969
|
+
return self.api_client.response_deserialize(
|
|
970
|
+
response_data=response_data,
|
|
971
|
+
response_types_map=_response_types_map,
|
|
972
|
+
)
|
|
973
|
+
|
|
974
|
+
|
|
975
|
+
@validate_call
|
|
976
|
+
def benchmark_benchmark_id_leaderboards_get_without_preload_content(
|
|
977
|
+
self,
|
|
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,
|
|
980
|
+
_request_timeout: Union[
|
|
981
|
+
None,
|
|
982
|
+
Annotated[StrictFloat, Field(gt=0)],
|
|
983
|
+
Tuple[
|
|
984
|
+
Annotated[StrictFloat, Field(gt=0)],
|
|
985
|
+
Annotated[StrictFloat, Field(gt=0)]
|
|
986
|
+
]
|
|
987
|
+
] = None,
|
|
988
|
+
_request_auth: Optional[Dict[StrictStr, Any]] = None,
|
|
989
|
+
_content_type: Optional[StrictStr] = None,
|
|
990
|
+
_headers: Optional[Dict[StrictStr, Any]] = None,
|
|
991
|
+
_host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
|
|
992
|
+
) -> RESTResponseType:
|
|
993
|
+
"""Queries all leaderboards for the current user's benchmarks.
|
|
994
|
+
|
|
995
|
+
|
|
996
|
+
:param benchmark_id: The Id of the benchmark whoms leaderboards will be returned (required)
|
|
997
|
+
:type benchmark_id: str
|
|
998
|
+
:param request: Query parameters
|
|
999
|
+
:type request: QueryModel
|
|
1000
|
+
:param _request_timeout: timeout setting for this request. If one
|
|
1001
|
+
number provided, it will be total request
|
|
1002
|
+
timeout. It can also be a pair (tuple) of
|
|
1003
|
+
(connection, read) timeouts.
|
|
1004
|
+
:type _request_timeout: int, tuple(int, int), optional
|
|
1005
|
+
:param _request_auth: set to override the auth_settings for an a single
|
|
1006
|
+
request; this effectively ignores the
|
|
1007
|
+
authentication in the spec for a single request.
|
|
1008
|
+
:type _request_auth: dict, optional
|
|
1009
|
+
:param _content_type: force content-type for the request.
|
|
1010
|
+
:type _content_type: str, Optional
|
|
1011
|
+
:param _headers: set to override the headers for a single
|
|
1012
|
+
request; this effectively ignores the headers
|
|
1013
|
+
in the spec for a single request.
|
|
1014
|
+
:type _headers: dict, optional
|
|
1015
|
+
:param _host_index: set to override the host_index for a single
|
|
1016
|
+
request; this effectively ignores the host_index
|
|
1017
|
+
in the spec for a single request.
|
|
1018
|
+
:type _host_index: int, optional
|
|
1019
|
+
:return: Returns the result object.
|
|
1020
|
+
""" # noqa: E501
|
|
1021
|
+
|
|
1022
|
+
_param = self._benchmark_benchmark_id_leaderboards_get_serialize(
|
|
1023
|
+
benchmark_id=benchmark_id,
|
|
1024
|
+
request=request,
|
|
1025
|
+
_request_auth=_request_auth,
|
|
1026
|
+
_content_type=_content_type,
|
|
1027
|
+
_headers=_headers,
|
|
1028
|
+
_host_index=_host_index
|
|
1029
|
+
)
|
|
1030
|
+
|
|
1031
|
+
_response_types_map: Dict[str, Optional[str]] = {
|
|
1032
|
+
'200': "PagedResultOfLeaderboardsQueryResult",
|
|
1033
|
+
}
|
|
1034
|
+
response_data = self.api_client.call_api(
|
|
1035
|
+
*_param,
|
|
1036
|
+
_request_timeout=_request_timeout
|
|
1037
|
+
)
|
|
1038
|
+
return response_data.response
|
|
1039
|
+
|
|
1040
|
+
|
|
1041
|
+
def _benchmark_benchmark_id_leaderboards_get_serialize(
|
|
1042
|
+
self,
|
|
1043
|
+
benchmark_id,
|
|
1044
|
+
request,
|
|
1045
|
+
_request_auth,
|
|
1046
|
+
_content_type,
|
|
1047
|
+
_headers,
|
|
1048
|
+
_host_index,
|
|
1049
|
+
) -> RequestSerialized:
|
|
1050
|
+
|
|
1051
|
+
_host = None
|
|
1052
|
+
|
|
1053
|
+
_collection_formats: Dict[str, str] = {
|
|
1054
|
+
}
|
|
1055
|
+
|
|
1056
|
+
_path_params: Dict[str, str] = {}
|
|
1057
|
+
_query_params: List[Tuple[str, str]] = []
|
|
1058
|
+
_header_params: Dict[str, Optional[str]] = _headers or {}
|
|
1059
|
+
_form_params: List[Tuple[str, str]] = []
|
|
1060
|
+
_files: Dict[
|
|
1061
|
+
str, Union[str, bytes, List[str], List[bytes], List[Tuple[str, bytes]]]
|
|
1062
|
+
] = {}
|
|
1063
|
+
_body_params: Optional[bytes] = None
|
|
1064
|
+
|
|
1065
|
+
# process the path parameters
|
|
1066
|
+
if benchmark_id is not None:
|
|
1067
|
+
_path_params['benchmarkId'] = benchmark_id
|
|
1068
|
+
# process the query parameters
|
|
1069
|
+
if request is not None:
|
|
1070
|
+
|
|
1071
|
+
_query_params.append(('request', request))
|
|
1072
|
+
|
|
1073
|
+
# process the header parameters
|
|
1074
|
+
# process the form parameters
|
|
1075
|
+
# process the body parameter
|
|
1076
|
+
|
|
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
|
+
)
|
|
1087
|
+
|
|
1088
|
+
|
|
1089
|
+
# authentication setting
|
|
1090
|
+
_auth_settings: List[str] = [
|
|
1091
|
+
'OAuth2',
|
|
1092
|
+
'OpenIdConnect',
|
|
1093
|
+
'Bearer'
|
|
1094
|
+
]
|
|
1095
|
+
|
|
1096
|
+
return self.api_client.param_serialize(
|
|
1097
|
+
method='GET',
|
|
1098
|
+
resource_path='/benchmark/{benchmarkId}/leaderboards',
|
|
1099
|
+
path_params=_path_params,
|
|
1100
|
+
query_params=_query_params,
|
|
1101
|
+
header_params=_header_params,
|
|
1102
|
+
body=_body_params,
|
|
1103
|
+
post_params=_form_params,
|
|
1104
|
+
files=_files,
|
|
1105
|
+
auth_settings=_auth_settings,
|
|
1106
|
+
collection_formats=_collection_formats,
|
|
1107
|
+
_host=_host,
|
|
1108
|
+
_request_auth=_request_auth
|
|
1109
|
+
)
|
|
1110
|
+
|
|
1111
|
+
|
|
1112
|
+
|
|
1113
|
+
|
|
1114
|
+
@validate_call
|
|
1115
|
+
def benchmark_benchmark_id_participants_get(
|
|
1116
|
+
self,
|
|
1117
|
+
benchmark_id: StrictStr,
|
|
1118
|
+
_request_timeout: Union[
|
|
1119
|
+
None,
|
|
1120
|
+
Annotated[StrictFloat, Field(gt=0)],
|
|
1121
|
+
Tuple[
|
|
1122
|
+
Annotated[StrictFloat, Field(gt=0)],
|
|
1123
|
+
Annotated[StrictFloat, Field(gt=0)]
|
|
1124
|
+
]
|
|
1125
|
+
] = None,
|
|
1126
|
+
_request_auth: Optional[Dict[StrictStr, Any]] = None,
|
|
1127
|
+
_content_type: Optional[StrictStr] = None,
|
|
1128
|
+
_headers: Optional[Dict[StrictStr, Any]] = None,
|
|
1129
|
+
_host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
|
|
1130
|
+
) -> PagedResultOfParticipantByBenchmark:
|
|
1131
|
+
"""Query all participants within a benchmark
|
|
1132
|
+
|
|
1133
|
+
|
|
1134
|
+
:param benchmark_id: (required)
|
|
1135
|
+
:type benchmark_id: str
|
|
1136
|
+
:param _request_timeout: timeout setting for this request. If one
|
|
1137
|
+
number provided, it will be total request
|
|
1138
|
+
timeout. It can also be a pair (tuple) of
|
|
1139
|
+
(connection, read) timeouts.
|
|
1140
|
+
:type _request_timeout: int, tuple(int, int), optional
|
|
1141
|
+
:param _request_auth: set to override the auth_settings for an a single
|
|
1142
|
+
request; this effectively ignores the
|
|
1143
|
+
authentication in the spec for a single request.
|
|
1144
|
+
:type _request_auth: dict, optional
|
|
1145
|
+
:param _content_type: force content-type for the request.
|
|
1146
|
+
:type _content_type: str, Optional
|
|
1147
|
+
:param _headers: set to override the headers for a single
|
|
1148
|
+
request; this effectively ignores the headers
|
|
1149
|
+
in the spec for a single request.
|
|
1150
|
+
:type _headers: dict, optional
|
|
1151
|
+
:param _host_index: set to override the host_index for a single
|
|
1152
|
+
request; this effectively ignores the host_index
|
|
1153
|
+
in the spec for a single request.
|
|
1154
|
+
:type _host_index: int, optional
|
|
1155
|
+
:return: Returns the result object.
|
|
1156
|
+
""" # noqa: E501
|
|
1157
|
+
|
|
1158
|
+
_param = self._benchmark_benchmark_id_participants_get_serialize(
|
|
1159
|
+
benchmark_id=benchmark_id,
|
|
1160
|
+
_request_auth=_request_auth,
|
|
1161
|
+
_content_type=_content_type,
|
|
1162
|
+
_headers=_headers,
|
|
1163
|
+
_host_index=_host_index
|
|
1164
|
+
)
|
|
1165
|
+
|
|
1166
|
+
_response_types_map: Dict[str, Optional[str]] = {
|
|
1167
|
+
'200': "PagedResultOfParticipantByBenchmark",
|
|
1168
|
+
}
|
|
1169
|
+
response_data = self.api_client.call_api(
|
|
1170
|
+
*_param,
|
|
1171
|
+
_request_timeout=_request_timeout
|
|
1172
|
+
)
|
|
1173
|
+
response_data.read()
|
|
1174
|
+
return self.api_client.response_deserialize(
|
|
1175
|
+
response_data=response_data,
|
|
1176
|
+
response_types_map=_response_types_map,
|
|
1177
|
+
).data
|
|
1178
|
+
|
|
1179
|
+
|
|
1180
|
+
@validate_call
|
|
1181
|
+
def benchmark_benchmark_id_participants_get_with_http_info(
|
|
1182
|
+
self,
|
|
1183
|
+
benchmark_id: StrictStr,
|
|
1184
|
+
_request_timeout: Union[
|
|
1185
|
+
None,
|
|
1186
|
+
Annotated[StrictFloat, Field(gt=0)],
|
|
1187
|
+
Tuple[
|
|
1188
|
+
Annotated[StrictFloat, Field(gt=0)],
|
|
1189
|
+
Annotated[StrictFloat, Field(gt=0)]
|
|
1190
|
+
]
|
|
1191
|
+
] = None,
|
|
1192
|
+
_request_auth: Optional[Dict[StrictStr, Any]] = None,
|
|
1193
|
+
_content_type: Optional[StrictStr] = None,
|
|
1194
|
+
_headers: Optional[Dict[StrictStr, Any]] = None,
|
|
1195
|
+
_host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
|
|
1196
|
+
) -> ApiResponse[PagedResultOfParticipantByBenchmark]:
|
|
1197
|
+
"""Query all participants within a benchmark
|
|
1198
|
+
|
|
1199
|
+
|
|
1200
|
+
:param benchmark_id: (required)
|
|
1201
|
+
:type benchmark_id: str
|
|
1202
|
+
:param _request_timeout: timeout setting for this request. If one
|
|
1203
|
+
number provided, it will be total request
|
|
1204
|
+
timeout. It can also be a pair (tuple) of
|
|
1205
|
+
(connection, read) timeouts.
|
|
1206
|
+
:type _request_timeout: int, tuple(int, int), optional
|
|
1207
|
+
:param _request_auth: set to override the auth_settings for an a single
|
|
1208
|
+
request; this effectively ignores the
|
|
1209
|
+
authentication in the spec for a single request.
|
|
1210
|
+
:type _request_auth: dict, optional
|
|
1211
|
+
:param _content_type: force content-type for the request.
|
|
1212
|
+
:type _content_type: str, Optional
|
|
1213
|
+
:param _headers: set to override the headers for a single
|
|
1214
|
+
request; this effectively ignores the headers
|
|
1215
|
+
in the spec for a single request.
|
|
1216
|
+
:type _headers: dict, optional
|
|
1217
|
+
:param _host_index: set to override the host_index for a single
|
|
1218
|
+
request; this effectively ignores the host_index
|
|
1219
|
+
in the spec for a single request.
|
|
1220
|
+
:type _host_index: int, optional
|
|
1221
|
+
:return: Returns the result object.
|
|
1222
|
+
""" # noqa: E501
|
|
1223
|
+
|
|
1224
|
+
_param = self._benchmark_benchmark_id_participants_get_serialize(
|
|
1225
|
+
benchmark_id=benchmark_id,
|
|
1226
|
+
_request_auth=_request_auth,
|
|
1227
|
+
_content_type=_content_type,
|
|
1228
|
+
_headers=_headers,
|
|
1229
|
+
_host_index=_host_index
|
|
1230
|
+
)
|
|
1231
|
+
|
|
1232
|
+
_response_types_map: Dict[str, Optional[str]] = {
|
|
1233
|
+
'200': "PagedResultOfParticipantByBenchmark",
|
|
1234
|
+
}
|
|
1235
|
+
response_data = self.api_client.call_api(
|
|
1236
|
+
*_param,
|
|
1237
|
+
_request_timeout=_request_timeout
|
|
1238
|
+
)
|
|
1239
|
+
response_data.read()
|
|
1240
|
+
return self.api_client.response_deserialize(
|
|
1241
|
+
response_data=response_data,
|
|
1242
|
+
response_types_map=_response_types_map,
|
|
1243
|
+
)
|
|
1244
|
+
|
|
1245
|
+
|
|
1246
|
+
@validate_call
|
|
1247
|
+
def benchmark_benchmark_id_participants_get_without_preload_content(
|
|
1248
|
+
self,
|
|
1249
|
+
benchmark_id: StrictStr,
|
|
1250
|
+
_request_timeout: Union[
|
|
1251
|
+
None,
|
|
1252
|
+
Annotated[StrictFloat, Field(gt=0)],
|
|
1253
|
+
Tuple[
|
|
1254
|
+
Annotated[StrictFloat, Field(gt=0)],
|
|
1255
|
+
Annotated[StrictFloat, Field(gt=0)]
|
|
1256
|
+
]
|
|
1257
|
+
] = None,
|
|
1258
|
+
_request_auth: Optional[Dict[StrictStr, Any]] = None,
|
|
1259
|
+
_content_type: Optional[StrictStr] = None,
|
|
1260
|
+
_headers: Optional[Dict[StrictStr, Any]] = None,
|
|
1261
|
+
_host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
|
|
1262
|
+
) -> RESTResponseType:
|
|
1263
|
+
"""Query all participants within a benchmark
|
|
1264
|
+
|
|
1265
|
+
|
|
1266
|
+
:param benchmark_id: (required)
|
|
1267
|
+
:type benchmark_id: str
|
|
1268
|
+
:param _request_timeout: timeout setting for this request. If one
|
|
1269
|
+
number provided, it will be total request
|
|
1270
|
+
timeout. It can also be a pair (tuple) of
|
|
1271
|
+
(connection, read) timeouts.
|
|
1272
|
+
:type _request_timeout: int, tuple(int, int), optional
|
|
1273
|
+
:param _request_auth: set to override the auth_settings for an a single
|
|
1274
|
+
request; this effectively ignores the
|
|
1275
|
+
authentication in the spec for a single request.
|
|
1276
|
+
:type _request_auth: dict, optional
|
|
1277
|
+
:param _content_type: force content-type for the request.
|
|
1278
|
+
:type _content_type: str, Optional
|
|
1279
|
+
:param _headers: set to override the headers for a single
|
|
1280
|
+
request; this effectively ignores the headers
|
|
1281
|
+
in the spec for a single request.
|
|
1282
|
+
:type _headers: dict, optional
|
|
1283
|
+
:param _host_index: set to override the host_index for a single
|
|
1284
|
+
request; this effectively ignores the host_index
|
|
1285
|
+
in the spec for a single request.
|
|
1286
|
+
:type _host_index: int, optional
|
|
1287
|
+
:return: Returns the result object.
|
|
1288
|
+
""" # noqa: E501
|
|
1289
|
+
|
|
1290
|
+
_param = self._benchmark_benchmark_id_participants_get_serialize(
|
|
1291
|
+
benchmark_id=benchmark_id,
|
|
1292
|
+
_request_auth=_request_auth,
|
|
1293
|
+
_content_type=_content_type,
|
|
1294
|
+
_headers=_headers,
|
|
1295
|
+
_host_index=_host_index
|
|
1296
|
+
)
|
|
1297
|
+
|
|
1298
|
+
_response_types_map: Dict[str, Optional[str]] = {
|
|
1299
|
+
'200': "PagedResultOfParticipantByBenchmark",
|
|
1300
|
+
}
|
|
1301
|
+
response_data = self.api_client.call_api(
|
|
1302
|
+
*_param,
|
|
1303
|
+
_request_timeout=_request_timeout
|
|
1304
|
+
)
|
|
1305
|
+
return response_data.response
|
|
1306
|
+
|
|
1307
|
+
|
|
1308
|
+
def _benchmark_benchmark_id_participants_get_serialize(
|
|
1309
|
+
self,
|
|
1310
|
+
benchmark_id,
|
|
1311
|
+
_request_auth,
|
|
1312
|
+
_content_type,
|
|
1313
|
+
_headers,
|
|
1314
|
+
_host_index,
|
|
1315
|
+
) -> RequestSerialized:
|
|
1316
|
+
|
|
1317
|
+
_host = None
|
|
1318
|
+
|
|
1319
|
+
_collection_formats: Dict[str, str] = {
|
|
1320
|
+
}
|
|
1321
|
+
|
|
1322
|
+
_path_params: Dict[str, str] = {}
|
|
1323
|
+
_query_params: List[Tuple[str, str]] = []
|
|
1324
|
+
_header_params: Dict[str, Optional[str]] = _headers or {}
|
|
1325
|
+
_form_params: List[Tuple[str, str]] = []
|
|
1326
|
+
_files: Dict[
|
|
1327
|
+
str, Union[str, bytes, List[str], List[bytes], List[Tuple[str, bytes]]]
|
|
1328
|
+
] = {}
|
|
1329
|
+
_body_params: Optional[bytes] = None
|
|
1330
|
+
|
|
1331
|
+
# process the path parameters
|
|
1332
|
+
if benchmark_id is not None:
|
|
1333
|
+
_path_params['benchmarkId'] = benchmark_id
|
|
1334
|
+
# process the query parameters
|
|
1335
|
+
# process the header parameters
|
|
1336
|
+
# process the form parameters
|
|
1337
|
+
# process the body parameter
|
|
1338
|
+
|
|
1339
|
+
|
|
1340
|
+
# set the HTTP header `Accept`
|
|
1341
|
+
if 'Accept' not in _header_params:
|
|
1342
|
+
_header_params['Accept'] = self.api_client.select_header_accept(
|
|
1343
|
+
[
|
|
1344
|
+
'text/plain',
|
|
1345
|
+
'application/json',
|
|
1346
|
+
'text/json'
|
|
1347
|
+
]
|
|
1348
|
+
)
|
|
1349
|
+
|
|
1350
|
+
|
|
1351
|
+
# authentication setting
|
|
1352
|
+
_auth_settings: List[str] = [
|
|
1353
|
+
'OAuth2',
|
|
1354
|
+
'OpenIdConnect',
|
|
1355
|
+
'Bearer'
|
|
1356
|
+
]
|
|
1357
|
+
|
|
1358
|
+
return self.api_client.param_serialize(
|
|
1359
|
+
method='GET',
|
|
1360
|
+
resource_path='/benchmark/{benchmarkId}/participants',
|
|
1361
|
+
path_params=_path_params,
|
|
1362
|
+
query_params=_query_params,
|
|
1363
|
+
header_params=_header_params,
|
|
1364
|
+
body=_body_params,
|
|
1365
|
+
post_params=_form_params,
|
|
1366
|
+
files=_files,
|
|
1367
|
+
auth_settings=_auth_settings,
|
|
1368
|
+
collection_formats=_collection_formats,
|
|
1369
|
+
_host=_host,
|
|
1370
|
+
_request_auth=_request_auth
|
|
1371
|
+
)
|
|
1372
|
+
|
|
1373
|
+
|
|
1374
|
+
|
|
1375
|
+
|
|
1376
|
+
@validate_call
|
|
1377
|
+
def benchmark_benchmark_id_participants_post(
|
|
1378
|
+
self,
|
|
1379
|
+
benchmark_id: StrictStr,
|
|
1380
|
+
create_benchmark_participant_model: CreateBenchmarkParticipantModel,
|
|
1381
|
+
_request_timeout: Union[
|
|
1382
|
+
None,
|
|
1383
|
+
Annotated[StrictFloat, Field(gt=0)],
|
|
1384
|
+
Tuple[
|
|
1385
|
+
Annotated[StrictFloat, Field(gt=0)],
|
|
1386
|
+
Annotated[StrictFloat, Field(gt=0)]
|
|
1387
|
+
]
|
|
1388
|
+
] = None,
|
|
1389
|
+
_request_auth: Optional[Dict[StrictStr, Any]] = None,
|
|
1390
|
+
_content_type: Optional[StrictStr] = None,
|
|
1391
|
+
_headers: Optional[Dict[StrictStr, Any]] = None,
|
|
1392
|
+
_host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
|
|
1393
|
+
) -> CreateBenchmarkParticipantResult:
|
|
1394
|
+
"""Creates a participant in a benchmark.
|
|
1395
|
+
|
|
1396
|
+
|
|
1397
|
+
:param benchmark_id: (required)
|
|
1398
|
+
:type benchmark_id: str
|
|
1399
|
+
:param create_benchmark_participant_model: (required)
|
|
1400
|
+
:type create_benchmark_participant_model: CreateBenchmarkParticipantModel
|
|
1401
|
+
:param _request_timeout: timeout setting for this request. If one
|
|
1402
|
+
number provided, it will be total request
|
|
1403
|
+
timeout. It can also be a pair (tuple) of
|
|
1404
|
+
(connection, read) timeouts.
|
|
1405
|
+
:type _request_timeout: int, tuple(int, int), optional
|
|
1406
|
+
:param _request_auth: set to override the auth_settings for an a single
|
|
1407
|
+
request; this effectively ignores the
|
|
1408
|
+
authentication in the spec for a single request.
|
|
1409
|
+
:type _request_auth: dict, optional
|
|
1410
|
+
:param _content_type: force content-type for the request.
|
|
1411
|
+
:type _content_type: str, Optional
|
|
1412
|
+
:param _headers: set to override the headers for a single
|
|
1413
|
+
request; this effectively ignores the headers
|
|
1414
|
+
in the spec for a single request.
|
|
1415
|
+
:type _headers: dict, optional
|
|
1416
|
+
:param _host_index: set to override the host_index for a single
|
|
1417
|
+
request; this effectively ignores the host_index
|
|
1418
|
+
in the spec for a single request.
|
|
1419
|
+
:type _host_index: int, optional
|
|
1420
|
+
:return: Returns the result object.
|
|
1421
|
+
""" # noqa: E501
|
|
1422
|
+
|
|
1423
|
+
_param = self._benchmark_benchmark_id_participants_post_serialize(
|
|
1424
|
+
benchmark_id=benchmark_id,
|
|
1425
|
+
create_benchmark_participant_model=create_benchmark_participant_model,
|
|
1426
|
+
_request_auth=_request_auth,
|
|
1427
|
+
_content_type=_content_type,
|
|
1428
|
+
_headers=_headers,
|
|
1429
|
+
_host_index=_host_index
|
|
1430
|
+
)
|
|
1431
|
+
|
|
1432
|
+
_response_types_map: Dict[str, Optional[str]] = {
|
|
1433
|
+
'200': "CreateBenchmarkParticipantResult",
|
|
1434
|
+
}
|
|
1435
|
+
response_data = self.api_client.call_api(
|
|
1436
|
+
*_param,
|
|
1437
|
+
_request_timeout=_request_timeout
|
|
1438
|
+
)
|
|
1439
|
+
response_data.read()
|
|
1440
|
+
return self.api_client.response_deserialize(
|
|
1441
|
+
response_data=response_data,
|
|
1442
|
+
response_types_map=_response_types_map,
|
|
1443
|
+
).data
|
|
1444
|
+
|
|
1445
|
+
|
|
1446
|
+
@validate_call
|
|
1447
|
+
def benchmark_benchmark_id_participants_post_with_http_info(
|
|
1448
|
+
self,
|
|
1449
|
+
benchmark_id: StrictStr,
|
|
1450
|
+
create_benchmark_participant_model: CreateBenchmarkParticipantModel,
|
|
1451
|
+
_request_timeout: Union[
|
|
1452
|
+
None,
|
|
1453
|
+
Annotated[StrictFloat, Field(gt=0)],
|
|
1454
|
+
Tuple[
|
|
1455
|
+
Annotated[StrictFloat, Field(gt=0)],
|
|
1456
|
+
Annotated[StrictFloat, Field(gt=0)]
|
|
1457
|
+
]
|
|
1458
|
+
] = None,
|
|
1459
|
+
_request_auth: Optional[Dict[StrictStr, Any]] = None,
|
|
1460
|
+
_content_type: Optional[StrictStr] = None,
|
|
1461
|
+
_headers: Optional[Dict[StrictStr, Any]] = None,
|
|
1462
|
+
_host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
|
|
1463
|
+
) -> ApiResponse[CreateBenchmarkParticipantResult]:
|
|
1464
|
+
"""Creates a participant in a benchmark.
|
|
1465
|
+
|
|
1466
|
+
|
|
1467
|
+
:param benchmark_id: (required)
|
|
1468
|
+
:type benchmark_id: str
|
|
1469
|
+
:param create_benchmark_participant_model: (required)
|
|
1470
|
+
:type create_benchmark_participant_model: CreateBenchmarkParticipantModel
|
|
1471
|
+
:param _request_timeout: timeout setting for this request. If one
|
|
1472
|
+
number provided, it will be total request
|
|
1473
|
+
timeout. It can also be a pair (tuple) of
|
|
1474
|
+
(connection, read) timeouts.
|
|
1475
|
+
:type _request_timeout: int, tuple(int, int), optional
|
|
1476
|
+
:param _request_auth: set to override the auth_settings for an a single
|
|
1477
|
+
request; this effectively ignores the
|
|
1478
|
+
authentication in the spec for a single request.
|
|
1479
|
+
:type _request_auth: dict, optional
|
|
1480
|
+
:param _content_type: force content-type for the request.
|
|
1481
|
+
:type _content_type: str, Optional
|
|
1482
|
+
:param _headers: set to override the headers for a single
|
|
1483
|
+
request; this effectively ignores the headers
|
|
1484
|
+
in the spec for a single request.
|
|
1485
|
+
:type _headers: dict, optional
|
|
1486
|
+
:param _host_index: set to override the host_index for a single
|
|
1487
|
+
request; this effectively ignores the host_index
|
|
1488
|
+
in the spec for a single request.
|
|
1489
|
+
:type _host_index: int, optional
|
|
1490
|
+
:return: Returns the result object.
|
|
1491
|
+
""" # noqa: E501
|
|
1492
|
+
|
|
1493
|
+
_param = self._benchmark_benchmark_id_participants_post_serialize(
|
|
1494
|
+
benchmark_id=benchmark_id,
|
|
1495
|
+
create_benchmark_participant_model=create_benchmark_participant_model,
|
|
1496
|
+
_request_auth=_request_auth,
|
|
1497
|
+
_content_type=_content_type,
|
|
1498
|
+
_headers=_headers,
|
|
1499
|
+
_host_index=_host_index
|
|
1500
|
+
)
|
|
1501
|
+
|
|
1502
|
+
_response_types_map: Dict[str, Optional[str]] = {
|
|
1503
|
+
'200': "CreateBenchmarkParticipantResult",
|
|
1504
|
+
}
|
|
1505
|
+
response_data = self.api_client.call_api(
|
|
1506
|
+
*_param,
|
|
1507
|
+
_request_timeout=_request_timeout
|
|
1508
|
+
)
|
|
1509
|
+
response_data.read()
|
|
1510
|
+
return self.api_client.response_deserialize(
|
|
1511
|
+
response_data=response_data,
|
|
1512
|
+
response_types_map=_response_types_map,
|
|
1513
|
+
)
|
|
1514
|
+
|
|
1515
|
+
|
|
1516
|
+
@validate_call
|
|
1517
|
+
def benchmark_benchmark_id_participants_post_without_preload_content(
|
|
1518
|
+
self,
|
|
1519
|
+
benchmark_id: StrictStr,
|
|
1520
|
+
create_benchmark_participant_model: CreateBenchmarkParticipantModel,
|
|
1521
|
+
_request_timeout: Union[
|
|
1522
|
+
None,
|
|
1523
|
+
Annotated[StrictFloat, Field(gt=0)],
|
|
1524
|
+
Tuple[
|
|
1525
|
+
Annotated[StrictFloat, Field(gt=0)],
|
|
1526
|
+
Annotated[StrictFloat, Field(gt=0)]
|
|
1527
|
+
]
|
|
1528
|
+
] = None,
|
|
1529
|
+
_request_auth: Optional[Dict[StrictStr, Any]] = None,
|
|
1530
|
+
_content_type: Optional[StrictStr] = None,
|
|
1531
|
+
_headers: Optional[Dict[StrictStr, Any]] = None,
|
|
1532
|
+
_host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
|
|
1533
|
+
) -> RESTResponseType:
|
|
1534
|
+
"""Creates a participant in a benchmark.
|
|
1535
|
+
|
|
1536
|
+
|
|
1537
|
+
:param benchmark_id: (required)
|
|
1538
|
+
:type benchmark_id: str
|
|
1539
|
+
:param create_benchmark_participant_model: (required)
|
|
1540
|
+
:type create_benchmark_participant_model: CreateBenchmarkParticipantModel
|
|
1541
|
+
:param _request_timeout: timeout setting for this request. If one
|
|
1542
|
+
number provided, it will be total request
|
|
1543
|
+
timeout. It can also be a pair (tuple) of
|
|
1544
|
+
(connection, read) timeouts.
|
|
1545
|
+
:type _request_timeout: int, tuple(int, int), optional
|
|
1546
|
+
:param _request_auth: set to override the auth_settings for an a single
|
|
1547
|
+
request; this effectively ignores the
|
|
1548
|
+
authentication in the spec for a single request.
|
|
1549
|
+
:type _request_auth: dict, optional
|
|
1550
|
+
:param _content_type: force content-type for the request.
|
|
1551
|
+
:type _content_type: str, Optional
|
|
1552
|
+
:param _headers: set to override the headers for a single
|
|
1553
|
+
request; this effectively ignores the headers
|
|
1554
|
+
in the spec for a single request.
|
|
1555
|
+
:type _headers: dict, optional
|
|
1556
|
+
:param _host_index: set to override the host_index for a single
|
|
1557
|
+
request; this effectively ignores the host_index
|
|
1558
|
+
in the spec for a single request.
|
|
1559
|
+
:type _host_index: int, optional
|
|
1560
|
+
:return: Returns the result object.
|
|
1561
|
+
""" # noqa: E501
|
|
1562
|
+
|
|
1563
|
+
_param = self._benchmark_benchmark_id_participants_post_serialize(
|
|
1564
|
+
benchmark_id=benchmark_id,
|
|
1565
|
+
create_benchmark_participant_model=create_benchmark_participant_model,
|
|
1566
|
+
_request_auth=_request_auth,
|
|
1567
|
+
_content_type=_content_type,
|
|
1568
|
+
_headers=_headers,
|
|
1569
|
+
_host_index=_host_index
|
|
1570
|
+
)
|
|
1571
|
+
|
|
1572
|
+
_response_types_map: Dict[str, Optional[str]] = {
|
|
1573
|
+
'200': "CreateBenchmarkParticipantResult",
|
|
1574
|
+
}
|
|
1575
|
+
response_data = self.api_client.call_api(
|
|
1576
|
+
*_param,
|
|
1577
|
+
_request_timeout=_request_timeout
|
|
1578
|
+
)
|
|
1579
|
+
return response_data.response
|
|
1580
|
+
|
|
1581
|
+
|
|
1582
|
+
def _benchmark_benchmark_id_participants_post_serialize(
|
|
1583
|
+
self,
|
|
1584
|
+
benchmark_id,
|
|
1585
|
+
create_benchmark_participant_model,
|
|
1586
|
+
_request_auth,
|
|
1587
|
+
_content_type,
|
|
1588
|
+
_headers,
|
|
1589
|
+
_host_index,
|
|
1590
|
+
) -> RequestSerialized:
|
|
1591
|
+
|
|
1592
|
+
_host = None
|
|
1593
|
+
|
|
1594
|
+
_collection_formats: Dict[str, str] = {
|
|
1595
|
+
}
|
|
1596
|
+
|
|
1597
|
+
_path_params: Dict[str, str] = {}
|
|
1598
|
+
_query_params: List[Tuple[str, str]] = []
|
|
1599
|
+
_header_params: Dict[str, Optional[str]] = _headers or {}
|
|
1600
|
+
_form_params: List[Tuple[str, str]] = []
|
|
1601
|
+
_files: Dict[
|
|
1602
|
+
str, Union[str, bytes, List[str], List[bytes], List[Tuple[str, bytes]]]
|
|
1603
|
+
] = {}
|
|
1604
|
+
_body_params: Optional[bytes] = None
|
|
1605
|
+
|
|
1606
|
+
# process the path parameters
|
|
1607
|
+
if benchmark_id is not None:
|
|
1608
|
+
_path_params['benchmarkId'] = benchmark_id
|
|
1609
|
+
# process the query parameters
|
|
1610
|
+
# process the header parameters
|
|
1611
|
+
# process the form parameters
|
|
1612
|
+
# process the body parameter
|
|
1613
|
+
if create_benchmark_participant_model is not None:
|
|
1614
|
+
_body_params = create_benchmark_participant_model
|
|
1615
|
+
|
|
1616
|
+
|
|
1617
|
+
# set the HTTP header `Accept`
|
|
1618
|
+
if 'Accept' not in _header_params:
|
|
1619
|
+
_header_params['Accept'] = self.api_client.select_header_accept(
|
|
1620
|
+
[
|
|
1621
|
+
'text/plain',
|
|
1622
|
+
'application/json',
|
|
1623
|
+
'text/json'
|
|
1624
|
+
]
|
|
1625
|
+
)
|
|
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
|
|
1642
|
+
|
|
1643
|
+
# authentication setting
|
|
1644
|
+
_auth_settings: List[str] = [
|
|
1645
|
+
'OAuth2',
|
|
1646
|
+
'OpenIdConnect',
|
|
1647
|
+
'Bearer'
|
|
1648
|
+
]
|
|
1649
|
+
|
|
1650
|
+
return self.api_client.param_serialize(
|
|
1651
|
+
method='POST',
|
|
1652
|
+
resource_path='/benchmark/{benchmarkId}/participants',
|
|
1653
|
+
path_params=_path_params,
|
|
1654
|
+
query_params=_query_params,
|
|
1655
|
+
header_params=_header_params,
|
|
1656
|
+
body=_body_params,
|
|
1657
|
+
post_params=_form_params,
|
|
1658
|
+
files=_files,
|
|
1659
|
+
auth_settings=_auth_settings,
|
|
1660
|
+
collection_formats=_collection_formats,
|
|
1661
|
+
_host=_host,
|
|
1662
|
+
_request_auth=_request_auth
|
|
1663
|
+
)
|
|
1664
|
+
|
|
1665
|
+
|
|
1666
|
+
|
|
1667
|
+
|
|
1668
|
+
@validate_call
|
|
1669
|
+
def benchmark_benchmark_id_patch(
|
|
1670
|
+
self,
|
|
1671
|
+
benchmark_id: StrictStr,
|
|
1672
|
+
update_benchmark_model: UpdateBenchmarkModel,
|
|
1673
|
+
_request_timeout: Union[
|
|
1674
|
+
None,
|
|
1675
|
+
Annotated[StrictFloat, Field(gt=0)],
|
|
1676
|
+
Tuple[
|
|
1677
|
+
Annotated[StrictFloat, Field(gt=0)],
|
|
1678
|
+
Annotated[StrictFloat, Field(gt=0)]
|
|
1679
|
+
]
|
|
1680
|
+
] = None,
|
|
1681
|
+
_request_auth: Optional[Dict[StrictStr, Any]] = None,
|
|
1682
|
+
_content_type: Optional[StrictStr] = None,
|
|
1683
|
+
_headers: Optional[Dict[StrictStr, Any]] = None,
|
|
1684
|
+
_host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
|
|
1685
|
+
) -> None:
|
|
1686
|
+
"""Updates a benchmark using patch semantics.
|
|
1687
|
+
|
|
1688
|
+
|
|
1689
|
+
:param benchmark_id: (required)
|
|
1690
|
+
:type benchmark_id: str
|
|
1691
|
+
:param update_benchmark_model: (required)
|
|
1692
|
+
:type update_benchmark_model: UpdateBenchmarkModel
|
|
1693
|
+
:param _request_timeout: timeout setting for this request. If one
|
|
1694
|
+
number provided, it will be total request
|
|
1695
|
+
timeout. It can also be a pair (tuple) of
|
|
1696
|
+
(connection, read) timeouts.
|
|
1697
|
+
:type _request_timeout: int, tuple(int, int), optional
|
|
1698
|
+
:param _request_auth: set to override the auth_settings for an a single
|
|
1699
|
+
request; this effectively ignores the
|
|
1700
|
+
authentication in the spec for a single request.
|
|
1701
|
+
:type _request_auth: dict, optional
|
|
1702
|
+
:param _content_type: force content-type for the request.
|
|
1703
|
+
:type _content_type: str, Optional
|
|
1704
|
+
:param _headers: set to override the headers for a single
|
|
1705
|
+
request; this effectively ignores the headers
|
|
1706
|
+
in the spec for a single request.
|
|
1707
|
+
:type _headers: dict, optional
|
|
1708
|
+
:param _host_index: set to override the host_index for a single
|
|
1709
|
+
request; this effectively ignores the host_index
|
|
1710
|
+
in the spec for a single request.
|
|
1711
|
+
:type _host_index: int, optional
|
|
1712
|
+
:return: Returns the result object.
|
|
1713
|
+
""" # noqa: E501
|
|
1714
|
+
|
|
1715
|
+
_param = self._benchmark_benchmark_id_patch_serialize(
|
|
1716
|
+
benchmark_id=benchmark_id,
|
|
1717
|
+
update_benchmark_model=update_benchmark_model,
|
|
1718
|
+
_request_auth=_request_auth,
|
|
1719
|
+
_content_type=_content_type,
|
|
1720
|
+
_headers=_headers,
|
|
1721
|
+
_host_index=_host_index
|
|
1722
|
+
)
|
|
1723
|
+
|
|
1724
|
+
_response_types_map: Dict[str, Optional[str]] = {
|
|
1725
|
+
'204': None,
|
|
1726
|
+
}
|
|
1727
|
+
response_data = self.api_client.call_api(
|
|
1728
|
+
*_param,
|
|
1729
|
+
_request_timeout=_request_timeout
|
|
1730
|
+
)
|
|
1731
|
+
response_data.read()
|
|
1732
|
+
return self.api_client.response_deserialize(
|
|
1733
|
+
response_data=response_data,
|
|
1734
|
+
response_types_map=_response_types_map,
|
|
1735
|
+
).data
|
|
1736
|
+
|
|
1737
|
+
|
|
1738
|
+
@validate_call
|
|
1739
|
+
def benchmark_benchmark_id_patch_with_http_info(
|
|
1740
|
+
self,
|
|
1741
|
+
benchmark_id: StrictStr,
|
|
1742
|
+
update_benchmark_model: UpdateBenchmarkModel,
|
|
1743
|
+
_request_timeout: Union[
|
|
1744
|
+
None,
|
|
1745
|
+
Annotated[StrictFloat, Field(gt=0)],
|
|
1746
|
+
Tuple[
|
|
1747
|
+
Annotated[StrictFloat, Field(gt=0)],
|
|
1748
|
+
Annotated[StrictFloat, Field(gt=0)]
|
|
1749
|
+
]
|
|
1750
|
+
] = None,
|
|
1751
|
+
_request_auth: Optional[Dict[StrictStr, Any]] = None,
|
|
1752
|
+
_content_type: Optional[StrictStr] = None,
|
|
1753
|
+
_headers: Optional[Dict[StrictStr, Any]] = None,
|
|
1754
|
+
_host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
|
|
1755
|
+
) -> ApiResponse[None]:
|
|
1756
|
+
"""Updates a benchmark using patch semantics.
|
|
1757
|
+
|
|
1758
|
+
|
|
1759
|
+
:param benchmark_id: (required)
|
|
1760
|
+
:type benchmark_id: str
|
|
1761
|
+
:param update_benchmark_model: (required)
|
|
1762
|
+
:type update_benchmark_model: UpdateBenchmarkModel
|
|
1763
|
+
:param _request_timeout: timeout setting for this request. If one
|
|
1764
|
+
number provided, it will be total request
|
|
1765
|
+
timeout. It can also be a pair (tuple) of
|
|
1766
|
+
(connection, read) timeouts.
|
|
1767
|
+
:type _request_timeout: int, tuple(int, int), optional
|
|
1768
|
+
:param _request_auth: set to override the auth_settings for an a single
|
|
1769
|
+
request; this effectively ignores the
|
|
1770
|
+
authentication in the spec for a single request.
|
|
1771
|
+
:type _request_auth: dict, optional
|
|
1772
|
+
:param _content_type: force content-type for the request.
|
|
1773
|
+
:type _content_type: str, Optional
|
|
1774
|
+
:param _headers: set to override the headers for a single
|
|
1775
|
+
request; this effectively ignores the headers
|
|
1776
|
+
in the spec for a single request.
|
|
1777
|
+
:type _headers: dict, optional
|
|
1778
|
+
:param _host_index: set to override the host_index for a single
|
|
1779
|
+
request; this effectively ignores the host_index
|
|
1780
|
+
in the spec for a single request.
|
|
1781
|
+
:type _host_index: int, optional
|
|
1782
|
+
:return: Returns the result object.
|
|
1783
|
+
""" # noqa: E501
|
|
1784
|
+
|
|
1785
|
+
_param = self._benchmark_benchmark_id_patch_serialize(
|
|
1786
|
+
benchmark_id=benchmark_id,
|
|
1787
|
+
update_benchmark_model=update_benchmark_model,
|
|
1788
|
+
_request_auth=_request_auth,
|
|
1789
|
+
_content_type=_content_type,
|
|
1790
|
+
_headers=_headers,
|
|
1791
|
+
_host_index=_host_index
|
|
1792
|
+
)
|
|
1793
|
+
|
|
1794
|
+
_response_types_map: Dict[str, Optional[str]] = {
|
|
1795
|
+
'204': None,
|
|
1796
|
+
}
|
|
1797
|
+
response_data = self.api_client.call_api(
|
|
1798
|
+
*_param,
|
|
1799
|
+
_request_timeout=_request_timeout
|
|
1800
|
+
)
|
|
1801
|
+
response_data.read()
|
|
1802
|
+
return self.api_client.response_deserialize(
|
|
1803
|
+
response_data=response_data,
|
|
1804
|
+
response_types_map=_response_types_map,
|
|
1805
|
+
)
|
|
1806
|
+
|
|
1807
|
+
|
|
1808
|
+
@validate_call
|
|
1809
|
+
def benchmark_benchmark_id_patch_without_preload_content(
|
|
1810
|
+
self,
|
|
1811
|
+
benchmark_id: StrictStr,
|
|
1812
|
+
update_benchmark_model: UpdateBenchmarkModel,
|
|
1813
|
+
_request_timeout: Union[
|
|
1814
|
+
None,
|
|
1815
|
+
Annotated[StrictFloat, Field(gt=0)],
|
|
1816
|
+
Tuple[
|
|
1817
|
+
Annotated[StrictFloat, Field(gt=0)],
|
|
1818
|
+
Annotated[StrictFloat, Field(gt=0)]
|
|
1819
|
+
]
|
|
1820
|
+
] = None,
|
|
1821
|
+
_request_auth: Optional[Dict[StrictStr, Any]] = None,
|
|
1822
|
+
_content_type: Optional[StrictStr] = None,
|
|
1823
|
+
_headers: Optional[Dict[StrictStr, Any]] = None,
|
|
1824
|
+
_host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
|
|
1825
|
+
) -> RESTResponseType:
|
|
1826
|
+
"""Updates a benchmark using patch semantics.
|
|
1827
|
+
|
|
1828
|
+
|
|
1829
|
+
:param benchmark_id: (required)
|
|
1830
|
+
:type benchmark_id: str
|
|
1831
|
+
:param update_benchmark_model: (required)
|
|
1832
|
+
:type update_benchmark_model: UpdateBenchmarkModel
|
|
1833
|
+
:param _request_timeout: timeout setting for this request. If one
|
|
1834
|
+
number provided, it will be total request
|
|
1835
|
+
timeout. It can also be a pair (tuple) of
|
|
1836
|
+
(connection, read) timeouts.
|
|
1837
|
+
:type _request_timeout: int, tuple(int, int), optional
|
|
1838
|
+
:param _request_auth: set to override the auth_settings for an a single
|
|
1839
|
+
request; this effectively ignores the
|
|
1840
|
+
authentication in the spec for a single request.
|
|
1841
|
+
:type _request_auth: dict, optional
|
|
1842
|
+
:param _content_type: force content-type for the request.
|
|
1843
|
+
:type _content_type: str, Optional
|
|
1844
|
+
:param _headers: set to override the headers for a single
|
|
1845
|
+
request; this effectively ignores the headers
|
|
1846
|
+
in the spec for a single request.
|
|
1847
|
+
:type _headers: dict, optional
|
|
1848
|
+
:param _host_index: set to override the host_index for a single
|
|
1849
|
+
request; this effectively ignores the host_index
|
|
1850
|
+
in the spec for a single request.
|
|
1851
|
+
:type _host_index: int, optional
|
|
1852
|
+
:return: Returns the result object.
|
|
1853
|
+
""" # noqa: E501
|
|
1854
|
+
|
|
1855
|
+
_param = self._benchmark_benchmark_id_patch_serialize(
|
|
1856
|
+
benchmark_id=benchmark_id,
|
|
1857
|
+
update_benchmark_model=update_benchmark_model,
|
|
1858
|
+
_request_auth=_request_auth,
|
|
1859
|
+
_content_type=_content_type,
|
|
1860
|
+
_headers=_headers,
|
|
1861
|
+
_host_index=_host_index
|
|
1862
|
+
)
|
|
1863
|
+
|
|
1864
|
+
_response_types_map: Dict[str, Optional[str]] = {
|
|
1865
|
+
'204': None,
|
|
1866
|
+
}
|
|
1867
|
+
response_data = self.api_client.call_api(
|
|
1868
|
+
*_param,
|
|
1869
|
+
_request_timeout=_request_timeout
|
|
1870
|
+
)
|
|
1871
|
+
return response_data.response
|
|
1872
|
+
|
|
1873
|
+
|
|
1874
|
+
def _benchmark_benchmark_id_patch_serialize(
|
|
1875
|
+
self,
|
|
1876
|
+
benchmark_id,
|
|
1877
|
+
update_benchmark_model,
|
|
1878
|
+
_request_auth,
|
|
1879
|
+
_content_type,
|
|
1880
|
+
_headers,
|
|
1881
|
+
_host_index,
|
|
1882
|
+
) -> RequestSerialized:
|
|
1883
|
+
|
|
1884
|
+
_host = None
|
|
1885
|
+
|
|
1886
|
+
_collection_formats: Dict[str, str] = {
|
|
1887
|
+
}
|
|
1888
|
+
|
|
1889
|
+
_path_params: Dict[str, str] = {}
|
|
1890
|
+
_query_params: List[Tuple[str, str]] = []
|
|
1891
|
+
_header_params: Dict[str, Optional[str]] = _headers or {}
|
|
1892
|
+
_form_params: List[Tuple[str, str]] = []
|
|
1893
|
+
_files: Dict[
|
|
1894
|
+
str, Union[str, bytes, List[str], List[bytes], List[Tuple[str, bytes]]]
|
|
1895
|
+
] = {}
|
|
1896
|
+
_body_params: Optional[bytes] = None
|
|
1897
|
+
|
|
1898
|
+
# process the path parameters
|
|
1899
|
+
if benchmark_id is not None:
|
|
1900
|
+
_path_params['benchmarkId'] = benchmark_id
|
|
1901
|
+
# process the query parameters
|
|
1902
|
+
# process the header parameters
|
|
1903
|
+
# process the form parameters
|
|
1904
|
+
# process the body parameter
|
|
1905
|
+
if update_benchmark_model is not None:
|
|
1906
|
+
_body_params = update_benchmark_model
|
|
1907
|
+
|
|
1908
|
+
|
|
1909
|
+
|
|
1910
|
+
# set the HTTP header `Content-Type`
|
|
1911
|
+
if _content_type:
|
|
1912
|
+
_header_params['Content-Type'] = _content_type
|
|
1913
|
+
else:
|
|
1914
|
+
_default_content_type = (
|
|
1915
|
+
self.api_client.select_header_content_type(
|
|
1916
|
+
[
|
|
1917
|
+
'application/json',
|
|
1918
|
+
'text/json',
|
|
1919
|
+
'application/*+json'
|
|
1920
|
+
]
|
|
1921
|
+
)
|
|
1922
|
+
)
|
|
1923
|
+
if _default_content_type is not None:
|
|
1924
|
+
_header_params['Content-Type'] = _default_content_type
|
|
1925
|
+
|
|
1926
|
+
# authentication setting
|
|
1927
|
+
_auth_settings: List[str] = [
|
|
1928
|
+
'OAuth2',
|
|
1929
|
+
'OpenIdConnect',
|
|
1930
|
+
'Bearer'
|
|
1931
|
+
]
|
|
1932
|
+
|
|
1933
|
+
return self.api_client.param_serialize(
|
|
1934
|
+
method='PATCH',
|
|
1935
|
+
resource_path='/benchmark/{benchmarkId}',
|
|
1936
|
+
path_params=_path_params,
|
|
1937
|
+
query_params=_query_params,
|
|
1938
|
+
header_params=_header_params,
|
|
1939
|
+
body=_body_params,
|
|
1940
|
+
post_params=_form_params,
|
|
1941
|
+
files=_files,
|
|
1942
|
+
auth_settings=_auth_settings,
|
|
1943
|
+
collection_formats=_collection_formats,
|
|
1944
|
+
_host=_host,
|
|
1945
|
+
_request_auth=_request_auth
|
|
1946
|
+
)
|
|
1947
|
+
|
|
1948
|
+
|
|
1949
|
+
|
|
1950
|
+
|
|
1951
|
+
@validate_call
|
|
1952
|
+
def benchmark_benchmark_id_prompt_post(
|
|
1953
|
+
self,
|
|
1954
|
+
benchmark_id: Annotated[StrictStr, Field(description="The benchmark id.")],
|
|
1955
|
+
submit_prompt_model: SubmitPromptModel,
|
|
1956
|
+
_request_timeout: Union[
|
|
1957
|
+
None,
|
|
1958
|
+
Annotated[StrictFloat, Field(gt=0)],
|
|
1959
|
+
Tuple[
|
|
1960
|
+
Annotated[StrictFloat, Field(gt=0)],
|
|
1961
|
+
Annotated[StrictFloat, Field(gt=0)]
|
|
1962
|
+
]
|
|
1963
|
+
] = None,
|
|
1964
|
+
_request_auth: Optional[Dict[StrictStr, Any]] = None,
|
|
1965
|
+
_content_type: Optional[StrictStr] = None,
|
|
1966
|
+
_headers: Optional[Dict[StrictStr, Any]] = None,
|
|
1967
|
+
_host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
|
|
1968
|
+
) -> CreateBenchmarkPromptResult:
|
|
1969
|
+
"""Adds a new prompt to a benchmark.
|
|
1970
|
+
|
|
1971
|
+
|
|
1972
|
+
:param benchmark_id: The benchmark id. (required)
|
|
1973
|
+
:type benchmark_id: str
|
|
1974
|
+
:param submit_prompt_model: (required)
|
|
1975
|
+
:type submit_prompt_model: SubmitPromptModel
|
|
1976
|
+
:param _request_timeout: timeout setting for this request. If one
|
|
1977
|
+
number provided, it will be total request
|
|
1978
|
+
timeout. It can also be a pair (tuple) of
|
|
1979
|
+
(connection, read) timeouts.
|
|
1980
|
+
:type _request_timeout: int, tuple(int, int), optional
|
|
1981
|
+
:param _request_auth: set to override the auth_settings for an a single
|
|
1982
|
+
request; this effectively ignores the
|
|
1983
|
+
authentication in the spec for a single request.
|
|
1984
|
+
:type _request_auth: dict, optional
|
|
1985
|
+
:param _content_type: force content-type for the request.
|
|
1986
|
+
:type _content_type: str, Optional
|
|
1987
|
+
:param _headers: set to override the headers for a single
|
|
1988
|
+
request; this effectively ignores the headers
|
|
1989
|
+
in the spec for a single request.
|
|
1990
|
+
:type _headers: dict, optional
|
|
1991
|
+
:param _host_index: set to override the host_index for a single
|
|
1992
|
+
request; this effectively ignores the host_index
|
|
1993
|
+
in the spec for a single request.
|
|
1994
|
+
:type _host_index: int, optional
|
|
1995
|
+
:return: Returns the result object.
|
|
1996
|
+
""" # noqa: E501
|
|
1997
|
+
|
|
1998
|
+
_param = self._benchmark_benchmark_id_prompt_post_serialize(
|
|
1999
|
+
benchmark_id=benchmark_id,
|
|
2000
|
+
submit_prompt_model=submit_prompt_model,
|
|
2001
|
+
_request_auth=_request_auth,
|
|
2002
|
+
_content_type=_content_type,
|
|
2003
|
+
_headers=_headers,
|
|
2004
|
+
_host_index=_host_index
|
|
2005
|
+
)
|
|
2006
|
+
|
|
2007
|
+
_response_types_map: Dict[str, Optional[str]] = {
|
|
2008
|
+
'200': "CreateBenchmarkPromptResult",
|
|
2009
|
+
}
|
|
2010
|
+
response_data = self.api_client.call_api(
|
|
2011
|
+
*_param,
|
|
2012
|
+
_request_timeout=_request_timeout
|
|
2013
|
+
)
|
|
2014
|
+
response_data.read()
|
|
2015
|
+
return self.api_client.response_deserialize(
|
|
2016
|
+
response_data=response_data,
|
|
2017
|
+
response_types_map=_response_types_map,
|
|
2018
|
+
).data
|
|
2019
|
+
|
|
2020
|
+
|
|
2021
|
+
@validate_call
|
|
2022
|
+
def benchmark_benchmark_id_prompt_post_with_http_info(
|
|
2023
|
+
self,
|
|
2024
|
+
benchmark_id: Annotated[StrictStr, Field(description="The benchmark id.")],
|
|
2025
|
+
submit_prompt_model: SubmitPromptModel,
|
|
2026
|
+
_request_timeout: Union[
|
|
2027
|
+
None,
|
|
2028
|
+
Annotated[StrictFloat, Field(gt=0)],
|
|
2029
|
+
Tuple[
|
|
2030
|
+
Annotated[StrictFloat, Field(gt=0)],
|
|
2031
|
+
Annotated[StrictFloat, Field(gt=0)]
|
|
2032
|
+
]
|
|
2033
|
+
] = None,
|
|
2034
|
+
_request_auth: Optional[Dict[StrictStr, Any]] = None,
|
|
2035
|
+
_content_type: Optional[StrictStr] = None,
|
|
2036
|
+
_headers: Optional[Dict[StrictStr, Any]] = None,
|
|
2037
|
+
_host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
|
|
2038
|
+
) -> ApiResponse[CreateBenchmarkPromptResult]:
|
|
2039
|
+
"""Adds a new prompt to a benchmark.
|
|
2040
|
+
|
|
2041
|
+
|
|
2042
|
+
:param benchmark_id: The benchmark id. (required)
|
|
2043
|
+
:type benchmark_id: str
|
|
2044
|
+
:param submit_prompt_model: (required)
|
|
2045
|
+
:type submit_prompt_model: SubmitPromptModel
|
|
2046
|
+
:param _request_timeout: timeout setting for this request. If one
|
|
2047
|
+
number provided, it will be total request
|
|
2048
|
+
timeout. It can also be a pair (tuple) of
|
|
2049
|
+
(connection, read) timeouts.
|
|
2050
|
+
:type _request_timeout: int, tuple(int, int), optional
|
|
2051
|
+
:param _request_auth: set to override the auth_settings for an a single
|
|
2052
|
+
request; this effectively ignores the
|
|
2053
|
+
authentication in the spec for a single request.
|
|
2054
|
+
:type _request_auth: dict, optional
|
|
2055
|
+
:param _content_type: force content-type for the request.
|
|
2056
|
+
:type _content_type: str, Optional
|
|
2057
|
+
:param _headers: set to override the headers for a single
|
|
2058
|
+
request; this effectively ignores the headers
|
|
2059
|
+
in the spec for a single request.
|
|
2060
|
+
:type _headers: dict, optional
|
|
2061
|
+
:param _host_index: set to override the host_index for a single
|
|
2062
|
+
request; this effectively ignores the host_index
|
|
2063
|
+
in the spec for a single request.
|
|
2064
|
+
:type _host_index: int, optional
|
|
2065
|
+
:return: Returns the result object.
|
|
2066
|
+
""" # noqa: E501
|
|
2067
|
+
|
|
2068
|
+
_param = self._benchmark_benchmark_id_prompt_post_serialize(
|
|
2069
|
+
benchmark_id=benchmark_id,
|
|
2070
|
+
submit_prompt_model=submit_prompt_model,
|
|
2071
|
+
_request_auth=_request_auth,
|
|
2072
|
+
_content_type=_content_type,
|
|
2073
|
+
_headers=_headers,
|
|
2074
|
+
_host_index=_host_index
|
|
2075
|
+
)
|
|
2076
|
+
|
|
2077
|
+
_response_types_map: Dict[str, Optional[str]] = {
|
|
2078
|
+
'200': "CreateBenchmarkPromptResult",
|
|
2079
|
+
}
|
|
2080
|
+
response_data = self.api_client.call_api(
|
|
2081
|
+
*_param,
|
|
2082
|
+
_request_timeout=_request_timeout
|
|
2083
|
+
)
|
|
2084
|
+
response_data.read()
|
|
2085
|
+
return self.api_client.response_deserialize(
|
|
2086
|
+
response_data=response_data,
|
|
2087
|
+
response_types_map=_response_types_map,
|
|
2088
|
+
)
|
|
2089
|
+
|
|
2090
|
+
|
|
2091
|
+
@validate_call
|
|
2092
|
+
def benchmark_benchmark_id_prompt_post_without_preload_content(
|
|
2093
|
+
self,
|
|
2094
|
+
benchmark_id: Annotated[StrictStr, Field(description="The benchmark id.")],
|
|
2095
|
+
submit_prompt_model: SubmitPromptModel,
|
|
2096
|
+
_request_timeout: Union[
|
|
2097
|
+
None,
|
|
2098
|
+
Annotated[StrictFloat, Field(gt=0)],
|
|
2099
|
+
Tuple[
|
|
2100
|
+
Annotated[StrictFloat, Field(gt=0)],
|
|
2101
|
+
Annotated[StrictFloat, Field(gt=0)]
|
|
2102
|
+
]
|
|
2103
|
+
] = None,
|
|
2104
|
+
_request_auth: Optional[Dict[StrictStr, Any]] = None,
|
|
2105
|
+
_content_type: Optional[StrictStr] = None,
|
|
2106
|
+
_headers: Optional[Dict[StrictStr, Any]] = None,
|
|
2107
|
+
_host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
|
|
2108
|
+
) -> RESTResponseType:
|
|
2109
|
+
"""Adds a new prompt to a benchmark.
|
|
2110
|
+
|
|
2111
|
+
|
|
2112
|
+
:param benchmark_id: The benchmark id. (required)
|
|
2113
|
+
:type benchmark_id: str
|
|
2114
|
+
:param submit_prompt_model: (required)
|
|
2115
|
+
:type submit_prompt_model: SubmitPromptModel
|
|
2116
|
+
:param _request_timeout: timeout setting for this request. If one
|
|
2117
|
+
number provided, it will be total request
|
|
2118
|
+
timeout. It can also be a pair (tuple) of
|
|
2119
|
+
(connection, read) timeouts.
|
|
2120
|
+
:type _request_timeout: int, tuple(int, int), optional
|
|
2121
|
+
:param _request_auth: set to override the auth_settings for an a single
|
|
2122
|
+
request; this effectively ignores the
|
|
2123
|
+
authentication in the spec for a single request.
|
|
2124
|
+
:type _request_auth: dict, optional
|
|
2125
|
+
:param _content_type: force content-type for the request.
|
|
2126
|
+
:type _content_type: str, Optional
|
|
2127
|
+
:param _headers: set to override the headers for a single
|
|
2128
|
+
request; this effectively ignores the headers
|
|
2129
|
+
in the spec for a single request.
|
|
2130
|
+
:type _headers: dict, optional
|
|
2131
|
+
:param _host_index: set to override the host_index for a single
|
|
2132
|
+
request; this effectively ignores the host_index
|
|
2133
|
+
in the spec for a single request.
|
|
2134
|
+
:type _host_index: int, optional
|
|
2135
|
+
:return: Returns the result object.
|
|
2136
|
+
""" # noqa: E501
|
|
2137
|
+
|
|
2138
|
+
_param = self._benchmark_benchmark_id_prompt_post_serialize(
|
|
2139
|
+
benchmark_id=benchmark_id,
|
|
2140
|
+
submit_prompt_model=submit_prompt_model,
|
|
2141
|
+
_request_auth=_request_auth,
|
|
2142
|
+
_content_type=_content_type,
|
|
2143
|
+
_headers=_headers,
|
|
2144
|
+
_host_index=_host_index
|
|
2145
|
+
)
|
|
2146
|
+
|
|
2147
|
+
_response_types_map: Dict[str, Optional[str]] = {
|
|
2148
|
+
'200': "CreateBenchmarkPromptResult",
|
|
2149
|
+
}
|
|
2150
|
+
response_data = self.api_client.call_api(
|
|
2151
|
+
*_param,
|
|
2152
|
+
_request_timeout=_request_timeout
|
|
2153
|
+
)
|
|
2154
|
+
return response_data.response
|
|
2155
|
+
|
|
2156
|
+
|
|
2157
|
+
def _benchmark_benchmark_id_prompt_post_serialize(
|
|
2158
|
+
self,
|
|
2159
|
+
benchmark_id,
|
|
2160
|
+
submit_prompt_model,
|
|
2161
|
+
_request_auth,
|
|
2162
|
+
_content_type,
|
|
2163
|
+
_headers,
|
|
2164
|
+
_host_index,
|
|
2165
|
+
) -> RequestSerialized:
|
|
2166
|
+
|
|
2167
|
+
_host = None
|
|
2168
|
+
|
|
2169
|
+
_collection_formats: Dict[str, str] = {
|
|
2170
|
+
}
|
|
2171
|
+
|
|
2172
|
+
_path_params: Dict[str, str] = {}
|
|
2173
|
+
_query_params: List[Tuple[str, str]] = []
|
|
2174
|
+
_header_params: Dict[str, Optional[str]] = _headers or {}
|
|
2175
|
+
_form_params: List[Tuple[str, str]] = []
|
|
2176
|
+
_files: Dict[
|
|
2177
|
+
str, Union[str, bytes, List[str], List[bytes], List[Tuple[str, bytes]]]
|
|
2178
|
+
] = {}
|
|
2179
|
+
_body_params: Optional[bytes] = None
|
|
2180
|
+
|
|
2181
|
+
# process the path parameters
|
|
2182
|
+
if benchmark_id is not None:
|
|
2183
|
+
_path_params['benchmarkId'] = benchmark_id
|
|
2184
|
+
# process the query parameters
|
|
2185
|
+
# process the header parameters
|
|
2186
|
+
# process the form parameters
|
|
2187
|
+
# process the body parameter
|
|
2188
|
+
if submit_prompt_model is not None:
|
|
2189
|
+
_body_params = submit_prompt_model
|
|
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
|
+
)
|
|
2201
|
+
|
|
2202
|
+
# set the HTTP header `Content-Type`
|
|
2203
|
+
if _content_type:
|
|
2204
|
+
_header_params['Content-Type'] = _content_type
|
|
2205
|
+
else:
|
|
2206
|
+
_default_content_type = (
|
|
2207
|
+
self.api_client.select_header_content_type(
|
|
2208
|
+
[
|
|
2209
|
+
'application/json',
|
|
2210
|
+
'text/json',
|
|
2211
|
+
'application/*+json'
|
|
2212
|
+
]
|
|
2213
|
+
)
|
|
2214
|
+
)
|
|
2215
|
+
if _default_content_type is not None:
|
|
2216
|
+
_header_params['Content-Type'] = _default_content_type
|
|
2217
|
+
|
|
2218
|
+
# authentication setting
|
|
2219
|
+
_auth_settings: List[str] = [
|
|
2220
|
+
'OAuth2',
|
|
2221
|
+
'OpenIdConnect',
|
|
2222
|
+
'Bearer'
|
|
2223
|
+
]
|
|
2224
|
+
|
|
2225
|
+
return self.api_client.param_serialize(
|
|
2226
|
+
method='POST',
|
|
2227
|
+
resource_path='/benchmark/{benchmarkId}/prompt',
|
|
2228
|
+
path_params=_path_params,
|
|
2229
|
+
query_params=_query_params,
|
|
2230
|
+
header_params=_header_params,
|
|
2231
|
+
body=_body_params,
|
|
2232
|
+
post_params=_form_params,
|
|
2233
|
+
files=_files,
|
|
2234
|
+
auth_settings=_auth_settings,
|
|
2235
|
+
collection_formats=_collection_formats,
|
|
2236
|
+
_host=_host,
|
|
2237
|
+
_request_auth=_request_auth
|
|
2238
|
+
)
|
|
2239
|
+
|
|
2240
|
+
|
|
2241
|
+
|
|
2242
|
+
|
|
2243
|
+
@validate_call
|
|
2244
|
+
def benchmark_benchmark_id_prompts_get(
|
|
2245
|
+
self,
|
|
2246
|
+
benchmark_id: StrictStr,
|
|
2247
|
+
request: Optional[QueryModel] = None,
|
|
2248
|
+
_request_timeout: Union[
|
|
2249
|
+
None,
|
|
2250
|
+
Annotated[StrictFloat, Field(gt=0)],
|
|
2251
|
+
Tuple[
|
|
2252
|
+
Annotated[StrictFloat, Field(gt=0)],
|
|
2253
|
+
Annotated[StrictFloat, Field(gt=0)]
|
|
2254
|
+
]
|
|
2255
|
+
] = None,
|
|
2256
|
+
_request_auth: Optional[Dict[StrictStr, Any]] = None,
|
|
2257
|
+
_content_type: Optional[StrictStr] = None,
|
|
2258
|
+
_headers: Optional[Dict[StrictStr, Any]] = None,
|
|
2259
|
+
_host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
|
|
2260
|
+
) -> PagedResultOfPromptByBenchmarkResult:
|
|
2261
|
+
"""Returns the paged prompts of a benchmark by its ID.
|
|
2262
|
+
|
|
2263
|
+
|
|
2264
|
+
:param benchmark_id: (required)
|
|
2265
|
+
:type benchmark_id: str
|
|
2266
|
+
:param request:
|
|
2267
|
+
:type request: QueryModel
|
|
2268
|
+
:param _request_timeout: timeout setting for this request. If one
|
|
2269
|
+
number provided, it will be total request
|
|
2270
|
+
timeout. It can also be a pair (tuple) of
|
|
2271
|
+
(connection, read) timeouts.
|
|
2272
|
+
:type _request_timeout: int, tuple(int, int), optional
|
|
2273
|
+
:param _request_auth: set to override the auth_settings for an a single
|
|
2274
|
+
request; this effectively ignores the
|
|
2275
|
+
authentication in the spec for a single request.
|
|
2276
|
+
:type _request_auth: dict, optional
|
|
2277
|
+
:param _content_type: force content-type for the request.
|
|
2278
|
+
:type _content_type: str, Optional
|
|
2279
|
+
:param _headers: set to override the headers for a single
|
|
2280
|
+
request; this effectively ignores the headers
|
|
2281
|
+
in the spec for a single request.
|
|
2282
|
+
:type _headers: dict, optional
|
|
2283
|
+
:param _host_index: set to override the host_index for a single
|
|
2284
|
+
request; this effectively ignores the host_index
|
|
2285
|
+
in the spec for a single request.
|
|
2286
|
+
:type _host_index: int, optional
|
|
2287
|
+
:return: Returns the result object.
|
|
2288
|
+
""" # noqa: E501
|
|
2289
|
+
|
|
2290
|
+
_param = self._benchmark_benchmark_id_prompts_get_serialize(
|
|
2291
|
+
benchmark_id=benchmark_id,
|
|
2292
|
+
request=request,
|
|
2293
|
+
_request_auth=_request_auth,
|
|
2294
|
+
_content_type=_content_type,
|
|
2295
|
+
_headers=_headers,
|
|
2296
|
+
_host_index=_host_index
|
|
2297
|
+
)
|
|
2298
|
+
|
|
2299
|
+
_response_types_map: Dict[str, Optional[str]] = {
|
|
2300
|
+
'200': "PagedResultOfPromptByBenchmarkResult",
|
|
2301
|
+
}
|
|
2302
|
+
response_data = self.api_client.call_api(
|
|
2303
|
+
*_param,
|
|
2304
|
+
_request_timeout=_request_timeout
|
|
2305
|
+
)
|
|
2306
|
+
response_data.read()
|
|
2307
|
+
return self.api_client.response_deserialize(
|
|
2308
|
+
response_data=response_data,
|
|
2309
|
+
response_types_map=_response_types_map,
|
|
2310
|
+
).data
|
|
2311
|
+
|
|
2312
|
+
|
|
2313
|
+
@validate_call
|
|
2314
|
+
def benchmark_benchmark_id_prompts_get_with_http_info(
|
|
2315
|
+
self,
|
|
2316
|
+
benchmark_id: StrictStr,
|
|
2317
|
+
request: Optional[QueryModel] = None,
|
|
2318
|
+
_request_timeout: Union[
|
|
2319
|
+
None,
|
|
2320
|
+
Annotated[StrictFloat, Field(gt=0)],
|
|
2321
|
+
Tuple[
|
|
2322
|
+
Annotated[StrictFloat, Field(gt=0)],
|
|
2323
|
+
Annotated[StrictFloat, Field(gt=0)]
|
|
2324
|
+
]
|
|
2325
|
+
] = None,
|
|
2326
|
+
_request_auth: Optional[Dict[StrictStr, Any]] = None,
|
|
2327
|
+
_content_type: Optional[StrictStr] = None,
|
|
2328
|
+
_headers: Optional[Dict[StrictStr, Any]] = None,
|
|
2329
|
+
_host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
|
|
2330
|
+
) -> ApiResponse[PagedResultOfPromptByBenchmarkResult]:
|
|
2331
|
+
"""Returns the paged prompts of a benchmark by its ID.
|
|
2332
|
+
|
|
2333
|
+
|
|
2334
|
+
:param benchmark_id: (required)
|
|
2335
|
+
:type benchmark_id: str
|
|
2336
|
+
:param request:
|
|
2337
|
+
:type request: QueryModel
|
|
2338
|
+
:param _request_timeout: timeout setting for this request. If one
|
|
2339
|
+
number provided, it will be total request
|
|
2340
|
+
timeout. It can also be a pair (tuple) of
|
|
2341
|
+
(connection, read) timeouts.
|
|
2342
|
+
:type _request_timeout: int, tuple(int, int), optional
|
|
2343
|
+
:param _request_auth: set to override the auth_settings for an a single
|
|
2344
|
+
request; this effectively ignores the
|
|
2345
|
+
authentication in the spec for a single request.
|
|
2346
|
+
:type _request_auth: dict, optional
|
|
2347
|
+
:param _content_type: force content-type for the request.
|
|
2348
|
+
:type _content_type: str, Optional
|
|
2349
|
+
:param _headers: set to override the headers for a single
|
|
2350
|
+
request; this effectively ignores the headers
|
|
2351
|
+
in the spec for a single request.
|
|
2352
|
+
:type _headers: dict, optional
|
|
2353
|
+
:param _host_index: set to override the host_index for a single
|
|
2354
|
+
request; this effectively ignores the host_index
|
|
2355
|
+
in the spec for a single request.
|
|
2356
|
+
:type _host_index: int, optional
|
|
2357
|
+
:return: Returns the result object.
|
|
2358
|
+
""" # noqa: E501
|
|
2359
|
+
|
|
2360
|
+
_param = self._benchmark_benchmark_id_prompts_get_serialize(
|
|
2361
|
+
benchmark_id=benchmark_id,
|
|
2362
|
+
request=request,
|
|
2363
|
+
_request_auth=_request_auth,
|
|
2364
|
+
_content_type=_content_type,
|
|
2365
|
+
_headers=_headers,
|
|
2366
|
+
_host_index=_host_index
|
|
2367
|
+
)
|
|
2368
|
+
|
|
2369
|
+
_response_types_map: Dict[str, Optional[str]] = {
|
|
2370
|
+
'200': "PagedResultOfPromptByBenchmarkResult",
|
|
2371
|
+
}
|
|
2372
|
+
response_data = self.api_client.call_api(
|
|
2373
|
+
*_param,
|
|
2374
|
+
_request_timeout=_request_timeout
|
|
2375
|
+
)
|
|
2376
|
+
response_data.read()
|
|
2377
|
+
return self.api_client.response_deserialize(
|
|
2378
|
+
response_data=response_data,
|
|
2379
|
+
response_types_map=_response_types_map,
|
|
2380
|
+
)
|
|
2381
|
+
|
|
2382
|
+
|
|
2383
|
+
@validate_call
|
|
2384
|
+
def benchmark_benchmark_id_prompts_get_without_preload_content(
|
|
2385
|
+
self,
|
|
2386
|
+
benchmark_id: StrictStr,
|
|
2387
|
+
request: Optional[QueryModel] = None,
|
|
2388
|
+
_request_timeout: Union[
|
|
2389
|
+
None,
|
|
2390
|
+
Annotated[StrictFloat, Field(gt=0)],
|
|
2391
|
+
Tuple[
|
|
2392
|
+
Annotated[StrictFloat, Field(gt=0)],
|
|
2393
|
+
Annotated[StrictFloat, Field(gt=0)]
|
|
2394
|
+
]
|
|
2395
|
+
] = None,
|
|
2396
|
+
_request_auth: Optional[Dict[StrictStr, Any]] = None,
|
|
2397
|
+
_content_type: Optional[StrictStr] = None,
|
|
2398
|
+
_headers: Optional[Dict[StrictStr, Any]] = None,
|
|
2399
|
+
_host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
|
|
2400
|
+
) -> RESTResponseType:
|
|
2401
|
+
"""Returns the paged prompts of a benchmark by its ID.
|
|
2402
|
+
|
|
2403
|
+
|
|
2404
|
+
:param benchmark_id: (required)
|
|
2405
|
+
:type benchmark_id: str
|
|
2406
|
+
:param request:
|
|
2407
|
+
:type request: QueryModel
|
|
2408
|
+
:param _request_timeout: timeout setting for this request. If one
|
|
2409
|
+
number provided, it will be total request
|
|
2410
|
+
timeout. It can also be a pair (tuple) of
|
|
2411
|
+
(connection, read) timeouts.
|
|
2412
|
+
:type _request_timeout: int, tuple(int, int), optional
|
|
2413
|
+
:param _request_auth: set to override the auth_settings for an a single
|
|
2414
|
+
request; this effectively ignores the
|
|
2415
|
+
authentication in the spec for a single request.
|
|
2416
|
+
:type _request_auth: dict, optional
|
|
2417
|
+
:param _content_type: force content-type for the request.
|
|
2418
|
+
:type _content_type: str, Optional
|
|
2419
|
+
:param _headers: set to override the headers for a single
|
|
2420
|
+
request; this effectively ignores the headers
|
|
2421
|
+
in the spec for a single request.
|
|
2422
|
+
:type _headers: dict, optional
|
|
2423
|
+
:param _host_index: set to override the host_index for a single
|
|
2424
|
+
request; this effectively ignores the host_index
|
|
2425
|
+
in the spec for a single request.
|
|
2426
|
+
:type _host_index: int, optional
|
|
2427
|
+
:return: Returns the result object.
|
|
2428
|
+
""" # noqa: E501
|
|
2429
|
+
|
|
2430
|
+
_param = self._benchmark_benchmark_id_prompts_get_serialize(
|
|
2431
|
+
benchmark_id=benchmark_id,
|
|
2432
|
+
request=request,
|
|
2433
|
+
_request_auth=_request_auth,
|
|
2434
|
+
_content_type=_content_type,
|
|
2435
|
+
_headers=_headers,
|
|
2436
|
+
_host_index=_host_index
|
|
2437
|
+
)
|
|
2438
|
+
|
|
2439
|
+
_response_types_map: Dict[str, Optional[str]] = {
|
|
2440
|
+
'200': "PagedResultOfPromptByBenchmarkResult",
|
|
2441
|
+
}
|
|
2442
|
+
response_data = self.api_client.call_api(
|
|
2443
|
+
*_param,
|
|
2444
|
+
_request_timeout=_request_timeout
|
|
2445
|
+
)
|
|
2446
|
+
return response_data.response
|
|
2447
|
+
|
|
2448
|
+
|
|
2449
|
+
def _benchmark_benchmark_id_prompts_get_serialize(
|
|
2450
|
+
self,
|
|
2451
|
+
benchmark_id,
|
|
2452
|
+
request,
|
|
2453
|
+
_request_auth,
|
|
2454
|
+
_content_type,
|
|
2455
|
+
_headers,
|
|
2456
|
+
_host_index,
|
|
2457
|
+
) -> RequestSerialized:
|
|
2458
|
+
|
|
2459
|
+
_host = None
|
|
2460
|
+
|
|
2461
|
+
_collection_formats: Dict[str, str] = {
|
|
2462
|
+
}
|
|
2463
|
+
|
|
2464
|
+
_path_params: Dict[str, str] = {}
|
|
2465
|
+
_query_params: List[Tuple[str, str]] = []
|
|
2466
|
+
_header_params: Dict[str, Optional[str]] = _headers or {}
|
|
2467
|
+
_form_params: List[Tuple[str, str]] = []
|
|
2468
|
+
_files: Dict[
|
|
2469
|
+
str, Union[str, bytes, List[str], List[bytes], List[Tuple[str, bytes]]]
|
|
2470
|
+
] = {}
|
|
2471
|
+
_body_params: Optional[bytes] = None
|
|
2472
|
+
|
|
2473
|
+
# process the path parameters
|
|
2474
|
+
if benchmark_id is not None:
|
|
2475
|
+
_path_params['benchmarkId'] = benchmark_id
|
|
2476
|
+
# process the query parameters
|
|
2477
|
+
if request is not None:
|
|
2478
|
+
|
|
2479
|
+
_query_params.append(('request', request))
|
|
2480
|
+
|
|
2481
|
+
# process the header parameters
|
|
2482
|
+
# process the form parameters
|
|
2483
|
+
# process the body parameter
|
|
2484
|
+
|
|
2485
|
+
|
|
2486
|
+
# set the HTTP header `Accept`
|
|
2487
|
+
if 'Accept' not in _header_params:
|
|
2488
|
+
_header_params['Accept'] = self.api_client.select_header_accept(
|
|
2489
|
+
[
|
|
2490
|
+
'text/plain',
|
|
2491
|
+
'application/json',
|
|
2492
|
+
'text/json'
|
|
2493
|
+
]
|
|
2494
|
+
)
|
|
2495
|
+
|
|
2496
|
+
|
|
2497
|
+
# authentication setting
|
|
2498
|
+
_auth_settings: List[str] = [
|
|
2499
|
+
'OAuth2',
|
|
2500
|
+
'OpenIdConnect',
|
|
2501
|
+
'Bearer'
|
|
2502
|
+
]
|
|
2503
|
+
|
|
2504
|
+
return self.api_client.param_serialize(
|
|
2505
|
+
method='GET',
|
|
2506
|
+
resource_path='/benchmark/{benchmarkId}/prompts',
|
|
2507
|
+
path_params=_path_params,
|
|
2508
|
+
query_params=_query_params,
|
|
2509
|
+
header_params=_header_params,
|
|
2510
|
+
body=_body_params,
|
|
2511
|
+
post_params=_form_params,
|
|
2512
|
+
files=_files,
|
|
2513
|
+
auth_settings=_auth_settings,
|
|
2514
|
+
collection_formats=_collection_formats,
|
|
2515
|
+
_host=_host,
|
|
2516
|
+
_request_auth=_request_auth
|
|
2517
|
+
)
|
|
2518
|
+
|
|
2519
|
+
|
|
2520
|
+
|
|
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
|
+
|
|
3166
|
+
@validate_call
|
|
3167
|
+
def benchmark_benchmark_id_tags_get(
|
|
3168
|
+
self,
|
|
3169
|
+
benchmark_id: Annotated[StrictStr, Field(description="The id of the benchmark the prompts should be retrieved from")],
|
|
3170
|
+
_request_timeout: Union[
|
|
3171
|
+
None,
|
|
3172
|
+
Annotated[StrictFloat, Field(gt=0)],
|
|
3173
|
+
Tuple[
|
|
3174
|
+
Annotated[StrictFloat, Field(gt=0)],
|
|
3175
|
+
Annotated[StrictFloat, Field(gt=0)]
|
|
3176
|
+
]
|
|
3177
|
+
] = None,
|
|
3178
|
+
_request_auth: Optional[Dict[StrictStr, Any]] = None,
|
|
3179
|
+
_content_type: Optional[StrictStr] = None,
|
|
3180
|
+
_headers: Optional[Dict[StrictStr, Any]] = None,
|
|
3181
|
+
_host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
|
|
3182
|
+
) -> TagsByBenchmarkResult:
|
|
3183
|
+
"""Query all tags within a benchmark
|
|
3184
|
+
|
|
3185
|
+
|
|
3186
|
+
:param benchmark_id: The id of the benchmark the prompts should be retrieved from (required)
|
|
3187
|
+
:type benchmark_id: str
|
|
3188
|
+
:param _request_timeout: timeout setting for this request. If one
|
|
3189
|
+
number provided, it will be total request
|
|
3190
|
+
timeout. It can also be a pair (tuple) of
|
|
3191
|
+
(connection, read) timeouts.
|
|
3192
|
+
:type _request_timeout: int, tuple(int, int), optional
|
|
3193
|
+
:param _request_auth: set to override the auth_settings for an a single
|
|
3194
|
+
request; this effectively ignores the
|
|
3195
|
+
authentication in the spec for a single request.
|
|
3196
|
+
:type _request_auth: dict, optional
|
|
3197
|
+
:param _content_type: force content-type for the request.
|
|
3198
|
+
:type _content_type: str, Optional
|
|
3199
|
+
:param _headers: set to override the headers for a single
|
|
3200
|
+
request; this effectively ignores the headers
|
|
3201
|
+
in the spec for a single request.
|
|
3202
|
+
:type _headers: dict, optional
|
|
3203
|
+
:param _host_index: set to override the host_index for a single
|
|
3204
|
+
request; this effectively ignores the host_index
|
|
3205
|
+
in the spec for a single request.
|
|
3206
|
+
:type _host_index: int, optional
|
|
3207
|
+
:return: Returns the result object.
|
|
3208
|
+
""" # noqa: E501
|
|
3209
|
+
|
|
3210
|
+
_param = self._benchmark_benchmark_id_tags_get_serialize(
|
|
3211
|
+
benchmark_id=benchmark_id,
|
|
3212
|
+
_request_auth=_request_auth,
|
|
3213
|
+
_content_type=_content_type,
|
|
3214
|
+
_headers=_headers,
|
|
3215
|
+
_host_index=_host_index
|
|
3216
|
+
)
|
|
3217
|
+
|
|
3218
|
+
_response_types_map: Dict[str, Optional[str]] = {
|
|
3219
|
+
'200': "TagsByBenchmarkResult",
|
|
3220
|
+
}
|
|
3221
|
+
response_data = self.api_client.call_api(
|
|
3222
|
+
*_param,
|
|
3223
|
+
_request_timeout=_request_timeout
|
|
3224
|
+
)
|
|
3225
|
+
response_data.read()
|
|
3226
|
+
return self.api_client.response_deserialize(
|
|
3227
|
+
response_data=response_data,
|
|
3228
|
+
response_types_map=_response_types_map,
|
|
3229
|
+
).data
|
|
3230
|
+
|
|
3231
|
+
|
|
3232
|
+
@validate_call
|
|
3233
|
+
def benchmark_benchmark_id_tags_get_with_http_info(
|
|
3234
|
+
self,
|
|
3235
|
+
benchmark_id: Annotated[StrictStr, Field(description="The id of the benchmark the prompts should be retrieved from")],
|
|
3236
|
+
_request_timeout: Union[
|
|
3237
|
+
None,
|
|
3238
|
+
Annotated[StrictFloat, Field(gt=0)],
|
|
3239
|
+
Tuple[
|
|
3240
|
+
Annotated[StrictFloat, Field(gt=0)],
|
|
3241
|
+
Annotated[StrictFloat, Field(gt=0)]
|
|
3242
|
+
]
|
|
3243
|
+
] = None,
|
|
3244
|
+
_request_auth: Optional[Dict[StrictStr, Any]] = None,
|
|
3245
|
+
_content_type: Optional[StrictStr] = None,
|
|
3246
|
+
_headers: Optional[Dict[StrictStr, Any]] = None,
|
|
3247
|
+
_host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
|
|
3248
|
+
) -> ApiResponse[TagsByBenchmarkResult]:
|
|
3249
|
+
"""Query all tags within a benchmark
|
|
3250
|
+
|
|
3251
|
+
|
|
3252
|
+
:param benchmark_id: The id of the benchmark the prompts should be retrieved from (required)
|
|
3253
|
+
:type benchmark_id: str
|
|
3254
|
+
:param _request_timeout: timeout setting for this request. If one
|
|
3255
|
+
number provided, it will be total request
|
|
3256
|
+
timeout. It can also be a pair (tuple) of
|
|
3257
|
+
(connection, read) timeouts.
|
|
3258
|
+
:type _request_timeout: int, tuple(int, int), optional
|
|
3259
|
+
:param _request_auth: set to override the auth_settings for an a single
|
|
3260
|
+
request; this effectively ignores the
|
|
3261
|
+
authentication in the spec for a single request.
|
|
3262
|
+
:type _request_auth: dict, optional
|
|
3263
|
+
:param _content_type: force content-type for the request.
|
|
3264
|
+
:type _content_type: str, Optional
|
|
3265
|
+
:param _headers: set to override the headers for a single
|
|
3266
|
+
request; this effectively ignores the headers
|
|
3267
|
+
in the spec for a single request.
|
|
3268
|
+
:type _headers: dict, optional
|
|
3269
|
+
:param _host_index: set to override the host_index for a single
|
|
3270
|
+
request; this effectively ignores the host_index
|
|
3271
|
+
in the spec for a single request.
|
|
3272
|
+
:type _host_index: int, optional
|
|
3273
|
+
:return: Returns the result object.
|
|
3274
|
+
""" # noqa: E501
|
|
3275
|
+
|
|
3276
|
+
_param = self._benchmark_benchmark_id_tags_get_serialize(
|
|
3277
|
+
benchmark_id=benchmark_id,
|
|
3278
|
+
_request_auth=_request_auth,
|
|
3279
|
+
_content_type=_content_type,
|
|
3280
|
+
_headers=_headers,
|
|
3281
|
+
_host_index=_host_index
|
|
3282
|
+
)
|
|
3283
|
+
|
|
3284
|
+
_response_types_map: Dict[str, Optional[str]] = {
|
|
3285
|
+
'200': "TagsByBenchmarkResult",
|
|
3286
|
+
}
|
|
3287
|
+
response_data = self.api_client.call_api(
|
|
3288
|
+
*_param,
|
|
3289
|
+
_request_timeout=_request_timeout
|
|
3290
|
+
)
|
|
3291
|
+
response_data.read()
|
|
3292
|
+
return self.api_client.response_deserialize(
|
|
3293
|
+
response_data=response_data,
|
|
3294
|
+
response_types_map=_response_types_map,
|
|
3295
|
+
)
|
|
3296
|
+
|
|
3297
|
+
|
|
3298
|
+
@validate_call
|
|
3299
|
+
def benchmark_benchmark_id_tags_get_without_preload_content(
|
|
3300
|
+
self,
|
|
3301
|
+
benchmark_id: Annotated[StrictStr, Field(description="The id of the benchmark the prompts should be retrieved from")],
|
|
3302
|
+
_request_timeout: Union[
|
|
3303
|
+
None,
|
|
3304
|
+
Annotated[StrictFloat, Field(gt=0)],
|
|
3305
|
+
Tuple[
|
|
3306
|
+
Annotated[StrictFloat, Field(gt=0)],
|
|
3307
|
+
Annotated[StrictFloat, Field(gt=0)]
|
|
3308
|
+
]
|
|
3309
|
+
] = None,
|
|
3310
|
+
_request_auth: Optional[Dict[StrictStr, Any]] = None,
|
|
3311
|
+
_content_type: Optional[StrictStr] = None,
|
|
3312
|
+
_headers: Optional[Dict[StrictStr, Any]] = None,
|
|
3313
|
+
_host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
|
|
3314
|
+
) -> RESTResponseType:
|
|
3315
|
+
"""Query all tags within a benchmark
|
|
3316
|
+
|
|
3317
|
+
|
|
3318
|
+
:param benchmark_id: The id of the benchmark the prompts should be retrieved from (required)
|
|
3319
|
+
:type benchmark_id: str
|
|
3320
|
+
:param _request_timeout: timeout setting for this request. If one
|
|
3321
|
+
number provided, it will be total request
|
|
3322
|
+
timeout. It can also be a pair (tuple) of
|
|
3323
|
+
(connection, read) timeouts.
|
|
3324
|
+
:type _request_timeout: int, tuple(int, int), optional
|
|
3325
|
+
:param _request_auth: set to override the auth_settings for an a single
|
|
3326
|
+
request; this effectively ignores the
|
|
3327
|
+
authentication in the spec for a single request.
|
|
3328
|
+
:type _request_auth: dict, optional
|
|
3329
|
+
:param _content_type: force content-type for the request.
|
|
3330
|
+
:type _content_type: str, Optional
|
|
3331
|
+
:param _headers: set to override the headers for a single
|
|
3332
|
+
request; this effectively ignores the headers
|
|
3333
|
+
in the spec for a single request.
|
|
3334
|
+
:type _headers: dict, optional
|
|
3335
|
+
:param _host_index: set to override the host_index for a single
|
|
3336
|
+
request; this effectively ignores the host_index
|
|
3337
|
+
in the spec for a single request.
|
|
3338
|
+
:type _host_index: int, optional
|
|
3339
|
+
:return: Returns the result object.
|
|
3340
|
+
""" # noqa: E501
|
|
3341
|
+
|
|
3342
|
+
_param = self._benchmark_benchmark_id_tags_get_serialize(
|
|
3343
|
+
benchmark_id=benchmark_id,
|
|
3344
|
+
_request_auth=_request_auth,
|
|
3345
|
+
_content_type=_content_type,
|
|
3346
|
+
_headers=_headers,
|
|
3347
|
+
_host_index=_host_index
|
|
3348
|
+
)
|
|
3349
|
+
|
|
3350
|
+
_response_types_map: Dict[str, Optional[str]] = {
|
|
3351
|
+
'200': "TagsByBenchmarkResult",
|
|
3352
|
+
}
|
|
3353
|
+
response_data = self.api_client.call_api(
|
|
3354
|
+
*_param,
|
|
3355
|
+
_request_timeout=_request_timeout
|
|
3356
|
+
)
|
|
3357
|
+
return response_data.response
|
|
3358
|
+
|
|
3359
|
+
|
|
3360
|
+
def _benchmark_benchmark_id_tags_get_serialize(
|
|
3361
|
+
self,
|
|
3362
|
+
benchmark_id,
|
|
3363
|
+
_request_auth,
|
|
3364
|
+
_content_type,
|
|
3365
|
+
_headers,
|
|
3366
|
+
_host_index,
|
|
3367
|
+
) -> RequestSerialized:
|
|
3368
|
+
|
|
3369
|
+
_host = None
|
|
3370
|
+
|
|
3371
|
+
_collection_formats: Dict[str, str] = {
|
|
3372
|
+
}
|
|
3373
|
+
|
|
3374
|
+
_path_params: Dict[str, str] = {}
|
|
3375
|
+
_query_params: List[Tuple[str, str]] = []
|
|
3376
|
+
_header_params: Dict[str, Optional[str]] = _headers or {}
|
|
3377
|
+
_form_params: List[Tuple[str, str]] = []
|
|
3378
|
+
_files: Dict[
|
|
3379
|
+
str, Union[str, bytes, List[str], List[bytes], List[Tuple[str, bytes]]]
|
|
3380
|
+
] = {}
|
|
3381
|
+
_body_params: Optional[bytes] = None
|
|
3382
|
+
|
|
3383
|
+
# process the path parameters
|
|
3384
|
+
if benchmark_id is not None:
|
|
3385
|
+
_path_params['benchmarkId'] = benchmark_id
|
|
3386
|
+
# process the query parameters
|
|
3387
|
+
# process the header parameters
|
|
3388
|
+
# process the form parameters
|
|
3389
|
+
# process the body parameter
|
|
3390
|
+
|
|
3391
|
+
|
|
3392
|
+
# set the HTTP header `Accept`
|
|
3393
|
+
if 'Accept' not in _header_params:
|
|
3394
|
+
_header_params['Accept'] = self.api_client.select_header_accept(
|
|
3395
|
+
[
|
|
3396
|
+
'text/plain',
|
|
3397
|
+
'application/json',
|
|
3398
|
+
'text/json'
|
|
3399
|
+
]
|
|
3400
|
+
)
|
|
3401
|
+
|
|
3402
|
+
|
|
3403
|
+
# authentication setting
|
|
3404
|
+
_auth_settings: List[str] = [
|
|
3405
|
+
'OAuth2',
|
|
3406
|
+
'OpenIdConnect',
|
|
3407
|
+
'Bearer'
|
|
3408
|
+
]
|
|
3409
|
+
|
|
3410
|
+
return self.api_client.param_serialize(
|
|
3411
|
+
method='GET',
|
|
3412
|
+
resource_path='/benchmark/{benchmarkId}/tags',
|
|
3413
|
+
path_params=_path_params,
|
|
3414
|
+
query_params=_query_params,
|
|
3415
|
+
header_params=_header_params,
|
|
3416
|
+
body=_body_params,
|
|
3417
|
+
post_params=_form_params,
|
|
3418
|
+
files=_files,
|
|
3419
|
+
auth_settings=_auth_settings,
|
|
3420
|
+
collection_formats=_collection_formats,
|
|
3421
|
+
_host=_host,
|
|
3422
|
+
_request_auth=_request_auth
|
|
3423
|
+
)
|
|
3424
|
+
|
|
3425
|
+
|
|
3426
|
+
|
|
3427
|
+
|
|
3428
|
+
@validate_call
|
|
3429
|
+
def benchmark_post(
|
|
3430
|
+
self,
|
|
3431
|
+
create_benchmark_model: CreateBenchmarkModel,
|
|
3432
|
+
_request_timeout: Union[
|
|
3433
|
+
None,
|
|
3434
|
+
Annotated[StrictFloat, Field(gt=0)],
|
|
3435
|
+
Tuple[
|
|
3436
|
+
Annotated[StrictFloat, Field(gt=0)],
|
|
3437
|
+
Annotated[StrictFloat, Field(gt=0)]
|
|
3438
|
+
]
|
|
3439
|
+
] = None,
|
|
3440
|
+
_request_auth: Optional[Dict[StrictStr, Any]] = None,
|
|
3441
|
+
_content_type: Optional[StrictStr] = None,
|
|
3442
|
+
_headers: Optional[Dict[StrictStr, Any]] = None,
|
|
3443
|
+
_host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
|
|
3444
|
+
) -> CreateBenchmarkResult:
|
|
3445
|
+
"""Creates a benchmark
|
|
3446
|
+
|
|
3447
|
+
|
|
3448
|
+
:param create_benchmark_model: (required)
|
|
3449
|
+
:type create_benchmark_model: CreateBenchmarkModel
|
|
3450
|
+
:param _request_timeout: timeout setting for this request. If one
|
|
3451
|
+
number provided, it will be total request
|
|
3452
|
+
timeout. It can also be a pair (tuple) of
|
|
3453
|
+
(connection, read) timeouts.
|
|
3454
|
+
:type _request_timeout: int, tuple(int, int), optional
|
|
3455
|
+
:param _request_auth: set to override the auth_settings for an a single
|
|
3456
|
+
request; this effectively ignores the
|
|
3457
|
+
authentication in the spec for a single request.
|
|
3458
|
+
:type _request_auth: dict, optional
|
|
3459
|
+
:param _content_type: force content-type for the request.
|
|
3460
|
+
:type _content_type: str, Optional
|
|
3461
|
+
:param _headers: set to override the headers for a single
|
|
3462
|
+
request; this effectively ignores the headers
|
|
3463
|
+
in the spec for a single request.
|
|
3464
|
+
:type _headers: dict, optional
|
|
3465
|
+
:param _host_index: set to override the host_index for a single
|
|
3466
|
+
request; this effectively ignores the host_index
|
|
3467
|
+
in the spec for a single request.
|
|
3468
|
+
:type _host_index: int, optional
|
|
3469
|
+
:return: Returns the result object.
|
|
3470
|
+
""" # noqa: E501
|
|
3471
|
+
|
|
3472
|
+
_param = self._benchmark_post_serialize(
|
|
3473
|
+
create_benchmark_model=create_benchmark_model,
|
|
3474
|
+
_request_auth=_request_auth,
|
|
3475
|
+
_content_type=_content_type,
|
|
3476
|
+
_headers=_headers,
|
|
3477
|
+
_host_index=_host_index
|
|
3478
|
+
)
|
|
3479
|
+
|
|
3480
|
+
_response_types_map: Dict[str, Optional[str]] = {
|
|
3481
|
+
'200': "CreateBenchmarkResult",
|
|
3482
|
+
}
|
|
3483
|
+
response_data = self.api_client.call_api(
|
|
3484
|
+
*_param,
|
|
3485
|
+
_request_timeout=_request_timeout
|
|
3486
|
+
)
|
|
3487
|
+
response_data.read()
|
|
3488
|
+
return self.api_client.response_deserialize(
|
|
3489
|
+
response_data=response_data,
|
|
3490
|
+
response_types_map=_response_types_map,
|
|
3491
|
+
).data
|
|
3492
|
+
|
|
3493
|
+
|
|
3494
|
+
@validate_call
|
|
3495
|
+
def benchmark_post_with_http_info(
|
|
3496
|
+
self,
|
|
3497
|
+
create_benchmark_model: CreateBenchmarkModel,
|
|
3498
|
+
_request_timeout: Union[
|
|
3499
|
+
None,
|
|
3500
|
+
Annotated[StrictFloat, Field(gt=0)],
|
|
3501
|
+
Tuple[
|
|
3502
|
+
Annotated[StrictFloat, Field(gt=0)],
|
|
3503
|
+
Annotated[StrictFloat, Field(gt=0)]
|
|
3504
|
+
]
|
|
3505
|
+
] = None,
|
|
3506
|
+
_request_auth: Optional[Dict[StrictStr, Any]] = None,
|
|
3507
|
+
_content_type: Optional[StrictStr] = None,
|
|
3508
|
+
_headers: Optional[Dict[StrictStr, Any]] = None,
|
|
3509
|
+
_host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
|
|
3510
|
+
) -> ApiResponse[CreateBenchmarkResult]:
|
|
3511
|
+
"""Creates a benchmark
|
|
3512
|
+
|
|
3513
|
+
|
|
3514
|
+
:param create_benchmark_model: (required)
|
|
3515
|
+
:type create_benchmark_model: CreateBenchmarkModel
|
|
3516
|
+
:param _request_timeout: timeout setting for this request. If one
|
|
3517
|
+
number provided, it will be total request
|
|
3518
|
+
timeout. It can also be a pair (tuple) of
|
|
3519
|
+
(connection, read) timeouts.
|
|
3520
|
+
:type _request_timeout: int, tuple(int, int), optional
|
|
3521
|
+
:param _request_auth: set to override the auth_settings for an a single
|
|
3522
|
+
request; this effectively ignores the
|
|
3523
|
+
authentication in the spec for a single request.
|
|
3524
|
+
:type _request_auth: dict, optional
|
|
3525
|
+
:param _content_type: force content-type for the request.
|
|
3526
|
+
:type _content_type: str, Optional
|
|
3527
|
+
:param _headers: set to override the headers for a single
|
|
3528
|
+
request; this effectively ignores the headers
|
|
3529
|
+
in the spec for a single request.
|
|
3530
|
+
:type _headers: dict, optional
|
|
3531
|
+
:param _host_index: set to override the host_index for a single
|
|
3532
|
+
request; this effectively ignores the host_index
|
|
3533
|
+
in the spec for a single request.
|
|
3534
|
+
:type _host_index: int, optional
|
|
3535
|
+
:return: Returns the result object.
|
|
3536
|
+
""" # noqa: E501
|
|
3537
|
+
|
|
3538
|
+
_param = self._benchmark_post_serialize(
|
|
3539
|
+
create_benchmark_model=create_benchmark_model,
|
|
3540
|
+
_request_auth=_request_auth,
|
|
3541
|
+
_content_type=_content_type,
|
|
3542
|
+
_headers=_headers,
|
|
3543
|
+
_host_index=_host_index
|
|
3544
|
+
)
|
|
3545
|
+
|
|
3546
|
+
_response_types_map: Dict[str, Optional[str]] = {
|
|
3547
|
+
'200': "CreateBenchmarkResult",
|
|
3548
|
+
}
|
|
3549
|
+
response_data = self.api_client.call_api(
|
|
3550
|
+
*_param,
|
|
3551
|
+
_request_timeout=_request_timeout
|
|
3552
|
+
)
|
|
3553
|
+
response_data.read()
|
|
3554
|
+
return self.api_client.response_deserialize(
|
|
3555
|
+
response_data=response_data,
|
|
3556
|
+
response_types_map=_response_types_map,
|
|
3557
|
+
)
|
|
3558
|
+
|
|
3559
|
+
|
|
3560
|
+
@validate_call
|
|
3561
|
+
def benchmark_post_without_preload_content(
|
|
3562
|
+
self,
|
|
3563
|
+
create_benchmark_model: CreateBenchmarkModel,
|
|
3564
|
+
_request_timeout: Union[
|
|
3565
|
+
None,
|
|
3566
|
+
Annotated[StrictFloat, Field(gt=0)],
|
|
3567
|
+
Tuple[
|
|
3568
|
+
Annotated[StrictFloat, Field(gt=0)],
|
|
3569
|
+
Annotated[StrictFloat, Field(gt=0)]
|
|
3570
|
+
]
|
|
3571
|
+
] = None,
|
|
3572
|
+
_request_auth: Optional[Dict[StrictStr, Any]] = None,
|
|
3573
|
+
_content_type: Optional[StrictStr] = None,
|
|
3574
|
+
_headers: Optional[Dict[StrictStr, Any]] = None,
|
|
3575
|
+
_host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
|
|
3576
|
+
) -> RESTResponseType:
|
|
3577
|
+
"""Creates a benchmark
|
|
3578
|
+
|
|
3579
|
+
|
|
3580
|
+
:param create_benchmark_model: (required)
|
|
3581
|
+
:type create_benchmark_model: CreateBenchmarkModel
|
|
3582
|
+
:param _request_timeout: timeout setting for this request. If one
|
|
3583
|
+
number provided, it will be total request
|
|
3584
|
+
timeout. It can also be a pair (tuple) of
|
|
3585
|
+
(connection, read) timeouts.
|
|
3586
|
+
:type _request_timeout: int, tuple(int, int), optional
|
|
3587
|
+
:param _request_auth: set to override the auth_settings for an a single
|
|
3588
|
+
request; this effectively ignores the
|
|
3589
|
+
authentication in the spec for a single request.
|
|
3590
|
+
:type _request_auth: dict, optional
|
|
3591
|
+
:param _content_type: force content-type for the request.
|
|
3592
|
+
:type _content_type: str, Optional
|
|
3593
|
+
:param _headers: set to override the headers for a single
|
|
3594
|
+
request; this effectively ignores the headers
|
|
3595
|
+
in the spec for a single request.
|
|
3596
|
+
:type _headers: dict, optional
|
|
3597
|
+
:param _host_index: set to override the host_index for a single
|
|
3598
|
+
request; this effectively ignores the host_index
|
|
3599
|
+
in the spec for a single request.
|
|
3600
|
+
:type _host_index: int, optional
|
|
3601
|
+
:return: Returns the result object.
|
|
3602
|
+
""" # noqa: E501
|
|
3603
|
+
|
|
3604
|
+
_param = self._benchmark_post_serialize(
|
|
3605
|
+
create_benchmark_model=create_benchmark_model,
|
|
3606
|
+
_request_auth=_request_auth,
|
|
3607
|
+
_content_type=_content_type,
|
|
3608
|
+
_headers=_headers,
|
|
3609
|
+
_host_index=_host_index
|
|
3610
|
+
)
|
|
3611
|
+
|
|
3612
|
+
_response_types_map: Dict[str, Optional[str]] = {
|
|
3613
|
+
'200': "CreateBenchmarkResult",
|
|
3614
|
+
}
|
|
3615
|
+
response_data = self.api_client.call_api(
|
|
3616
|
+
*_param,
|
|
3617
|
+
_request_timeout=_request_timeout
|
|
3618
|
+
)
|
|
3619
|
+
return response_data.response
|
|
3620
|
+
|
|
3621
|
+
|
|
3622
|
+
def _benchmark_post_serialize(
|
|
3623
|
+
self,
|
|
3624
|
+
create_benchmark_model,
|
|
3625
|
+
_request_auth,
|
|
3626
|
+
_content_type,
|
|
3627
|
+
_headers,
|
|
3628
|
+
_host_index,
|
|
3629
|
+
) -> RequestSerialized:
|
|
3630
|
+
|
|
3631
|
+
_host = None
|
|
3632
|
+
|
|
3633
|
+
_collection_formats: Dict[str, str] = {
|
|
3634
|
+
}
|
|
3635
|
+
|
|
3636
|
+
_path_params: Dict[str, str] = {}
|
|
3637
|
+
_query_params: List[Tuple[str, str]] = []
|
|
3638
|
+
_header_params: Dict[str, Optional[str]] = _headers or {}
|
|
3639
|
+
_form_params: List[Tuple[str, str]] = []
|
|
3640
|
+
_files: Dict[
|
|
3641
|
+
str, Union[str, bytes, List[str], List[bytes], List[Tuple[str, bytes]]]
|
|
3642
|
+
] = {}
|
|
3643
|
+
_body_params: Optional[bytes] = None
|
|
3644
|
+
|
|
3645
|
+
# process the path parameters
|
|
3646
|
+
# process the query parameters
|
|
3647
|
+
# process the header parameters
|
|
3648
|
+
# process the form parameters
|
|
3649
|
+
# process the body parameter
|
|
3650
|
+
if create_benchmark_model is not None:
|
|
3651
|
+
_body_params = create_benchmark_model
|
|
3652
|
+
|
|
3653
|
+
|
|
3654
|
+
# set the HTTP header `Accept`
|
|
3655
|
+
if 'Accept' not in _header_params:
|
|
3656
|
+
_header_params['Accept'] = self.api_client.select_header_accept(
|
|
3657
|
+
[
|
|
3658
|
+
'text/plain',
|
|
3659
|
+
'application/json',
|
|
3660
|
+
'text/json'
|
|
3661
|
+
]
|
|
3662
|
+
)
|
|
3663
|
+
|
|
3664
|
+
# set the HTTP header `Content-Type`
|
|
3665
|
+
if _content_type:
|
|
3666
|
+
_header_params['Content-Type'] = _content_type
|
|
3667
|
+
else:
|
|
3668
|
+
_default_content_type = (
|
|
3669
|
+
self.api_client.select_header_content_type(
|
|
3670
|
+
[
|
|
3671
|
+
'application/json',
|
|
3672
|
+
'text/json',
|
|
3673
|
+
'application/*+json'
|
|
3674
|
+
]
|
|
3675
|
+
)
|
|
3676
|
+
)
|
|
3677
|
+
if _default_content_type is not None:
|
|
3678
|
+
_header_params['Content-Type'] = _default_content_type
|
|
3679
|
+
|
|
3680
|
+
# authentication setting
|
|
3681
|
+
_auth_settings: List[str] = [
|
|
3682
|
+
'OAuth2',
|
|
3683
|
+
'OpenIdConnect',
|
|
3684
|
+
'Bearer'
|
|
3685
|
+
]
|
|
3686
|
+
|
|
3687
|
+
return self.api_client.param_serialize(
|
|
3688
|
+
method='POST',
|
|
3689
|
+
resource_path='/benchmark',
|
|
3690
|
+
path_params=_path_params,
|
|
3691
|
+
query_params=_query_params,
|
|
3692
|
+
header_params=_header_params,
|
|
3693
|
+
body=_body_params,
|
|
3694
|
+
post_params=_form_params,
|
|
3695
|
+
files=_files,
|
|
3696
|
+
auth_settings=_auth_settings,
|
|
3697
|
+
collection_formats=_collection_formats,
|
|
3698
|
+
_host=_host,
|
|
3699
|
+
_request_auth=_request_auth
|
|
3700
|
+
)
|
|
3701
|
+
|
|
3702
|
+
|
|
3703
|
+
|
|
3704
|
+
|
|
3705
|
+
@validate_call
|
|
3706
|
+
def benchmarks_get(
|
|
3707
|
+
self,
|
|
3708
|
+
request: Optional[QueryModel] = None,
|
|
3709
|
+
_request_timeout: Union[
|
|
3710
|
+
None,
|
|
3711
|
+
Annotated[StrictFloat, Field(gt=0)],
|
|
3712
|
+
Tuple[
|
|
3713
|
+
Annotated[StrictFloat, Field(gt=0)],
|
|
3714
|
+
Annotated[StrictFloat, Field(gt=0)]
|
|
3715
|
+
]
|
|
3716
|
+
] = None,
|
|
3717
|
+
_request_auth: Optional[Dict[StrictStr, Any]] = None,
|
|
3718
|
+
_content_type: Optional[StrictStr] = None,
|
|
3719
|
+
_headers: Optional[Dict[StrictStr, Any]] = None,
|
|
3720
|
+
_host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
|
|
3721
|
+
) -> PagedResultOfBenchmarkQueryResult:
|
|
3722
|
+
"""Queries all benchmarks of the user.
|
|
3723
|
+
|
|
3724
|
+
|
|
3725
|
+
:param request:
|
|
3726
|
+
:type request: QueryModel
|
|
3727
|
+
:param _request_timeout: timeout setting for this request. If one
|
|
3728
|
+
number provided, it will be total request
|
|
3729
|
+
timeout. It can also be a pair (tuple) of
|
|
3730
|
+
(connection, read) timeouts.
|
|
3731
|
+
:type _request_timeout: int, tuple(int, int), optional
|
|
3732
|
+
:param _request_auth: set to override the auth_settings for an a single
|
|
3733
|
+
request; this effectively ignores the
|
|
3734
|
+
authentication in the spec for a single request.
|
|
3735
|
+
:type _request_auth: dict, optional
|
|
3736
|
+
:param _content_type: force content-type for the request.
|
|
3737
|
+
:type _content_type: str, Optional
|
|
3738
|
+
:param _headers: set to override the headers for a single
|
|
3739
|
+
request; this effectively ignores the headers
|
|
3740
|
+
in the spec for a single request.
|
|
3741
|
+
:type _headers: dict, optional
|
|
3742
|
+
:param _host_index: set to override the host_index for a single
|
|
3743
|
+
request; this effectively ignores the host_index
|
|
3744
|
+
in the spec for a single request.
|
|
3745
|
+
:type _host_index: int, optional
|
|
3746
|
+
:return: Returns the result object.
|
|
3747
|
+
""" # noqa: E501
|
|
3748
|
+
|
|
3749
|
+
_param = self._benchmarks_get_serialize(
|
|
3750
|
+
request=request,
|
|
3751
|
+
_request_auth=_request_auth,
|
|
3752
|
+
_content_type=_content_type,
|
|
3753
|
+
_headers=_headers,
|
|
3754
|
+
_host_index=_host_index
|
|
3755
|
+
)
|
|
3756
|
+
|
|
3757
|
+
_response_types_map: Dict[str, Optional[str]] = {
|
|
3758
|
+
'200': "PagedResultOfBenchmarkQueryResult",
|
|
3759
|
+
}
|
|
3760
|
+
response_data = self.api_client.call_api(
|
|
3761
|
+
*_param,
|
|
3762
|
+
_request_timeout=_request_timeout
|
|
3763
|
+
)
|
|
3764
|
+
response_data.read()
|
|
3765
|
+
return self.api_client.response_deserialize(
|
|
3766
|
+
response_data=response_data,
|
|
3767
|
+
response_types_map=_response_types_map,
|
|
3768
|
+
).data
|
|
3769
|
+
|
|
3770
|
+
|
|
3771
|
+
@validate_call
|
|
3772
|
+
def benchmarks_get_with_http_info(
|
|
3773
|
+
self,
|
|
3774
|
+
request: Optional[QueryModel] = None,
|
|
3775
|
+
_request_timeout: Union[
|
|
3776
|
+
None,
|
|
3777
|
+
Annotated[StrictFloat, Field(gt=0)],
|
|
3778
|
+
Tuple[
|
|
3779
|
+
Annotated[StrictFloat, Field(gt=0)],
|
|
3780
|
+
Annotated[StrictFloat, Field(gt=0)]
|
|
3781
|
+
]
|
|
3782
|
+
] = None,
|
|
3783
|
+
_request_auth: Optional[Dict[StrictStr, Any]] = None,
|
|
3784
|
+
_content_type: Optional[StrictStr] = None,
|
|
3785
|
+
_headers: Optional[Dict[StrictStr, Any]] = None,
|
|
3786
|
+
_host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
|
|
3787
|
+
) -> ApiResponse[PagedResultOfBenchmarkQueryResult]:
|
|
3788
|
+
"""Queries all benchmarks of the user.
|
|
3789
|
+
|
|
3790
|
+
|
|
3791
|
+
:param request:
|
|
3792
|
+
:type request: QueryModel
|
|
3793
|
+
:param _request_timeout: timeout setting for this request. If one
|
|
3794
|
+
number provided, it will be total request
|
|
3795
|
+
timeout. It can also be a pair (tuple) of
|
|
3796
|
+
(connection, read) timeouts.
|
|
3797
|
+
:type _request_timeout: int, tuple(int, int), optional
|
|
3798
|
+
:param _request_auth: set to override the auth_settings for an a single
|
|
3799
|
+
request; this effectively ignores the
|
|
3800
|
+
authentication in the spec for a single request.
|
|
3801
|
+
:type _request_auth: dict, optional
|
|
3802
|
+
:param _content_type: force content-type for the request.
|
|
3803
|
+
:type _content_type: str, Optional
|
|
3804
|
+
:param _headers: set to override the headers for a single
|
|
3805
|
+
request; this effectively ignores the headers
|
|
3806
|
+
in the spec for a single request.
|
|
3807
|
+
:type _headers: dict, optional
|
|
3808
|
+
:param _host_index: set to override the host_index for a single
|
|
3809
|
+
request; this effectively ignores the host_index
|
|
3810
|
+
in the spec for a single request.
|
|
3811
|
+
:type _host_index: int, optional
|
|
3812
|
+
:return: Returns the result object.
|
|
3813
|
+
""" # noqa: E501
|
|
3814
|
+
|
|
3815
|
+
_param = self._benchmarks_get_serialize(
|
|
3816
|
+
request=request,
|
|
3817
|
+
_request_auth=_request_auth,
|
|
3818
|
+
_content_type=_content_type,
|
|
3819
|
+
_headers=_headers,
|
|
3820
|
+
_host_index=_host_index
|
|
3821
|
+
)
|
|
3822
|
+
|
|
3823
|
+
_response_types_map: Dict[str, Optional[str]] = {
|
|
3824
|
+
'200': "PagedResultOfBenchmarkQueryResult",
|
|
3825
|
+
}
|
|
3826
|
+
response_data = self.api_client.call_api(
|
|
3827
|
+
*_param,
|
|
3828
|
+
_request_timeout=_request_timeout
|
|
3829
|
+
)
|
|
3830
|
+
response_data.read()
|
|
3831
|
+
return self.api_client.response_deserialize(
|
|
3832
|
+
response_data=response_data,
|
|
3833
|
+
response_types_map=_response_types_map,
|
|
3834
|
+
)
|
|
3835
|
+
|
|
3836
|
+
|
|
3837
|
+
@validate_call
|
|
3838
|
+
def benchmarks_get_without_preload_content(
|
|
3839
|
+
self,
|
|
3840
|
+
request: Optional[QueryModel] = None,
|
|
3841
|
+
_request_timeout: Union[
|
|
3842
|
+
None,
|
|
3843
|
+
Annotated[StrictFloat, Field(gt=0)],
|
|
3844
|
+
Tuple[
|
|
3845
|
+
Annotated[StrictFloat, Field(gt=0)],
|
|
3846
|
+
Annotated[StrictFloat, Field(gt=0)]
|
|
3847
|
+
]
|
|
3848
|
+
] = None,
|
|
3849
|
+
_request_auth: Optional[Dict[StrictStr, Any]] = None,
|
|
3850
|
+
_content_type: Optional[StrictStr] = None,
|
|
3851
|
+
_headers: Optional[Dict[StrictStr, Any]] = None,
|
|
3852
|
+
_host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
|
|
3853
|
+
) -> RESTResponseType:
|
|
3854
|
+
"""Queries all benchmarks of the user.
|
|
3855
|
+
|
|
3856
|
+
|
|
3857
|
+
:param request:
|
|
3858
|
+
:type request: QueryModel
|
|
3859
|
+
:param _request_timeout: timeout setting for this request. If one
|
|
3860
|
+
number provided, it will be total request
|
|
3861
|
+
timeout. It can also be a pair (tuple) of
|
|
3862
|
+
(connection, read) timeouts.
|
|
3863
|
+
:type _request_timeout: int, tuple(int, int), optional
|
|
3864
|
+
:param _request_auth: set to override the auth_settings for an a single
|
|
3865
|
+
request; this effectively ignores the
|
|
3866
|
+
authentication in the spec for a single request.
|
|
3867
|
+
:type _request_auth: dict, optional
|
|
3868
|
+
:param _content_type: force content-type for the request.
|
|
3869
|
+
:type _content_type: str, Optional
|
|
3870
|
+
:param _headers: set to override the headers for a single
|
|
3871
|
+
request; this effectively ignores the headers
|
|
3872
|
+
in the spec for a single request.
|
|
3873
|
+
:type _headers: dict, optional
|
|
3874
|
+
:param _host_index: set to override the host_index for a single
|
|
3875
|
+
request; this effectively ignores the host_index
|
|
3876
|
+
in the spec for a single request.
|
|
3877
|
+
:type _host_index: int, optional
|
|
3878
|
+
:return: Returns the result object.
|
|
3879
|
+
""" # noqa: E501
|
|
3880
|
+
|
|
3881
|
+
_param = self._benchmarks_get_serialize(
|
|
3882
|
+
request=request,
|
|
3883
|
+
_request_auth=_request_auth,
|
|
3884
|
+
_content_type=_content_type,
|
|
3885
|
+
_headers=_headers,
|
|
3886
|
+
_host_index=_host_index
|
|
3887
|
+
)
|
|
3888
|
+
|
|
3889
|
+
_response_types_map: Dict[str, Optional[str]] = {
|
|
3890
|
+
'200': "PagedResultOfBenchmarkQueryResult",
|
|
3891
|
+
}
|
|
3892
|
+
response_data = self.api_client.call_api(
|
|
3893
|
+
*_param,
|
|
3894
|
+
_request_timeout=_request_timeout
|
|
3895
|
+
)
|
|
3896
|
+
return response_data.response
|
|
3897
|
+
|
|
3898
|
+
|
|
3899
|
+
def _benchmarks_get_serialize(
|
|
3900
|
+
self,
|
|
3901
|
+
request,
|
|
3902
|
+
_request_auth,
|
|
3903
|
+
_content_type,
|
|
3904
|
+
_headers,
|
|
3905
|
+
_host_index,
|
|
3906
|
+
) -> RequestSerialized:
|
|
3907
|
+
|
|
3908
|
+
_host = None
|
|
3909
|
+
|
|
3910
|
+
_collection_formats: Dict[str, str] = {
|
|
3911
|
+
}
|
|
3912
|
+
|
|
3913
|
+
_path_params: Dict[str, str] = {}
|
|
3914
|
+
_query_params: List[Tuple[str, str]] = []
|
|
3915
|
+
_header_params: Dict[str, Optional[str]] = _headers or {}
|
|
3916
|
+
_form_params: List[Tuple[str, str]] = []
|
|
3917
|
+
_files: Dict[
|
|
3918
|
+
str, Union[str, bytes, List[str], List[bytes], List[Tuple[str, bytes]]]
|
|
3919
|
+
] = {}
|
|
3920
|
+
_body_params: Optional[bytes] = None
|
|
3921
|
+
|
|
3922
|
+
# process the path parameters
|
|
3923
|
+
# process the query parameters
|
|
3924
|
+
if request is not None:
|
|
3925
|
+
|
|
3926
|
+
_query_params.append(('request', request))
|
|
3927
|
+
|
|
3928
|
+
# process the header parameters
|
|
3929
|
+
# process the form parameters
|
|
3930
|
+
# process the body parameter
|
|
3931
|
+
|
|
3932
|
+
|
|
3933
|
+
# set the HTTP header `Accept`
|
|
3934
|
+
if 'Accept' not in _header_params:
|
|
3935
|
+
_header_params['Accept'] = self.api_client.select_header_accept(
|
|
3936
|
+
[
|
|
3937
|
+
'text/plain',
|
|
3938
|
+
'application/json',
|
|
3939
|
+
'text/json'
|
|
3940
|
+
]
|
|
3941
|
+
)
|
|
3942
|
+
|
|
3943
|
+
|
|
3944
|
+
# authentication setting
|
|
3945
|
+
_auth_settings: List[str] = [
|
|
3946
|
+
'OAuth2',
|
|
3947
|
+
'OpenIdConnect',
|
|
3948
|
+
'Bearer'
|
|
3949
|
+
]
|
|
3950
|
+
|
|
3951
|
+
return self.api_client.param_serialize(
|
|
3952
|
+
method='GET',
|
|
3953
|
+
resource_path='/benchmarks',
|
|
3954
|
+
path_params=_path_params,
|
|
3955
|
+
query_params=_query_params,
|
|
3956
|
+
header_params=_header_params,
|
|
3957
|
+
body=_body_params,
|
|
3958
|
+
post_params=_form_params,
|
|
3959
|
+
files=_files,
|
|
3960
|
+
auth_settings=_auth_settings,
|
|
3961
|
+
collection_formats=_collection_formats,
|
|
3962
|
+
_host=_host,
|
|
3963
|
+
_request_auth=_request_auth
|
|
3964
|
+
)
|
|
3965
|
+
|
|
3966
|
+
|