rapidata 1.8.3__py3-none-any.whl → 2.44.4__py3-none-any.whl
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Potentially problematic release.
This version of rapidata might be problematic. Click here for more details.
- rapidata/__init__.py +32 -16
- rapidata/api_client/__init__.py +83 -279
- rapidata/api_client/api/__init__.py +14 -4
- 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 +926 -125
- rapidata/api_client/api/client_api.py +589 -42
- rapidata/api_client/api/coco_api.py +45 -45
- rapidata/api_client/api/compare_workflow_api.py +47 -45
- rapidata/api_client/api/{validation_api.py → customer_rapid_api.py} +367 -378
- rapidata/api_client/api/datapoint_api.py +69 -336
- rapidata/api_client/api/dataset_api.py +263 -872
- rapidata/api_client/api/evaluation_workflow_api.py +319 -0
- rapidata/api_client/api/feedback_api.py +306 -0
- rapidata/api_client/api/grouped_ranking_workflow_api.py +319 -0
- rapidata/api_client/api/identity_api.py +365 -120
- rapidata/api_client/api/leaderboard_api.py +2550 -0
- rapidata/api_client/api/newsletter_api.py +35 -34
- rapidata/api_client/api/order_api.py +1111 -787
- rapidata/api_client/api/participant_api.py +2181 -0
- rapidata/api_client/api/pipeline_api.py +156 -139
- rapidata/api_client/api/prompt_api.py +320 -0
- rapidata/api_client/api/rapid_api.py +1288 -189
- 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 +47 -79
- rapidata/api_client/api/survey_api.py +304 -0
- rapidata/api_client/api/user_rapid_api.py +1389 -0
- rapidata/api_client/api/validation_set_api.py +3052 -0
- rapidata/api_client/api/workflow_api.py +410 -96
- 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 -260
- rapidata/api_client/models/ab_test_selection.py +122 -0
- rapidata/api_client/models/ab_test_selection_a_inner.py +240 -0
- rapidata/api_client/models/add_campaign_model.py +52 -11
- rapidata/api_client/models/add_campaign_model_user_filters_inner.py +224 -0
- rapidata/api_client/models/add_user_response_result.py +111 -0
- rapidata/api_client/models/add_user_response_result_validation_truth.py +258 -0
- rapidata/api_client/models/add_validation_rapid_model.py +61 -23
- 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_payload.py +30 -16
- rapidata/api_client/models/add_validation_rapid_model_truth.py +65 -17
- 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 +14 -9
- rapidata/api_client/models/age_group.py +5 -4
- 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 +5 -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 +87 -0
- rapidata/api_client/models/asset_metadata.py +106 -0
- rapidata/api_client/models/asset_metadata_asset.py +170 -0
- rapidata/api_client/models/asset_metadata_model.py +96 -0
- rapidata/api_client/models/asset_metadata_model_asset.py +170 -0
- 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/base_error.py +1 -4
- 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 +97 -0
- 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/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 +107 -0
- rapidata/api_client/models/campaign_query_result_paged_result.py +105 -0
- rapidata/api_client/models/campaign_status.py +4 -2
- rapidata/api_client/models/capped_selection.py +3 -3
- rapidata/api_client/models/change_boost_model.py +89 -0
- rapidata/api_client/models/classification_metadata.py +14 -5
- rapidata/api_client/models/classification_metadata_model.py +2 -4
- 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 +181 -0
- rapidata/api_client/models/clients_query_result.py +2 -2
- 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_match_status.py +39 -0
- 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_result.py +4 -4
- rapidata/api_client/models/compare_workflow_config.py +31 -22
- rapidata/api_client/models/compare_workflow_config_context_asset.py +174 -0
- rapidata/api_client/models/compare_workflow_config_metadata_value.py +296 -0
- rapidata/api_client/models/compare_workflow_config_model.py +32 -29
- rapidata/api_client/models/compare_workflow_config_model_pair_maker_config.py +126 -0
- rapidata/api_client/models/compare_workflow_config_pair_maker_config.py +126 -0
- rapidata/api_client/models/compare_workflow_model.py +59 -14
- rapidata/api_client/models/compare_workflow_model1.py +32 -19
- rapidata/api_client/models/compare_workflow_model1_pair_maker_information.py +126 -0
- 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 +126 -0
- rapidata/api_client/models/comparison_operator.py +41 -0
- rapidata/api_client/models/conditional_validation_selection.py +9 -5
- 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/coordinate.py +2 -2
- rapidata/api_client/models/count_metadata.py +13 -4
- rapidata/api_client/models/count_metadata_model.py +2 -4
- 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 +89 -0
- rapidata/api_client/models/create_datapoint_from_files_model.py +102 -0
- rapidata/api_client/models/create_datapoint_from_files_model_metadata_inner.py +182 -0
- rapidata/api_client/models/create_datapoint_from_text_sources_model.py +109 -0
- rapidata/api_client/models/create_datapoint_from_urls_model.py +109 -0
- rapidata/api_client/models/create_datapoint_from_urls_model_metadata_inner.py +168 -0
- 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 +87 -0
- rapidata/api_client/models/create_datapoints_from_s3_bucket_model.py +124 -0
- rapidata/api_client/models/create_demographic_rapid_model.py +45 -7
- rapidata/api_client/models/create_demographic_rapid_model_asset.py +160 -0
- rapidata/api_client/models/create_demographic_rapid_model_context_asset.py +160 -0
- rapidata/api_client/models/create_demographic_rapid_model_new.py +119 -0
- rapidata/api_client/models/create_empty_validation_set_result.py +2 -2
- rapidata/api_client/models/create_leaderboard_model.py +140 -0
- rapidata/api_client/models/create_leaderboard_participant_model.py +87 -0
- rapidata/api_client/models/create_leaderboard_participant_result.py +89 -0
- rapidata/api_client/models/create_leaderboard_result.py +99 -0
- rapidata/api_client/models/create_order_model.py +41 -52
- rapidata/api_client/models/create_order_model_referee.py +12 -12
- rapidata/api_client/models/create_order_model_user_filters_inner.py +83 -11
- 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 +87 -0
- 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 +87 -0
- rapidata/api_client/models/custom_user_filter_model.py +98 -0
- rapidata/api_client/models/datapoint.py +12 -28
- rapidata/api_client/models/datapoint_asset.py +40 -40
- rapidata/api_client/models/datapoint_metadata_model.py +13 -6
- rapidata/api_client/models/datapoint_model_paged_result.py +105 -0
- rapidata/api_client/models/datapoint_state.py +38 -0
- rapidata/api_client/models/dataset_dataset_id_datapoints_post_request_metadata_inner.py +182 -0
- rapidata/api_client/models/demographic.py +89 -0
- rapidata/api_client/models/demographic_filter.py +100 -0
- rapidata/api_client/models/demographic_metadata_model.py +18 -9
- rapidata/api_client/models/dynamic_client_registration_request.py +160 -0
- rapidata/api_client/models/early_stopping_referee_model.py +3 -3
- rapidata/api_client/models/effort_capped_selection.py +106 -0
- rapidata/api_client/models/elo_config.py +91 -0
- rapidata/api_client/models/elo_config_model.py +91 -0
- 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/evaluation_workflow_model1.py +115 -0
- 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 +15 -12
- 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.py +18 -13
- rapidata/api_client/models/file_asset_model_metadata_inner.py +8 -22
- rapidata/api_client/models/file_asset_model_metadata_value.py +252 -0
- 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_classify_workflow_result_overview_result.py +144 -0
- rapidata/api_client/models/get_compare_ab_summary_result.py +87 -0
- rapidata/api_client/models/get_compare_workflow_results_model.py +106 -0
- rapidata/api_client/models/get_compare_workflow_results_result.py +95 -0
- rapidata/api_client/models/get_compare_workflow_results_result_asset.py +170 -0
- rapidata/api_client/models/get_compare_workflow_results_result_paged_result.py +105 -0
- rapidata/api_client/models/get_datapoint_by_id_result.py +103 -0
- 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 +93 -0
- rapidata/api_client/models/get_evaluation_workflow_results_model.py +119 -0
- rapidata/api_client/models/get_failed_datapoints_result.py +95 -0
- 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 +135 -0
- rapidata/api_client/models/get_order_by_id_result.py +12 -5
- rapidata/api_client/models/get_participant_by_id_result.py +91 -0
- rapidata/api_client/models/get_pipeline_by_id_result.py +18 -8
- 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 +106 -0
- 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 +95 -0
- 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 +119 -0
- rapidata/api_client/models/get_simple_workflow_results_result.py +118 -0
- rapidata/api_client/models/get_simple_workflow_results_result_paged_result.py +105 -0
- rapidata/api_client/models/get_standing_by_id_result.py +96 -0
- rapidata/api_client/models/get_validation_rapids_query.py +123 -0
- rapidata/api_client/models/get_validation_rapids_query_paged_result.py +105 -0
- rapidata/api_client/models/get_validation_rapids_result.py +150 -0
- rapidata/api_client/models/get_validation_rapids_result_asset.py +174 -0
- rapidata/api_client/models/get_validation_rapids_result_paged_result.py +105 -0
- rapidata/api_client/models/get_validation_rapids_result_payload.py +252 -0
- rapidata/api_client/models/get_validation_rapids_result_truth.py +286 -0
- 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 +37 -9
- rapidata/api_client/models/get_workflow_progress_result.py +5 -11
- rapidata/api_client/models/get_workflow_results_result.py +129 -0
- rapidata/api_client/models/get_workflow_results_result_paged_result.py +105 -0
- rapidata/api_client/models/get_workflow_results_result_response.py +103 -0
- rapidata/api_client/models/google_one_tap_login_model.py +87 -0
- 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/identity_read_bridge_token_get202_response.py +140 -0
- rapidata/api_client/models/image_dimension_metadata.py +13 -4
- rapidata/api_client/models/image_dimension_metadata_model.py +2 -4
- rapidata/api_client/models/inquire_file_metadata_result.py +100 -0
- rapidata/api_client/models/inspect_report_result.py +92 -0
- rapidata/api_client/models/json_web_key.py +224 -0
- rapidata/api_client/models/json_web_key_set.py +95 -0
- rapidata/api_client/models/labeling_selection.py +21 -4
- rapidata/api_client/models/language_filter.py +98 -0
- rapidata/api_client/models/leaderboard_query_result.py +135 -0
- rapidata/api_client/models/leaderboard_query_result_paged_result.py +105 -0
- 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 +14 -5
- rapidata/api_client/models/location_metadata_model.py +2 -4
- rapidata/api_client/models/logic_operator.py +3 -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/metadata_visibilities.py +1 -0
- rapidata/api_client/models/multi_asset.py +17 -12
- 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 +21 -16
- rapidata/api_client/models/multi_asset_model2.py +3 -3
- rapidata/api_client/models/multi_compare_truth.py +96 -0
- rapidata/api_client/models/naive_referee_info.py +96 -0
- rapidata/api_client/models/naive_referee_model.py +2 -2
- rapidata/api_client/models/named_classification.py +4 -13
- rapidata/api_client/models/never_ending_referee_info.py +94 -0
- rapidata/api_client/models/new_user_filter.py +96 -0
- rapidata/api_client/models/new_user_filter_model.py +94 -0
- rapidata/api_client/models/new_user_filter_model1.py +94 -0
- rapidata/api_client/models/newsletter_model.py +6 -6
- rapidata/api_client/models/not_available_yet_result.py +87 -0
- rapidata/api_client/models/not_filter.py +117 -0
- rapidata/api_client/models/not_user_filter_model.py +102 -0
- rapidata/api_client/models/null_asset.py +14 -9
- rapidata/api_client/models/null_asset_model.py +18 -13
- rapidata/api_client/models/online_pair_maker_config.py +98 -0
- rapidata/api_client/models/online_pair_maker_config_model.py +98 -0
- rapidata/api_client/models/online_pair_maker_information.py +100 -0
- rapidata/api_client/models/or_filter.py +121 -0
- rapidata/api_client/models/or_user_filter_model.py +106 -0
- rapidata/api_client/models/order_model.py +16 -13
- rapidata/api_client/models/order_state.py +3 -2
- rapidata/api_client/models/original_filename_metadata.py +14 -5
- rapidata/api_client/models/original_filename_metadata_model.py +2 -4
- 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 +113 -0
- rapidata/api_client/models/participant_by_leaderboard_paged_result.py +105 -0
- rapidata/api_client/models/participant_status.py +38 -0
- rapidata/api_client/models/pipeline_id_workflow_artifact_id_put_request.py +140 -0
- rapidata/api_client/models/pipeline_id_workflow_config_put_request.py +140 -0
- rapidata/api_client/models/pipeline_id_workflow_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/pre_arranged_pair_maker_config.py +100 -0
- rapidata/api_client/models/pre_arranged_pair_maker_config_model.py +96 -0
- rapidata/api_client/models/pre_arranged_pair_maker_information.py +102 -0
- rapidata/api_client/models/preliminary_download_model.py +87 -0
- rapidata/api_client/models/preliminary_download_result.py +87 -0
- rapidata/api_client/models/preview_order_model.py +87 -0
- rapidata/api_client/models/probabilistic_attach_category_referee_info.py +98 -0
- rapidata/api_client/models/problem_details.py +2 -20
- rapidata/api_client/models/prompt_asset_metadata_input.py +100 -0
- 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_by_leaderboard_result.py +90 -0
- rapidata/api_client/models/prompt_by_leaderboard_result_paged_result.py +105 -0
- rapidata/api_client/models/prompt_metadata.py +13 -4
- rapidata/api_client/models/prompt_metadata_input.py +4 -6
- rapidata/api_client/models/prompt_metadata_model.py +2 -4
- 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/query_validation_rapids_result.py +50 -5
- rapidata/api_client/models/query_validation_rapids_result_asset.py +40 -40
- rapidata/api_client/models/query_validation_rapids_result_payload.py +252 -0
- rapidata/api_client/models/query_validation_rapids_result_truth.py +258 -0
- rapidata/api_client/models/rapid_answer.py +3 -1
- rapidata/api_client/models/rapid_answer_result.py +31 -17
- rapidata/api_client/models/rapid_issue.py +45 -0
- rapidata/api_client/models/rapid_modality.py +46 -0
- rapidata/api_client/models/rapid_model.py +157 -0
- rapidata/api_client/models/rapid_model_paged_result.py +105 -0
- rapidata/api_client/models/rapid_model_referee.py +154 -0
- rapidata/api_client/models/rapid_response.py +103 -0
- rapidata/api_client/models/rapid_response_result.py +266 -0
- rapidata/api_client/models/rapid_result_model.py +7 -7
- rapidata/api_client/models/rapid_result_model_result.py +31 -17
- rapidata/api_client/models/rapid_skipped_model.py +5 -5
- rapidata/api_client/models/rapid_state.py +41 -0
- rapidata/api_client/models/read_bridge_token_keys_result.py +3 -8
- rapidata/api_client/models/reference_asset_input.py +100 -0
- rapidata/api_client/models/report_model.py +109 -0
- rapidata/api_client/models/response_count_filter.py +103 -0
- rapidata/api_client/models/response_count_user_filter_model.py +101 -0
- rapidata/api_client/models/retrieval_mode.py +38 -0
- 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_payload.py +96 -0
- rapidata/api_client/models/scrub_range.py +89 -0
- rapidata/api_client/models/scrub_rapid_blueprint.py +96 -0
- rapidata/api_client/models/scrub_result.py +98 -0
- rapidata/api_client/models/scrub_truth.py +104 -0
- rapidata/api_client/models/send_survey_model.py +87 -0
- rapidata/api_client/models/shuffling_selection.py +106 -0
- rapidata/api_client/models/simple_workflow_config.py +6 -17
- rapidata/api_client/models/simple_workflow_config_blueprint.py +37 -23
- rapidata/api_client/models/simple_workflow_config_model.py +6 -22
- rapidata/api_client/models/simple_workflow_config_model_blueprint.py +31 -17
- rapidata/api_client/models/simple_workflow_get_result_overview_get200_response.py +16 -16
- rapidata/api_client/models/simple_workflow_model.py +14 -4
- rapidata/api_client/models/simple_workflow_model1.py +5 -12
- rapidata/api_client/models/simple_workflow_model_blueprint.py +31 -17
- rapidata/api_client/models/skip_truth.py +94 -0
- 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 +109 -0
- rapidata/api_client/models/source_url_metadata_model.py +96 -0
- 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 +39 -0
- rapidata/api_client/models/stream_file_wrapper.py +138 -0
- rapidata/api_client/models/streams_metadata.py +113 -0
- rapidata/api_client/models/streams_metadata_model.py +100 -0
- 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 +15 -10
- rapidata/api_client/models/text_asset_input.py +120 -0
- rapidata/api_client/models/text_asset_model.py +18 -13
- rapidata/api_client/models/text_metadata.py +20 -6
- rapidata/api_client/models/text_metadata_input.py +111 -0
- rapidata/api_client/models/text_metadata_model.py +9 -6
- rapidata/api_client/models/transcription_metadata.py +10 -4
- rapidata/api_client/models/transcription_metadata_input.py +4 -6
- rapidata/api_client/models/transcription_metadata_model.py +1 -3
- rapidata/api_client/models/transcription_truth.py +23 -4
- rapidata/api_client/models/transcription_word.py +2 -2
- rapidata/api_client/models/translated_prompt_metadata_model.py +2 -4
- rapidata/api_client/models/translated_string.py +2 -2
- rapidata/api_client/models/unlock_order_result.py +2 -2
- rapidata/api_client/models/update_access_model.py +1 -1
- 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 +99 -0
- rapidata/api_client/models/update_dataset_name_model.py +87 -0
- rapidata/api_client/models/update_dimensions_model.py +87 -0
- 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 +87 -0
- 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 +125 -0
- rapidata/api_client/models/update_validation_rapid_model_context_asset.py +160 -0
- rapidata/api_client/models/update_validation_rapid_model_truth.py +280 -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/upload_files_from_s3_bucket_model.py +15 -5
- rapidata/api_client/models/upload_from_s3_result.py +87 -0
- rapidata/api_client/models/upload_text_sources_to_dataset_model.py +26 -4
- rapidata/api_client/models/url_asset_input.py +100 -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_score_user_filter_model.py +9 -2
- 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_import_post_request_blueprint.py +31 -17
- 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_validation_set_id_rapid_post_payload_parameter.py +252 -0
- rapidata/api_client/models/validation_set_validation_set_id_rapid_post_truth_parameter.py +280 -0
- rapidata/api_client/models/validation_set_zip_post_request_blueprint.py +252 -0
- rapidata/api_client/models/video_duration_metadata.py +109 -0
- rapidata/api_client/models/video_duration_metadata_model.py +96 -0
- 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 +193 -154
- rapidata/api_client_README.md +488 -293
- rapidata/rapidata_client/__init__.py +27 -13
- 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 +145 -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/datapoints/metadata/__init__.py +7 -0
- rapidata/rapidata_client/{selection/base_selection.py → datapoints/metadata/_base_metadata.py} +2 -1
- 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/datapoints/metadata/_select_words_metadata.py +17 -0
- rapidata/rapidata_client/demographic/__init__.py +0 -0
- rapidata/rapidata_client/demographic/demographic_manager.py +54 -0
- rapidata/rapidata_client/exceptions/__init__.py +1 -0
- rapidata/rapidata_client/exceptions/failed_upload_exception.py +20 -0
- rapidata/rapidata_client/filter/__init__.py +7 -1
- rapidata/rapidata_client/filter/_base_filter.py +62 -0
- rapidata/rapidata_client/filter/age_filter.py +28 -10
- rapidata/rapidata_client/filter/and_filter.py +42 -0
- rapidata/rapidata_client/filter/campaign_filter.py +28 -11
- rapidata/rapidata_client/filter/country_filter.py +42 -13
- rapidata/rapidata_client/filter/custom_filter.py +39 -0
- rapidata/rapidata_client/filter/gender_filter.py +29 -10
- rapidata/rapidata_client/filter/language_filter.py +49 -15
- rapidata/rapidata_client/filter/models/__init__.py +0 -0
- rapidata/rapidata_client/filter/models/age_group.py +28 -0
- rapidata/rapidata_client/filter/models/gender.py +23 -0
- rapidata/rapidata_client/filter/new_user_filter.py +20 -0
- rapidata/rapidata_client/filter/not_filter.py +42 -0
- rapidata/rapidata_client/filter/or_filter.py +42 -0
- rapidata/rapidata_client/filter/rapidata_filters.py +60 -0
- rapidata/rapidata_client/filter/response_count_filter.py +62 -0
- rapidata/rapidata_client/filter/user_score_filter.py +60 -14
- rapidata/rapidata_client/order/_rapidata_order_builder.py +481 -0
- rapidata/rapidata_client/order/dataset/_rapidata_dataset.py +153 -0
- rapidata/rapidata_client/order/rapidata_order.py +393 -90
- rapidata/rapidata_client/order/rapidata_order_manager.py +922 -0
- rapidata/rapidata_client/order/rapidata_results.py +251 -0
- rapidata/rapidata_client/rapidata_client.py +125 -180
- rapidata/rapidata_client/referee/__init__.py +3 -3
- rapidata/rapidata_client/referee/{base_referee.py → _base_referee.py} +9 -5
- rapidata/rapidata_client/referee/_early_stopping_referee.py +62 -0
- rapidata/rapidata_client/referee/_naive_referee.py +48 -0
- rapidata/rapidata_client/selection/__init__.py +6 -1
- rapidata/rapidata_client/selection/_base_selection.py +16 -0
- rapidata/rapidata_client/selection/ab_test_selection.py +46 -0
- rapidata/rapidata_client/selection/capped_selection.py +34 -17
- rapidata/rapidata_client/selection/conditional_validation_selection.py +71 -21
- rapidata/rapidata_client/selection/demographic_selection.py +43 -8
- rapidata/rapidata_client/selection/effort_selection.py +49 -0
- rapidata/rapidata_client/selection/labeling_selection.py +45 -8
- rapidata/rapidata_client/selection/rapidata_retrieval_modes.py +21 -0
- rapidata/rapidata_client/selection/rapidata_selections.py +47 -0
- rapidata/rapidata_client/selection/shuffling_selection.py +44 -0
- rapidata/rapidata_client/selection/static_selection.py +33 -0
- rapidata/rapidata_client/selection/validation_selection.py +29 -6
- rapidata/rapidata_client/settings/__init__.py +12 -2
- rapidata/rapidata_client/settings/_rapidata_setting.py +24 -0
- rapidata/rapidata_client/settings/alert_on_fast_response.py +25 -0
- rapidata/rapidata_client/settings/allow_neither_both.py +17 -0
- rapidata/rapidata_client/settings/custom_setting.py +17 -0
- rapidata/rapidata_client/settings/free_text_minimum_characters.py +22 -0
- rapidata/rapidata_client/settings/models/__init__.py +1 -0
- rapidata/rapidata_client/settings/models/translation_behaviour_options.py +15 -0
- rapidata/rapidata_client/settings/mute_video.py +15 -0
- rapidata/rapidata_client/settings/no_shuffle.py +18 -0
- rapidata/rapidata_client/settings/play_video_until_the_end.py +19 -0
- rapidata/rapidata_client/settings/rapidata_settings.py +51 -0
- rapidata/rapidata_client/settings/swap_context_instruction.py +20 -0
- rapidata/rapidata_client/settings/translation_behaviour.py +20 -0
- rapidata/rapidata_client/validation/__init__.py +1 -0
- rapidata/rapidata_client/validation/rapidata_validation_set.py +141 -0
- rapidata/rapidata_client/validation/rapids/__init__.py +1 -0
- rapidata/rapidata_client/validation/rapids/_validation_rapid_uploader.py +62 -0
- rapidata/rapidata_client/validation/rapids/box.py +42 -0
- rapidata/rapidata_client/validation/rapids/rapids.py +29 -0
- rapidata/rapidata_client/validation/rapids/rapids_manager.py +469 -0
- rapidata/rapidata_client/validation/validation_set_manager.py +814 -0
- rapidata/rapidata_client/workflow/__init__.py +11 -6
- rapidata/rapidata_client/workflow/_base_workflow.py +43 -0
- rapidata/rapidata_client/workflow/_classify_workflow.py +92 -0
- rapidata/rapidata_client/workflow/_compare_workflow.py +76 -0
- rapidata/rapidata_client/workflow/_draw_workflow.py +52 -0
- rapidata/rapidata_client/workflow/_evaluation_workflow.py +47 -0
- rapidata/rapidata_client/workflow/_free_text_workflow.py +81 -0
- rapidata/rapidata_client/workflow/_locate_workflow.py +52 -0
- rapidata/rapidata_client/workflow/_multi_ranking_workflow.py +87 -0
- rapidata/rapidata_client/workflow/_ranking_workflow.py +131 -0
- rapidata/rapidata_client/workflow/_select_words_workflow.py +74 -0
- rapidata/rapidata_client/workflow/_timestamp_workflow.py +65 -0
- rapidata/service/__init__.py +0 -1
- rapidata/service/credential_manager.py +41 -32
- rapidata/service/openapi_service.py +153 -35
- rapidata/types/__init__.py +166 -0
- rapidata-2.44.4.dist-info/METADATA +32 -0
- rapidata-2.44.4.dist-info/RECORD +1014 -0
- {rapidata-1.8.3.dist-info → rapidata-2.44.4.dist-info}/WHEEL +1 -1
- rapidata/constants.py +0 -1
- rapidata/rapidata_client/assets/__init__.py +0 -8
- rapidata/rapidata_client/assets/base_asset.py +0 -11
- rapidata/rapidata_client/assets/media_asset.py +0 -88
- rapidata/rapidata_client/assets/multi_asset.py +0 -55
- rapidata/rapidata_client/assets/text_asset.py +0 -28
- rapidata/rapidata_client/country_codes/__init__.py +0 -1
- rapidata/rapidata_client/country_codes/country_codes.py +0 -19
- rapidata/rapidata_client/dataset/rapid_builders/__init__.py +0 -4
- rapidata/rapidata_client/dataset/rapid_builders/base_rapid_builder.py +0 -33
- rapidata/rapidata_client/dataset/rapid_builders/classify_rapid_builders.py +0 -166
- rapidata/rapidata_client/dataset/rapid_builders/compare_rapid_builders.py +0 -145
- rapidata/rapidata_client/dataset/rapid_builders/rapids.py +0 -32
- rapidata/rapidata_client/dataset/rapid_builders/transcription_rapid_builders.py +0 -132
- rapidata/rapidata_client/dataset/rapidata_dataset.py +0 -126
- rapidata/rapidata_client/dataset/rapidata_validation_set.py +0 -300
- rapidata/rapidata_client/dataset/validation_rapid_parts.py +0 -55
- rapidata/rapidata_client/dataset/validation_set_builder.py +0 -324
- rapidata/rapidata_client/filter/base_filter.py +0 -9
- rapidata/rapidata_client/metadata/__init__.py +0 -5
- rapidata/rapidata_client/metadata/base_metadata.py +0 -12
- rapidata/rapidata_client/metadata/private_text_metadata.py +0 -16
- rapidata/rapidata_client/metadata/prompt_metadata.py +0 -17
- rapidata/rapidata_client/metadata/public_text_metadata.py +0 -16
- rapidata/rapidata_client/metadata/transcription_metadata.py +0 -19
- rapidata/rapidata_client/order/rapidata_order_builder.py +0 -463
- rapidata/rapidata_client/referee/early_stopping_referee.py +0 -50
- rapidata/rapidata_client/referee/naive_referee.py +0 -33
- rapidata/rapidata_client/settings/feature_flags.py +0 -125
- rapidata/rapidata_client/settings/settings.py +0 -124
- rapidata/rapidata_client/simple_builders/simple_classification_builders.py +0 -245
- rapidata/rapidata_client/simple_builders/simple_compare_builders.py +0 -250
- rapidata/rapidata_client/simple_builders/simple_free_text_builders.py +0 -180
- rapidata/rapidata_client/simple_builders/simple_transcription_builders.py +0 -194
- rapidata/rapidata_client/workflow/base_workflow.py +0 -42
- rapidata/rapidata_client/workflow/classify_workflow.py +0 -49
- rapidata/rapidata_client/workflow/compare_workflow.py +0 -47
- rapidata/rapidata_client/workflow/evaluation_workflow.py +0 -15
- rapidata/rapidata_client/workflow/free_text_workflow.py +0 -50
- rapidata/rapidata_client/workflow/transcription_workflow.py +0 -40
- rapidata/service/local_file_service.py +0 -25
- rapidata/service/token_manager.py +0 -175
- rapidata-1.8.3.dist-info/METADATA +0 -28
- rapidata-1.8.3.dist-info/RECORD +0 -396
- /rapidata/rapidata_client/{dataset → api}/__init__.py +0 -0
- /rapidata/rapidata_client/{simple_builders → benchmark}/__init__.py +0 -0
- {rapidata-1.8.3.dist-info → rapidata-2.44.4.dist-info/licenses}/LICENSE +0 -0
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
# coding: utf-8
|
|
2
2
|
|
|
3
3
|
"""
|
|
4
|
-
Rapidata
|
|
4
|
+
Rapidata Asset API
|
|
5
5
|
|
|
6
|
-
|
|
6
|
+
The API for the Rapidata Asset service
|
|
7
7
|
|
|
8
8
|
The version of the OpenAPI document: v1
|
|
9
9
|
Generated by OpenAPI Generator (https://openapi-generator.tech)
|
|
@@ -16,15 +16,17 @@ from pydantic import validate_call, Field, StrictFloat, StrictStr, StrictInt
|
|
|
16
16
|
from typing import Any, Dict, List, Optional, Tuple, Union
|
|
17
17
|
from typing_extensions import Annotated
|
|
18
18
|
|
|
19
|
-
from pydantic import Field,
|
|
20
|
-
from typing import
|
|
19
|
+
from pydantic import Field, StrictStr
|
|
20
|
+
from typing import Optional
|
|
21
21
|
from typing_extensions import Annotated
|
|
22
|
-
from rapidata.api_client.models.
|
|
22
|
+
from rapidata.api_client.models.create_datapoint_model import CreateDatapointModel
|
|
23
|
+
from rapidata.api_client.models.create_datapoint_result import CreateDatapointResult
|
|
23
24
|
from rapidata.api_client.models.get_dataset_by_id_result import GetDatasetByIdResult
|
|
24
|
-
from rapidata.api_client.models.
|
|
25
|
-
from rapidata.api_client.models.
|
|
26
|
-
from rapidata.api_client.models.
|
|
27
|
-
from rapidata.api_client.models.
|
|
25
|
+
from rapidata.api_client.models.get_dataset_progress_result import GetDatasetProgressResult
|
|
26
|
+
from rapidata.api_client.models.get_failed_datapoints_result import GetFailedDatapointsResult
|
|
27
|
+
from rapidata.api_client.models.paged_result_of_query_datapoints_by_dataset_id_result import PagedResultOfQueryDatapointsByDatasetIdResult
|
|
28
|
+
from rapidata.api_client.models.query_model import QueryModel
|
|
29
|
+
from rapidata.api_client.models.update_dataset_name_model import UpdateDatasetNameModel
|
|
28
30
|
|
|
29
31
|
from rapidata.api_client.api_client import ApiClient, RequestSerialized
|
|
30
32
|
from rapidata.api_client.api_response import ApiResponse
|
|
@@ -45,9 +47,10 @@ class DatasetApi:
|
|
|
45
47
|
|
|
46
48
|
|
|
47
49
|
@validate_call
|
|
48
|
-
def
|
|
50
|
+
def dataset_dataset_id_datapoint_post(
|
|
49
51
|
self,
|
|
50
|
-
|
|
52
|
+
dataset_id: Annotated[StrictStr, Field(description="The id of the dataset to create the datapoint in.")],
|
|
53
|
+
create_datapoint_model: Annotated[CreateDatapointModel, Field(description="The datapoint model containing asset, metadata, and sort index.")],
|
|
51
54
|
_request_timeout: Union[
|
|
52
55
|
None,
|
|
53
56
|
Annotated[StrictFloat, Field(gt=0)],
|
|
@@ -60,13 +63,14 @@ class DatasetApi:
|
|
|
60
63
|
_content_type: Optional[StrictStr] = None,
|
|
61
64
|
_headers: Optional[Dict[StrictStr, Any]] = None,
|
|
62
65
|
_host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
|
|
63
|
-
) ->
|
|
64
|
-
"""Creates
|
|
66
|
+
) -> CreateDatapointResult:
|
|
67
|
+
"""Creates a datapoint with JSON body.
|
|
65
68
|
|
|
66
|
-
If multiple text sources are uploaded, a new datapoint will be created for each text source.
|
|
67
69
|
|
|
68
|
-
:param
|
|
69
|
-
:type
|
|
70
|
+
:param dataset_id: The id of the dataset to create the datapoint in. (required)
|
|
71
|
+
:type dataset_id: str
|
|
72
|
+
:param create_datapoint_model: The datapoint model containing asset, metadata, and sort index. (required)
|
|
73
|
+
:type create_datapoint_model: CreateDatapointModel
|
|
70
74
|
:param _request_timeout: timeout setting for this request. If one
|
|
71
75
|
number provided, it will be total request
|
|
72
76
|
timeout. It can also be a pair (tuple) of
|
|
@@ -89,8 +93,9 @@ class DatasetApi:
|
|
|
89
93
|
:return: Returns the result object.
|
|
90
94
|
""" # noqa: E501
|
|
91
95
|
|
|
92
|
-
_param = self.
|
|
93
|
-
|
|
96
|
+
_param = self._dataset_dataset_id_datapoint_post_serialize(
|
|
97
|
+
dataset_id=dataset_id,
|
|
98
|
+
create_datapoint_model=create_datapoint_model,
|
|
94
99
|
_request_auth=_request_auth,
|
|
95
100
|
_content_type=_content_type,
|
|
96
101
|
_headers=_headers,
|
|
@@ -98,7 +103,7 @@ class DatasetApi:
|
|
|
98
103
|
)
|
|
99
104
|
|
|
100
105
|
_response_types_map: Dict[str, Optional[str]] = {
|
|
101
|
-
'200': "
|
|
106
|
+
'200': "CreateDatapointResult",
|
|
102
107
|
}
|
|
103
108
|
response_data = self.api_client.call_api(
|
|
104
109
|
*_param,
|
|
@@ -112,9 +117,10 @@ class DatasetApi:
|
|
|
112
117
|
|
|
113
118
|
|
|
114
119
|
@validate_call
|
|
115
|
-
def
|
|
120
|
+
def dataset_dataset_id_datapoint_post_with_http_info(
|
|
116
121
|
self,
|
|
117
|
-
|
|
122
|
+
dataset_id: Annotated[StrictStr, Field(description="The id of the dataset to create the datapoint in.")],
|
|
123
|
+
create_datapoint_model: Annotated[CreateDatapointModel, Field(description="The datapoint model containing asset, metadata, and sort index.")],
|
|
118
124
|
_request_timeout: Union[
|
|
119
125
|
None,
|
|
120
126
|
Annotated[StrictFloat, Field(gt=0)],
|
|
@@ -127,13 +133,14 @@ class DatasetApi:
|
|
|
127
133
|
_content_type: Optional[StrictStr] = None,
|
|
128
134
|
_headers: Optional[Dict[StrictStr, Any]] = None,
|
|
129
135
|
_host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
|
|
130
|
-
) -> ApiResponse[
|
|
131
|
-
"""Creates
|
|
136
|
+
) -> ApiResponse[CreateDatapointResult]:
|
|
137
|
+
"""Creates a datapoint with JSON body.
|
|
132
138
|
|
|
133
|
-
If multiple text sources are uploaded, a new datapoint will be created for each text source.
|
|
134
139
|
|
|
135
|
-
:param
|
|
136
|
-
:type
|
|
140
|
+
:param dataset_id: The id of the dataset to create the datapoint in. (required)
|
|
141
|
+
:type dataset_id: str
|
|
142
|
+
:param create_datapoint_model: The datapoint model containing asset, metadata, and sort index. (required)
|
|
143
|
+
:type create_datapoint_model: CreateDatapointModel
|
|
137
144
|
:param _request_timeout: timeout setting for this request. If one
|
|
138
145
|
number provided, it will be total request
|
|
139
146
|
timeout. It can also be a pair (tuple) of
|
|
@@ -156,8 +163,9 @@ class DatasetApi:
|
|
|
156
163
|
:return: Returns the result object.
|
|
157
164
|
""" # noqa: E501
|
|
158
165
|
|
|
159
|
-
_param = self.
|
|
160
|
-
|
|
166
|
+
_param = self._dataset_dataset_id_datapoint_post_serialize(
|
|
167
|
+
dataset_id=dataset_id,
|
|
168
|
+
create_datapoint_model=create_datapoint_model,
|
|
161
169
|
_request_auth=_request_auth,
|
|
162
170
|
_content_type=_content_type,
|
|
163
171
|
_headers=_headers,
|
|
@@ -165,7 +173,7 @@ class DatasetApi:
|
|
|
165
173
|
)
|
|
166
174
|
|
|
167
175
|
_response_types_map: Dict[str, Optional[str]] = {
|
|
168
|
-
'200': "
|
|
176
|
+
'200': "CreateDatapointResult",
|
|
169
177
|
}
|
|
170
178
|
response_data = self.api_client.call_api(
|
|
171
179
|
*_param,
|
|
@@ -179,9 +187,10 @@ class DatasetApi:
|
|
|
179
187
|
|
|
180
188
|
|
|
181
189
|
@validate_call
|
|
182
|
-
def
|
|
190
|
+
def dataset_dataset_id_datapoint_post_without_preload_content(
|
|
183
191
|
self,
|
|
184
|
-
|
|
192
|
+
dataset_id: Annotated[StrictStr, Field(description="The id of the dataset to create the datapoint in.")],
|
|
193
|
+
create_datapoint_model: Annotated[CreateDatapointModel, Field(description="The datapoint model containing asset, metadata, and sort index.")],
|
|
185
194
|
_request_timeout: Union[
|
|
186
195
|
None,
|
|
187
196
|
Annotated[StrictFloat, Field(gt=0)],
|
|
@@ -195,12 +204,13 @@ class DatasetApi:
|
|
|
195
204
|
_headers: Optional[Dict[StrictStr, Any]] = None,
|
|
196
205
|
_host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
|
|
197
206
|
) -> RESTResponseType:
|
|
198
|
-
"""Creates
|
|
207
|
+
"""Creates a datapoint with JSON body.
|
|
199
208
|
|
|
200
|
-
If multiple text sources are uploaded, a new datapoint will be created for each text source.
|
|
201
209
|
|
|
202
|
-
:param
|
|
203
|
-
:type
|
|
210
|
+
:param dataset_id: The id of the dataset to create the datapoint in. (required)
|
|
211
|
+
:type dataset_id: str
|
|
212
|
+
:param create_datapoint_model: The datapoint model containing asset, metadata, and sort index. (required)
|
|
213
|
+
:type create_datapoint_model: CreateDatapointModel
|
|
204
214
|
:param _request_timeout: timeout setting for this request. If one
|
|
205
215
|
number provided, it will be total request
|
|
206
216
|
timeout. It can also be a pair (tuple) of
|
|
@@ -223,8 +233,9 @@ class DatasetApi:
|
|
|
223
233
|
:return: Returns the result object.
|
|
224
234
|
""" # noqa: E501
|
|
225
235
|
|
|
226
|
-
_param = self.
|
|
227
|
-
|
|
236
|
+
_param = self._dataset_dataset_id_datapoint_post_serialize(
|
|
237
|
+
dataset_id=dataset_id,
|
|
238
|
+
create_datapoint_model=create_datapoint_model,
|
|
228
239
|
_request_auth=_request_auth,
|
|
229
240
|
_content_type=_content_type,
|
|
230
241
|
_headers=_headers,
|
|
@@ -232,7 +243,7 @@ class DatasetApi:
|
|
|
232
243
|
)
|
|
233
244
|
|
|
234
245
|
_response_types_map: Dict[str, Optional[str]] = {
|
|
235
|
-
'200': "
|
|
246
|
+
'200': "CreateDatapointResult",
|
|
236
247
|
}
|
|
237
248
|
response_data = self.api_client.call_api(
|
|
238
249
|
*_param,
|
|
@@ -241,9 +252,10 @@ class DatasetApi:
|
|
|
241
252
|
return response_data.response
|
|
242
253
|
|
|
243
254
|
|
|
244
|
-
def
|
|
255
|
+
def _dataset_dataset_id_datapoint_post_serialize(
|
|
245
256
|
self,
|
|
246
|
-
|
|
257
|
+
dataset_id,
|
|
258
|
+
create_datapoint_model,
|
|
247
259
|
_request_auth,
|
|
248
260
|
_content_type,
|
|
249
261
|
_headers,
|
|
@@ -265,12 +277,14 @@ class DatasetApi:
|
|
|
265
277
|
_body_params: Optional[bytes] = None
|
|
266
278
|
|
|
267
279
|
# process the path parameters
|
|
280
|
+
if dataset_id is not None:
|
|
281
|
+
_path_params['datasetId'] = dataset_id
|
|
268
282
|
# process the query parameters
|
|
269
283
|
# process the header parameters
|
|
270
284
|
# process the form parameters
|
|
271
285
|
# process the body parameter
|
|
272
|
-
if
|
|
273
|
-
_body_params =
|
|
286
|
+
if create_datapoint_model is not None:
|
|
287
|
+
_body_params = create_datapoint_model
|
|
274
288
|
|
|
275
289
|
|
|
276
290
|
# set the HTTP header `Accept`
|
|
@@ -301,13 +315,14 @@ class DatasetApi:
|
|
|
301
315
|
|
|
302
316
|
# authentication setting
|
|
303
317
|
_auth_settings: List[str] = [
|
|
304
|
-
'
|
|
305
|
-
'
|
|
318
|
+
'OAuth2',
|
|
319
|
+
'OpenIdConnect',
|
|
320
|
+
'Bearer'
|
|
306
321
|
]
|
|
307
322
|
|
|
308
323
|
return self.api_client.param_serialize(
|
|
309
324
|
method='POST',
|
|
310
|
-
resource_path='/
|
|
325
|
+
resource_path='/dataset/{datasetId}/datapoint',
|
|
311
326
|
path_params=_path_params,
|
|
312
327
|
query_params=_query_params,
|
|
313
328
|
header_params=_header_params,
|
|
@@ -324,10 +339,9 @@ class DatasetApi:
|
|
|
324
339
|
|
|
325
340
|
|
|
326
341
|
@validate_call
|
|
327
|
-
def
|
|
342
|
+
def dataset_dataset_id_datapoints_failed_get(
|
|
328
343
|
self,
|
|
329
|
-
|
|
330
|
-
model: Optional[DatapointMetadataModel] = None,
|
|
344
|
+
dataset_id: Annotated[StrictStr, Field(description="The id of the dataset to get the failed datapoints of.")],
|
|
331
345
|
_request_timeout: Union[
|
|
332
346
|
None,
|
|
333
347
|
Annotated[StrictFloat, Field(gt=0)],
|
|
@@ -340,15 +354,13 @@ class DatasetApi:
|
|
|
340
354
|
_content_type: Optional[StrictStr] = None,
|
|
341
355
|
_headers: Optional[Dict[StrictStr, Any]] = None,
|
|
342
356
|
_host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
|
|
343
|
-
) ->
|
|
344
|
-
"""
|
|
357
|
+
) -> GetFailedDatapointsResult:
|
|
358
|
+
"""Gets a list of all datapoints that failed to upload.
|
|
345
359
|
|
|
346
|
-
|
|
360
|
+
A datapoint usually fails to upload when using a deferred upload mechanism such as when providing a URL and the URL is not accessible.
|
|
347
361
|
|
|
348
|
-
:param
|
|
349
|
-
:type
|
|
350
|
-
:param model:
|
|
351
|
-
:type model: DatapointMetadataModel
|
|
362
|
+
:param dataset_id: The id of the dataset to get the failed datapoints of. (required)
|
|
363
|
+
:type dataset_id: str
|
|
352
364
|
:param _request_timeout: timeout setting for this request. If one
|
|
353
365
|
number provided, it will be total request
|
|
354
366
|
timeout. It can also be a pair (tuple) of
|
|
@@ -371,9 +383,8 @@ class DatasetApi:
|
|
|
371
383
|
:return: Returns the result object.
|
|
372
384
|
""" # noqa: E501
|
|
373
385
|
|
|
374
|
-
_param = self.
|
|
375
|
-
|
|
376
|
-
model=model,
|
|
386
|
+
_param = self._dataset_dataset_id_datapoints_failed_get_serialize(
|
|
387
|
+
dataset_id=dataset_id,
|
|
377
388
|
_request_auth=_request_auth,
|
|
378
389
|
_content_type=_content_type,
|
|
379
390
|
_headers=_headers,
|
|
@@ -381,7 +392,7 @@ class DatasetApi:
|
|
|
381
392
|
)
|
|
382
393
|
|
|
383
394
|
_response_types_map: Dict[str, Optional[str]] = {
|
|
384
|
-
'200': "
|
|
395
|
+
'200': "GetFailedDatapointsResult",
|
|
385
396
|
}
|
|
386
397
|
response_data = self.api_client.call_api(
|
|
387
398
|
*_param,
|
|
@@ -395,10 +406,9 @@ class DatasetApi:
|
|
|
395
406
|
|
|
396
407
|
|
|
397
408
|
@validate_call
|
|
398
|
-
def
|
|
409
|
+
def dataset_dataset_id_datapoints_failed_get_with_http_info(
|
|
399
410
|
self,
|
|
400
|
-
|
|
401
|
-
model: Optional[DatapointMetadataModel] = None,
|
|
411
|
+
dataset_id: Annotated[StrictStr, Field(description="The id of the dataset to get the failed datapoints of.")],
|
|
402
412
|
_request_timeout: Union[
|
|
403
413
|
None,
|
|
404
414
|
Annotated[StrictFloat, Field(gt=0)],
|
|
@@ -411,15 +421,13 @@ class DatasetApi:
|
|
|
411
421
|
_content_type: Optional[StrictStr] = None,
|
|
412
422
|
_headers: Optional[Dict[StrictStr, Any]] = None,
|
|
413
423
|
_host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
|
|
414
|
-
) -> ApiResponse[
|
|
415
|
-
"""
|
|
424
|
+
) -> ApiResponse[GetFailedDatapointsResult]:
|
|
425
|
+
"""Gets a list of all datapoints that failed to upload.
|
|
416
426
|
|
|
417
|
-
|
|
427
|
+
A datapoint usually fails to upload when using a deferred upload mechanism such as when providing a URL and the URL is not accessible.
|
|
418
428
|
|
|
419
|
-
:param
|
|
420
|
-
:type
|
|
421
|
-
:param model:
|
|
422
|
-
:type model: DatapointMetadataModel
|
|
429
|
+
:param dataset_id: The id of the dataset to get the failed datapoints of. (required)
|
|
430
|
+
:type dataset_id: str
|
|
423
431
|
:param _request_timeout: timeout setting for this request. If one
|
|
424
432
|
number provided, it will be total request
|
|
425
433
|
timeout. It can also be a pair (tuple) of
|
|
@@ -442,9 +450,8 @@ class DatasetApi:
|
|
|
442
450
|
:return: Returns the result object.
|
|
443
451
|
""" # noqa: E501
|
|
444
452
|
|
|
445
|
-
_param = self.
|
|
446
|
-
|
|
447
|
-
model=model,
|
|
453
|
+
_param = self._dataset_dataset_id_datapoints_failed_get_serialize(
|
|
454
|
+
dataset_id=dataset_id,
|
|
448
455
|
_request_auth=_request_auth,
|
|
449
456
|
_content_type=_content_type,
|
|
450
457
|
_headers=_headers,
|
|
@@ -452,7 +459,7 @@ class DatasetApi:
|
|
|
452
459
|
)
|
|
453
460
|
|
|
454
461
|
_response_types_map: Dict[str, Optional[str]] = {
|
|
455
|
-
'200': "
|
|
462
|
+
'200': "GetFailedDatapointsResult",
|
|
456
463
|
}
|
|
457
464
|
response_data = self.api_client.call_api(
|
|
458
465
|
*_param,
|
|
@@ -466,10 +473,9 @@ class DatasetApi:
|
|
|
466
473
|
|
|
467
474
|
|
|
468
475
|
@validate_call
|
|
469
|
-
def
|
|
476
|
+
def dataset_dataset_id_datapoints_failed_get_without_preload_content(
|
|
470
477
|
self,
|
|
471
|
-
|
|
472
|
-
model: Optional[DatapointMetadataModel] = None,
|
|
478
|
+
dataset_id: Annotated[StrictStr, Field(description="The id of the dataset to get the failed datapoints of.")],
|
|
473
479
|
_request_timeout: Union[
|
|
474
480
|
None,
|
|
475
481
|
Annotated[StrictFloat, Field(gt=0)],
|
|
@@ -483,14 +489,12 @@ class DatasetApi:
|
|
|
483
489
|
_headers: Optional[Dict[StrictStr, Any]] = None,
|
|
484
490
|
_host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
|
|
485
491
|
) -> RESTResponseType:
|
|
486
|
-
"""
|
|
492
|
+
"""Gets a list of all datapoints that failed to upload.
|
|
487
493
|
|
|
488
|
-
|
|
494
|
+
A datapoint usually fails to upload when using a deferred upload mechanism such as when providing a URL and the URL is not accessible.
|
|
489
495
|
|
|
490
|
-
:param
|
|
491
|
-
:type
|
|
492
|
-
:param model:
|
|
493
|
-
:type model: DatapointMetadataModel
|
|
496
|
+
:param dataset_id: The id of the dataset to get the failed datapoints of. (required)
|
|
497
|
+
:type dataset_id: str
|
|
494
498
|
:param _request_timeout: timeout setting for this request. If one
|
|
495
499
|
number provided, it will be total request
|
|
496
500
|
timeout. It can also be a pair (tuple) of
|
|
@@ -513,9 +517,8 @@ class DatasetApi:
|
|
|
513
517
|
:return: Returns the result object.
|
|
514
518
|
""" # noqa: E501
|
|
515
519
|
|
|
516
|
-
_param = self.
|
|
517
|
-
|
|
518
|
-
model=model,
|
|
520
|
+
_param = self._dataset_dataset_id_datapoints_failed_get_serialize(
|
|
521
|
+
dataset_id=dataset_id,
|
|
519
522
|
_request_auth=_request_auth,
|
|
520
523
|
_content_type=_content_type,
|
|
521
524
|
_headers=_headers,
|
|
@@ -523,7 +526,7 @@ class DatasetApi:
|
|
|
523
526
|
)
|
|
524
527
|
|
|
525
528
|
_response_types_map: Dict[str, Optional[str]] = {
|
|
526
|
-
'200': "
|
|
529
|
+
'200': "GetFailedDatapointsResult",
|
|
527
530
|
}
|
|
528
531
|
response_data = self.api_client.call_api(
|
|
529
532
|
*_param,
|
|
@@ -532,10 +535,9 @@ class DatasetApi:
|
|
|
532
535
|
return response_data.response
|
|
533
536
|
|
|
534
537
|
|
|
535
|
-
def
|
|
538
|
+
def _dataset_dataset_id_datapoints_failed_get_serialize(
|
|
536
539
|
self,
|
|
537
|
-
|
|
538
|
-
model,
|
|
540
|
+
dataset_id,
|
|
539
541
|
_request_auth,
|
|
540
542
|
_content_type,
|
|
541
543
|
_headers,
|
|
@@ -545,7 +547,6 @@ class DatasetApi:
|
|
|
545
547
|
_host = None
|
|
546
548
|
|
|
547
549
|
_collection_formats: Dict[str, str] = {
|
|
548
|
-
'files': 'multi',
|
|
549
550
|
}
|
|
550
551
|
|
|
551
552
|
_path_params: Dict[str, str] = {}
|
|
@@ -558,13 +559,11 @@ class DatasetApi:
|
|
|
558
559
|
_body_params: Optional[bytes] = None
|
|
559
560
|
|
|
560
561
|
# process the path parameters
|
|
562
|
+
if dataset_id is not None:
|
|
563
|
+
_path_params['datasetId'] = dataset_id
|
|
561
564
|
# process the query parameters
|
|
562
565
|
# process the header parameters
|
|
563
566
|
# process the form parameters
|
|
564
|
-
if files is not None:
|
|
565
|
-
_files['files'] = files
|
|
566
|
-
if model is not None:
|
|
567
|
-
_form_params.append(('model', model))
|
|
568
567
|
# process the body parameter
|
|
569
568
|
|
|
570
569
|
|
|
@@ -578,29 +577,17 @@ class DatasetApi:
|
|
|
578
577
|
]
|
|
579
578
|
)
|
|
580
579
|
|
|
581
|
-
# set the HTTP header `Content-Type`
|
|
582
|
-
if _content_type:
|
|
583
|
-
_header_params['Content-Type'] = _content_type
|
|
584
|
-
else:
|
|
585
|
-
_default_content_type = (
|
|
586
|
-
self.api_client.select_header_content_type(
|
|
587
|
-
[
|
|
588
|
-
'multipart/form-data'
|
|
589
|
-
]
|
|
590
|
-
)
|
|
591
|
-
)
|
|
592
|
-
if _default_content_type is not None:
|
|
593
|
-
_header_params['Content-Type'] = _default_content_type
|
|
594
580
|
|
|
595
581
|
# authentication setting
|
|
596
582
|
_auth_settings: List[str] = [
|
|
597
|
-
'
|
|
598
|
-
'
|
|
583
|
+
'OAuth2',
|
|
584
|
+
'OpenIdConnect',
|
|
585
|
+
'Bearer'
|
|
599
586
|
]
|
|
600
587
|
|
|
601
588
|
return self.api_client.param_serialize(
|
|
602
|
-
method='
|
|
603
|
-
resource_path='/
|
|
589
|
+
method='GET',
|
|
590
|
+
resource_path='/dataset/{datasetId}/datapoints/failed',
|
|
604
591
|
path_params=_path_params,
|
|
605
592
|
query_params=_query_params,
|
|
606
593
|
header_params=_header_params,
|
|
@@ -617,9 +604,10 @@ class DatasetApi:
|
|
|
617
604
|
|
|
618
605
|
|
|
619
606
|
@validate_call
|
|
620
|
-
def
|
|
607
|
+
def dataset_dataset_id_datapoints_get(
|
|
621
608
|
self,
|
|
622
|
-
|
|
609
|
+
dataset_id: Annotated[StrictStr, Field(description="The id of the dataset to get the datapoints of.")],
|
|
610
|
+
request: Annotated[Optional[QueryModel], Field(description="The query model to filter, sort, and paginate the results.")] = None,
|
|
623
611
|
_request_timeout: Union[
|
|
624
612
|
None,
|
|
625
613
|
Annotated[StrictFloat, Field(gt=0)],
|
|
@@ -632,12 +620,14 @@ class DatasetApi:
|
|
|
632
620
|
_content_type: Optional[StrictStr] = None,
|
|
633
621
|
_headers: Optional[Dict[StrictStr, Any]] = None,
|
|
634
622
|
_host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
|
|
635
|
-
) ->
|
|
636
|
-
"""Gets
|
|
623
|
+
) -> PagedResultOfQueryDatapointsByDatasetIdResult:
|
|
624
|
+
"""Gets all datapoints of a dataset.
|
|
637
625
|
|
|
638
626
|
|
|
639
|
-
:param
|
|
640
|
-
:type
|
|
627
|
+
:param dataset_id: The id of the dataset to get the datapoints of. (required)
|
|
628
|
+
:type dataset_id: str
|
|
629
|
+
:param request: The query model to filter, sort, and paginate the results.
|
|
630
|
+
:type request: QueryModel
|
|
641
631
|
:param _request_timeout: timeout setting for this request. If one
|
|
642
632
|
number provided, it will be total request
|
|
643
633
|
timeout. It can also be a pair (tuple) of
|
|
@@ -660,8 +650,9 @@ class DatasetApi:
|
|
|
660
650
|
:return: Returns the result object.
|
|
661
651
|
""" # noqa: E501
|
|
662
652
|
|
|
663
|
-
_param = self.
|
|
664
|
-
|
|
653
|
+
_param = self._dataset_dataset_id_datapoints_get_serialize(
|
|
654
|
+
dataset_id=dataset_id,
|
|
655
|
+
request=request,
|
|
665
656
|
_request_auth=_request_auth,
|
|
666
657
|
_content_type=_content_type,
|
|
667
658
|
_headers=_headers,
|
|
@@ -669,7 +660,7 @@ class DatasetApi:
|
|
|
669
660
|
)
|
|
670
661
|
|
|
671
662
|
_response_types_map: Dict[str, Optional[str]] = {
|
|
672
|
-
'200': "
|
|
663
|
+
'200': "PagedResultOfQueryDatapointsByDatasetIdResult",
|
|
673
664
|
}
|
|
674
665
|
response_data = self.api_client.call_api(
|
|
675
666
|
*_param,
|
|
@@ -683,9 +674,10 @@ class DatasetApi:
|
|
|
683
674
|
|
|
684
675
|
|
|
685
676
|
@validate_call
|
|
686
|
-
def
|
|
677
|
+
def dataset_dataset_id_datapoints_get_with_http_info(
|
|
687
678
|
self,
|
|
688
|
-
|
|
679
|
+
dataset_id: Annotated[StrictStr, Field(description="The id of the dataset to get the datapoints of.")],
|
|
680
|
+
request: Annotated[Optional[QueryModel], Field(description="The query model to filter, sort, and paginate the results.")] = None,
|
|
689
681
|
_request_timeout: Union[
|
|
690
682
|
None,
|
|
691
683
|
Annotated[StrictFloat, Field(gt=0)],
|
|
@@ -698,12 +690,14 @@ class DatasetApi:
|
|
|
698
690
|
_content_type: Optional[StrictStr] = None,
|
|
699
691
|
_headers: Optional[Dict[StrictStr, Any]] = None,
|
|
700
692
|
_host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
|
|
701
|
-
) -> ApiResponse[
|
|
702
|
-
"""Gets
|
|
693
|
+
) -> ApiResponse[PagedResultOfQueryDatapointsByDatasetIdResult]:
|
|
694
|
+
"""Gets all datapoints of a dataset.
|
|
703
695
|
|
|
704
696
|
|
|
705
|
-
:param
|
|
706
|
-
:type
|
|
697
|
+
:param dataset_id: The id of the dataset to get the datapoints of. (required)
|
|
698
|
+
:type dataset_id: str
|
|
699
|
+
:param request: The query model to filter, sort, and paginate the results.
|
|
700
|
+
:type request: QueryModel
|
|
707
701
|
:param _request_timeout: timeout setting for this request. If one
|
|
708
702
|
number provided, it will be total request
|
|
709
703
|
timeout. It can also be a pair (tuple) of
|
|
@@ -726,8 +720,9 @@ class DatasetApi:
|
|
|
726
720
|
:return: Returns the result object.
|
|
727
721
|
""" # noqa: E501
|
|
728
722
|
|
|
729
|
-
_param = self.
|
|
730
|
-
|
|
723
|
+
_param = self._dataset_dataset_id_datapoints_get_serialize(
|
|
724
|
+
dataset_id=dataset_id,
|
|
725
|
+
request=request,
|
|
731
726
|
_request_auth=_request_auth,
|
|
732
727
|
_content_type=_content_type,
|
|
733
728
|
_headers=_headers,
|
|
@@ -735,7 +730,7 @@ class DatasetApi:
|
|
|
735
730
|
)
|
|
736
731
|
|
|
737
732
|
_response_types_map: Dict[str, Optional[str]] = {
|
|
738
|
-
'200': "
|
|
733
|
+
'200': "PagedResultOfQueryDatapointsByDatasetIdResult",
|
|
739
734
|
}
|
|
740
735
|
response_data = self.api_client.call_api(
|
|
741
736
|
*_param,
|
|
@@ -749,9 +744,10 @@ class DatasetApi:
|
|
|
749
744
|
|
|
750
745
|
|
|
751
746
|
@validate_call
|
|
752
|
-
def
|
|
747
|
+
def dataset_dataset_id_datapoints_get_without_preload_content(
|
|
753
748
|
self,
|
|
754
|
-
|
|
749
|
+
dataset_id: Annotated[StrictStr, Field(description="The id of the dataset to get the datapoints of.")],
|
|
750
|
+
request: Annotated[Optional[QueryModel], Field(description="The query model to filter, sort, and paginate the results.")] = None,
|
|
755
751
|
_request_timeout: Union[
|
|
756
752
|
None,
|
|
757
753
|
Annotated[StrictFloat, Field(gt=0)],
|
|
@@ -765,11 +761,13 @@ class DatasetApi:
|
|
|
765
761
|
_headers: Optional[Dict[StrictStr, Any]] = None,
|
|
766
762
|
_host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
|
|
767
763
|
) -> RESTResponseType:
|
|
768
|
-
"""Gets
|
|
764
|
+
"""Gets all datapoints of a dataset.
|
|
769
765
|
|
|
770
766
|
|
|
771
|
-
:param
|
|
772
|
-
:type
|
|
767
|
+
:param dataset_id: The id of the dataset to get the datapoints of. (required)
|
|
768
|
+
:type dataset_id: str
|
|
769
|
+
:param request: The query model to filter, sort, and paginate the results.
|
|
770
|
+
:type request: QueryModel
|
|
773
771
|
:param _request_timeout: timeout setting for this request. If one
|
|
774
772
|
number provided, it will be total request
|
|
775
773
|
timeout. It can also be a pair (tuple) of
|
|
@@ -792,8 +790,9 @@ class DatasetApi:
|
|
|
792
790
|
:return: Returns the result object.
|
|
793
791
|
""" # noqa: E501
|
|
794
792
|
|
|
795
|
-
_param = self.
|
|
796
|
-
|
|
793
|
+
_param = self._dataset_dataset_id_datapoints_get_serialize(
|
|
794
|
+
dataset_id=dataset_id,
|
|
795
|
+
request=request,
|
|
797
796
|
_request_auth=_request_auth,
|
|
798
797
|
_content_type=_content_type,
|
|
799
798
|
_headers=_headers,
|
|
@@ -801,7 +800,7 @@ class DatasetApi:
|
|
|
801
800
|
)
|
|
802
801
|
|
|
803
802
|
_response_types_map: Dict[str, Optional[str]] = {
|
|
804
|
-
'200': "
|
|
803
|
+
'200': "PagedResultOfQueryDatapointsByDatasetIdResult",
|
|
805
804
|
}
|
|
806
805
|
response_data = self.api_client.call_api(
|
|
807
806
|
*_param,
|
|
@@ -810,9 +809,10 @@ class DatasetApi:
|
|
|
810
809
|
return response_data.response
|
|
811
810
|
|
|
812
811
|
|
|
813
|
-
def
|
|
812
|
+
def _dataset_dataset_id_datapoints_get_serialize(
|
|
814
813
|
self,
|
|
815
|
-
|
|
814
|
+
dataset_id,
|
|
815
|
+
request,
|
|
816
816
|
_request_auth,
|
|
817
817
|
_content_type,
|
|
818
818
|
_headers,
|
|
@@ -834,10 +834,12 @@ class DatasetApi:
|
|
|
834
834
|
_body_params: Optional[bytes] = None
|
|
835
835
|
|
|
836
836
|
# process the path parameters
|
|
837
|
+
if dataset_id is not None:
|
|
838
|
+
_path_params['datasetId'] = dataset_id
|
|
837
839
|
# process the query parameters
|
|
838
|
-
if
|
|
840
|
+
if request is not None:
|
|
839
841
|
|
|
840
|
-
_query_params.append(('
|
|
842
|
+
_query_params.append(('request', request))
|
|
841
843
|
|
|
842
844
|
# process the header parameters
|
|
843
845
|
# process the form parameters
|
|
@@ -857,13 +859,14 @@ class DatasetApi:
|
|
|
857
859
|
|
|
858
860
|
# authentication setting
|
|
859
861
|
_auth_settings: List[str] = [
|
|
860
|
-
'
|
|
861
|
-
'
|
|
862
|
+
'OAuth2',
|
|
863
|
+
'OpenIdConnect',
|
|
864
|
+
'Bearer'
|
|
862
865
|
]
|
|
863
866
|
|
|
864
867
|
return self.api_client.param_serialize(
|
|
865
868
|
method='GET',
|
|
866
|
-
resource_path='/
|
|
869
|
+
resource_path='/dataset/{datasetId}/datapoints',
|
|
867
870
|
path_params=_path_params,
|
|
868
871
|
query_params=_query_params,
|
|
869
872
|
header_params=_header_params,
|
|
@@ -880,10 +883,9 @@ class DatasetApi:
|
|
|
880
883
|
|
|
881
884
|
|
|
882
885
|
@validate_call
|
|
883
|
-
def
|
|
886
|
+
def dataset_dataset_id_get(
|
|
884
887
|
self,
|
|
885
|
-
dataset_id: Annotated[
|
|
886
|
-
file: Annotated[Optional[Union[StrictBytes, StrictStr, Tuple[StrictStr, StrictBytes]]], Field(description="The csv file to import.")] = None,
|
|
888
|
+
dataset_id: Annotated[StrictStr, Field(description="The id of the dataset to get.")],
|
|
887
889
|
_request_timeout: Union[
|
|
888
890
|
None,
|
|
889
891
|
Annotated[StrictFloat, Field(gt=0)],
|
|
@@ -896,14 +898,12 @@ class DatasetApi:
|
|
|
896
898
|
_content_type: Optional[StrictStr] = None,
|
|
897
899
|
_headers: Optional[Dict[StrictStr, Any]] = None,
|
|
898
900
|
_host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
|
|
899
|
-
) ->
|
|
900
|
-
"""
|
|
901
|
+
) -> GetDatasetByIdResult:
|
|
902
|
+
"""Gets a dataset by its id.
|
|
901
903
|
|
|
902
904
|
|
|
903
|
-
:param dataset_id: The id of the dataset to
|
|
905
|
+
:param dataset_id: The id of the dataset to get. (required)
|
|
904
906
|
:type dataset_id: str
|
|
905
|
-
:param file: The csv file to import.
|
|
906
|
-
:type file: bytearray
|
|
907
907
|
:param _request_timeout: timeout setting for this request. If one
|
|
908
908
|
number provided, it will be total request
|
|
909
909
|
timeout. It can also be a pair (tuple) of
|
|
@@ -926,9 +926,8 @@ class DatasetApi:
|
|
|
926
926
|
:return: Returns the result object.
|
|
927
927
|
""" # noqa: E501
|
|
928
928
|
|
|
929
|
-
_param = self.
|
|
929
|
+
_param = self._dataset_dataset_id_get_serialize(
|
|
930
930
|
dataset_id=dataset_id,
|
|
931
|
-
file=file,
|
|
932
931
|
_request_auth=_request_auth,
|
|
933
932
|
_content_type=_content_type,
|
|
934
933
|
_headers=_headers,
|
|
@@ -936,7 +935,7 @@ class DatasetApi:
|
|
|
936
935
|
)
|
|
937
936
|
|
|
938
937
|
_response_types_map: Dict[str, Optional[str]] = {
|
|
939
|
-
'200': "
|
|
938
|
+
'200': "GetDatasetByIdResult",
|
|
940
939
|
}
|
|
941
940
|
response_data = self.api_client.call_api(
|
|
942
941
|
*_param,
|
|
@@ -950,10 +949,9 @@ class DatasetApi:
|
|
|
950
949
|
|
|
951
950
|
|
|
952
951
|
@validate_call
|
|
953
|
-
def
|
|
952
|
+
def dataset_dataset_id_get_with_http_info(
|
|
954
953
|
self,
|
|
955
|
-
dataset_id: Annotated[
|
|
956
|
-
file: Annotated[Optional[Union[StrictBytes, StrictStr, Tuple[StrictStr, StrictBytes]]], Field(description="The csv file to import.")] = None,
|
|
954
|
+
dataset_id: Annotated[StrictStr, Field(description="The id of the dataset to get.")],
|
|
957
955
|
_request_timeout: Union[
|
|
958
956
|
None,
|
|
959
957
|
Annotated[StrictFloat, Field(gt=0)],
|
|
@@ -966,14 +964,12 @@ class DatasetApi:
|
|
|
966
964
|
_content_type: Optional[StrictStr] = None,
|
|
967
965
|
_headers: Optional[Dict[StrictStr, Any]] = None,
|
|
968
966
|
_host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
|
|
969
|
-
) -> ApiResponse[
|
|
970
|
-
"""
|
|
967
|
+
) -> ApiResponse[GetDatasetByIdResult]:
|
|
968
|
+
"""Gets a dataset by its id.
|
|
971
969
|
|
|
972
970
|
|
|
973
|
-
:param dataset_id: The id of the dataset to
|
|
971
|
+
:param dataset_id: The id of the dataset to get. (required)
|
|
974
972
|
:type dataset_id: str
|
|
975
|
-
:param file: The csv file to import.
|
|
976
|
-
:type file: bytearray
|
|
977
973
|
:param _request_timeout: timeout setting for this request. If one
|
|
978
974
|
number provided, it will be total request
|
|
979
975
|
timeout. It can also be a pair (tuple) of
|
|
@@ -996,9 +992,8 @@ class DatasetApi:
|
|
|
996
992
|
:return: Returns the result object.
|
|
997
993
|
""" # noqa: E501
|
|
998
994
|
|
|
999
|
-
_param = self.
|
|
995
|
+
_param = self._dataset_dataset_id_get_serialize(
|
|
1000
996
|
dataset_id=dataset_id,
|
|
1001
|
-
file=file,
|
|
1002
997
|
_request_auth=_request_auth,
|
|
1003
998
|
_content_type=_content_type,
|
|
1004
999
|
_headers=_headers,
|
|
@@ -1006,7 +1001,7 @@ class DatasetApi:
|
|
|
1006
1001
|
)
|
|
1007
1002
|
|
|
1008
1003
|
_response_types_map: Dict[str, Optional[str]] = {
|
|
1009
|
-
'200': "
|
|
1004
|
+
'200': "GetDatasetByIdResult",
|
|
1010
1005
|
}
|
|
1011
1006
|
response_data = self.api_client.call_api(
|
|
1012
1007
|
*_param,
|
|
@@ -1020,10 +1015,9 @@ class DatasetApi:
|
|
|
1020
1015
|
|
|
1021
1016
|
|
|
1022
1017
|
@validate_call
|
|
1023
|
-
def
|
|
1018
|
+
def dataset_dataset_id_get_without_preload_content(
|
|
1024
1019
|
self,
|
|
1025
|
-
dataset_id: Annotated[
|
|
1026
|
-
file: Annotated[Optional[Union[StrictBytes, StrictStr, Tuple[StrictStr, StrictBytes]]], Field(description="The csv file to import.")] = None,
|
|
1020
|
+
dataset_id: Annotated[StrictStr, Field(description="The id of the dataset to get.")],
|
|
1027
1021
|
_request_timeout: Union[
|
|
1028
1022
|
None,
|
|
1029
1023
|
Annotated[StrictFloat, Field(gt=0)],
|
|
@@ -1037,13 +1031,11 @@ class DatasetApi:
|
|
|
1037
1031
|
_headers: Optional[Dict[StrictStr, Any]] = None,
|
|
1038
1032
|
_host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
|
|
1039
1033
|
) -> RESTResponseType:
|
|
1040
|
-
"""
|
|
1034
|
+
"""Gets a dataset by its id.
|
|
1041
1035
|
|
|
1042
1036
|
|
|
1043
|
-
:param dataset_id: The id of the dataset to
|
|
1037
|
+
:param dataset_id: The id of the dataset to get. (required)
|
|
1044
1038
|
:type dataset_id: str
|
|
1045
|
-
:param file: The csv file to import.
|
|
1046
|
-
:type file: bytearray
|
|
1047
1039
|
:param _request_timeout: timeout setting for this request. If one
|
|
1048
1040
|
number provided, it will be total request
|
|
1049
1041
|
timeout. It can also be a pair (tuple) of
|
|
@@ -1066,9 +1058,8 @@ class DatasetApi:
|
|
|
1066
1058
|
:return: Returns the result object.
|
|
1067
1059
|
""" # noqa: E501
|
|
1068
1060
|
|
|
1069
|
-
_param = self.
|
|
1061
|
+
_param = self._dataset_dataset_id_get_serialize(
|
|
1070
1062
|
dataset_id=dataset_id,
|
|
1071
|
-
file=file,
|
|
1072
1063
|
_request_auth=_request_auth,
|
|
1073
1064
|
_content_type=_content_type,
|
|
1074
1065
|
_headers=_headers,
|
|
@@ -1076,7 +1067,7 @@ class DatasetApi:
|
|
|
1076
1067
|
)
|
|
1077
1068
|
|
|
1078
1069
|
_response_types_map: Dict[str, Optional[str]] = {
|
|
1079
|
-
'200': "
|
|
1070
|
+
'200': "GetDatasetByIdResult",
|
|
1080
1071
|
}
|
|
1081
1072
|
response_data = self.api_client.call_api(
|
|
1082
1073
|
*_param,
|
|
@@ -1085,10 +1076,9 @@ class DatasetApi:
|
|
|
1085
1076
|
return response_data.response
|
|
1086
1077
|
|
|
1087
1078
|
|
|
1088
|
-
def
|
|
1079
|
+
def _dataset_dataset_id_get_serialize(
|
|
1089
1080
|
self,
|
|
1090
1081
|
dataset_id,
|
|
1091
|
-
file,
|
|
1092
1082
|
_request_auth,
|
|
1093
1083
|
_content_type,
|
|
1094
1084
|
_headers,
|
|
@@ -1110,15 +1100,11 @@ class DatasetApi:
|
|
|
1110
1100
|
_body_params: Optional[bytes] = None
|
|
1111
1101
|
|
|
1112
1102
|
# process the path parameters
|
|
1113
|
-
# process the query parameters
|
|
1114
1103
|
if dataset_id is not None:
|
|
1115
|
-
|
|
1116
|
-
|
|
1117
|
-
|
|
1104
|
+
_path_params['datasetId'] = dataset_id
|
|
1105
|
+
# process the query parameters
|
|
1118
1106
|
# process the header parameters
|
|
1119
1107
|
# process the form parameters
|
|
1120
|
-
if file is not None:
|
|
1121
|
-
_files['file'] = file
|
|
1122
1108
|
# process the body parameter
|
|
1123
1109
|
|
|
1124
1110
|
|
|
@@ -1132,29 +1118,17 @@ class DatasetApi:
|
|
|
1132
1118
|
]
|
|
1133
1119
|
)
|
|
1134
1120
|
|
|
1135
|
-
# set the HTTP header `Content-Type`
|
|
1136
|
-
if _content_type:
|
|
1137
|
-
_header_params['Content-Type'] = _content_type
|
|
1138
|
-
else:
|
|
1139
|
-
_default_content_type = (
|
|
1140
|
-
self.api_client.select_header_content_type(
|
|
1141
|
-
[
|
|
1142
|
-
'multipart/form-data'
|
|
1143
|
-
]
|
|
1144
|
-
)
|
|
1145
|
-
)
|
|
1146
|
-
if _default_content_type is not None:
|
|
1147
|
-
_header_params['Content-Type'] = _default_content_type
|
|
1148
1121
|
|
|
1149
1122
|
# authentication setting
|
|
1150
1123
|
_auth_settings: List[str] = [
|
|
1151
|
-
'
|
|
1152
|
-
'
|
|
1124
|
+
'OAuth2',
|
|
1125
|
+
'OpenIdConnect',
|
|
1126
|
+
'Bearer'
|
|
1153
1127
|
]
|
|
1154
1128
|
|
|
1155
1129
|
return self.api_client.param_serialize(
|
|
1156
|
-
method='
|
|
1157
|
-
resource_path='/
|
|
1130
|
+
method='GET',
|
|
1131
|
+
resource_path='/dataset/{datasetId}',
|
|
1158
1132
|
path_params=_path_params,
|
|
1159
1133
|
query_params=_query_params,
|
|
1160
1134
|
header_params=_header_params,
|
|
@@ -1171,10 +1145,10 @@ class DatasetApi:
|
|
|
1171
1145
|
|
|
1172
1146
|
|
|
1173
1147
|
@validate_call
|
|
1174
|
-
def
|
|
1148
|
+
def dataset_dataset_id_name_patch(
|
|
1175
1149
|
self,
|
|
1176
|
-
|
|
1177
|
-
|
|
1150
|
+
dataset_id: Annotated[StrictStr, Field(description="The id of the dataset to update.")],
|
|
1151
|
+
update_dataset_name_model: Annotated[UpdateDatasetNameModel, Field(description="The body of the request.")],
|
|
1178
1152
|
_request_timeout: Union[
|
|
1179
1153
|
None,
|
|
1180
1154
|
Annotated[StrictFloat, Field(gt=0)],
|
|
@@ -1191,10 +1165,10 @@ class DatasetApi:
|
|
|
1191
1165
|
"""Updates the name of a dataset.
|
|
1192
1166
|
|
|
1193
1167
|
|
|
1194
|
-
:param
|
|
1195
|
-
:type
|
|
1196
|
-
:param
|
|
1197
|
-
:type
|
|
1168
|
+
:param dataset_id: The id of the dataset to update. (required)
|
|
1169
|
+
:type dataset_id: str
|
|
1170
|
+
:param update_dataset_name_model: The body of the request. (required)
|
|
1171
|
+
:type update_dataset_name_model: UpdateDatasetNameModel
|
|
1198
1172
|
:param _request_timeout: timeout setting for this request. If one
|
|
1199
1173
|
number provided, it will be total request
|
|
1200
1174
|
timeout. It can also be a pair (tuple) of
|
|
@@ -1217,9 +1191,9 @@ class DatasetApi:
|
|
|
1217
1191
|
:return: Returns the result object.
|
|
1218
1192
|
""" # noqa: E501
|
|
1219
1193
|
|
|
1220
|
-
_param = self.
|
|
1221
|
-
|
|
1222
|
-
|
|
1194
|
+
_param = self._dataset_dataset_id_name_patch_serialize(
|
|
1195
|
+
dataset_id=dataset_id,
|
|
1196
|
+
update_dataset_name_model=update_dataset_name_model,
|
|
1223
1197
|
_request_auth=_request_auth,
|
|
1224
1198
|
_content_type=_content_type,
|
|
1225
1199
|
_headers=_headers,
|
|
@@ -1227,7 +1201,7 @@ class DatasetApi:
|
|
|
1227
1201
|
)
|
|
1228
1202
|
|
|
1229
1203
|
_response_types_map: Dict[str, Optional[str]] = {
|
|
1230
|
-
'
|
|
1204
|
+
'204': None,
|
|
1231
1205
|
}
|
|
1232
1206
|
response_data = self.api_client.call_api(
|
|
1233
1207
|
*_param,
|
|
@@ -1241,10 +1215,10 @@ class DatasetApi:
|
|
|
1241
1215
|
|
|
1242
1216
|
|
|
1243
1217
|
@validate_call
|
|
1244
|
-
def
|
|
1218
|
+
def dataset_dataset_id_name_patch_with_http_info(
|
|
1245
1219
|
self,
|
|
1246
|
-
|
|
1247
|
-
|
|
1220
|
+
dataset_id: Annotated[StrictStr, Field(description="The id of the dataset to update.")],
|
|
1221
|
+
update_dataset_name_model: Annotated[UpdateDatasetNameModel, Field(description="The body of the request.")],
|
|
1248
1222
|
_request_timeout: Union[
|
|
1249
1223
|
None,
|
|
1250
1224
|
Annotated[StrictFloat, Field(gt=0)],
|
|
@@ -1261,10 +1235,10 @@ class DatasetApi:
|
|
|
1261
1235
|
"""Updates the name of a dataset.
|
|
1262
1236
|
|
|
1263
1237
|
|
|
1264
|
-
:param
|
|
1265
|
-
:type
|
|
1266
|
-
:param
|
|
1267
|
-
:type
|
|
1238
|
+
:param dataset_id: The id of the dataset to update. (required)
|
|
1239
|
+
:type dataset_id: str
|
|
1240
|
+
:param update_dataset_name_model: The body of the request. (required)
|
|
1241
|
+
:type update_dataset_name_model: UpdateDatasetNameModel
|
|
1268
1242
|
:param _request_timeout: timeout setting for this request. If one
|
|
1269
1243
|
number provided, it will be total request
|
|
1270
1244
|
timeout. It can also be a pair (tuple) of
|
|
@@ -1287,9 +1261,9 @@ class DatasetApi:
|
|
|
1287
1261
|
:return: Returns the result object.
|
|
1288
1262
|
""" # noqa: E501
|
|
1289
1263
|
|
|
1290
|
-
_param = self.
|
|
1291
|
-
|
|
1292
|
-
|
|
1264
|
+
_param = self._dataset_dataset_id_name_patch_serialize(
|
|
1265
|
+
dataset_id=dataset_id,
|
|
1266
|
+
update_dataset_name_model=update_dataset_name_model,
|
|
1293
1267
|
_request_auth=_request_auth,
|
|
1294
1268
|
_content_type=_content_type,
|
|
1295
1269
|
_headers=_headers,
|
|
@@ -1297,7 +1271,7 @@ class DatasetApi:
|
|
|
1297
1271
|
)
|
|
1298
1272
|
|
|
1299
1273
|
_response_types_map: Dict[str, Optional[str]] = {
|
|
1300
|
-
'
|
|
1274
|
+
'204': None,
|
|
1301
1275
|
}
|
|
1302
1276
|
response_data = self.api_client.call_api(
|
|
1303
1277
|
*_param,
|
|
@@ -1311,10 +1285,10 @@ class DatasetApi:
|
|
|
1311
1285
|
|
|
1312
1286
|
|
|
1313
1287
|
@validate_call
|
|
1314
|
-
def
|
|
1288
|
+
def dataset_dataset_id_name_patch_without_preload_content(
|
|
1315
1289
|
self,
|
|
1316
|
-
|
|
1317
|
-
|
|
1290
|
+
dataset_id: Annotated[StrictStr, Field(description="The id of the dataset to update.")],
|
|
1291
|
+
update_dataset_name_model: Annotated[UpdateDatasetNameModel, Field(description="The body of the request.")],
|
|
1318
1292
|
_request_timeout: Union[
|
|
1319
1293
|
None,
|
|
1320
1294
|
Annotated[StrictFloat, Field(gt=0)],
|
|
@@ -1331,10 +1305,10 @@ class DatasetApi:
|
|
|
1331
1305
|
"""Updates the name of a dataset.
|
|
1332
1306
|
|
|
1333
1307
|
|
|
1334
|
-
:param
|
|
1335
|
-
:type
|
|
1336
|
-
:param
|
|
1337
|
-
:type
|
|
1308
|
+
:param dataset_id: The id of the dataset to update. (required)
|
|
1309
|
+
:type dataset_id: str
|
|
1310
|
+
:param update_dataset_name_model: The body of the request. (required)
|
|
1311
|
+
:type update_dataset_name_model: UpdateDatasetNameModel
|
|
1338
1312
|
:param _request_timeout: timeout setting for this request. If one
|
|
1339
1313
|
number provided, it will be total request
|
|
1340
1314
|
timeout. It can also be a pair (tuple) of
|
|
@@ -1357,9 +1331,9 @@ class DatasetApi:
|
|
|
1357
1331
|
:return: Returns the result object.
|
|
1358
1332
|
""" # noqa: E501
|
|
1359
1333
|
|
|
1360
|
-
_param = self.
|
|
1361
|
-
|
|
1362
|
-
|
|
1334
|
+
_param = self._dataset_dataset_id_name_patch_serialize(
|
|
1335
|
+
dataset_id=dataset_id,
|
|
1336
|
+
update_dataset_name_model=update_dataset_name_model,
|
|
1363
1337
|
_request_auth=_request_auth,
|
|
1364
1338
|
_content_type=_content_type,
|
|
1365
1339
|
_headers=_headers,
|
|
@@ -1367,7 +1341,7 @@ class DatasetApi:
|
|
|
1367
1341
|
)
|
|
1368
1342
|
|
|
1369
1343
|
_response_types_map: Dict[str, Optional[str]] = {
|
|
1370
|
-
'
|
|
1344
|
+
'204': None,
|
|
1371
1345
|
}
|
|
1372
1346
|
response_data = self.api_client.call_api(
|
|
1373
1347
|
*_param,
|
|
@@ -1376,10 +1350,10 @@ class DatasetApi:
|
|
|
1376
1350
|
return response_data.response
|
|
1377
1351
|
|
|
1378
1352
|
|
|
1379
|
-
def
|
|
1353
|
+
def _dataset_dataset_id_name_patch_serialize(
|
|
1380
1354
|
self,
|
|
1381
|
-
|
|
1382
|
-
|
|
1355
|
+
dataset_id,
|
|
1356
|
+
update_dataset_name_model,
|
|
1383
1357
|
_request_auth,
|
|
1384
1358
|
_content_type,
|
|
1385
1359
|
_headers,
|
|
@@ -1401,31 +1375,43 @@ class DatasetApi:
|
|
|
1401
1375
|
_body_params: Optional[bytes] = None
|
|
1402
1376
|
|
|
1403
1377
|
# process the path parameters
|
|
1378
|
+
if dataset_id is not None:
|
|
1379
|
+
_path_params['datasetId'] = dataset_id
|
|
1404
1380
|
# process the query parameters
|
|
1405
|
-
if id is not None:
|
|
1406
|
-
|
|
1407
|
-
_query_params.append(('id', id))
|
|
1408
|
-
|
|
1409
|
-
if name is not None:
|
|
1410
|
-
|
|
1411
|
-
_query_params.append(('name', name))
|
|
1412
|
-
|
|
1413
1381
|
# process the header parameters
|
|
1414
1382
|
# process the form parameters
|
|
1415
1383
|
# process the body parameter
|
|
1384
|
+
if update_dataset_name_model is not None:
|
|
1385
|
+
_body_params = update_dataset_name_model
|
|
1416
1386
|
|
|
1417
1387
|
|
|
1418
1388
|
|
|
1389
|
+
# set the HTTP header `Content-Type`
|
|
1390
|
+
if _content_type:
|
|
1391
|
+
_header_params['Content-Type'] = _content_type
|
|
1392
|
+
else:
|
|
1393
|
+
_default_content_type = (
|
|
1394
|
+
self.api_client.select_header_content_type(
|
|
1395
|
+
[
|
|
1396
|
+
'application/json',
|
|
1397
|
+
'text/json',
|
|
1398
|
+
'application/*+json'
|
|
1399
|
+
]
|
|
1400
|
+
)
|
|
1401
|
+
)
|
|
1402
|
+
if _default_content_type is not None:
|
|
1403
|
+
_header_params['Content-Type'] = _default_content_type
|
|
1419
1404
|
|
|
1420
1405
|
# authentication setting
|
|
1421
1406
|
_auth_settings: List[str] = [
|
|
1422
|
-
'
|
|
1423
|
-
'
|
|
1407
|
+
'OAuth2',
|
|
1408
|
+
'OpenIdConnect',
|
|
1409
|
+
'Bearer'
|
|
1424
1410
|
]
|
|
1425
1411
|
|
|
1426
1412
|
return self.api_client.param_serialize(
|
|
1427
|
-
method='
|
|
1428
|
-
resource_path='/
|
|
1413
|
+
method='PATCH',
|
|
1414
|
+
resource_path='/dataset/{datasetId}/name',
|
|
1429
1415
|
path_params=_path_params,
|
|
1430
1416
|
query_params=_query_params,
|
|
1431
1417
|
header_params=_header_params,
|
|
@@ -1442,10 +1428,9 @@ class DatasetApi:
|
|
|
1442
1428
|
|
|
1443
1429
|
|
|
1444
1430
|
@validate_call
|
|
1445
|
-
def
|
|
1431
|
+
def dataset_dataset_id_progress_get(
|
|
1446
1432
|
self,
|
|
1447
|
-
dataset_id: Annotated[
|
|
1448
|
-
files: Annotated[Optional[List[Union[StrictBytes, StrictStr, Tuple[StrictStr, StrictBytes]]]], Field(description="The image files to create the asset from.")] = None,
|
|
1433
|
+
dataset_id: Annotated[StrictStr, Field(description="The id of the dataset to get the progress of.")],
|
|
1449
1434
|
_request_timeout: Union[
|
|
1450
1435
|
None,
|
|
1451
1436
|
Annotated[StrictFloat, Field(gt=0)],
|
|
@@ -1458,14 +1443,12 @@ class DatasetApi:
|
|
|
1458
1443
|
_content_type: Optional[StrictStr] = None,
|
|
1459
1444
|
_headers: Optional[Dict[StrictStr, Any]] = None,
|
|
1460
1445
|
_host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
|
|
1461
|
-
) ->
|
|
1462
|
-
"""
|
|
1446
|
+
) -> GetDatasetProgressResult:
|
|
1447
|
+
"""Gets the upload progress of a dataset.
|
|
1463
1448
|
|
|
1464
1449
|
|
|
1465
|
-
:param dataset_id: The id of the dataset to
|
|
1450
|
+
:param dataset_id: The id of the dataset to get the progress of. (required)
|
|
1466
1451
|
:type dataset_id: str
|
|
1467
|
-
:param files: The image files to create the asset from.
|
|
1468
|
-
:type files: List[bytearray]
|
|
1469
1452
|
:param _request_timeout: timeout setting for this request. If one
|
|
1470
1453
|
number provided, it will be total request
|
|
1471
1454
|
timeout. It can also be a pair (tuple) of
|
|
@@ -1488,9 +1471,8 @@ class DatasetApi:
|
|
|
1488
1471
|
:return: Returns the result object.
|
|
1489
1472
|
""" # noqa: E501
|
|
1490
1473
|
|
|
1491
|
-
_param = self.
|
|
1474
|
+
_param = self._dataset_dataset_id_progress_get_serialize(
|
|
1492
1475
|
dataset_id=dataset_id,
|
|
1493
|
-
files=files,
|
|
1494
1476
|
_request_auth=_request_auth,
|
|
1495
1477
|
_content_type=_content_type,
|
|
1496
1478
|
_headers=_headers,
|
|
@@ -1498,7 +1480,7 @@ class DatasetApi:
|
|
|
1498
1480
|
)
|
|
1499
1481
|
|
|
1500
1482
|
_response_types_map: Dict[str, Optional[str]] = {
|
|
1501
|
-
'200': "
|
|
1483
|
+
'200': "GetDatasetProgressResult",
|
|
1502
1484
|
}
|
|
1503
1485
|
response_data = self.api_client.call_api(
|
|
1504
1486
|
*_param,
|
|
@@ -1512,10 +1494,9 @@ class DatasetApi:
|
|
|
1512
1494
|
|
|
1513
1495
|
|
|
1514
1496
|
@validate_call
|
|
1515
|
-
def
|
|
1497
|
+
def dataset_dataset_id_progress_get_with_http_info(
|
|
1516
1498
|
self,
|
|
1517
|
-
dataset_id: Annotated[
|
|
1518
|
-
files: Annotated[Optional[List[Union[StrictBytes, StrictStr, Tuple[StrictStr, StrictBytes]]]], Field(description="The image files to create the asset from.")] = None,
|
|
1499
|
+
dataset_id: Annotated[StrictStr, Field(description="The id of the dataset to get the progress of.")],
|
|
1519
1500
|
_request_timeout: Union[
|
|
1520
1501
|
None,
|
|
1521
1502
|
Annotated[StrictFloat, Field(gt=0)],
|
|
@@ -1528,14 +1509,12 @@ class DatasetApi:
|
|
|
1528
1509
|
_content_type: Optional[StrictStr] = None,
|
|
1529
1510
|
_headers: Optional[Dict[StrictStr, Any]] = None,
|
|
1530
1511
|
_host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
|
|
1531
|
-
) -> ApiResponse[
|
|
1532
|
-
"""
|
|
1512
|
+
) -> ApiResponse[GetDatasetProgressResult]:
|
|
1513
|
+
"""Gets the upload progress of a dataset.
|
|
1533
1514
|
|
|
1534
1515
|
|
|
1535
|
-
:param dataset_id: The id of the dataset to
|
|
1516
|
+
:param dataset_id: The id of the dataset to get the progress of. (required)
|
|
1536
1517
|
:type dataset_id: str
|
|
1537
|
-
:param files: The image files to create the asset from.
|
|
1538
|
-
:type files: List[bytearray]
|
|
1539
1518
|
:param _request_timeout: timeout setting for this request. If one
|
|
1540
1519
|
number provided, it will be total request
|
|
1541
1520
|
timeout. It can also be a pair (tuple) of
|
|
@@ -1558,9 +1537,8 @@ class DatasetApi:
|
|
|
1558
1537
|
:return: Returns the result object.
|
|
1559
1538
|
""" # noqa: E501
|
|
1560
1539
|
|
|
1561
|
-
_param = self.
|
|
1540
|
+
_param = self._dataset_dataset_id_progress_get_serialize(
|
|
1562
1541
|
dataset_id=dataset_id,
|
|
1563
|
-
files=files,
|
|
1564
1542
|
_request_auth=_request_auth,
|
|
1565
1543
|
_content_type=_content_type,
|
|
1566
1544
|
_headers=_headers,
|
|
@@ -1568,7 +1546,7 @@ class DatasetApi:
|
|
|
1568
1546
|
)
|
|
1569
1547
|
|
|
1570
1548
|
_response_types_map: Dict[str, Optional[str]] = {
|
|
1571
|
-
'200': "
|
|
1549
|
+
'200': "GetDatasetProgressResult",
|
|
1572
1550
|
}
|
|
1573
1551
|
response_data = self.api_client.call_api(
|
|
1574
1552
|
*_param,
|
|
@@ -1582,10 +1560,9 @@ class DatasetApi:
|
|
|
1582
1560
|
|
|
1583
1561
|
|
|
1584
1562
|
@validate_call
|
|
1585
|
-
def
|
|
1563
|
+
def dataset_dataset_id_progress_get_without_preload_content(
|
|
1586
1564
|
self,
|
|
1587
|
-
dataset_id: Annotated[
|
|
1588
|
-
files: Annotated[Optional[List[Union[StrictBytes, StrictStr, Tuple[StrictStr, StrictBytes]]]], Field(description="The image files to create the asset from.")] = None,
|
|
1565
|
+
dataset_id: Annotated[StrictStr, Field(description="The id of the dataset to get the progress of.")],
|
|
1589
1566
|
_request_timeout: Union[
|
|
1590
1567
|
None,
|
|
1591
1568
|
Annotated[StrictFloat, Field(gt=0)],
|
|
@@ -1599,13 +1576,11 @@ class DatasetApi:
|
|
|
1599
1576
|
_headers: Optional[Dict[StrictStr, Any]] = None,
|
|
1600
1577
|
_host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
|
|
1601
1578
|
) -> RESTResponseType:
|
|
1602
|
-
"""
|
|
1579
|
+
"""Gets the upload progress of a dataset.
|
|
1603
1580
|
|
|
1604
1581
|
|
|
1605
|
-
:param dataset_id: The id of the dataset to
|
|
1582
|
+
:param dataset_id: The id of the dataset to get the progress of. (required)
|
|
1606
1583
|
:type dataset_id: str
|
|
1607
|
-
:param files: The image files to create the asset from.
|
|
1608
|
-
:type files: List[bytearray]
|
|
1609
1584
|
:param _request_timeout: timeout setting for this request. If one
|
|
1610
1585
|
number provided, it will be total request
|
|
1611
1586
|
timeout. It can also be a pair (tuple) of
|
|
@@ -1628,9 +1603,8 @@ class DatasetApi:
|
|
|
1628
1603
|
:return: Returns the result object.
|
|
1629
1604
|
""" # noqa: E501
|
|
1630
1605
|
|
|
1631
|
-
_param = self.
|
|
1606
|
+
_param = self._dataset_dataset_id_progress_get_serialize(
|
|
1632
1607
|
dataset_id=dataset_id,
|
|
1633
|
-
files=files,
|
|
1634
1608
|
_request_auth=_request_auth,
|
|
1635
1609
|
_content_type=_content_type,
|
|
1636
1610
|
_headers=_headers,
|
|
@@ -1638,7 +1612,7 @@ class DatasetApi:
|
|
|
1638
1612
|
)
|
|
1639
1613
|
|
|
1640
1614
|
_response_types_map: Dict[str, Optional[str]] = {
|
|
1641
|
-
'200': "
|
|
1615
|
+
'200': "GetDatasetProgressResult",
|
|
1642
1616
|
}
|
|
1643
1617
|
response_data = self.api_client.call_api(
|
|
1644
1618
|
*_param,
|
|
@@ -1647,10 +1621,9 @@ class DatasetApi:
|
|
|
1647
1621
|
return response_data.response
|
|
1648
1622
|
|
|
1649
1623
|
|
|
1650
|
-
def
|
|
1624
|
+
def _dataset_dataset_id_progress_get_serialize(
|
|
1651
1625
|
self,
|
|
1652
1626
|
dataset_id,
|
|
1653
|
-
files,
|
|
1654
1627
|
_request_auth,
|
|
1655
1628
|
_content_type,
|
|
1656
1629
|
_headers,
|
|
@@ -1660,7 +1633,6 @@ class DatasetApi:
|
|
|
1660
1633
|
_host = None
|
|
1661
1634
|
|
|
1662
1635
|
_collection_formats: Dict[str, str] = {
|
|
1663
|
-
'files': 'multi',
|
|
1664
1636
|
}
|
|
1665
1637
|
|
|
1666
1638
|
_path_params: Dict[str, str] = {}
|
|
@@ -1673,15 +1645,11 @@ class DatasetApi:
|
|
|
1673
1645
|
_body_params: Optional[bytes] = None
|
|
1674
1646
|
|
|
1675
1647
|
# process the path parameters
|
|
1676
|
-
# process the query parameters
|
|
1677
1648
|
if dataset_id is not None:
|
|
1678
|
-
|
|
1679
|
-
|
|
1680
|
-
|
|
1649
|
+
_path_params['datasetId'] = dataset_id
|
|
1650
|
+
# process the query parameters
|
|
1681
1651
|
# process the header parameters
|
|
1682
1652
|
# process the form parameters
|
|
1683
|
-
if files is not None:
|
|
1684
|
-
_files['files'] = files
|
|
1685
1653
|
# process the body parameter
|
|
1686
1654
|
|
|
1687
1655
|
|
|
@@ -1695,594 +1663,17 @@ class DatasetApi:
|
|
|
1695
1663
|
]
|
|
1696
1664
|
)
|
|
1697
1665
|
|
|
1698
|
-
# set the HTTP header `Content-Type`
|
|
1699
|
-
if _content_type:
|
|
1700
|
-
_header_params['Content-Type'] = _content_type
|
|
1701
|
-
else:
|
|
1702
|
-
_default_content_type = (
|
|
1703
|
-
self.api_client.select_header_content_type(
|
|
1704
|
-
[
|
|
1705
|
-
'multipart/form-data'
|
|
1706
|
-
]
|
|
1707
|
-
)
|
|
1708
|
-
)
|
|
1709
|
-
if _default_content_type is not None:
|
|
1710
|
-
_header_params['Content-Type'] = _default_content_type
|
|
1711
1666
|
|
|
1712
1667
|
# authentication setting
|
|
1713
1668
|
_auth_settings: List[str] = [
|
|
1714
|
-
'
|
|
1715
|
-
'
|
|
1669
|
+
'OAuth2',
|
|
1670
|
+
'OpenIdConnect',
|
|
1671
|
+
'Bearer'
|
|
1716
1672
|
]
|
|
1717
1673
|
|
|
1718
1674
|
return self.api_client.param_serialize(
|
|
1719
|
-
method='
|
|
1720
|
-
resource_path='/
|
|
1721
|
-
path_params=_path_params,
|
|
1722
|
-
query_params=_query_params,
|
|
1723
|
-
header_params=_header_params,
|
|
1724
|
-
body=_body_params,
|
|
1725
|
-
post_params=_form_params,
|
|
1726
|
-
files=_files,
|
|
1727
|
-
auth_settings=_auth_settings,
|
|
1728
|
-
collection_formats=_collection_formats,
|
|
1729
|
-
_host=_host,
|
|
1730
|
-
_request_auth=_request_auth
|
|
1731
|
-
)
|
|
1732
|
-
|
|
1733
|
-
|
|
1734
|
-
|
|
1735
|
-
|
|
1736
|
-
@validate_call
|
|
1737
|
-
def dataset_upload_files_from_s3_post(
|
|
1738
|
-
self,
|
|
1739
|
-
upload_files_from_s3_bucket_model: Annotated[Optional[UploadFilesFromS3BucketModel], Field(description="The body of the request.")] = None,
|
|
1740
|
-
_request_timeout: Union[
|
|
1741
|
-
None,
|
|
1742
|
-
Annotated[StrictFloat, Field(gt=0)],
|
|
1743
|
-
Tuple[
|
|
1744
|
-
Annotated[StrictFloat, Field(gt=0)],
|
|
1745
|
-
Annotated[StrictFloat, Field(gt=0)]
|
|
1746
|
-
]
|
|
1747
|
-
] = None,
|
|
1748
|
-
_request_auth: Optional[Dict[StrictStr, Any]] = None,
|
|
1749
|
-
_content_type: Optional[StrictStr] = None,
|
|
1750
|
-
_headers: Optional[Dict[StrictStr, Any]] = None,
|
|
1751
|
-
_host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
|
|
1752
|
-
) -> UploadDatapointsResult:
|
|
1753
|
-
"""Uploads files from an S3 bucket to a dataset.
|
|
1754
|
-
|
|
1755
|
-
A new datapoint will be created for each file in the bucket.
|
|
1756
|
-
|
|
1757
|
-
:param upload_files_from_s3_bucket_model: The body of the request.
|
|
1758
|
-
:type upload_files_from_s3_bucket_model: UploadFilesFromS3BucketModel
|
|
1759
|
-
:param _request_timeout: timeout setting for this request. If one
|
|
1760
|
-
number provided, it will be total request
|
|
1761
|
-
timeout. It can also be a pair (tuple) of
|
|
1762
|
-
(connection, read) timeouts.
|
|
1763
|
-
:type _request_timeout: int, tuple(int, int), optional
|
|
1764
|
-
:param _request_auth: set to override the auth_settings for an a single
|
|
1765
|
-
request; this effectively ignores the
|
|
1766
|
-
authentication in the spec for a single request.
|
|
1767
|
-
:type _request_auth: dict, optional
|
|
1768
|
-
:param _content_type: force content-type for the request.
|
|
1769
|
-
:type _content_type: str, Optional
|
|
1770
|
-
:param _headers: set to override the headers for a single
|
|
1771
|
-
request; this effectively ignores the headers
|
|
1772
|
-
in the spec for a single request.
|
|
1773
|
-
:type _headers: dict, optional
|
|
1774
|
-
:param _host_index: set to override the host_index for a single
|
|
1775
|
-
request; this effectively ignores the host_index
|
|
1776
|
-
in the spec for a single request.
|
|
1777
|
-
:type _host_index: int, optional
|
|
1778
|
-
:return: Returns the result object.
|
|
1779
|
-
""" # noqa: E501
|
|
1780
|
-
|
|
1781
|
-
_param = self._dataset_upload_files_from_s3_post_serialize(
|
|
1782
|
-
upload_files_from_s3_bucket_model=upload_files_from_s3_bucket_model,
|
|
1783
|
-
_request_auth=_request_auth,
|
|
1784
|
-
_content_type=_content_type,
|
|
1785
|
-
_headers=_headers,
|
|
1786
|
-
_host_index=_host_index
|
|
1787
|
-
)
|
|
1788
|
-
|
|
1789
|
-
_response_types_map: Dict[str, Optional[str]] = {
|
|
1790
|
-
'200': "UploadDatapointsResult",
|
|
1791
|
-
}
|
|
1792
|
-
response_data = self.api_client.call_api(
|
|
1793
|
-
*_param,
|
|
1794
|
-
_request_timeout=_request_timeout
|
|
1795
|
-
)
|
|
1796
|
-
response_data.read()
|
|
1797
|
-
return self.api_client.response_deserialize(
|
|
1798
|
-
response_data=response_data,
|
|
1799
|
-
response_types_map=_response_types_map,
|
|
1800
|
-
).data
|
|
1801
|
-
|
|
1802
|
-
|
|
1803
|
-
@validate_call
|
|
1804
|
-
def dataset_upload_files_from_s3_post_with_http_info(
|
|
1805
|
-
self,
|
|
1806
|
-
upload_files_from_s3_bucket_model: Annotated[Optional[UploadFilesFromS3BucketModel], Field(description="The body of the request.")] = None,
|
|
1807
|
-
_request_timeout: Union[
|
|
1808
|
-
None,
|
|
1809
|
-
Annotated[StrictFloat, Field(gt=0)],
|
|
1810
|
-
Tuple[
|
|
1811
|
-
Annotated[StrictFloat, Field(gt=0)],
|
|
1812
|
-
Annotated[StrictFloat, Field(gt=0)]
|
|
1813
|
-
]
|
|
1814
|
-
] = None,
|
|
1815
|
-
_request_auth: Optional[Dict[StrictStr, Any]] = None,
|
|
1816
|
-
_content_type: Optional[StrictStr] = None,
|
|
1817
|
-
_headers: Optional[Dict[StrictStr, Any]] = None,
|
|
1818
|
-
_host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
|
|
1819
|
-
) -> ApiResponse[UploadDatapointsResult]:
|
|
1820
|
-
"""Uploads files from an S3 bucket to a dataset.
|
|
1821
|
-
|
|
1822
|
-
A new datapoint will be created for each file in the bucket.
|
|
1823
|
-
|
|
1824
|
-
:param upload_files_from_s3_bucket_model: The body of the request.
|
|
1825
|
-
:type upload_files_from_s3_bucket_model: UploadFilesFromS3BucketModel
|
|
1826
|
-
:param _request_timeout: timeout setting for this request. If one
|
|
1827
|
-
number provided, it will be total request
|
|
1828
|
-
timeout. It can also be a pair (tuple) of
|
|
1829
|
-
(connection, read) timeouts.
|
|
1830
|
-
:type _request_timeout: int, tuple(int, int), optional
|
|
1831
|
-
:param _request_auth: set to override the auth_settings for an a single
|
|
1832
|
-
request; this effectively ignores the
|
|
1833
|
-
authentication in the spec for a single request.
|
|
1834
|
-
:type _request_auth: dict, optional
|
|
1835
|
-
:param _content_type: force content-type for the request.
|
|
1836
|
-
:type _content_type: str, Optional
|
|
1837
|
-
:param _headers: set to override the headers for a single
|
|
1838
|
-
request; this effectively ignores the headers
|
|
1839
|
-
in the spec for a single request.
|
|
1840
|
-
:type _headers: dict, optional
|
|
1841
|
-
:param _host_index: set to override the host_index for a single
|
|
1842
|
-
request; this effectively ignores the host_index
|
|
1843
|
-
in the spec for a single request.
|
|
1844
|
-
:type _host_index: int, optional
|
|
1845
|
-
:return: Returns the result object.
|
|
1846
|
-
""" # noqa: E501
|
|
1847
|
-
|
|
1848
|
-
_param = self._dataset_upload_files_from_s3_post_serialize(
|
|
1849
|
-
upload_files_from_s3_bucket_model=upload_files_from_s3_bucket_model,
|
|
1850
|
-
_request_auth=_request_auth,
|
|
1851
|
-
_content_type=_content_type,
|
|
1852
|
-
_headers=_headers,
|
|
1853
|
-
_host_index=_host_index
|
|
1854
|
-
)
|
|
1855
|
-
|
|
1856
|
-
_response_types_map: Dict[str, Optional[str]] = {
|
|
1857
|
-
'200': "UploadDatapointsResult",
|
|
1858
|
-
}
|
|
1859
|
-
response_data = self.api_client.call_api(
|
|
1860
|
-
*_param,
|
|
1861
|
-
_request_timeout=_request_timeout
|
|
1862
|
-
)
|
|
1863
|
-
response_data.read()
|
|
1864
|
-
return self.api_client.response_deserialize(
|
|
1865
|
-
response_data=response_data,
|
|
1866
|
-
response_types_map=_response_types_map,
|
|
1867
|
-
)
|
|
1868
|
-
|
|
1869
|
-
|
|
1870
|
-
@validate_call
|
|
1871
|
-
def dataset_upload_files_from_s3_post_without_preload_content(
|
|
1872
|
-
self,
|
|
1873
|
-
upload_files_from_s3_bucket_model: Annotated[Optional[UploadFilesFromS3BucketModel], Field(description="The body of the request.")] = None,
|
|
1874
|
-
_request_timeout: Union[
|
|
1875
|
-
None,
|
|
1876
|
-
Annotated[StrictFloat, Field(gt=0)],
|
|
1877
|
-
Tuple[
|
|
1878
|
-
Annotated[StrictFloat, Field(gt=0)],
|
|
1879
|
-
Annotated[StrictFloat, Field(gt=0)]
|
|
1880
|
-
]
|
|
1881
|
-
] = None,
|
|
1882
|
-
_request_auth: Optional[Dict[StrictStr, Any]] = None,
|
|
1883
|
-
_content_type: Optional[StrictStr] = None,
|
|
1884
|
-
_headers: Optional[Dict[StrictStr, Any]] = None,
|
|
1885
|
-
_host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
|
|
1886
|
-
) -> RESTResponseType:
|
|
1887
|
-
"""Uploads files from an S3 bucket to a dataset.
|
|
1888
|
-
|
|
1889
|
-
A new datapoint will be created for each file in the bucket.
|
|
1890
|
-
|
|
1891
|
-
:param upload_files_from_s3_bucket_model: The body of the request.
|
|
1892
|
-
:type upload_files_from_s3_bucket_model: UploadFilesFromS3BucketModel
|
|
1893
|
-
:param _request_timeout: timeout setting for this request. If one
|
|
1894
|
-
number provided, it will be total request
|
|
1895
|
-
timeout. It can also be a pair (tuple) of
|
|
1896
|
-
(connection, read) timeouts.
|
|
1897
|
-
:type _request_timeout: int, tuple(int, int), optional
|
|
1898
|
-
:param _request_auth: set to override the auth_settings for an a single
|
|
1899
|
-
request; this effectively ignores the
|
|
1900
|
-
authentication in the spec for a single request.
|
|
1901
|
-
:type _request_auth: dict, optional
|
|
1902
|
-
:param _content_type: force content-type for the request.
|
|
1903
|
-
:type _content_type: str, Optional
|
|
1904
|
-
:param _headers: set to override the headers for a single
|
|
1905
|
-
request; this effectively ignores the headers
|
|
1906
|
-
in the spec for a single request.
|
|
1907
|
-
:type _headers: dict, optional
|
|
1908
|
-
:param _host_index: set to override the host_index for a single
|
|
1909
|
-
request; this effectively ignores the host_index
|
|
1910
|
-
in the spec for a single request.
|
|
1911
|
-
:type _host_index: int, optional
|
|
1912
|
-
:return: Returns the result object.
|
|
1913
|
-
""" # noqa: E501
|
|
1914
|
-
|
|
1915
|
-
_param = self._dataset_upload_files_from_s3_post_serialize(
|
|
1916
|
-
upload_files_from_s3_bucket_model=upload_files_from_s3_bucket_model,
|
|
1917
|
-
_request_auth=_request_auth,
|
|
1918
|
-
_content_type=_content_type,
|
|
1919
|
-
_headers=_headers,
|
|
1920
|
-
_host_index=_host_index
|
|
1921
|
-
)
|
|
1922
|
-
|
|
1923
|
-
_response_types_map: Dict[str, Optional[str]] = {
|
|
1924
|
-
'200': "UploadDatapointsResult",
|
|
1925
|
-
}
|
|
1926
|
-
response_data = self.api_client.call_api(
|
|
1927
|
-
*_param,
|
|
1928
|
-
_request_timeout=_request_timeout
|
|
1929
|
-
)
|
|
1930
|
-
return response_data.response
|
|
1931
|
-
|
|
1932
|
-
|
|
1933
|
-
def _dataset_upload_files_from_s3_post_serialize(
|
|
1934
|
-
self,
|
|
1935
|
-
upload_files_from_s3_bucket_model,
|
|
1936
|
-
_request_auth,
|
|
1937
|
-
_content_type,
|
|
1938
|
-
_headers,
|
|
1939
|
-
_host_index,
|
|
1940
|
-
) -> RequestSerialized:
|
|
1941
|
-
|
|
1942
|
-
_host = None
|
|
1943
|
-
|
|
1944
|
-
_collection_formats: Dict[str, str] = {
|
|
1945
|
-
}
|
|
1946
|
-
|
|
1947
|
-
_path_params: Dict[str, str] = {}
|
|
1948
|
-
_query_params: List[Tuple[str, str]] = []
|
|
1949
|
-
_header_params: Dict[str, Optional[str]] = _headers or {}
|
|
1950
|
-
_form_params: List[Tuple[str, str]] = []
|
|
1951
|
-
_files: Dict[
|
|
1952
|
-
str, Union[str, bytes, List[str], List[bytes], List[Tuple[str, bytes]]]
|
|
1953
|
-
] = {}
|
|
1954
|
-
_body_params: Optional[bytes] = None
|
|
1955
|
-
|
|
1956
|
-
# process the path parameters
|
|
1957
|
-
# process the query parameters
|
|
1958
|
-
# process the header parameters
|
|
1959
|
-
# process the form parameters
|
|
1960
|
-
# process the body parameter
|
|
1961
|
-
if upload_files_from_s3_bucket_model is not None:
|
|
1962
|
-
_body_params = upload_files_from_s3_bucket_model
|
|
1963
|
-
|
|
1964
|
-
|
|
1965
|
-
# set the HTTP header `Accept`
|
|
1966
|
-
if 'Accept' not in _header_params:
|
|
1967
|
-
_header_params['Accept'] = self.api_client.select_header_accept(
|
|
1968
|
-
[
|
|
1969
|
-
'text/plain',
|
|
1970
|
-
'application/json',
|
|
1971
|
-
'text/json'
|
|
1972
|
-
]
|
|
1973
|
-
)
|
|
1974
|
-
|
|
1975
|
-
# set the HTTP header `Content-Type`
|
|
1976
|
-
if _content_type:
|
|
1977
|
-
_header_params['Content-Type'] = _content_type
|
|
1978
|
-
else:
|
|
1979
|
-
_default_content_type = (
|
|
1980
|
-
self.api_client.select_header_content_type(
|
|
1981
|
-
[
|
|
1982
|
-
'application/json',
|
|
1983
|
-
'text/json',
|
|
1984
|
-
'application/*+json'
|
|
1985
|
-
]
|
|
1986
|
-
)
|
|
1987
|
-
)
|
|
1988
|
-
if _default_content_type is not None:
|
|
1989
|
-
_header_params['Content-Type'] = _default_content_type
|
|
1990
|
-
|
|
1991
|
-
# authentication setting
|
|
1992
|
-
_auth_settings: List[str] = [
|
|
1993
|
-
'bearer',
|
|
1994
|
-
'oauth2'
|
|
1995
|
-
]
|
|
1996
|
-
|
|
1997
|
-
return self.api_client.param_serialize(
|
|
1998
|
-
method='POST',
|
|
1999
|
-
resource_path='/Dataset/UploadFilesFromS3',
|
|
2000
|
-
path_params=_path_params,
|
|
2001
|
-
query_params=_query_params,
|
|
2002
|
-
header_params=_header_params,
|
|
2003
|
-
body=_body_params,
|
|
2004
|
-
post_params=_form_params,
|
|
2005
|
-
files=_files,
|
|
2006
|
-
auth_settings=_auth_settings,
|
|
2007
|
-
collection_formats=_collection_formats,
|
|
2008
|
-
_host=_host,
|
|
2009
|
-
_request_auth=_request_auth
|
|
2010
|
-
)
|
|
2011
|
-
|
|
2012
|
-
|
|
2013
|
-
|
|
2014
|
-
|
|
2015
|
-
@validate_call
|
|
2016
|
-
def dataset_upload_images_to_dataset_post(
|
|
2017
|
-
self,
|
|
2018
|
-
dataset_id: Annotated[Optional[StrictStr], Field(description="The id of the dataset to upload the images to.")] = None,
|
|
2019
|
-
files: Annotated[Optional[List[Union[StrictBytes, StrictStr, Tuple[StrictStr, StrictBytes]]]], Field(description="The image files to upload.")] = None,
|
|
2020
|
-
_request_timeout: Union[
|
|
2021
|
-
None,
|
|
2022
|
-
Annotated[StrictFloat, Field(gt=0)],
|
|
2023
|
-
Tuple[
|
|
2024
|
-
Annotated[StrictFloat, Field(gt=0)],
|
|
2025
|
-
Annotated[StrictFloat, Field(gt=0)]
|
|
2026
|
-
]
|
|
2027
|
-
] = None,
|
|
2028
|
-
_request_auth: Optional[Dict[StrictStr, Any]] = None,
|
|
2029
|
-
_content_type: Optional[StrictStr] = None,
|
|
2030
|
-
_headers: Optional[Dict[StrictStr, Any]] = None,
|
|
2031
|
-
_host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
|
|
2032
|
-
) -> None:
|
|
2033
|
-
"""Uploads images to a dataset.
|
|
2034
|
-
|
|
2035
|
-
If multiple files are uploaded, a new datapoint will be created for each file.
|
|
2036
|
-
|
|
2037
|
-
:param dataset_id: The id of the dataset to upload the images to.
|
|
2038
|
-
:type dataset_id: str
|
|
2039
|
-
:param files: The image files to upload.
|
|
2040
|
-
:type files: List[bytearray]
|
|
2041
|
-
:param _request_timeout: timeout setting for this request. If one
|
|
2042
|
-
number provided, it will be total request
|
|
2043
|
-
timeout. It can also be a pair (tuple) of
|
|
2044
|
-
(connection, read) timeouts.
|
|
2045
|
-
:type _request_timeout: int, tuple(int, int), optional
|
|
2046
|
-
:param _request_auth: set to override the auth_settings for an a single
|
|
2047
|
-
request; this effectively ignores the
|
|
2048
|
-
authentication in the spec for a single request.
|
|
2049
|
-
:type _request_auth: dict, optional
|
|
2050
|
-
:param _content_type: force content-type for the request.
|
|
2051
|
-
:type _content_type: str, Optional
|
|
2052
|
-
:param _headers: set to override the headers for a single
|
|
2053
|
-
request; this effectively ignores the headers
|
|
2054
|
-
in the spec for a single request.
|
|
2055
|
-
:type _headers: dict, optional
|
|
2056
|
-
:param _host_index: set to override the host_index for a single
|
|
2057
|
-
request; this effectively ignores the host_index
|
|
2058
|
-
in the spec for a single request.
|
|
2059
|
-
:type _host_index: int, optional
|
|
2060
|
-
:return: Returns the result object.
|
|
2061
|
-
""" # noqa: E501
|
|
2062
|
-
|
|
2063
|
-
_param = self._dataset_upload_images_to_dataset_post_serialize(
|
|
2064
|
-
dataset_id=dataset_id,
|
|
2065
|
-
files=files,
|
|
2066
|
-
_request_auth=_request_auth,
|
|
2067
|
-
_content_type=_content_type,
|
|
2068
|
-
_headers=_headers,
|
|
2069
|
-
_host_index=_host_index
|
|
2070
|
-
)
|
|
2071
|
-
|
|
2072
|
-
_response_types_map: Dict[str, Optional[str]] = {
|
|
2073
|
-
'200': None,
|
|
2074
|
-
}
|
|
2075
|
-
response_data = self.api_client.call_api(
|
|
2076
|
-
*_param,
|
|
2077
|
-
_request_timeout=_request_timeout
|
|
2078
|
-
)
|
|
2079
|
-
response_data.read()
|
|
2080
|
-
return self.api_client.response_deserialize(
|
|
2081
|
-
response_data=response_data,
|
|
2082
|
-
response_types_map=_response_types_map,
|
|
2083
|
-
).data
|
|
2084
|
-
|
|
2085
|
-
|
|
2086
|
-
@validate_call
|
|
2087
|
-
def dataset_upload_images_to_dataset_post_with_http_info(
|
|
2088
|
-
self,
|
|
2089
|
-
dataset_id: Annotated[Optional[StrictStr], Field(description="The id of the dataset to upload the images to.")] = None,
|
|
2090
|
-
files: Annotated[Optional[List[Union[StrictBytes, StrictStr, Tuple[StrictStr, StrictBytes]]]], Field(description="The image files to upload.")] = None,
|
|
2091
|
-
_request_timeout: Union[
|
|
2092
|
-
None,
|
|
2093
|
-
Annotated[StrictFloat, Field(gt=0)],
|
|
2094
|
-
Tuple[
|
|
2095
|
-
Annotated[StrictFloat, Field(gt=0)],
|
|
2096
|
-
Annotated[StrictFloat, Field(gt=0)]
|
|
2097
|
-
]
|
|
2098
|
-
] = None,
|
|
2099
|
-
_request_auth: Optional[Dict[StrictStr, Any]] = None,
|
|
2100
|
-
_content_type: Optional[StrictStr] = None,
|
|
2101
|
-
_headers: Optional[Dict[StrictStr, Any]] = None,
|
|
2102
|
-
_host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
|
|
2103
|
-
) -> ApiResponse[None]:
|
|
2104
|
-
"""Uploads images to a dataset.
|
|
2105
|
-
|
|
2106
|
-
If multiple files are uploaded, a new datapoint will be created for each file.
|
|
2107
|
-
|
|
2108
|
-
:param dataset_id: The id of the dataset to upload the images to.
|
|
2109
|
-
:type dataset_id: str
|
|
2110
|
-
:param files: The image files to upload.
|
|
2111
|
-
:type files: List[bytearray]
|
|
2112
|
-
:param _request_timeout: timeout setting for this request. If one
|
|
2113
|
-
number provided, it will be total request
|
|
2114
|
-
timeout. It can also be a pair (tuple) of
|
|
2115
|
-
(connection, read) timeouts.
|
|
2116
|
-
:type _request_timeout: int, tuple(int, int), optional
|
|
2117
|
-
:param _request_auth: set to override the auth_settings for an a single
|
|
2118
|
-
request; this effectively ignores the
|
|
2119
|
-
authentication in the spec for a single request.
|
|
2120
|
-
:type _request_auth: dict, optional
|
|
2121
|
-
:param _content_type: force content-type for the request.
|
|
2122
|
-
:type _content_type: str, Optional
|
|
2123
|
-
:param _headers: set to override the headers for a single
|
|
2124
|
-
request; this effectively ignores the headers
|
|
2125
|
-
in the spec for a single request.
|
|
2126
|
-
:type _headers: dict, optional
|
|
2127
|
-
:param _host_index: set to override the host_index for a single
|
|
2128
|
-
request; this effectively ignores the host_index
|
|
2129
|
-
in the spec for a single request.
|
|
2130
|
-
:type _host_index: int, optional
|
|
2131
|
-
:return: Returns the result object.
|
|
2132
|
-
""" # noqa: E501
|
|
2133
|
-
|
|
2134
|
-
_param = self._dataset_upload_images_to_dataset_post_serialize(
|
|
2135
|
-
dataset_id=dataset_id,
|
|
2136
|
-
files=files,
|
|
2137
|
-
_request_auth=_request_auth,
|
|
2138
|
-
_content_type=_content_type,
|
|
2139
|
-
_headers=_headers,
|
|
2140
|
-
_host_index=_host_index
|
|
2141
|
-
)
|
|
2142
|
-
|
|
2143
|
-
_response_types_map: Dict[str, Optional[str]] = {
|
|
2144
|
-
'200': None,
|
|
2145
|
-
}
|
|
2146
|
-
response_data = self.api_client.call_api(
|
|
2147
|
-
*_param,
|
|
2148
|
-
_request_timeout=_request_timeout
|
|
2149
|
-
)
|
|
2150
|
-
response_data.read()
|
|
2151
|
-
return self.api_client.response_deserialize(
|
|
2152
|
-
response_data=response_data,
|
|
2153
|
-
response_types_map=_response_types_map,
|
|
2154
|
-
)
|
|
2155
|
-
|
|
2156
|
-
|
|
2157
|
-
@validate_call
|
|
2158
|
-
def dataset_upload_images_to_dataset_post_without_preload_content(
|
|
2159
|
-
self,
|
|
2160
|
-
dataset_id: Annotated[Optional[StrictStr], Field(description="The id of the dataset to upload the images to.")] = None,
|
|
2161
|
-
files: Annotated[Optional[List[Union[StrictBytes, StrictStr, Tuple[StrictStr, StrictBytes]]]], Field(description="The image files to upload.")] = None,
|
|
2162
|
-
_request_timeout: Union[
|
|
2163
|
-
None,
|
|
2164
|
-
Annotated[StrictFloat, Field(gt=0)],
|
|
2165
|
-
Tuple[
|
|
2166
|
-
Annotated[StrictFloat, Field(gt=0)],
|
|
2167
|
-
Annotated[StrictFloat, Field(gt=0)]
|
|
2168
|
-
]
|
|
2169
|
-
] = None,
|
|
2170
|
-
_request_auth: Optional[Dict[StrictStr, Any]] = None,
|
|
2171
|
-
_content_type: Optional[StrictStr] = None,
|
|
2172
|
-
_headers: Optional[Dict[StrictStr, Any]] = None,
|
|
2173
|
-
_host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
|
|
2174
|
-
) -> RESTResponseType:
|
|
2175
|
-
"""Uploads images to a dataset.
|
|
2176
|
-
|
|
2177
|
-
If multiple files are uploaded, a new datapoint will be created for each file.
|
|
2178
|
-
|
|
2179
|
-
:param dataset_id: The id of the dataset to upload the images to.
|
|
2180
|
-
:type dataset_id: str
|
|
2181
|
-
:param files: The image files to upload.
|
|
2182
|
-
:type files: List[bytearray]
|
|
2183
|
-
:param _request_timeout: timeout setting for this request. If one
|
|
2184
|
-
number provided, it will be total request
|
|
2185
|
-
timeout. It can also be a pair (tuple) of
|
|
2186
|
-
(connection, read) timeouts.
|
|
2187
|
-
:type _request_timeout: int, tuple(int, int), optional
|
|
2188
|
-
:param _request_auth: set to override the auth_settings for an a single
|
|
2189
|
-
request; this effectively ignores the
|
|
2190
|
-
authentication in the spec for a single request.
|
|
2191
|
-
:type _request_auth: dict, optional
|
|
2192
|
-
:param _content_type: force content-type for the request.
|
|
2193
|
-
:type _content_type: str, Optional
|
|
2194
|
-
:param _headers: set to override the headers for a single
|
|
2195
|
-
request; this effectively ignores the headers
|
|
2196
|
-
in the spec for a single request.
|
|
2197
|
-
:type _headers: dict, optional
|
|
2198
|
-
:param _host_index: set to override the host_index for a single
|
|
2199
|
-
request; this effectively ignores the host_index
|
|
2200
|
-
in the spec for a single request.
|
|
2201
|
-
:type _host_index: int, optional
|
|
2202
|
-
:return: Returns the result object.
|
|
2203
|
-
""" # noqa: E501
|
|
2204
|
-
|
|
2205
|
-
_param = self._dataset_upload_images_to_dataset_post_serialize(
|
|
2206
|
-
dataset_id=dataset_id,
|
|
2207
|
-
files=files,
|
|
2208
|
-
_request_auth=_request_auth,
|
|
2209
|
-
_content_type=_content_type,
|
|
2210
|
-
_headers=_headers,
|
|
2211
|
-
_host_index=_host_index
|
|
2212
|
-
)
|
|
2213
|
-
|
|
2214
|
-
_response_types_map: Dict[str, Optional[str]] = {
|
|
2215
|
-
'200': None,
|
|
2216
|
-
}
|
|
2217
|
-
response_data = self.api_client.call_api(
|
|
2218
|
-
*_param,
|
|
2219
|
-
_request_timeout=_request_timeout
|
|
2220
|
-
)
|
|
2221
|
-
return response_data.response
|
|
2222
|
-
|
|
2223
|
-
|
|
2224
|
-
def _dataset_upload_images_to_dataset_post_serialize(
|
|
2225
|
-
self,
|
|
2226
|
-
dataset_id,
|
|
2227
|
-
files,
|
|
2228
|
-
_request_auth,
|
|
2229
|
-
_content_type,
|
|
2230
|
-
_headers,
|
|
2231
|
-
_host_index,
|
|
2232
|
-
) -> RequestSerialized:
|
|
2233
|
-
|
|
2234
|
-
_host = None
|
|
2235
|
-
|
|
2236
|
-
_collection_formats: Dict[str, str] = {
|
|
2237
|
-
'files': 'multi',
|
|
2238
|
-
}
|
|
2239
|
-
|
|
2240
|
-
_path_params: Dict[str, str] = {}
|
|
2241
|
-
_query_params: List[Tuple[str, str]] = []
|
|
2242
|
-
_header_params: Dict[str, Optional[str]] = _headers or {}
|
|
2243
|
-
_form_params: List[Tuple[str, str]] = []
|
|
2244
|
-
_files: Dict[
|
|
2245
|
-
str, Union[str, bytes, List[str], List[bytes], List[Tuple[str, bytes]]]
|
|
2246
|
-
] = {}
|
|
2247
|
-
_body_params: Optional[bytes] = None
|
|
2248
|
-
|
|
2249
|
-
# process the path parameters
|
|
2250
|
-
# process the query parameters
|
|
2251
|
-
if dataset_id is not None:
|
|
2252
|
-
|
|
2253
|
-
_query_params.append(('datasetId', dataset_id))
|
|
2254
|
-
|
|
2255
|
-
# process the header parameters
|
|
2256
|
-
# process the form parameters
|
|
2257
|
-
if files is not None:
|
|
2258
|
-
_files['files'] = files
|
|
2259
|
-
# process the body parameter
|
|
2260
|
-
|
|
2261
|
-
|
|
2262
|
-
|
|
2263
|
-
# set the HTTP header `Content-Type`
|
|
2264
|
-
if _content_type:
|
|
2265
|
-
_header_params['Content-Type'] = _content_type
|
|
2266
|
-
else:
|
|
2267
|
-
_default_content_type = (
|
|
2268
|
-
self.api_client.select_header_content_type(
|
|
2269
|
-
[
|
|
2270
|
-
'multipart/form-data'
|
|
2271
|
-
]
|
|
2272
|
-
)
|
|
2273
|
-
)
|
|
2274
|
-
if _default_content_type is not None:
|
|
2275
|
-
_header_params['Content-Type'] = _default_content_type
|
|
2276
|
-
|
|
2277
|
-
# authentication setting
|
|
2278
|
-
_auth_settings: List[str] = [
|
|
2279
|
-
'bearer',
|
|
2280
|
-
'oauth2'
|
|
2281
|
-
]
|
|
2282
|
-
|
|
2283
|
-
return self.api_client.param_serialize(
|
|
2284
|
-
method='POST',
|
|
2285
|
-
resource_path='/Dataset/UploadImagesToDataset',
|
|
1675
|
+
method='GET',
|
|
1676
|
+
resource_path='/dataset/{datasetId}/progress',
|
|
2286
1677
|
path_params=_path_params,
|
|
2287
1678
|
query_params=_query_params,
|
|
2288
1679
|
header_params=_header_params,
|