rapidata 2.28.2__py3-none-any.whl → 2.44.3__py3-none-any.whl
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- rapidata/__init__.py +11 -10
- rapidata/api_client/__init__.py +83 -355
- rapidata/api_client/api/__init__.py +8 -2
- rapidata/api_client/api/asset_api.py +853 -0
- rapidata/api_client/api/audience_api.py +1133 -0
- rapidata/api_client/api/benchmark_api.py +3966 -0
- rapidata/api_client/api/campaign_api.py +222 -444
- rapidata/api_client/api/client_api.py +38 -33
- rapidata/api_client/api/coco_api.py +0 -571
- rapidata/api_client/api/compare_workflow_api.py +11 -10
- rapidata/api_client/api/customer_rapid_api.py +644 -72
- rapidata/api_client/api/datapoint_api.py +8 -530
- rapidata/api_client/api/dataset_api.py +228 -3469
- rapidata/api_client/api/evaluation_workflow_api.py +29 -82
- rapidata/api_client/api/feedback_api.py +11 -281
- rapidata/api_client/api/grouped_ranking_workflow_api.py +319 -0
- rapidata/api_client/api/identity_api.py +83 -1171
- rapidata/api_client/api/leaderboard_api.py +356 -312
- rapidata/api_client/api/newsletter_api.py +20 -19
- rapidata/api_client/api/order_api.py +758 -5487
- rapidata/api_client/api/participant_api.py +2181 -0
- rapidata/api_client/api/pipeline_api.py +24 -1783
- rapidata/api_client/api/prompt_api.py +320 -0
- rapidata/api_client/api/rapidata_identity_api_api.py +5 -4
- rapidata/api_client/api/sample_api.py +300 -0
- rapidata/api_client/api/simple_workflow_api.py +11 -10
- rapidata/api_client/api/survey_api.py +304 -0
- rapidata/api_client/api/user_rapid_api.py +35 -31
- rapidata/api_client/api/validation_set_api.py +510 -3659
- rapidata/api_client/api/workflow_api.py +32 -825
- rapidata/api_client/api_client.py +2 -2
- rapidata/api_client/configuration.py +16 -29
- rapidata/api_client/exceptions.py +2 -2
- rapidata/api_client/models/__init__.py +65 -332
- rapidata/api_client/models/ab_test_selection_a_inner.py +1 -1
- rapidata/api_client/models/add_campaign_model.py +3 -3
- rapidata/api_client/models/add_user_response_result.py +10 -5
- rapidata/api_client/models/add_validation_rapid_model.py +55 -24
- rapidata/api_client/models/add_validation_rapid_model_asset.py +154 -0
- rapidata/api_client/models/add_validation_rapid_model_context_asset.py +160 -0
- rapidata/api_client/models/add_validation_rapid_model_metadata_inner.py +140 -0
- rapidata/api_client/models/add_validation_rapid_model_truth.py +7 -1
- rapidata/api_client/models/add_validation_rapid_new_model.py +137 -0
- rapidata/api_client/models/add_validation_rapid_new_model_asset.py +182 -0
- rapidata/api_client/models/add_validation_rapid_new_model_truth.py +286 -0
- rapidata/api_client/models/add_validation_text_rapid_model.py +1 -3
- rapidata/api_client/models/age_user_filter_model.py +2 -2
- rapidata/api_client/models/age_user_filter_model_age_group.py +41 -0
- rapidata/api_client/models/aggregated_orders_model.py +98 -0
- rapidata/api_client/models/aggregator_type.py +4 -2
- rapidata/api_client/models/and_filter.py +121 -0
- rapidata/api_client/models/and_filter_filters_inner.py +282 -0
- rapidata/api_client/models/and_user_filter_model.py +106 -0
- rapidata/api_client/models/and_user_filter_model_filters_inner.py +282 -0
- rapidata/api_client/models/are_rapids_active_result.py +2 -2
- rapidata/api_client/models/asset_metadata.py +11 -9
- rapidata/api_client/models/asset_type.py +40 -0
- rapidata/api_client/models/attach_category_rapid_blueprint.py +13 -3
- rapidata/api_client/models/attach_category_rapid_blueprint_category.py +89 -0
- rapidata/api_client/models/audience_status.py +38 -0
- rapidata/api_client/models/benchmark_query_result.py +98 -0
- rapidata/api_client/models/benchmark_query_result_paged_result.py +105 -0
- rapidata/api_client/models/boost_leaderboard_model.py +89 -0
- rapidata/api_client/models/boost_mode.py +37 -0
- rapidata/api_client/models/boost_query_result.py +7 -10
- rapidata/api_client/models/boost_query_result_boost_mode.py +37 -0
- rapidata/api_client/models/boost_query_result_boost_status.py +39 -0
- rapidata/api_client/models/boosting_profile.py +89 -0
- rapidata/api_client/models/box_shape.py +4 -33
- rapidata/api_client/models/campaign_filter.py +98 -0
- rapidata/api_client/models/campaign_query_result.py +15 -13
- rapidata/api_client/models/campaign_status.py +2 -2
- rapidata/api_client/models/change_boost_model.py +89 -0
- rapidata/api_client/models/classification_metadata.py +12 -1
- rapidata/api_client/models/classify_payload.py +14 -15
- rapidata/api_client/models/classify_payload_category.py +89 -0
- rapidata/api_client/models/client_model.py +25 -35
- rapidata/api_client/models/clients_query_result.py +5 -5
- rapidata/api_client/models/clone_order_model.py +6 -8
- rapidata/api_client/models/clone_order_result.py +9 -4
- rapidata/api_client/models/compare_rapid_blueprint.py +5 -3
- rapidata/api_client/models/compare_rapid_blueprint1.py +96 -0
- rapidata/api_client/models/compare_workflow_config.py +34 -23
- rapidata/api_client/models/compare_workflow_config_context_asset.py +174 -0
- rapidata/api_client/models/compare_workflow_config_metadata_value.py +31 -17
- rapidata/api_client/models/compare_workflow_config_model.py +15 -5
- rapidata/api_client/models/compare_workflow_model.py +34 -6
- rapidata/api_client/models/compare_workflow_model1.py +20 -9
- rapidata/api_client/models/compare_workflow_model_context_asset.py +160 -0
- rapidata/api_client/models/compare_workflow_model_metadata_inner.py +154 -0
- rapidata/api_client/models/compare_workflow_model_pair_maker_config.py +1 -1
- rapidata/api_client/models/comparison_operator.py +2 -2
- rapidata/api_client/models/conditional_validation_selection.py +8 -11
- rapidata/api_client/models/conditional_validation_selection_validation_chance.py +103 -0
- rapidata/api_client/models/confidence_interval.py +89 -0
- rapidata/api_client/models/count_metadata.py +12 -1
- rapidata/api_client/models/country_filter.py +98 -0
- rapidata/api_client/models/create_audience_request.py +99 -0
- rapidata/api_client/models/create_audience_result.py +87 -0
- rapidata/api_client/models/create_benchmark_model.py +87 -0
- rapidata/api_client/models/create_benchmark_participant_model.py +87 -0
- rapidata/api_client/models/create_benchmark_participant_result.py +89 -0
- rapidata/api_client/models/create_benchmark_prompt_result.py +87 -0
- rapidata/api_client/models/create_benchmark_result.py +87 -0
- rapidata/api_client/models/create_bridge_token_result.py +2 -2
- rapidata/api_client/models/create_client_model.py +6 -13
- rapidata/api_client/models/create_complex_order_model.py +9 -9
- rapidata/api_client/models/create_complex_order_result.py +6 -4
- rapidata/api_client/models/create_customer_client_result.py +2 -2
- rapidata/api_client/models/create_datapoint_from_files_model.py +3 -3
- rapidata/api_client/models/create_datapoint_from_text_sources_model.py +3 -3
- rapidata/api_client/models/create_datapoint_from_urls_model.py +3 -3
- rapidata/api_client/models/create_datapoint_model.py +134 -0
- rapidata/api_client/models/create_datapoint_model_asset.py +154 -0
- rapidata/api_client/models/create_datapoint_model_context_asset.py +160 -0
- rapidata/api_client/models/create_datapoint_model_metadata_inner.py +154 -0
- rapidata/api_client/models/create_datapoint_result.py +6 -18
- rapidata/api_client/models/create_demographic_rapid_model.py +45 -7
- rapidata/api_client/models/create_demographic_rapid_model_asset.py +160 -0
- rapidata/api_client/models/create_demographic_rapid_model_context_asset.py +160 -0
- rapidata/api_client/models/create_demographic_rapid_model_new.py +119 -0
- rapidata/api_client/models/create_empty_validation_set_result.py +2 -2
- rapidata/api_client/models/create_leaderboard_model.py +59 -10
- rapidata/api_client/models/create_leaderboard_result.py +17 -5
- rapidata/api_client/models/create_order_model.py +30 -101
- rapidata/api_client/models/create_order_model_referee.py +12 -12
- rapidata/api_client/models/create_order_model_workflow.py +35 -21
- rapidata/api_client/models/create_order_result.py +6 -4
- rapidata/api_client/models/create_rapid_result.py +2 -2
- rapidata/api_client/models/create_sample_model.py +93 -0
- rapidata/api_client/models/create_sample_model_asset.py +154 -0
- rapidata/api_client/models/create_sample_model_obsolete.py +87 -0
- rapidata/api_client/models/create_simple_pipeline_model_pipeline_steps_inner.py +8 -22
- rapidata/api_client/models/create_unsupported_order_model.py +6 -6
- rapidata/api_client/models/create_validation_set_model.py +5 -5
- rapidata/api_client/models/datapoint_model.py +3 -3
- rapidata/api_client/models/datapoint_state.py +2 -2
- rapidata/api_client/models/demographic_filter.py +100 -0
- rapidata/api_client/models/dynamic_client_registration_request.py +21 -36
- rapidata/api_client/models/early_stopping_referee_model.py +3 -3
- rapidata/api_client/models/effort_capped_selection.py +2 -11
- rapidata/api_client/models/elo_config.py +2 -2
- rapidata/api_client/models/elo_config_model.py +6 -6
- rapidata/api_client/models/entity_tag_header_value.py +93 -0
- rapidata/api_client/models/evaluation_workflow_config.py +13 -3
- rapidata/api_client/models/evaluation_workflow_model.py +16 -6
- rapidata/api_client/models/existing_asset_input.py +120 -0
- rapidata/api_client/models/existing_asset_input_metadata_value.py +126 -0
- rapidata/api_client/models/feature_flag.py +2 -2
- rapidata/api_client/models/feature_flag_model.py +6 -6
- rapidata/api_client/models/feedback_model.py +7 -7
- rapidata/api_client/models/file_asset.py +3 -5
- rapidata/api_client/models/file_asset_input.py +104 -0
- rapidata/api_client/models/file_asset_input1.py +104 -0
- rapidata/api_client/models/file_asset_input1_file.py +168 -0
- rapidata/api_client/models/file_asset_input2.py +104 -0
- rapidata/api_client/models/file_asset_input3.py +104 -0
- rapidata/api_client/models/file_asset_input_file.py +168 -0
- rapidata/api_client/models/file_asset_metadata_value.py +252 -0
- rapidata/api_client/models/file_asset_model_metadata_value.py +25 -81
- rapidata/api_client/models/file_stream_result.py +122 -0
- rapidata/api_client/models/file_type.py +39 -0
- rapidata/api_client/models/file_type_metadata.py +110 -0
- rapidata/api_client/models/file_type_metadata_model.py +97 -0
- rapidata/api_client/models/filter.py +7 -25
- rapidata/api_client/models/filter_operator.py +3 -2
- rapidata/api_client/models/fork_benchmark_result.py +87 -0
- rapidata/api_client/models/form_file_wrapper.py +135 -0
- rapidata/api_client/models/free_text_payload.py +10 -3
- rapidata/api_client/models/free_text_rapid_blueprint.py +10 -3
- rapidata/api_client/models/gender_user_filter_model.py +2 -2
- rapidata/api_client/models/gender_user_filter_model_gender.py +38 -0
- rapidata/api_client/models/get_asset_metadata_result.py +100 -0
- rapidata/api_client/models/get_audience_by_id_result.py +111 -0
- rapidata/api_client/models/get_available_validation_sets_result.py +2 -2
- rapidata/api_client/models/get_benchmark_by_id_query.py +96 -0
- rapidata/api_client/models/get_benchmark_by_id_query_result.py +94 -0
- rapidata/api_client/models/get_benchmark_by_id_query_result_paged_result.py +105 -0
- rapidata/api_client/models/get_benchmark_by_id_result.py +96 -0
- rapidata/api_client/models/get_boost_result.py +97 -0
- rapidata/api_client/models/get_boost_result_boost_mode.py +37 -0
- rapidata/api_client/models/get_boost_result_boost_status.py +39 -0
- rapidata/api_client/models/get_compare_ab_summary_result.py +5 -5
- rapidata/api_client/models/get_compare_workflow_results_model.py +7 -7
- rapidata/api_client/models/get_compare_workflow_results_result.py +5 -5
- rapidata/api_client/models/get_datapoint_by_id_result.py +10 -21
- rapidata/api_client/models/get_datapoint_by_id_result_asset.py +170 -0
- rapidata/api_client/models/get_dataset_by_id_result.py +2 -2
- rapidata/api_client/models/get_dataset_progress_result.py +2 -2
- rapidata/api_client/models/get_evaluation_workflow_results_model.py +119 -0
- rapidata/api_client/models/get_failed_datapoints_result.py +5 -5
- rapidata/api_client/models/get_failed_datapoints_result_datapoint.py +100 -0
- rapidata/api_client/models/get_file_metadata_result.py +100 -0
- rapidata/api_client/models/get_grouped_ranking_workflow_results_model.py +106 -0
- rapidata/api_client/models/get_grouped_ranking_workflow_results_result.py +97 -0
- rapidata/api_client/models/get_grouped_ranking_workflow_results_result_paged_result.py +105 -0
- rapidata/api_client/models/get_leaderboard_by_id_result.py +50 -6
- rapidata/api_client/models/get_order_by_id_result.py +12 -5
- rapidata/api_client/models/get_participant_by_id_result.py +9 -20
- rapidata/api_client/models/get_pipeline_by_id_result.py +5 -5
- rapidata/api_client/models/get_public_orders_result.py +2 -2
- rapidata/api_client/models/get_public_responses_result.py +95 -0
- rapidata/api_client/models/get_public_responses_result_response.py +112 -0
- rapidata/api_client/models/get_rapid_responses_result.py +6 -12
- rapidata/api_client/models/get_recommended_validation_set_result.py +95 -0
- rapidata/api_client/models/get_responses_for_rapid_result.py +106 -0
- rapidata/api_client/models/get_responses_for_rapid_result_response.py +103 -0
- rapidata/api_client/models/get_responses_for_rapid_result_response_result.py +266 -0
- rapidata/api_client/models/get_responses_result.py +5 -5
- rapidata/api_client/models/get_responses_result_response.py +103 -0
- rapidata/api_client/models/get_sample_by_id_result.py +125 -0
- rapidata/api_client/models/get_simple_workflow_results_model.py +20 -15
- rapidata/api_client/models/get_standing_by_id_result.py +96 -0
- rapidata/api_client/models/get_validation_rapids_result.py +32 -41
- rapidata/api_client/models/get_validation_set_by_id_result.py +10 -4
- rapidata/api_client/models/get_workflow_by_id_result.py +5 -5
- rapidata/api_client/models/get_workflow_by_id_result_workflow.py +23 -9
- rapidata/api_client/models/get_workflow_progress_result.py +5 -11
- rapidata/api_client/models/get_workflow_results_result.py +34 -23
- rapidata/api_client/models/get_workflow_results_result_response.py +103 -0
- rapidata/api_client/models/google_one_tap_login_model.py +4 -4
- rapidata/api_client/models/grouped_ranking_workflow_config.py +155 -0
- rapidata/api_client/models/grouped_ranking_workflow_config_context_assets_value.py +170 -0
- rapidata/api_client/models/grouped_ranking_workflow_model.py +147 -0
- rapidata/api_client/models/grouped_ranking_workflow_model1.py +121 -0
- rapidata/api_client/models/i_artifact_model.py +182 -0
- rapidata/api_client/models/i_artifact_model_campaign_artifact_model.py +98 -0
- rapidata/api_client/models/i_artifact_model_dataset_artifact_model.py +98 -0
- rapidata/api_client/models/i_artifact_model_file_artifact_model.py +98 -0
- rapidata/api_client/models/i_artifact_model_workflow_artifact_model.py +98 -0
- rapidata/api_client/models/i_artifact_model_workflow_config_artifact_model.py +102 -0
- rapidata/api_client/models/i_asset.py +170 -0
- rapidata/api_client/models/i_asset_file_asset.py +111 -0
- rapidata/api_client/models/i_asset_input.py +156 -0
- rapidata/api_client/models/i_asset_input_existing_asset_input.py +118 -0
- rapidata/api_client/models/i_asset_input_multi_asset_input.py +128 -0
- rapidata/api_client/models/i_asset_input_text_asset_input.py +118 -0
- rapidata/api_client/models/i_asset_model.py +170 -0
- rapidata/api_client/models/i_asset_model_file_asset_model.py +113 -0
- rapidata/api_client/models/i_asset_model_multi_asset_model.py +123 -0
- rapidata/api_client/models/i_asset_model_null_asset_model.py +111 -0
- rapidata/api_client/models/i_asset_model_text_asset_model.py +113 -0
- rapidata/api_client/models/i_asset_multi_asset.py +121 -0
- rapidata/api_client/models/i_asset_null_asset.py +109 -0
- rapidata/api_client/models/i_asset_text_asset.py +111 -0
- rapidata/api_client/models/i_campaign_filter.py +282 -0
- rapidata/api_client/models/i_campaign_filter_and_filter.py +117 -0
- rapidata/api_client/models/i_campaign_filter_campaign_filter.py +98 -0
- rapidata/api_client/models/i_campaign_filter_country_filter.py +98 -0
- rapidata/api_client/models/i_campaign_filter_demographic_filter.py +100 -0
- rapidata/api_client/models/i_campaign_filter_language_filter.py +98 -0
- rapidata/api_client/models/i_campaign_filter_new_user_filter.py +96 -0
- rapidata/api_client/models/i_campaign_filter_not_filter.py +113 -0
- rapidata/api_client/models/i_campaign_filter_or_filter.py +117 -0
- rapidata/api_client/models/i_campaign_filter_response_count_filter.py +103 -0
- rapidata/api_client/models/i_campaign_filter_user_action_restriction_filter.py +106 -0
- rapidata/api_client/models/i_campaign_filter_user_score_filter.py +102 -0
- rapidata/api_client/models/i_campaign_filter_user_state_filter.py +106 -0
- rapidata/api_client/models/i_dataset_metadata_input.py +154 -0
- rapidata/api_client/models/i_dataset_metadata_input_prompt_asset_metadata_input.py +100 -0
- rapidata/api_client/models/i_dataset_metadata_input_prompt_metadata_input.py +96 -0
- rapidata/api_client/models/i_dataset_metadata_input_transcription_metadata_input.py +96 -0
- rapidata/api_client/models/i_dataset_model.py +126 -0
- rapidata/api_client/models/i_dataset_model_clone_dataset_model.py +98 -0
- rapidata/api_client/models/i_metadata.py +252 -0
- rapidata/api_client/models/i_metadata_classification_metadata.py +109 -0
- rapidata/api_client/models/i_metadata_count_metadata.py +109 -0
- rapidata/api_client/models/i_metadata_file_type_metadata.py +110 -0
- rapidata/api_client/models/i_metadata_image_dimension_metadata.py +111 -0
- rapidata/api_client/models/i_metadata_input.py +126 -0
- rapidata/api_client/models/i_metadata_input_text_metadata_input.py +111 -0
- rapidata/api_client/models/i_metadata_location_metadata.py +111 -0
- rapidata/api_client/models/i_metadata_model.py +252 -0
- rapidata/api_client/models/i_metadata_model_classification_metadata_model.py +96 -0
- rapidata/api_client/models/i_metadata_model_count_metadata_model.py +96 -0
- rapidata/api_client/models/i_metadata_model_file_type_metadata_model.py +97 -0
- rapidata/api_client/models/i_metadata_model_image_dimension_metadata_model.py +98 -0
- rapidata/api_client/models/i_metadata_model_location_metadata_model.py +98 -0
- rapidata/api_client/models/i_metadata_model_original_filename_metadata_model.py +96 -0
- rapidata/api_client/models/i_metadata_model_source_url_metadata_model.py +96 -0
- rapidata/api_client/models/i_metadata_model_streams_metadata_model.py +100 -0
- rapidata/api_client/models/i_metadata_model_text_metadata_model.py +101 -0
- rapidata/api_client/models/i_metadata_model_video_duration_metadata_model.py +97 -0
- rapidata/api_client/models/i_metadata_original_filename_metadata.py +109 -0
- rapidata/api_client/models/i_metadata_source_url_metadata.py +109 -0
- rapidata/api_client/models/i_metadata_streams_metadata.py +113 -0
- rapidata/api_client/models/i_metadata_text_metadata.py +114 -0
- rapidata/api_client/models/i_metadata_video_duration_metadata.py +110 -0
- rapidata/api_client/models/i_order_workflow_model.py +168 -0
- rapidata/api_client/models/i_order_workflow_model_compare_workflow_model.py +146 -0
- rapidata/api_client/models/i_order_workflow_model_evaluation_workflow_model.py +108 -0
- rapidata/api_client/models/i_order_workflow_model_grouped_ranking_workflow_model.py +147 -0
- rapidata/api_client/models/i_order_workflow_model_simple_workflow_model.py +110 -0
- rapidata/api_client/models/i_pair_maker_config.py +126 -0
- rapidata/api_client/models/i_pair_maker_config_model.py +126 -0
- rapidata/api_client/models/i_pair_maker_config_model_online_pair_maker_config_model.py +98 -0
- rapidata/api_client/models/i_pair_maker_config_online_pair_maker_config.py +98 -0
- rapidata/api_client/models/i_pair_maker_information.py +126 -0
- rapidata/api_client/models/i_pair_maker_information_online_pair_maker_information.py +100 -0
- rapidata/api_client/models/i_pipeline_artifact_model.py +126 -0
- rapidata/api_client/models/i_pipeline_artifact_model_create_dataset_artifact_model.py +102 -0
- rapidata/api_client/models/i_pipeline_model.py +126 -0
- rapidata/api_client/models/i_pipeline_model_create_simple_pipeline_model.py +116 -0
- rapidata/api_client/models/i_pipeline_step_model.py +168 -0
- rapidata/api_client/models/i_pipeline_step_model_dataset_evaluation_step_model.py +102 -0
- rapidata/api_client/models/i_pipeline_step_model_send_completion_mail_step_model.py +98 -0
- rapidata/api_client/models/i_pipeline_step_model_workflow_aggregation_step_model.py +103 -0
- rapidata/api_client/models/i_pipeline_step_model_workflow_labeling_step_model.py +96 -0
- rapidata/api_client/models/i_rapid_blueprint.py +252 -0
- rapidata/api_client/models/i_rapid_blueprint_attach_category_rapid_blueprint.py +108 -0
- rapidata/api_client/models/i_rapid_blueprint_bounding_box_rapid_blueprint.py +96 -0
- rapidata/api_client/models/i_rapid_blueprint_compare_rapid_blueprint.py +98 -0
- rapidata/api_client/models/i_rapid_blueprint_free_text_rapid_blueprint.py +103 -0
- rapidata/api_client/models/i_rapid_blueprint_line_rapid_blueprint.py +96 -0
- rapidata/api_client/models/i_rapid_blueprint_locate_rapid_blueprint.py +96 -0
- rapidata/api_client/models/i_rapid_blueprint_named_entity_rapid_blueprint.py +98 -0
- rapidata/api_client/models/i_rapid_blueprint_polygon_rapid_blueprint.py +96 -0
- rapidata/api_client/models/i_rapid_blueprint_scrub_rapid_blueprint.py +96 -0
- rapidata/api_client/models/i_rapid_blueprint_transcription_rapid_blueprint.py +96 -0
- rapidata/api_client/models/i_rapid_payload.py +252 -0
- rapidata/api_client/models/i_rapid_payload_bounding_box_payload.py +96 -0
- rapidata/api_client/models/i_rapid_payload_classify_payload.py +106 -0
- rapidata/api_client/models/i_rapid_payload_compare_payload.py +96 -0
- rapidata/api_client/models/i_rapid_payload_free_text_payload.py +103 -0
- rapidata/api_client/models/i_rapid_payload_line_payload.py +96 -0
- rapidata/api_client/models/i_rapid_payload_locate_payload.py +96 -0
- rapidata/api_client/models/i_rapid_payload_named_entity_payload.py +98 -0
- rapidata/api_client/models/i_rapid_payload_polygon_payload.py +96 -0
- rapidata/api_client/models/i_rapid_payload_scrub_payload.py +96 -0
- rapidata/api_client/models/i_rapid_payload_transcription_payload.py +106 -0
- rapidata/api_client/models/i_rapid_result.py +266 -0
- rapidata/api_client/models/i_rapid_result_attach_category_result.py +98 -0
- rapidata/api_client/models/i_rapid_result_bounding_box_result.py +106 -0
- rapidata/api_client/models/i_rapid_result_compare_result.py +98 -0
- rapidata/api_client/models/i_rapid_result_free_text_result.py +98 -0
- rapidata/api_client/models/i_rapid_result_line_result.py +106 -0
- rapidata/api_client/models/i_rapid_result_locate_result.py +106 -0
- rapidata/api_client/models/i_rapid_result_named_entity_result.py +106 -0
- rapidata/api_client/models/i_rapid_result_polygon_result.py +106 -0
- rapidata/api_client/models/i_rapid_result_scrub_result.py +98 -0
- rapidata/api_client/models/i_rapid_result_skip_result.py +96 -0
- rapidata/api_client/models/i_rapid_result_transcription_result.py +106 -0
- rapidata/api_client/models/i_referee_config.py +154 -0
- rapidata/api_client/models/i_referee_config_naive_referee_config.py +96 -0
- rapidata/api_client/models/i_referee_config_never_ending_referee_config.py +94 -0
- rapidata/api_client/models/i_referee_config_probabilistic_attach_category_referee_config.py +98 -0
- rapidata/api_client/models/i_referee_info.py +154 -0
- rapidata/api_client/models/i_referee_info_naive_referee_info.py +96 -0
- rapidata/api_client/models/i_referee_info_never_ending_referee_info.py +94 -0
- rapidata/api_client/models/i_referee_info_probabilistic_attach_category_referee_info.py +98 -0
- rapidata/api_client/models/i_referee_model.py +140 -0
- rapidata/api_client/models/i_referee_model_early_stopping_referee_model.py +98 -0
- rapidata/api_client/models/i_referee_model_naive_referee_model.py +96 -0
- rapidata/api_client/models/i_selection.py +240 -0
- rapidata/api_client/models/i_selection_ab_test_selection.py +122 -0
- rapidata/api_client/models/i_selection_capped_selection.py +108 -0
- rapidata/api_client/models/i_selection_conditional_validation_selection.py +110 -0
- rapidata/api_client/models/i_selection_demographic_selection.py +98 -0
- rapidata/api_client/models/i_selection_effort_capped_selection.py +101 -0
- rapidata/api_client/models/i_selection_labeling_selection.py +103 -0
- rapidata/api_client/models/i_selection_shuffling_selection.py +106 -0
- rapidata/api_client/models/i_selection_static_selection.py +96 -0
- rapidata/api_client/models/i_selection_validation_selection.py +98 -0
- rapidata/api_client/models/i_user_filter_model.py +282 -0
- rapidata/api_client/models/i_user_filter_model_age_user_filter_model.py +104 -0
- rapidata/api_client/models/i_user_filter_model_and_user_filter_model.py +106 -0
- rapidata/api_client/models/i_user_filter_model_campaign_user_filter_model.py +96 -0
- rapidata/api_client/models/i_user_filter_model_country_user_filter_model.py +96 -0
- rapidata/api_client/models/i_user_filter_model_custom_user_filter_model.py +98 -0
- rapidata/api_client/models/i_user_filter_model_gender_user_filter_model.py +104 -0
- rapidata/api_client/models/i_user_filter_model_language_user_filter_model.py +96 -0
- rapidata/api_client/models/i_user_filter_model_new_user_filter_model.py +94 -0
- rapidata/api_client/models/i_user_filter_model_not_user_filter_model.py +102 -0
- rapidata/api_client/models/i_user_filter_model_or_user_filter_model.py +106 -0
- rapidata/api_client/models/i_user_filter_model_response_count_user_filter_model.py +101 -0
- rapidata/api_client/models/i_user_filter_model_user_score_user_filter_model.py +105 -0
- rapidata/api_client/models/i_validation_metadata_input.py +140 -0
- rapidata/api_client/models/i_validation_metadata_input_prompt_asset_metadata_input.py +100 -0
- rapidata/api_client/models/i_validation_metadata_input_prompt_metadata_input.py +96 -0
- rapidata/api_client/models/i_validation_truth.py +280 -0
- rapidata/api_client/models/i_validation_truth_attach_category_truth.py +96 -0
- rapidata/api_client/models/i_validation_truth_bounding_box_truth.py +102 -0
- rapidata/api_client/models/i_validation_truth_compare_truth.py +96 -0
- rapidata/api_client/models/i_validation_truth_empty_validation_truth.py +94 -0
- rapidata/api_client/models/i_validation_truth_line_truth.py +94 -0
- rapidata/api_client/models/i_validation_truth_locate_box_truth.py +104 -0
- rapidata/api_client/models/i_validation_truth_multi_compare_truth.py +96 -0
- rapidata/api_client/models/i_validation_truth_named_entity_truth.py +104 -0
- rapidata/api_client/models/i_validation_truth_polygon_truth.py +94 -0
- rapidata/api_client/models/i_validation_truth_scrub_truth.py +104 -0
- rapidata/api_client/models/i_validation_truth_skip_truth.py +94 -0
- rapidata/api_client/models/i_validation_truth_transcription_truth.py +115 -0
- rapidata/api_client/models/i_workflow_config.py +168 -0
- rapidata/api_client/models/i_workflow_config_compare_workflow_config.py +142 -0
- rapidata/api_client/models/i_workflow_config_evaluation_workflow_config.py +114 -0
- rapidata/api_client/models/i_workflow_config_grouped_ranking_workflow_config.py +155 -0
- rapidata/api_client/models/i_workflow_config_simple_workflow_config.py +116 -0
- rapidata/api_client/models/i_workflow_model.py +168 -0
- rapidata/api_client/models/i_workflow_model_compare_workflow_model.py +145 -0
- rapidata/api_client/models/i_workflow_model_evaluation_workflow_model.py +115 -0
- rapidata/api_client/models/i_workflow_model_grouped_ranking_workflow_model.py +121 -0
- rapidata/api_client/models/i_workflow_model_simple_workflow_model.py +119 -0
- rapidata/api_client/models/image_dimension_metadata.py +12 -1
- rapidata/api_client/models/inquire_file_metadata_result.py +100 -0
- rapidata/api_client/models/inspect_report_result.py +2 -2
- rapidata/api_client/models/json_web_key.py +2 -36
- rapidata/api_client/models/json_web_key_set.py +2 -22
- rapidata/api_client/models/labeling_selection.py +11 -13
- rapidata/api_client/models/language_filter.py +98 -0
- rapidata/api_client/models/leaderboard_query_result.py +46 -4
- rapidata/api_client/models/leaderboards_query_result.py +135 -0
- rapidata/api_client/models/line_result.py +3 -3
- rapidata/api_client/models/line_result_line.py +97 -0
- rapidata/api_client/models/line_result_line_point.py +89 -0
- rapidata/api_client/models/local_file_wrapper.py +120 -0
- rapidata/api_client/models/locate_coordinate.py +4 -13
- rapidata/api_client/models/location_metadata.py +12 -1
- rapidata/api_client/models/logic_operator.py +2 -2
- rapidata/api_client/models/metadata_i_order_metadata_input.py +154 -0
- rapidata/api_client/models/metadata_i_order_metadata_input_metadata_prompt_asset_metadata_input.py +100 -0
- rapidata/api_client/models/metadata_i_order_metadata_input_metadata_prompt_metadata_input.py +96 -0
- rapidata/api_client/models/metadata_i_order_metadata_input_metadata_transcription_metadata_input.py +96 -0
- rapidata/api_client/models/metadata_prompt_asset_metadata_input.py +100 -0
- rapidata/api_client/models/metadata_prompt_metadata_input.py +96 -0
- rapidata/api_client/models/metadata_transcription_metadata_input.py +96 -0
- rapidata/api_client/models/multi_asset.py +6 -6
- rapidata/api_client/models/multi_asset_assets_inner.py +170 -0
- rapidata/api_client/models/multi_asset_input.py +130 -0
- rapidata/api_client/models/multi_asset_input1.py +110 -0
- rapidata/api_client/models/multi_asset_input1_assets_inner.py +198 -0
- rapidata/api_client/models/multi_asset_input2.py +110 -0
- rapidata/api_client/models/multi_asset_input3.py +110 -0
- rapidata/api_client/models/multi_asset_input3_assets_inner.py +198 -0
- rapidata/api_client/models/multi_asset_input_assets_inner.py +156 -0
- rapidata/api_client/models/multi_asset_model.py +3 -3
- rapidata/api_client/models/naive_referee_model.py +2 -2
- rapidata/api_client/models/named_classification.py +4 -13
- rapidata/api_client/models/new_user_filter.py +96 -0
- rapidata/api_client/models/newsletter_model.py +6 -6
- rapidata/api_client/models/not_available_yet_result.py +4 -13
- rapidata/api_client/models/not_filter.py +117 -0
- rapidata/api_client/models/not_user_filter_model.py +3 -3
- rapidata/api_client/models/null_asset.py +3 -5
- rapidata/api_client/models/online_pair_maker_config_model.py +3 -3
- rapidata/api_client/models/or_filter.py +121 -0
- rapidata/api_client/models/or_user_filter_model.py +3 -3
- rapidata/api_client/models/order_model.py +15 -14
- rapidata/api_client/models/order_state.py +2 -2
- rapidata/api_client/models/original_filename_metadata.py +12 -1
- rapidata/api_client/models/page_info.py +2 -7
- rapidata/api_client/models/paged_result_aggregated_orders_model.py +105 -0
- rapidata/api_client/models/paged_result_benchmark_query_result.py +105 -0
- rapidata/api_client/models/paged_result_campaign_query_result.py +105 -0
- rapidata/api_client/models/paged_result_clients_query_result.py +105 -0
- rapidata/api_client/models/paged_result_datapoint_model.py +105 -0
- rapidata/api_client/models/paged_result_get_compare_workflow_results_result.py +105 -0
- rapidata/api_client/models/paged_result_get_grouped_ranking_workflow_results_result.py +105 -0
- rapidata/api_client/models/paged_result_get_validation_rapids_result.py +105 -0
- rapidata/api_client/models/paged_result_get_workflow_results_result.py +105 -0
- rapidata/api_client/models/paged_result_i_workflow_model.py +105 -0
- rapidata/api_client/models/paged_result_leaderboard_query_result.py +105 -0
- rapidata/api_client/models/paged_result_leaderboards_query_result.py +105 -0
- rapidata/api_client/models/paged_result_of_aggregated_orders_model.py +103 -0
- rapidata/api_client/models/paged_result_of_benchmark_query_result.py +103 -0
- rapidata/api_client/models/paged_result_of_campaign_query_result.py +103 -0
- rapidata/api_client/models/paged_result_of_clients_query_result.py +103 -0
- rapidata/api_client/models/paged_result_of_get_compare_workflow_results_result.py +103 -0
- rapidata/api_client/models/paged_result_of_get_grouped_ranking_workflow_results_result.py +103 -0
- rapidata/api_client/models/paged_result_of_get_validation_rapids_result.py +103 -0
- rapidata/api_client/models/paged_result_of_get_workflow_results_result.py +103 -0
- rapidata/api_client/models/paged_result_of_i_workflow_model.py +103 -0
- rapidata/api_client/models/paged_result_of_leaderboards_query_result.py +103 -0
- rapidata/api_client/models/paged_result_of_order_model.py +103 -0
- rapidata/api_client/models/paged_result_of_participant_by_benchmark.py +103 -0
- rapidata/api_client/models/paged_result_of_prompt_by_benchmark_result.py +103 -0
- rapidata/api_client/models/paged_result_of_query_audiences_result.py +103 -0
- rapidata/api_client/models/paged_result_of_query_datapoints_by_dataset_id_result.py +103 -0
- rapidata/api_client/models/paged_result_of_query_validation_rapid_eligibility_result.py +103 -0
- rapidata/api_client/models/paged_result_of_rapid_model.py +103 -0
- rapidata/api_client/models/paged_result_of_runs_by_leaderboard_result.py +103 -0
- rapidata/api_client/models/paged_result_of_sample_by_identifier.py +103 -0
- rapidata/api_client/models/paged_result_of_sample_by_participant.py +103 -0
- rapidata/api_client/models/paged_result_of_standing_by_leaderboard.py +103 -0
- rapidata/api_client/models/paged_result_of_validation_set_model.py +103 -0
- rapidata/api_client/models/paged_result_order_model.py +105 -0
- rapidata/api_client/models/paged_result_participant_by_benchmark.py +105 -0
- rapidata/api_client/models/paged_result_potential_validation_rapid.py +105 -0
- rapidata/api_client/models/paged_result_prompt_by_benchmark_result.py +105 -0
- rapidata/api_client/models/paged_result_query_audiences_result.py +105 -0
- rapidata/api_client/models/paged_result_query_datapoints_by_dataset_id_result.py +105 -0
- rapidata/api_client/models/paged_result_query_validation_rapid_eligibility_result.py +105 -0
- rapidata/api_client/models/paged_result_rapid_model.py +105 -0
- rapidata/api_client/models/paged_result_runs_by_leaderboard_result.py +105 -0
- rapidata/api_client/models/paged_result_sample_by_identifier.py +105 -0
- rapidata/api_client/models/paged_result_sample_by_participant.py +105 -0
- rapidata/api_client/models/paged_result_standing_by_leaderboard.py +105 -0
- rapidata/api_client/models/paged_result_validation_set_model.py +105 -0
- rapidata/api_client/models/participant_by_benchmark.py +94 -0
- rapidata/api_client/models/participant_by_benchmark_paged_result.py +105 -0
- rapidata/api_client/models/participant_by_leaderboard.py +19 -8
- rapidata/api_client/models/participant_status.py +4 -5
- rapidata/api_client/models/pipeline_id_workflow_config_put_request.py +140 -0
- rapidata/api_client/models/polygon_result.py +3 -3
- rapidata/api_client/models/polygon_result_coordinate.py +89 -0
- rapidata/api_client/models/polygon_result_shape.py +95 -0
- rapidata/api_client/models/potential_validation_rapid.py +103 -0
- rapidata/api_client/models/potential_validation_rapid_paged_result.py +105 -0
- rapidata/api_client/models/potential_validation_rapid_truth.py +280 -0
- rapidata/api_client/models/preliminary_download_model.py +5 -5
- rapidata/api_client/models/preview_order_model.py +87 -0
- rapidata/api_client/models/problem_details.py +2 -20
- rapidata/api_client/models/prompt_asset_metadata_input.py +6 -8
- rapidata/api_client/models/prompt_asset_metadata_input_asset.py +154 -0
- rapidata/api_client/models/prompt_by_benchmark_result.py +112 -0
- rapidata/api_client/models/prompt_by_benchmark_result_paged_result.py +105 -0
- rapidata/api_client/models/prompt_metadata.py +12 -1
- rapidata/api_client/models/prompt_metadata_input.py +2 -2
- rapidata/api_client/models/prompt_type.py +38 -0
- rapidata/api_client/models/proxy_file_wrapper.py +129 -0
- rapidata/api_client/models/public_order_model.py +2 -2
- rapidata/api_client/models/public_rapid_response.py +112 -0
- rapidata/api_client/models/query_audiences_result.py +111 -0
- rapidata/api_client/models/query_datapoints_by_dataset_id_result.py +95 -0
- rapidata/api_client/models/query_model.py +10 -5
- rapidata/api_client/models/query_validation_model.py +97 -0
- rapidata/api_client/models/query_validation_rapid_eligibility_model_query_validation_model.py +107 -0
- rapidata/api_client/models/query_validation_rapid_eligibility_result.py +103 -0
- rapidata/api_client/models/query_validation_rapid_eligibility_result_truth.py +280 -0
- rapidata/api_client/models/rapid_issue.py +2 -2
- rapidata/api_client/models/rapid_modality.py +46 -0
- rapidata/api_client/models/rapid_model.py +33 -49
- rapidata/api_client/models/rapid_result_model.py +7 -7
- rapidata/api_client/models/rapid_skipped_model.py +5 -5
- rapidata/api_client/models/rapid_state.py +2 -2
- rapidata/api_client/models/read_bridge_token_keys_result.py +10 -24
- rapidata/api_client/models/reference_asset_input.py +100 -0
- rapidata/api_client/models/report_model.py +9 -15
- rapidata/api_client/models/response_count_filter.py +103 -0
- rapidata/api_client/models/response_count_user_filter_model.py +2 -8
- rapidata/api_client/models/retrieval_mode.py +2 -2
- rapidata/api_client/models/root_filter.py +5 -14
- rapidata/api_client/models/run_status.py +39 -0
- rapidata/api_client/models/runs_by_leaderboard_result.py +104 -0
- rapidata/api_client/models/runs_by_leaderboard_result_paged_result.py +105 -0
- rapidata/api_client/models/sample_by_identifier.py +125 -0
- rapidata/api_client/models/sample_by_identifier_paged_result.py +105 -0
- rapidata/api_client/models/sample_by_participant.py +121 -0
- rapidata/api_client/models/sample_by_participant_paged_result.py +105 -0
- rapidata/api_client/models/scrub_range.py +2 -2
- rapidata/api_client/models/send_survey_model.py +87 -0
- rapidata/api_client/models/simple_workflow_config.py +15 -7
- rapidata/api_client/models/simple_workflow_config_blueprint.py +37 -23
- rapidata/api_client/models/simple_workflow_config_model.py +11 -3
- rapidata/api_client/models/simple_workflow_model.py +14 -4
- rapidata/api_client/models/simple_workflow_model1.py +4 -11
- rapidata/api_client/models/simple_workflow_model_blueprint.py +1 -1
- rapidata/api_client/models/sort_criterion.py +5 -11
- rapidata/api_client/models/sort_direction.py +2 -2
- rapidata/api_client/models/source_url_metadata.py +12 -1
- rapidata/api_client/models/standing_by_benchmark.py +113 -0
- rapidata/api_client/models/standing_by_leaderboard.py +113 -0
- rapidata/api_client/models/standing_by_leaderboard_paged_result.py +105 -0
- rapidata/api_client/models/standing_status.py +38 -0
- rapidata/api_client/models/standings_by_benchmark_result.py +95 -0
- rapidata/api_client/models/standings_by_leaderboard_result.py +95 -0
- rapidata/api_client/models/start_preliminary_download_result.py +87 -0
- rapidata/api_client/models/sticky_state.py +3 -2
- rapidata/api_client/models/stream_file_wrapper.py +138 -0
- rapidata/api_client/models/streams_metadata.py +12 -1
- rapidata/api_client/models/string_segment.py +105 -0
- rapidata/api_client/models/submit_coco_model.py +1 -3
- rapidata/api_client/models/submit_order_model.py +87 -0
- rapidata/api_client/models/submit_participant_result.py +89 -0
- rapidata/api_client/models/submit_prompt_model.py +107 -0
- rapidata/api_client/models/submit_prompt_model_prompt_asset.py +202 -0
- rapidata/api_client/models/tags_by_benchmark_result.py +87 -0
- rapidata/api_client/models/text_asset.py +3 -5
- rapidata/api_client/models/text_asset_input.py +120 -0
- rapidata/api_client/models/text_metadata.py +18 -2
- rapidata/api_client/models/text_metadata_input.py +111 -0
- rapidata/api_client/models/text_metadata_model.py +7 -2
- rapidata/api_client/models/transcription_metadata.py +9 -1
- rapidata/api_client/models/transcription_metadata_input.py +2 -2
- rapidata/api_client/models/transcription_word.py +2 -2
- rapidata/api_client/models/translated_string.py +2 -2
- rapidata/api_client/models/unlock_order_result.py +2 -2
- rapidata/api_client/models/update_audience_request.py +102 -0
- rapidata/api_client/models/update_benchmark_model.py +99 -0
- rapidata/api_client/models/update_benchmark_name_model.py +87 -0
- rapidata/api_client/models/update_campaign_model.py +11 -11
- rapidata/api_client/models/update_dataset_name_model.py +5 -5
- rapidata/api_client/models/update_dimensions_model.py +3 -3
- rapidata/api_client/models/update_leaderboard_model.py +106 -0
- rapidata/api_client/models/update_leaderboard_name_model.py +87 -0
- rapidata/api_client/models/update_leaderboard_response_config_model.py +89 -0
- rapidata/api_client/models/update_order_name_model.py +5 -5
- rapidata/api_client/models/update_participant_model.py +92 -0
- rapidata/api_client/models/update_participant_name_model.py +87 -0
- rapidata/api_client/models/update_priority_model.py +87 -0
- rapidata/api_client/models/update_prompt_tags_model.py +87 -0
- rapidata/api_client/models/update_should_alert_model.py +87 -0
- rapidata/api_client/models/update_validation_rapid_model.py +28 -10
- rapidata/api_client/models/update_validation_rapid_model_context_asset.py +160 -0
- rapidata/api_client/models/update_validation_set_model.py +120 -0
- rapidata/api_client/models/upload_asset_result.py +102 -0
- rapidata/api_client/models/upload_file_from_url_result.py +87 -0
- rapidata/api_client/models/upload_file_result.py +87 -0
- rapidata/api_client/models/user_action_restriction.py +37 -0
- rapidata/api_client/models/user_action_restriction_filter.py +101 -0
- rapidata/api_client/models/user_score_filter.py +102 -0
- rapidata/api_client/models/user_state.py +38 -0
- rapidata/api_client/models/user_state_filter.py +101 -0
- rapidata/api_client/models/validation_chance.py +20 -3
- rapidata/api_client/models/validation_set_model.py +39 -5
- rapidata/api_client/models/validation_set_overview_model.py +2 -2
- rapidata/api_client/models/validation_set_zip_post_request_blueprint.py +252 -0
- rapidata/api_client/models/video_duration_metadata.py +12 -1
- rapidata/api_client/models/workflow_aggregation_step_model.py +3 -12
- rapidata/api_client/models/workflow_config_artifact_model_workflow_config.py +23 -9
- rapidata/api_client/models/workflow_state.py +2 -2
- rapidata/api_client/models/zip_entry_file_wrapper.py +151 -0
- rapidata/api_client/rest.py +16 -9
- rapidata/api_client_README.md +373 -336
- rapidata/rapidata_client/__init__.py +9 -18
- rapidata/rapidata_client/api/rapidata_api_client.py +253 -0
- rapidata/rapidata_client/benchmark/_detail_mapper.py +32 -0
- rapidata/rapidata_client/benchmark/leaderboard/__init__.py +0 -0
- rapidata/rapidata_client/benchmark/leaderboard/rapidata_leaderboard.py +221 -0
- rapidata/rapidata_client/benchmark/participant/__init__.py +0 -0
- rapidata/rapidata_client/benchmark/participant/_participant.py +147 -0
- rapidata/rapidata_client/benchmark/rapidata_benchmark.py +546 -0
- rapidata/rapidata_client/benchmark/rapidata_benchmark_manager.py +219 -0
- rapidata/rapidata_client/config/__init__.py +4 -0
- rapidata/rapidata_client/config/logger.py +135 -0
- rapidata/rapidata_client/config/logging_config.py +55 -0
- rapidata/rapidata_client/config/managed_print.py +6 -0
- rapidata/rapidata_client/config/order_config.py +14 -0
- rapidata/rapidata_client/config/rapidata_config.py +36 -0
- rapidata/rapidata_client/config/tracer.py +184 -0
- rapidata/rapidata_client/config/upload_config.py +64 -0
- rapidata/rapidata_client/datapoints/__init__.py +10 -0
- rapidata/rapidata_client/datapoints/_asset_uploader.py +169 -0
- rapidata/rapidata_client/datapoints/_datapoint.py +92 -0
- rapidata/rapidata_client/datapoints/_datapoint_uploader.py +47 -0
- rapidata/rapidata_client/datapoints/_datapoints_validator.py +70 -0
- rapidata/rapidata_client/datapoints/assets/__init__.py +0 -0
- rapidata/rapidata_client/datapoints/assets/constants.py +7 -0
- rapidata/rapidata_client/{metadata → datapoints/metadata}/__init__.py +1 -0
- rapidata/rapidata_client/datapoints/metadata/_media_asset_metadata.py +26 -0
- rapidata/rapidata_client/datapoints/metadata/_private_text_metadata.py +16 -0
- rapidata/rapidata_client/datapoints/metadata/_prompt_identifier_metadata.py +14 -0
- rapidata/rapidata_client/datapoints/metadata/_prompt_metadata.py +12 -0
- rapidata/rapidata_client/datapoints/metadata/_public_text_metadata.py +16 -0
- rapidata/rapidata_client/{metadata → datapoints/metadata}/_select_words_metadata.py +4 -5
- rapidata/rapidata_client/demographic/demographic_manager.py +44 -19
- rapidata/rapidata_client/exceptions/__init__.py +1 -0
- rapidata/rapidata_client/exceptions/failed_upload_exception.py +20 -0
- rapidata/rapidata_client/filter/__init__.py +1 -0
- rapidata/rapidata_client/filter/_base_filter.py +27 -6
- rapidata/rapidata_client/filter/age_filter.py +21 -10
- rapidata/rapidata_client/filter/and_filter.py +42 -0
- rapidata/rapidata_client/filter/campaign_filter.py +18 -10
- rapidata/rapidata_client/filter/country_filter.py +34 -12
- rapidata/rapidata_client/filter/custom_filter.py +22 -12
- rapidata/rapidata_client/filter/gender_filter.py +22 -10
- rapidata/rapidata_client/filter/language_filter.py +39 -21
- rapidata/rapidata_client/filter/models/age_group.py +14 -12
- rapidata/rapidata_client/filter/models/gender.py +12 -8
- rapidata/rapidata_client/filter/new_user_filter.py +11 -4
- rapidata/rapidata_client/filter/not_filter.py +23 -11
- rapidata/rapidata_client/filter/or_filter.py +23 -11
- rapidata/rapidata_client/filter/rapidata_filters.py +19 -13
- rapidata/rapidata_client/filter/response_count_filter.py +36 -20
- rapidata/rapidata_client/filter/user_score_filter.py +47 -24
- rapidata/rapidata_client/order/_rapidata_order_builder.py +289 -154
- rapidata/rapidata_client/order/dataset/_rapidata_dataset.py +153 -0
- rapidata/rapidata_client/order/rapidata_order.py +316 -163
- rapidata/rapidata_client/order/rapidata_order_manager.py +688 -430
- rapidata/rapidata_client/order/rapidata_results.py +86 -63
- rapidata/rapidata_client/rapidata_client.py +98 -36
- rapidata/rapidata_client/referee/__init__.py +1 -1
- rapidata/rapidata_client/referee/_base_referee.py +7 -3
- rapidata/rapidata_client/referee/_early_stopping_referee.py +20 -11
- rapidata/rapidata_client/referee/_naive_referee.py +18 -3
- rapidata/rapidata_client/selection/__init__.py +2 -2
- rapidata/rapidata_client/selection/_base_selection.py +9 -2
- rapidata/rapidata_client/selection/ab_test_selection.py +28 -20
- rapidata/rapidata_client/selection/capped_selection.py +23 -16
- rapidata/rapidata_client/selection/conditional_validation_selection.py +43 -24
- rapidata/rapidata_client/selection/demographic_selection.py +21 -6
- rapidata/rapidata_client/selection/effort_selection.py +40 -10
- rapidata/rapidata_client/selection/labeling_selection.py +34 -11
- rapidata/rapidata_client/selection/{retrieval_modes.py → rapidata_retrieval_modes.py} +7 -4
- rapidata/rapidata_client/selection/rapidata_selections.py +17 -8
- rapidata/rapidata_client/selection/shuffling_selection.py +21 -13
- rapidata/rapidata_client/selection/static_selection.py +19 -8
- rapidata/rapidata_client/selection/validation_selection.py +20 -4
- rapidata/rapidata_client/settings/__init__.py +2 -0
- rapidata/rapidata_client/settings/_rapidata_setting.py +15 -2
- rapidata/rapidata_client/settings/alert_on_fast_response.py +8 -5
- rapidata/rapidata_client/settings/allow_neither_both.py +3 -0
- rapidata/rapidata_client/settings/custom_setting.py +3 -2
- rapidata/rapidata_client/settings/free_text_minimum_characters.py +9 -4
- rapidata/rapidata_client/settings/models/translation_behaviour_options.py +3 -2
- rapidata/rapidata_client/settings/mute_video.py +15 -0
- rapidata/rapidata_client/settings/no_shuffle.py +4 -2
- rapidata/rapidata_client/settings/play_video_until_the_end.py +7 -4
- rapidata/rapidata_client/settings/rapidata_settings.py +16 -3
- rapidata/rapidata_client/settings/swap_context_instruction.py +20 -0
- rapidata/rapidata_client/settings/translation_behaviour.py +7 -5
- rapidata/rapidata_client/validation/rapidata_validation_set.py +106 -12
- rapidata/rapidata_client/validation/rapids/_validation_rapid_uploader.py +62 -0
- rapidata/rapidata_client/validation/rapids/box.py +37 -12
- rapidata/rapidata_client/validation/rapids/rapids.py +28 -103
- rapidata/rapidata_client/validation/rapids/rapids_manager.py +315 -208
- rapidata/rapidata_client/validation/validation_set_manager.py +511 -274
- rapidata/rapidata_client/workflow/__init__.py +2 -1
- rapidata/rapidata_client/workflow/_base_workflow.py +25 -7
- rapidata/rapidata_client/workflow/_classify_workflow.py +58 -15
- rapidata/rapidata_client/workflow/_compare_workflow.py +44 -9
- rapidata/rapidata_client/workflow/_draw_workflow.py +40 -10
- rapidata/rapidata_client/workflow/_evaluation_workflow.py +28 -7
- rapidata/rapidata_client/workflow/_free_text_workflow.py +46 -9
- rapidata/rapidata_client/workflow/_locate_workflow.py +40 -10
- rapidata/rapidata_client/workflow/_multi_ranking_workflow.py +87 -0
- rapidata/rapidata_client/workflow/_ranking_workflow.py +109 -25
- rapidata/rapidata_client/workflow/_select_words_workflow.py +51 -11
- rapidata/rapidata_client/workflow/_timestamp_workflow.py +42 -11
- rapidata/service/__init__.py +0 -1
- rapidata/service/credential_manager.py +14 -14
- rapidata/service/openapi_service.py +79 -24
- rapidata/types/__init__.py +166 -0
- rapidata-2.44.3.dist-info/METADATA +32 -0
- rapidata-2.44.3.dist-info/RECORD +1014 -0
- {rapidata-2.28.2.dist-info → rapidata-2.44.3.dist-info}/WHEEL +1 -1
- rapidata/rapidata_client/api/rapidata_exception.py +0 -107
- rapidata/rapidata_client/assets/__init__.py +0 -10
- rapidata/rapidata_client/assets/_base_asset.py +0 -11
- rapidata/rapidata_client/assets/_media_asset.py +0 -306
- rapidata/rapidata_client/assets/_multi_asset.py +0 -61
- rapidata/rapidata_client/assets/_sessions.py +0 -35
- rapidata/rapidata_client/assets/_text_asset.py +0 -34
- rapidata/rapidata_client/assets/data_type_enum.py +0 -7
- rapidata/rapidata_client/country_codes/__init__.py +0 -1
- rapidata/rapidata_client/country_codes/country_codes.py +0 -19
- rapidata/rapidata_client/leaderboard/rapidata_leaderboard.py +0 -127
- rapidata/rapidata_client/leaderboard/rapidata_leaderboard_manager.py +0 -92
- rapidata/rapidata_client/logging/__init__.py +0 -2
- rapidata/rapidata_client/logging/logger.py +0 -122
- rapidata/rapidata_client/logging/output_manager.py +0 -20
- rapidata/rapidata_client/metadata/_media_asset_metadata.py +0 -15
- rapidata/rapidata_client/metadata/_private_text_metadata.py +0 -17
- rapidata/rapidata_client/metadata/_prompt_metadata.py +0 -18
- rapidata/rapidata_client/metadata/_public_text_metadata.py +0 -17
- rapidata/rapidata_client/order/_rapidata_dataset.py +0 -461
- rapidata/service/local_file_service.py +0 -25
- rapidata-2.28.2.dist-info/METADATA +0 -35
- rapidata-2.28.2.dist-info/RECORD +0 -574
- /rapidata/rapidata_client/{leaderboard → benchmark}/__init__.py +0 -0
- /rapidata/rapidata_client/{metadata → datapoints/metadata}/_base_metadata.py +0 -0
- {rapidata-2.28.2.dist-info → rapidata-2.44.3.dist-info/licenses}/LICENSE +0 -0
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
# coding: utf-8
|
|
2
2
|
|
|
3
3
|
"""
|
|
4
|
-
Rapidata
|
|
4
|
+
Rapidata Asset API
|
|
5
5
|
|
|
6
|
-
|
|
6
|
+
The API for the Rapidata Asset service
|
|
7
7
|
|
|
8
8
|
The version of the OpenAPI document: v1
|
|
9
9
|
Generated by OpenAPI Generator (https://openapi-generator.tech)
|
|
@@ -16,26 +16,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.
|
|
23
|
-
from rapidata.api_client.models.create_datapoint_from_text_sources_model import CreateDatapointFromTextSourcesModel
|
|
24
|
-
from rapidata.api_client.models.create_datapoint_from_urls_model import CreateDatapointFromUrlsModel
|
|
22
|
+
from rapidata.api_client.models.create_datapoint_model import CreateDatapointModel
|
|
25
23
|
from rapidata.api_client.models.create_datapoint_result import CreateDatapointResult
|
|
26
|
-
from rapidata.api_client.models.create_datapoints_from_s3_bucket_model import CreateDatapointsFromS3BucketModel
|
|
27
|
-
from rapidata.api_client.models.datapoint_metadata_model import DatapointMetadataModel
|
|
28
|
-
from rapidata.api_client.models.datapoint_model_paged_result import DatapointModelPagedResult
|
|
29
|
-
from rapidata.api_client.models.dataset_dataset_id_datapoints_post_request_metadata_inner import DatasetDatasetIdDatapointsPostRequestMetadataInner
|
|
30
24
|
from rapidata.api_client.models.get_dataset_by_id_result import GetDatasetByIdResult
|
|
31
25
|
from rapidata.api_client.models.get_dataset_progress_result import GetDatasetProgressResult
|
|
32
26
|
from rapidata.api_client.models.get_failed_datapoints_result import GetFailedDatapointsResult
|
|
33
|
-
from rapidata.api_client.models.
|
|
27
|
+
from rapidata.api_client.models.paged_result_of_query_datapoints_by_dataset_id_result import PagedResultOfQueryDatapointsByDatasetIdResult
|
|
34
28
|
from rapidata.api_client.models.query_model import QueryModel
|
|
35
29
|
from rapidata.api_client.models.update_dataset_name_model import UpdateDatasetNameModel
|
|
36
|
-
from rapidata.api_client.models.upload_files_from_s3_bucket_model import UploadFilesFromS3BucketModel
|
|
37
|
-
from rapidata.api_client.models.upload_from_s3_result import UploadFromS3Result
|
|
38
|
-
from rapidata.api_client.models.upload_text_sources_to_dataset_model import UploadTextSourcesToDatasetModel
|
|
39
30
|
|
|
40
31
|
from rapidata.api_client.api_client import ApiClient, RequestSerialized
|
|
41
32
|
from rapidata.api_client.api_response import ApiResponse
|
|
@@ -56,10 +47,10 @@ class DatasetApi:
|
|
|
56
47
|
|
|
57
48
|
|
|
58
49
|
@validate_call
|
|
59
|
-
def
|
|
50
|
+
def dataset_dataset_id_datapoint_post(
|
|
60
51
|
self,
|
|
61
|
-
|
|
62
|
-
|
|
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.")],
|
|
63
54
|
_request_timeout: Union[
|
|
64
55
|
None,
|
|
65
56
|
Annotated[StrictFloat, Field(gt=0)],
|
|
@@ -73,14 +64,13 @@ class DatasetApi:
|
|
|
73
64
|
_headers: Optional[Dict[StrictStr, Any]] = None,
|
|
74
65
|
_host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
|
|
75
66
|
) -> CreateDatapointResult:
|
|
76
|
-
"""
|
|
67
|
+
"""Creates a datapoint with JSON body.
|
|
77
68
|
|
|
78
|
-
If multiple files are uploaded, a multi asset datapoint will be created.
|
|
79
69
|
|
|
80
|
-
:param
|
|
81
|
-
:type
|
|
82
|
-
:param model
|
|
83
|
-
: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
|
|
84
74
|
:param _request_timeout: timeout setting for this request. If one
|
|
85
75
|
number provided, it will be total request
|
|
86
76
|
timeout. It can also be a pair (tuple) of
|
|
@@ -102,11 +92,10 @@ class DatasetApi:
|
|
|
102
92
|
:type _host_index: int, optional
|
|
103
93
|
:return: Returns the result object.
|
|
104
94
|
""" # noqa: E501
|
|
105
|
-
warnings.warn("POST /dataset/createdatapoint is deprecated.", DeprecationWarning)
|
|
106
95
|
|
|
107
|
-
_param = self.
|
|
108
|
-
|
|
109
|
-
|
|
96
|
+
_param = self._dataset_dataset_id_datapoint_post_serialize(
|
|
97
|
+
dataset_id=dataset_id,
|
|
98
|
+
create_datapoint_model=create_datapoint_model,
|
|
110
99
|
_request_auth=_request_auth,
|
|
111
100
|
_content_type=_content_type,
|
|
112
101
|
_headers=_headers,
|
|
@@ -128,10 +117,10 @@ class DatasetApi:
|
|
|
128
117
|
|
|
129
118
|
|
|
130
119
|
@validate_call
|
|
131
|
-
def
|
|
120
|
+
def dataset_dataset_id_datapoint_post_with_http_info(
|
|
132
121
|
self,
|
|
133
|
-
|
|
134
|
-
|
|
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.")],
|
|
135
124
|
_request_timeout: Union[
|
|
136
125
|
None,
|
|
137
126
|
Annotated[StrictFloat, Field(gt=0)],
|
|
@@ -145,14 +134,13 @@ class DatasetApi:
|
|
|
145
134
|
_headers: Optional[Dict[StrictStr, Any]] = None,
|
|
146
135
|
_host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
|
|
147
136
|
) -> ApiResponse[CreateDatapointResult]:
|
|
148
|
-
"""
|
|
137
|
+
"""Creates a datapoint with JSON body.
|
|
149
138
|
|
|
150
|
-
If multiple files are uploaded, a multi asset datapoint will be created.
|
|
151
139
|
|
|
152
|
-
:param
|
|
153
|
-
:type
|
|
154
|
-
:param model
|
|
155
|
-
: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
|
|
156
144
|
:param _request_timeout: timeout setting for this request. If one
|
|
157
145
|
number provided, it will be total request
|
|
158
146
|
timeout. It can also be a pair (tuple) of
|
|
@@ -174,11 +162,10 @@ class DatasetApi:
|
|
|
174
162
|
:type _host_index: int, optional
|
|
175
163
|
:return: Returns the result object.
|
|
176
164
|
""" # noqa: E501
|
|
177
|
-
warnings.warn("POST /dataset/createdatapoint is deprecated.", DeprecationWarning)
|
|
178
165
|
|
|
179
|
-
_param = self.
|
|
180
|
-
|
|
181
|
-
|
|
166
|
+
_param = self._dataset_dataset_id_datapoint_post_serialize(
|
|
167
|
+
dataset_id=dataset_id,
|
|
168
|
+
create_datapoint_model=create_datapoint_model,
|
|
182
169
|
_request_auth=_request_auth,
|
|
183
170
|
_content_type=_content_type,
|
|
184
171
|
_headers=_headers,
|
|
@@ -200,10 +187,10 @@ class DatasetApi:
|
|
|
200
187
|
|
|
201
188
|
|
|
202
189
|
@validate_call
|
|
203
|
-
def
|
|
190
|
+
def dataset_dataset_id_datapoint_post_without_preload_content(
|
|
204
191
|
self,
|
|
205
|
-
|
|
206
|
-
|
|
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.")],
|
|
207
194
|
_request_timeout: Union[
|
|
208
195
|
None,
|
|
209
196
|
Annotated[StrictFloat, Field(gt=0)],
|
|
@@ -217,14 +204,13 @@ class DatasetApi:
|
|
|
217
204
|
_headers: Optional[Dict[StrictStr, Any]] = None,
|
|
218
205
|
_host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
|
|
219
206
|
) -> RESTResponseType:
|
|
220
|
-
"""
|
|
207
|
+
"""Creates a datapoint with JSON body.
|
|
221
208
|
|
|
222
|
-
If multiple files are uploaded, a multi asset datapoint will be created.
|
|
223
209
|
|
|
224
|
-
:param
|
|
225
|
-
:type
|
|
226
|
-
:param model
|
|
227
|
-
: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
|
|
228
214
|
:param _request_timeout: timeout setting for this request. If one
|
|
229
215
|
number provided, it will be total request
|
|
230
216
|
timeout. It can also be a pair (tuple) of
|
|
@@ -246,11 +232,10 @@ class DatasetApi:
|
|
|
246
232
|
:type _host_index: int, optional
|
|
247
233
|
:return: Returns the result object.
|
|
248
234
|
""" # noqa: E501
|
|
249
|
-
warnings.warn("POST /dataset/createdatapoint is deprecated.", DeprecationWarning)
|
|
250
235
|
|
|
251
|
-
_param = self.
|
|
252
|
-
|
|
253
|
-
|
|
236
|
+
_param = self._dataset_dataset_id_datapoint_post_serialize(
|
|
237
|
+
dataset_id=dataset_id,
|
|
238
|
+
create_datapoint_model=create_datapoint_model,
|
|
254
239
|
_request_auth=_request_auth,
|
|
255
240
|
_content_type=_content_type,
|
|
256
241
|
_headers=_headers,
|
|
@@ -267,10 +252,10 @@ class DatasetApi:
|
|
|
267
252
|
return response_data.response
|
|
268
253
|
|
|
269
254
|
|
|
270
|
-
def
|
|
255
|
+
def _dataset_dataset_id_datapoint_post_serialize(
|
|
271
256
|
self,
|
|
272
|
-
|
|
273
|
-
|
|
257
|
+
dataset_id,
|
|
258
|
+
create_datapoint_model,
|
|
274
259
|
_request_auth,
|
|
275
260
|
_content_type,
|
|
276
261
|
_headers,
|
|
@@ -280,7 +265,6 @@ class DatasetApi:
|
|
|
280
265
|
_host = None
|
|
281
266
|
|
|
282
267
|
_collection_formats: Dict[str, str] = {
|
|
283
|
-
'files': 'multi',
|
|
284
268
|
}
|
|
285
269
|
|
|
286
270
|
_path_params: Dict[str, str] = {}
|
|
@@ -293,14 +277,14 @@ class DatasetApi:
|
|
|
293
277
|
_body_params: Optional[bytes] = None
|
|
294
278
|
|
|
295
279
|
# process the path parameters
|
|
280
|
+
if dataset_id is not None:
|
|
281
|
+
_path_params['datasetId'] = dataset_id
|
|
296
282
|
# process the query parameters
|
|
297
283
|
# process the header parameters
|
|
298
284
|
# process the form parameters
|
|
299
|
-
if files is not None:
|
|
300
|
-
_files['files'] = files
|
|
301
|
-
if model is not None:
|
|
302
|
-
_form_params.append(('model', model))
|
|
303
285
|
# process the body parameter
|
|
286
|
+
if create_datapoint_model is not None:
|
|
287
|
+
_body_params = create_datapoint_model
|
|
304
288
|
|
|
305
289
|
|
|
306
290
|
# set the HTTP header `Accept`
|
|
@@ -320,7 +304,9 @@ class DatasetApi:
|
|
|
320
304
|
_default_content_type = (
|
|
321
305
|
self.api_client.select_header_content_type(
|
|
322
306
|
[
|
|
323
|
-
'
|
|
307
|
+
'application/json',
|
|
308
|
+
'text/json',
|
|
309
|
+
'application/*+json'
|
|
324
310
|
]
|
|
325
311
|
)
|
|
326
312
|
)
|
|
@@ -329,13 +315,14 @@ class DatasetApi:
|
|
|
329
315
|
|
|
330
316
|
# authentication setting
|
|
331
317
|
_auth_settings: List[str] = [
|
|
332
|
-
'
|
|
333
|
-
'
|
|
318
|
+
'OAuth2',
|
|
319
|
+
'OpenIdConnect',
|
|
320
|
+
'Bearer'
|
|
334
321
|
]
|
|
335
322
|
|
|
336
323
|
return self.api_client.param_serialize(
|
|
337
324
|
method='POST',
|
|
338
|
-
resource_path='/dataset/
|
|
325
|
+
resource_path='/dataset/{datasetId}/datapoint',
|
|
339
326
|
path_params=_path_params,
|
|
340
327
|
query_params=_query_params,
|
|
341
328
|
header_params=_header_params,
|
|
@@ -352,9 +339,9 @@ class DatasetApi:
|
|
|
352
339
|
|
|
353
340
|
|
|
354
341
|
@validate_call
|
|
355
|
-
def
|
|
342
|
+
def dataset_dataset_id_datapoints_failed_get(
|
|
356
343
|
self,
|
|
357
|
-
|
|
344
|
+
dataset_id: Annotated[StrictStr, Field(description="The id of the dataset to get the failed datapoints of.")],
|
|
358
345
|
_request_timeout: Union[
|
|
359
346
|
None,
|
|
360
347
|
Annotated[StrictFloat, Field(gt=0)],
|
|
@@ -367,13 +354,13 @@ class DatasetApi:
|
|
|
367
354
|
_content_type: Optional[StrictStr] = None,
|
|
368
355
|
_headers: Optional[Dict[StrictStr, Any]] = None,
|
|
369
356
|
_host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
|
|
370
|
-
) ->
|
|
371
|
-
"""
|
|
357
|
+
) -> GetFailedDatapointsResult:
|
|
358
|
+
"""Gets a list of all datapoints that failed to upload.
|
|
372
359
|
|
|
373
|
-
|
|
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.
|
|
374
361
|
|
|
375
|
-
:param
|
|
376
|
-
:type
|
|
362
|
+
:param dataset_id: The id of the dataset to get the failed datapoints of. (required)
|
|
363
|
+
:type dataset_id: str
|
|
377
364
|
:param _request_timeout: timeout setting for this request. If one
|
|
378
365
|
number provided, it will be total request
|
|
379
366
|
timeout. It can also be a pair (tuple) of
|
|
@@ -395,10 +382,9 @@ class DatasetApi:
|
|
|
395
382
|
:type _host_index: int, optional
|
|
396
383
|
:return: Returns the result object.
|
|
397
384
|
""" # noqa: E501
|
|
398
|
-
warnings.warn("POST /dataset/creattextdatapoint is deprecated.", DeprecationWarning)
|
|
399
385
|
|
|
400
|
-
_param = self.
|
|
401
|
-
|
|
386
|
+
_param = self._dataset_dataset_id_datapoints_failed_get_serialize(
|
|
387
|
+
dataset_id=dataset_id,
|
|
402
388
|
_request_auth=_request_auth,
|
|
403
389
|
_content_type=_content_type,
|
|
404
390
|
_headers=_headers,
|
|
@@ -406,7 +392,7 @@ class DatasetApi:
|
|
|
406
392
|
)
|
|
407
393
|
|
|
408
394
|
_response_types_map: Dict[str, Optional[str]] = {
|
|
409
|
-
'200': "
|
|
395
|
+
'200': "GetFailedDatapointsResult",
|
|
410
396
|
}
|
|
411
397
|
response_data = self.api_client.call_api(
|
|
412
398
|
*_param,
|
|
@@ -420,9 +406,9 @@ class DatasetApi:
|
|
|
420
406
|
|
|
421
407
|
|
|
422
408
|
@validate_call
|
|
423
|
-
def
|
|
409
|
+
def dataset_dataset_id_datapoints_failed_get_with_http_info(
|
|
424
410
|
self,
|
|
425
|
-
|
|
411
|
+
dataset_id: Annotated[StrictStr, Field(description="The id of the dataset to get the failed datapoints of.")],
|
|
426
412
|
_request_timeout: Union[
|
|
427
413
|
None,
|
|
428
414
|
Annotated[StrictFloat, Field(gt=0)],
|
|
@@ -435,13 +421,13 @@ class DatasetApi:
|
|
|
435
421
|
_content_type: Optional[StrictStr] = None,
|
|
436
422
|
_headers: Optional[Dict[StrictStr, Any]] = None,
|
|
437
423
|
_host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
|
|
438
|
-
) -> ApiResponse[
|
|
439
|
-
"""
|
|
424
|
+
) -> ApiResponse[GetFailedDatapointsResult]:
|
|
425
|
+
"""Gets a list of all datapoints that failed to upload.
|
|
440
426
|
|
|
441
|
-
|
|
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.
|
|
442
428
|
|
|
443
|
-
:param
|
|
444
|
-
:type
|
|
429
|
+
:param dataset_id: The id of the dataset to get the failed datapoints of. (required)
|
|
430
|
+
:type dataset_id: str
|
|
445
431
|
:param _request_timeout: timeout setting for this request. If one
|
|
446
432
|
number provided, it will be total request
|
|
447
433
|
timeout. It can also be a pair (tuple) of
|
|
@@ -463,10 +449,9 @@ class DatasetApi:
|
|
|
463
449
|
:type _host_index: int, optional
|
|
464
450
|
:return: Returns the result object.
|
|
465
451
|
""" # noqa: E501
|
|
466
|
-
warnings.warn("POST /dataset/creattextdatapoint is deprecated.", DeprecationWarning)
|
|
467
452
|
|
|
468
|
-
_param = self.
|
|
469
|
-
|
|
453
|
+
_param = self._dataset_dataset_id_datapoints_failed_get_serialize(
|
|
454
|
+
dataset_id=dataset_id,
|
|
470
455
|
_request_auth=_request_auth,
|
|
471
456
|
_content_type=_content_type,
|
|
472
457
|
_headers=_headers,
|
|
@@ -474,7 +459,7 @@ class DatasetApi:
|
|
|
474
459
|
)
|
|
475
460
|
|
|
476
461
|
_response_types_map: Dict[str, Optional[str]] = {
|
|
477
|
-
'200': "
|
|
462
|
+
'200': "GetFailedDatapointsResult",
|
|
478
463
|
}
|
|
479
464
|
response_data = self.api_client.call_api(
|
|
480
465
|
*_param,
|
|
@@ -488,9 +473,9 @@ class DatasetApi:
|
|
|
488
473
|
|
|
489
474
|
|
|
490
475
|
@validate_call
|
|
491
|
-
def
|
|
476
|
+
def dataset_dataset_id_datapoints_failed_get_without_preload_content(
|
|
492
477
|
self,
|
|
493
|
-
|
|
478
|
+
dataset_id: Annotated[StrictStr, Field(description="The id of the dataset to get the failed datapoints of.")],
|
|
494
479
|
_request_timeout: Union[
|
|
495
480
|
None,
|
|
496
481
|
Annotated[StrictFloat, Field(gt=0)],
|
|
@@ -504,12 +489,12 @@ class DatasetApi:
|
|
|
504
489
|
_headers: Optional[Dict[StrictStr, Any]] = None,
|
|
505
490
|
_host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
|
|
506
491
|
) -> RESTResponseType:
|
|
507
|
-
"""
|
|
492
|
+
"""Gets a list of all datapoints that failed to upload.
|
|
508
493
|
|
|
509
|
-
|
|
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.
|
|
510
495
|
|
|
511
|
-
:param
|
|
512
|
-
:type
|
|
496
|
+
:param dataset_id: The id of the dataset to get the failed datapoints of. (required)
|
|
497
|
+
:type dataset_id: str
|
|
513
498
|
:param _request_timeout: timeout setting for this request. If one
|
|
514
499
|
number provided, it will be total request
|
|
515
500
|
timeout. It can also be a pair (tuple) of
|
|
@@ -531,10 +516,9 @@ class DatasetApi:
|
|
|
531
516
|
:type _host_index: int, optional
|
|
532
517
|
:return: Returns the result object.
|
|
533
518
|
""" # noqa: E501
|
|
534
|
-
warnings.warn("POST /dataset/creattextdatapoint is deprecated.", DeprecationWarning)
|
|
535
519
|
|
|
536
|
-
_param = self.
|
|
537
|
-
|
|
520
|
+
_param = self._dataset_dataset_id_datapoints_failed_get_serialize(
|
|
521
|
+
dataset_id=dataset_id,
|
|
538
522
|
_request_auth=_request_auth,
|
|
539
523
|
_content_type=_content_type,
|
|
540
524
|
_headers=_headers,
|
|
@@ -542,7 +526,7 @@ class DatasetApi:
|
|
|
542
526
|
)
|
|
543
527
|
|
|
544
528
|
_response_types_map: Dict[str, Optional[str]] = {
|
|
545
|
-
'200': "
|
|
529
|
+
'200': "GetFailedDatapointsResult",
|
|
546
530
|
}
|
|
547
531
|
response_data = self.api_client.call_api(
|
|
548
532
|
*_param,
|
|
@@ -551,9 +535,9 @@ class DatasetApi:
|
|
|
551
535
|
return response_data.response
|
|
552
536
|
|
|
553
537
|
|
|
554
|
-
def
|
|
538
|
+
def _dataset_dataset_id_datapoints_failed_get_serialize(
|
|
555
539
|
self,
|
|
556
|
-
|
|
540
|
+
dataset_id,
|
|
557
541
|
_request_auth,
|
|
558
542
|
_content_type,
|
|
559
543
|
_headers,
|
|
@@ -575,12 +559,12 @@ class DatasetApi:
|
|
|
575
559
|
_body_params: Optional[bytes] = None
|
|
576
560
|
|
|
577
561
|
# process the path parameters
|
|
562
|
+
if dataset_id is not None:
|
|
563
|
+
_path_params['datasetId'] = dataset_id
|
|
578
564
|
# process the query parameters
|
|
579
565
|
# process the header parameters
|
|
580
566
|
# process the form parameters
|
|
581
567
|
# process the body parameter
|
|
582
|
-
if upload_text_sources_to_dataset_model is not None:
|
|
583
|
-
_body_params = upload_text_sources_to_dataset_model
|
|
584
568
|
|
|
585
569
|
|
|
586
570
|
# set the HTTP header `Accept`
|
|
@@ -593,31 +577,17 @@ class DatasetApi:
|
|
|
593
577
|
]
|
|
594
578
|
)
|
|
595
579
|
|
|
596
|
-
# set the HTTP header `Content-Type`
|
|
597
|
-
if _content_type:
|
|
598
|
-
_header_params['Content-Type'] = _content_type
|
|
599
|
-
else:
|
|
600
|
-
_default_content_type = (
|
|
601
|
-
self.api_client.select_header_content_type(
|
|
602
|
-
[
|
|
603
|
-
'application/json',
|
|
604
|
-
'text/json',
|
|
605
|
-
'application/*+json'
|
|
606
|
-
]
|
|
607
|
-
)
|
|
608
|
-
)
|
|
609
|
-
if _default_content_type is not None:
|
|
610
|
-
_header_params['Content-Type'] = _default_content_type
|
|
611
580
|
|
|
612
581
|
# authentication setting
|
|
613
582
|
_auth_settings: List[str] = [
|
|
614
|
-
'
|
|
615
|
-
'
|
|
583
|
+
'OAuth2',
|
|
584
|
+
'OpenIdConnect',
|
|
585
|
+
'Bearer'
|
|
616
586
|
]
|
|
617
587
|
|
|
618
588
|
return self.api_client.param_serialize(
|
|
619
|
-
method='
|
|
620
|
-
resource_path='/dataset/
|
|
589
|
+
method='GET',
|
|
590
|
+
resource_path='/dataset/{datasetId}/datapoints/failed',
|
|
621
591
|
path_params=_path_params,
|
|
622
592
|
query_params=_query_params,
|
|
623
593
|
header_params=_header_params,
|
|
@@ -634,10 +604,10 @@ class DatasetApi:
|
|
|
634
604
|
|
|
635
605
|
|
|
636
606
|
@validate_call
|
|
637
|
-
def
|
|
607
|
+
def dataset_dataset_id_datapoints_get(
|
|
638
608
|
self,
|
|
639
|
-
dataset_id: Annotated[StrictStr, Field(description="The id of the dataset to
|
|
640
|
-
|
|
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,
|
|
641
611
|
_request_timeout: Union[
|
|
642
612
|
None,
|
|
643
613
|
Annotated[StrictFloat, Field(gt=0)],
|
|
@@ -650,14 +620,14 @@ class DatasetApi:
|
|
|
650
620
|
_content_type: Optional[StrictStr] = None,
|
|
651
621
|
_headers: Optional[Dict[StrictStr, Any]] = None,
|
|
652
622
|
_host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
|
|
653
|
-
) ->
|
|
654
|
-
"""
|
|
623
|
+
) -> PagedResultOfQueryDatapointsByDatasetIdResult:
|
|
624
|
+
"""Gets all datapoints of a dataset.
|
|
655
625
|
|
|
656
626
|
|
|
657
|
-
:param dataset_id: The id of the dataset to
|
|
627
|
+
:param dataset_id: The id of the dataset to get the datapoints of. (required)
|
|
658
628
|
:type dataset_id: str
|
|
659
|
-
:param
|
|
660
|
-
:type
|
|
629
|
+
:param request: The query model to filter, sort, and paginate the results.
|
|
630
|
+
:type request: QueryModel
|
|
661
631
|
:param _request_timeout: timeout setting for this request. If one
|
|
662
632
|
number provided, it will be total request
|
|
663
633
|
timeout. It can also be a pair (tuple) of
|
|
@@ -680,9 +650,9 @@ class DatasetApi:
|
|
|
680
650
|
:return: Returns the result object.
|
|
681
651
|
""" # noqa: E501
|
|
682
652
|
|
|
683
|
-
_param = self.
|
|
653
|
+
_param = self._dataset_dataset_id_datapoints_get_serialize(
|
|
684
654
|
dataset_id=dataset_id,
|
|
685
|
-
|
|
655
|
+
request=request,
|
|
686
656
|
_request_auth=_request_auth,
|
|
687
657
|
_content_type=_content_type,
|
|
688
658
|
_headers=_headers,
|
|
@@ -690,7 +660,7 @@ class DatasetApi:
|
|
|
690
660
|
)
|
|
691
661
|
|
|
692
662
|
_response_types_map: Dict[str, Optional[str]] = {
|
|
693
|
-
'200': "
|
|
663
|
+
'200': "PagedResultOfQueryDatapointsByDatasetIdResult",
|
|
694
664
|
}
|
|
695
665
|
response_data = self.api_client.call_api(
|
|
696
666
|
*_param,
|
|
@@ -704,10 +674,10 @@ class DatasetApi:
|
|
|
704
674
|
|
|
705
675
|
|
|
706
676
|
@validate_call
|
|
707
|
-
def
|
|
677
|
+
def dataset_dataset_id_datapoints_get_with_http_info(
|
|
708
678
|
self,
|
|
709
|
-
dataset_id: Annotated[StrictStr, Field(description="The id of the dataset to
|
|
710
|
-
|
|
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,
|
|
711
681
|
_request_timeout: Union[
|
|
712
682
|
None,
|
|
713
683
|
Annotated[StrictFloat, Field(gt=0)],
|
|
@@ -720,14 +690,14 @@ class DatasetApi:
|
|
|
720
690
|
_content_type: Optional[StrictStr] = None,
|
|
721
691
|
_headers: Optional[Dict[StrictStr, Any]] = None,
|
|
722
692
|
_host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
|
|
723
|
-
) -> ApiResponse[
|
|
724
|
-
"""
|
|
693
|
+
) -> ApiResponse[PagedResultOfQueryDatapointsByDatasetIdResult]:
|
|
694
|
+
"""Gets all datapoints of a dataset.
|
|
725
695
|
|
|
726
696
|
|
|
727
|
-
:param dataset_id: The id of the dataset to
|
|
697
|
+
:param dataset_id: The id of the dataset to get the datapoints of. (required)
|
|
728
698
|
:type dataset_id: str
|
|
729
|
-
:param
|
|
730
|
-
:type
|
|
699
|
+
:param request: The query model to filter, sort, and paginate the results.
|
|
700
|
+
:type request: QueryModel
|
|
731
701
|
:param _request_timeout: timeout setting for this request. If one
|
|
732
702
|
number provided, it will be total request
|
|
733
703
|
timeout. It can also be a pair (tuple) of
|
|
@@ -750,9 +720,9 @@ class DatasetApi:
|
|
|
750
720
|
:return: Returns the result object.
|
|
751
721
|
""" # noqa: E501
|
|
752
722
|
|
|
753
|
-
_param = self.
|
|
723
|
+
_param = self._dataset_dataset_id_datapoints_get_serialize(
|
|
754
724
|
dataset_id=dataset_id,
|
|
755
|
-
|
|
725
|
+
request=request,
|
|
756
726
|
_request_auth=_request_auth,
|
|
757
727
|
_content_type=_content_type,
|
|
758
728
|
_headers=_headers,
|
|
@@ -760,7 +730,7 @@ class DatasetApi:
|
|
|
760
730
|
)
|
|
761
731
|
|
|
762
732
|
_response_types_map: Dict[str, Optional[str]] = {
|
|
763
|
-
'200': "
|
|
733
|
+
'200': "PagedResultOfQueryDatapointsByDatasetIdResult",
|
|
764
734
|
}
|
|
765
735
|
response_data = self.api_client.call_api(
|
|
766
736
|
*_param,
|
|
@@ -774,10 +744,10 @@ class DatasetApi:
|
|
|
774
744
|
|
|
775
745
|
|
|
776
746
|
@validate_call
|
|
777
|
-
def
|
|
747
|
+
def dataset_dataset_id_datapoints_get_without_preload_content(
|
|
778
748
|
self,
|
|
779
|
-
dataset_id: Annotated[StrictStr, Field(description="The id of the dataset to
|
|
780
|
-
|
|
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,
|
|
781
751
|
_request_timeout: Union[
|
|
782
752
|
None,
|
|
783
753
|
Annotated[StrictFloat, Field(gt=0)],
|
|
@@ -791,13 +761,13 @@ class DatasetApi:
|
|
|
791
761
|
_headers: Optional[Dict[StrictStr, Any]] = None,
|
|
792
762
|
_host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
|
|
793
763
|
) -> RESTResponseType:
|
|
794
|
-
"""
|
|
764
|
+
"""Gets all datapoints of a dataset.
|
|
795
765
|
|
|
796
766
|
|
|
797
|
-
:param dataset_id: The id of the dataset to
|
|
767
|
+
:param dataset_id: The id of the dataset to get the datapoints of. (required)
|
|
798
768
|
:type dataset_id: str
|
|
799
|
-
:param
|
|
800
|
-
:type
|
|
769
|
+
:param request: The query model to filter, sort, and paginate the results.
|
|
770
|
+
:type request: QueryModel
|
|
801
771
|
:param _request_timeout: timeout setting for this request. If one
|
|
802
772
|
number provided, it will be total request
|
|
803
773
|
timeout. It can also be a pair (tuple) of
|
|
@@ -820,9 +790,9 @@ class DatasetApi:
|
|
|
820
790
|
:return: Returns the result object.
|
|
821
791
|
""" # noqa: E501
|
|
822
792
|
|
|
823
|
-
_param = self.
|
|
793
|
+
_param = self._dataset_dataset_id_datapoints_get_serialize(
|
|
824
794
|
dataset_id=dataset_id,
|
|
825
|
-
|
|
795
|
+
request=request,
|
|
826
796
|
_request_auth=_request_auth,
|
|
827
797
|
_content_type=_content_type,
|
|
828
798
|
_headers=_headers,
|
|
@@ -830,7 +800,7 @@ class DatasetApi:
|
|
|
830
800
|
)
|
|
831
801
|
|
|
832
802
|
_response_types_map: Dict[str, Optional[str]] = {
|
|
833
|
-
'200': "
|
|
803
|
+
'200': "PagedResultOfQueryDatapointsByDatasetIdResult",
|
|
834
804
|
}
|
|
835
805
|
response_data = self.api_client.call_api(
|
|
836
806
|
*_param,
|
|
@@ -839,10 +809,10 @@ class DatasetApi:
|
|
|
839
809
|
return response_data.response
|
|
840
810
|
|
|
841
811
|
|
|
842
|
-
def
|
|
812
|
+
def _dataset_dataset_id_datapoints_get_serialize(
|
|
843
813
|
self,
|
|
844
814
|
dataset_id,
|
|
845
|
-
|
|
815
|
+
request,
|
|
846
816
|
_request_auth,
|
|
847
817
|
_content_type,
|
|
848
818
|
_headers,
|
|
@@ -867,10 +837,12 @@ class DatasetApi:
|
|
|
867
837
|
if dataset_id is not None:
|
|
868
838
|
_path_params['datasetId'] = dataset_id
|
|
869
839
|
# process the query parameters
|
|
840
|
+
if request is not None:
|
|
841
|
+
|
|
842
|
+
_query_params.append(('request', request))
|
|
843
|
+
|
|
870
844
|
# process the header parameters
|
|
871
845
|
# process the form parameters
|
|
872
|
-
if file is not None:
|
|
873
|
-
_files['file'] = file
|
|
874
846
|
# process the body parameter
|
|
875
847
|
|
|
876
848
|
|
|
@@ -884,29 +856,17 @@ class DatasetApi:
|
|
|
884
856
|
]
|
|
885
857
|
)
|
|
886
858
|
|
|
887
|
-
# set the HTTP header `Content-Type`
|
|
888
|
-
if _content_type:
|
|
889
|
-
_header_params['Content-Type'] = _content_type
|
|
890
|
-
else:
|
|
891
|
-
_default_content_type = (
|
|
892
|
-
self.api_client.select_header_content_type(
|
|
893
|
-
[
|
|
894
|
-
'multipart/form-data'
|
|
895
|
-
]
|
|
896
|
-
)
|
|
897
|
-
)
|
|
898
|
-
if _default_content_type is not None:
|
|
899
|
-
_header_params['Content-Type'] = _default_content_type
|
|
900
859
|
|
|
901
860
|
# authentication setting
|
|
902
861
|
_auth_settings: List[str] = [
|
|
903
|
-
'
|
|
904
|
-
'
|
|
862
|
+
'OAuth2',
|
|
863
|
+
'OpenIdConnect',
|
|
864
|
+
'Bearer'
|
|
905
865
|
]
|
|
906
866
|
|
|
907
867
|
return self.api_client.param_serialize(
|
|
908
|
-
method='
|
|
909
|
-
resource_path='/dataset/{datasetId}/datapoints
|
|
868
|
+
method='GET',
|
|
869
|
+
resource_path='/dataset/{datasetId}/datapoints',
|
|
910
870
|
path_params=_path_params,
|
|
911
871
|
query_params=_query_params,
|
|
912
872
|
header_params=_header_params,
|
|
@@ -923,9 +883,9 @@ class DatasetApi:
|
|
|
923
883
|
|
|
924
884
|
|
|
925
885
|
@validate_call
|
|
926
|
-
def
|
|
886
|
+
def dataset_dataset_id_get(
|
|
927
887
|
self,
|
|
928
|
-
dataset_id: Annotated[StrictStr, Field(description="The id of the dataset to get
|
|
888
|
+
dataset_id: Annotated[StrictStr, Field(description="The id of the dataset to get.")],
|
|
929
889
|
_request_timeout: Union[
|
|
930
890
|
None,
|
|
931
891
|
Annotated[StrictFloat, Field(gt=0)],
|
|
@@ -938,12 +898,11 @@ class DatasetApi:
|
|
|
938
898
|
_content_type: Optional[StrictStr] = None,
|
|
939
899
|
_headers: Optional[Dict[StrictStr, Any]] = None,
|
|
940
900
|
_host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
|
|
941
|
-
) ->
|
|
942
|
-
"""Gets a
|
|
901
|
+
) -> GetDatasetByIdResult:
|
|
902
|
+
"""Gets a dataset by its id.
|
|
943
903
|
|
|
944
|
-
A datapoint usually fails to upload when using a deferred upload mechanism such as when providing a URL and the URL is not accessible.
|
|
945
904
|
|
|
946
|
-
:param dataset_id: The id of the dataset to get
|
|
905
|
+
:param dataset_id: The id of the dataset to get. (required)
|
|
947
906
|
:type dataset_id: str
|
|
948
907
|
:param _request_timeout: timeout setting for this request. If one
|
|
949
908
|
number provided, it will be total request
|
|
@@ -967,7 +926,7 @@ class DatasetApi:
|
|
|
967
926
|
:return: Returns the result object.
|
|
968
927
|
""" # noqa: E501
|
|
969
928
|
|
|
970
|
-
_param = self.
|
|
929
|
+
_param = self._dataset_dataset_id_get_serialize(
|
|
971
930
|
dataset_id=dataset_id,
|
|
972
931
|
_request_auth=_request_auth,
|
|
973
932
|
_content_type=_content_type,
|
|
@@ -976,7 +935,7 @@ class DatasetApi:
|
|
|
976
935
|
)
|
|
977
936
|
|
|
978
937
|
_response_types_map: Dict[str, Optional[str]] = {
|
|
979
|
-
'200': "
|
|
938
|
+
'200': "GetDatasetByIdResult",
|
|
980
939
|
}
|
|
981
940
|
response_data = self.api_client.call_api(
|
|
982
941
|
*_param,
|
|
@@ -990,9 +949,9 @@ class DatasetApi:
|
|
|
990
949
|
|
|
991
950
|
|
|
992
951
|
@validate_call
|
|
993
|
-
def
|
|
952
|
+
def dataset_dataset_id_get_with_http_info(
|
|
994
953
|
self,
|
|
995
|
-
dataset_id: Annotated[StrictStr, Field(description="The id of the dataset to get
|
|
954
|
+
dataset_id: Annotated[StrictStr, Field(description="The id of the dataset to get.")],
|
|
996
955
|
_request_timeout: Union[
|
|
997
956
|
None,
|
|
998
957
|
Annotated[StrictFloat, Field(gt=0)],
|
|
@@ -1005,12 +964,11 @@ class DatasetApi:
|
|
|
1005
964
|
_content_type: Optional[StrictStr] = None,
|
|
1006
965
|
_headers: Optional[Dict[StrictStr, Any]] = None,
|
|
1007
966
|
_host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
|
|
1008
|
-
) -> ApiResponse[
|
|
1009
|
-
"""Gets a
|
|
967
|
+
) -> ApiResponse[GetDatasetByIdResult]:
|
|
968
|
+
"""Gets a dataset by its id.
|
|
1010
969
|
|
|
1011
|
-
A datapoint usually fails to upload when using a deferred upload mechanism such as when providing a URL and the URL is not accessible.
|
|
1012
970
|
|
|
1013
|
-
:param dataset_id: The id of the dataset to get
|
|
971
|
+
:param dataset_id: The id of the dataset to get. (required)
|
|
1014
972
|
:type dataset_id: str
|
|
1015
973
|
:param _request_timeout: timeout setting for this request. If one
|
|
1016
974
|
number provided, it will be total request
|
|
@@ -1034,7 +992,7 @@ class DatasetApi:
|
|
|
1034
992
|
:return: Returns the result object.
|
|
1035
993
|
""" # noqa: E501
|
|
1036
994
|
|
|
1037
|
-
_param = self.
|
|
995
|
+
_param = self._dataset_dataset_id_get_serialize(
|
|
1038
996
|
dataset_id=dataset_id,
|
|
1039
997
|
_request_auth=_request_auth,
|
|
1040
998
|
_content_type=_content_type,
|
|
@@ -1043,7 +1001,7 @@ class DatasetApi:
|
|
|
1043
1001
|
)
|
|
1044
1002
|
|
|
1045
1003
|
_response_types_map: Dict[str, Optional[str]] = {
|
|
1046
|
-
'200': "
|
|
1004
|
+
'200': "GetDatasetByIdResult",
|
|
1047
1005
|
}
|
|
1048
1006
|
response_data = self.api_client.call_api(
|
|
1049
1007
|
*_param,
|
|
@@ -1057,9 +1015,9 @@ class DatasetApi:
|
|
|
1057
1015
|
|
|
1058
1016
|
|
|
1059
1017
|
@validate_call
|
|
1060
|
-
def
|
|
1018
|
+
def dataset_dataset_id_get_without_preload_content(
|
|
1061
1019
|
self,
|
|
1062
|
-
dataset_id: Annotated[StrictStr, Field(description="The id of the dataset to get
|
|
1020
|
+
dataset_id: Annotated[StrictStr, Field(description="The id of the dataset to get.")],
|
|
1063
1021
|
_request_timeout: Union[
|
|
1064
1022
|
None,
|
|
1065
1023
|
Annotated[StrictFloat, Field(gt=0)],
|
|
@@ -1073,11 +1031,10 @@ class DatasetApi:
|
|
|
1073
1031
|
_headers: Optional[Dict[StrictStr, Any]] = None,
|
|
1074
1032
|
_host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
|
|
1075
1033
|
) -> RESTResponseType:
|
|
1076
|
-
"""Gets a
|
|
1034
|
+
"""Gets a dataset by its id.
|
|
1077
1035
|
|
|
1078
|
-
A datapoint usually fails to upload when using a deferred upload mechanism such as when providing a URL and the URL is not accessible.
|
|
1079
1036
|
|
|
1080
|
-
:param dataset_id: The id of the dataset to get
|
|
1037
|
+
:param dataset_id: The id of the dataset to get. (required)
|
|
1081
1038
|
:type dataset_id: str
|
|
1082
1039
|
:param _request_timeout: timeout setting for this request. If one
|
|
1083
1040
|
number provided, it will be total request
|
|
@@ -1101,7 +1058,7 @@ class DatasetApi:
|
|
|
1101
1058
|
:return: Returns the result object.
|
|
1102
1059
|
""" # noqa: E501
|
|
1103
1060
|
|
|
1104
|
-
_param = self.
|
|
1061
|
+
_param = self._dataset_dataset_id_get_serialize(
|
|
1105
1062
|
dataset_id=dataset_id,
|
|
1106
1063
|
_request_auth=_request_auth,
|
|
1107
1064
|
_content_type=_content_type,
|
|
@@ -1110,7 +1067,7 @@ class DatasetApi:
|
|
|
1110
1067
|
)
|
|
1111
1068
|
|
|
1112
1069
|
_response_types_map: Dict[str, Optional[str]] = {
|
|
1113
|
-
'200': "
|
|
1070
|
+
'200': "GetDatasetByIdResult",
|
|
1114
1071
|
}
|
|
1115
1072
|
response_data = self.api_client.call_api(
|
|
1116
1073
|
*_param,
|
|
@@ -1119,7 +1076,7 @@ class DatasetApi:
|
|
|
1119
1076
|
return response_data.response
|
|
1120
1077
|
|
|
1121
1078
|
|
|
1122
|
-
def
|
|
1079
|
+
def _dataset_dataset_id_get_serialize(
|
|
1123
1080
|
self,
|
|
1124
1081
|
dataset_id,
|
|
1125
1082
|
_request_auth,
|
|
@@ -1164,13 +1121,14 @@ class DatasetApi:
|
|
|
1164
1121
|
|
|
1165
1122
|
# authentication setting
|
|
1166
1123
|
_auth_settings: List[str] = [
|
|
1167
|
-
'
|
|
1168
|
-
'
|
|
1124
|
+
'OAuth2',
|
|
1125
|
+
'OpenIdConnect',
|
|
1126
|
+
'Bearer'
|
|
1169
1127
|
]
|
|
1170
1128
|
|
|
1171
1129
|
return self.api_client.param_serialize(
|
|
1172
1130
|
method='GET',
|
|
1173
|
-
resource_path='/dataset/{datasetId}
|
|
1131
|
+
resource_path='/dataset/{datasetId}',
|
|
1174
1132
|
path_params=_path_params,
|
|
1175
1133
|
query_params=_query_params,
|
|
1176
1134
|
header_params=_header_params,
|
|
@@ -1187,11 +1145,10 @@ class DatasetApi:
|
|
|
1187
1145
|
|
|
1188
1146
|
|
|
1189
1147
|
@validate_call
|
|
1190
|
-
def
|
|
1148
|
+
def dataset_dataset_id_name_patch(
|
|
1191
1149
|
self,
|
|
1192
|
-
dataset_id: Annotated[StrictStr, Field(description="The id of the dataset to
|
|
1193
|
-
|
|
1194
|
-
model: Optional[CreateDatapointFromFilesModel] = None,
|
|
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.")],
|
|
1195
1152
|
_request_timeout: Union[
|
|
1196
1153
|
None,
|
|
1197
1154
|
Annotated[StrictFloat, Field(gt=0)],
|
|
@@ -1204,17 +1161,14 @@ class DatasetApi:
|
|
|
1204
1161
|
_content_type: Optional[StrictStr] = None,
|
|
1205
1162
|
_headers: Optional[Dict[StrictStr, Any]] = None,
|
|
1206
1163
|
_host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
|
|
1207
|
-
) ->
|
|
1208
|
-
"""
|
|
1164
|
+
) -> None:
|
|
1165
|
+
"""Updates the name of a dataset.
|
|
1209
1166
|
|
|
1210
|
-
If multiple files are uploaded, a multi asset datapoint will be created.
|
|
1211
1167
|
|
|
1212
|
-
:param dataset_id: The id of the dataset to
|
|
1168
|
+
:param dataset_id: The id of the dataset to update. (required)
|
|
1213
1169
|
:type dataset_id: str
|
|
1214
|
-
:param
|
|
1215
|
-
:type
|
|
1216
|
-
:param model:
|
|
1217
|
-
:type model: CreateDatapointFromFilesModel
|
|
1170
|
+
:param update_dataset_name_model: The body of the request. (required)
|
|
1171
|
+
:type update_dataset_name_model: UpdateDatasetNameModel
|
|
1218
1172
|
:param _request_timeout: timeout setting for this request. If one
|
|
1219
1173
|
number provided, it will be total request
|
|
1220
1174
|
timeout. It can also be a pair (tuple) of
|
|
@@ -1237,10 +1191,9 @@ class DatasetApi:
|
|
|
1237
1191
|
:return: Returns the result object.
|
|
1238
1192
|
""" # noqa: E501
|
|
1239
1193
|
|
|
1240
|
-
_param = self.
|
|
1194
|
+
_param = self._dataset_dataset_id_name_patch_serialize(
|
|
1241
1195
|
dataset_id=dataset_id,
|
|
1242
|
-
|
|
1243
|
-
model=model,
|
|
1196
|
+
update_dataset_name_model=update_dataset_name_model,
|
|
1244
1197
|
_request_auth=_request_auth,
|
|
1245
1198
|
_content_type=_content_type,
|
|
1246
1199
|
_headers=_headers,
|
|
@@ -1248,7 +1201,7 @@ class DatasetApi:
|
|
|
1248
1201
|
)
|
|
1249
1202
|
|
|
1250
1203
|
_response_types_map: Dict[str, Optional[str]] = {
|
|
1251
|
-
'
|
|
1204
|
+
'204': None,
|
|
1252
1205
|
}
|
|
1253
1206
|
response_data = self.api_client.call_api(
|
|
1254
1207
|
*_param,
|
|
@@ -1262,11 +1215,10 @@ class DatasetApi:
|
|
|
1262
1215
|
|
|
1263
1216
|
|
|
1264
1217
|
@validate_call
|
|
1265
|
-
def
|
|
1218
|
+
def dataset_dataset_id_name_patch_with_http_info(
|
|
1266
1219
|
self,
|
|
1267
|
-
dataset_id: Annotated[StrictStr, Field(description="The id of the dataset to
|
|
1268
|
-
|
|
1269
|
-
model: Optional[CreateDatapointFromFilesModel] = None,
|
|
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.")],
|
|
1270
1222
|
_request_timeout: Union[
|
|
1271
1223
|
None,
|
|
1272
1224
|
Annotated[StrictFloat, Field(gt=0)],
|
|
@@ -1279,17 +1231,14 @@ class DatasetApi:
|
|
|
1279
1231
|
_content_type: Optional[StrictStr] = None,
|
|
1280
1232
|
_headers: Optional[Dict[StrictStr, Any]] = None,
|
|
1281
1233
|
_host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
|
|
1282
|
-
) -> ApiResponse[
|
|
1283
|
-
"""
|
|
1234
|
+
) -> ApiResponse[None]:
|
|
1235
|
+
"""Updates the name of a dataset.
|
|
1284
1236
|
|
|
1285
|
-
If multiple files are uploaded, a multi asset datapoint will be created.
|
|
1286
1237
|
|
|
1287
|
-
:param dataset_id: The id of the dataset to
|
|
1238
|
+
:param dataset_id: The id of the dataset to update. (required)
|
|
1288
1239
|
:type dataset_id: str
|
|
1289
|
-
:param
|
|
1290
|
-
:type
|
|
1291
|
-
:param model:
|
|
1292
|
-
:type model: CreateDatapointFromFilesModel
|
|
1240
|
+
:param update_dataset_name_model: The body of the request. (required)
|
|
1241
|
+
:type update_dataset_name_model: UpdateDatasetNameModel
|
|
1293
1242
|
:param _request_timeout: timeout setting for this request. If one
|
|
1294
1243
|
number provided, it will be total request
|
|
1295
1244
|
timeout. It can also be a pair (tuple) of
|
|
@@ -1312,10 +1261,9 @@ class DatasetApi:
|
|
|
1312
1261
|
:return: Returns the result object.
|
|
1313
1262
|
""" # noqa: E501
|
|
1314
1263
|
|
|
1315
|
-
_param = self.
|
|
1264
|
+
_param = self._dataset_dataset_id_name_patch_serialize(
|
|
1316
1265
|
dataset_id=dataset_id,
|
|
1317
|
-
|
|
1318
|
-
model=model,
|
|
1266
|
+
update_dataset_name_model=update_dataset_name_model,
|
|
1319
1267
|
_request_auth=_request_auth,
|
|
1320
1268
|
_content_type=_content_type,
|
|
1321
1269
|
_headers=_headers,
|
|
@@ -1323,7 +1271,7 @@ class DatasetApi:
|
|
|
1323
1271
|
)
|
|
1324
1272
|
|
|
1325
1273
|
_response_types_map: Dict[str, Optional[str]] = {
|
|
1326
|
-
'
|
|
1274
|
+
'204': None,
|
|
1327
1275
|
}
|
|
1328
1276
|
response_data = self.api_client.call_api(
|
|
1329
1277
|
*_param,
|
|
@@ -1337,11 +1285,10 @@ class DatasetApi:
|
|
|
1337
1285
|
|
|
1338
1286
|
|
|
1339
1287
|
@validate_call
|
|
1340
|
-
def
|
|
1288
|
+
def dataset_dataset_id_name_patch_without_preload_content(
|
|
1341
1289
|
self,
|
|
1342
|
-
dataset_id: Annotated[StrictStr, Field(description="The id of the dataset to
|
|
1343
|
-
|
|
1344
|
-
model: Optional[CreateDatapointFromFilesModel] = None,
|
|
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.")],
|
|
1345
1292
|
_request_timeout: Union[
|
|
1346
1293
|
None,
|
|
1347
1294
|
Annotated[StrictFloat, Field(gt=0)],
|
|
@@ -1355,16 +1302,13 @@ class DatasetApi:
|
|
|
1355
1302
|
_headers: Optional[Dict[StrictStr, Any]] = None,
|
|
1356
1303
|
_host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
|
|
1357
1304
|
) -> RESTResponseType:
|
|
1358
|
-
"""
|
|
1305
|
+
"""Updates the name of a dataset.
|
|
1359
1306
|
|
|
1360
|
-
If multiple files are uploaded, a multi asset datapoint will be created.
|
|
1361
1307
|
|
|
1362
|
-
:param dataset_id: The id of the dataset to
|
|
1308
|
+
:param dataset_id: The id of the dataset to update. (required)
|
|
1363
1309
|
:type dataset_id: str
|
|
1364
|
-
:param
|
|
1365
|
-
:type
|
|
1366
|
-
:param model:
|
|
1367
|
-
:type model: CreateDatapointFromFilesModel
|
|
1310
|
+
:param update_dataset_name_model: The body of the request. (required)
|
|
1311
|
+
:type update_dataset_name_model: UpdateDatasetNameModel
|
|
1368
1312
|
:param _request_timeout: timeout setting for this request. If one
|
|
1369
1313
|
number provided, it will be total request
|
|
1370
1314
|
timeout. It can also be a pair (tuple) of
|
|
@@ -1387,10 +1331,9 @@ class DatasetApi:
|
|
|
1387
1331
|
:return: Returns the result object.
|
|
1388
1332
|
""" # noqa: E501
|
|
1389
1333
|
|
|
1390
|
-
_param = self.
|
|
1334
|
+
_param = self._dataset_dataset_id_name_patch_serialize(
|
|
1391
1335
|
dataset_id=dataset_id,
|
|
1392
|
-
|
|
1393
|
-
model=model,
|
|
1336
|
+
update_dataset_name_model=update_dataset_name_model,
|
|
1394
1337
|
_request_auth=_request_auth,
|
|
1395
1338
|
_content_type=_content_type,
|
|
1396
1339
|
_headers=_headers,
|
|
@@ -1398,7 +1341,7 @@ class DatasetApi:
|
|
|
1398
1341
|
)
|
|
1399
1342
|
|
|
1400
1343
|
_response_types_map: Dict[str, Optional[str]] = {
|
|
1401
|
-
'
|
|
1344
|
+
'204': None,
|
|
1402
1345
|
}
|
|
1403
1346
|
response_data = self.api_client.call_api(
|
|
1404
1347
|
*_param,
|
|
@@ -1407,11 +1350,10 @@ class DatasetApi:
|
|
|
1407
1350
|
return response_data.response
|
|
1408
1351
|
|
|
1409
1352
|
|
|
1410
|
-
def
|
|
1353
|
+
def _dataset_dataset_id_name_patch_serialize(
|
|
1411
1354
|
self,
|
|
1412
1355
|
dataset_id,
|
|
1413
|
-
|
|
1414
|
-
model,
|
|
1356
|
+
update_dataset_name_model,
|
|
1415
1357
|
_request_auth,
|
|
1416
1358
|
_content_type,
|
|
1417
1359
|
_headers,
|
|
@@ -1421,7 +1363,6 @@ class DatasetApi:
|
|
|
1421
1363
|
_host = None
|
|
1422
1364
|
|
|
1423
1365
|
_collection_formats: Dict[str, str] = {
|
|
1424
|
-
'files': 'multi',
|
|
1425
1366
|
}
|
|
1426
1367
|
|
|
1427
1368
|
_path_params: Dict[str, str] = {}
|
|
@@ -1439,22 +1380,11 @@ class DatasetApi:
|
|
|
1439
1380
|
# process the query parameters
|
|
1440
1381
|
# process the header parameters
|
|
1441
1382
|
# process the form parameters
|
|
1442
|
-
if files is not None:
|
|
1443
|
-
_files['files'] = files
|
|
1444
|
-
if model is not None:
|
|
1445
|
-
_form_params.append(('model', model))
|
|
1446
1383
|
# process the body parameter
|
|
1384
|
+
if update_dataset_name_model is not None:
|
|
1385
|
+
_body_params = update_dataset_name_model
|
|
1447
1386
|
|
|
1448
1387
|
|
|
1449
|
-
# set the HTTP header `Accept`
|
|
1450
|
-
if 'Accept' not in _header_params:
|
|
1451
|
-
_header_params['Accept'] = self.api_client.select_header_accept(
|
|
1452
|
-
[
|
|
1453
|
-
'text/plain',
|
|
1454
|
-
'application/json',
|
|
1455
|
-
'text/json'
|
|
1456
|
-
]
|
|
1457
|
-
)
|
|
1458
1388
|
|
|
1459
1389
|
# set the HTTP header `Content-Type`
|
|
1460
1390
|
if _content_type:
|
|
@@ -1463,7 +1393,9 @@ class DatasetApi:
|
|
|
1463
1393
|
_default_content_type = (
|
|
1464
1394
|
self.api_client.select_header_content_type(
|
|
1465
1395
|
[
|
|
1466
|
-
'
|
|
1396
|
+
'application/json',
|
|
1397
|
+
'text/json',
|
|
1398
|
+
'application/*+json'
|
|
1467
1399
|
]
|
|
1468
1400
|
)
|
|
1469
1401
|
)
|
|
@@ -1472,13 +1404,14 @@ class DatasetApi:
|
|
|
1472
1404
|
|
|
1473
1405
|
# authentication setting
|
|
1474
1406
|
_auth_settings: List[str] = [
|
|
1475
|
-
'
|
|
1476
|
-
'
|
|
1407
|
+
'OAuth2',
|
|
1408
|
+
'OpenIdConnect',
|
|
1409
|
+
'Bearer'
|
|
1477
1410
|
]
|
|
1478
1411
|
|
|
1479
1412
|
return self.api_client.param_serialize(
|
|
1480
|
-
method='
|
|
1481
|
-
resource_path='/dataset/{datasetId}/
|
|
1413
|
+
method='PATCH',
|
|
1414
|
+
resource_path='/dataset/{datasetId}/name',
|
|
1482
1415
|
path_params=_path_params,
|
|
1483
1416
|
query_params=_query_params,
|
|
1484
1417
|
header_params=_header_params,
|
|
@@ -1495,10 +1428,9 @@ class DatasetApi:
|
|
|
1495
1428
|
|
|
1496
1429
|
|
|
1497
1430
|
@validate_call
|
|
1498
|
-
def
|
|
1431
|
+
def dataset_dataset_id_progress_get(
|
|
1499
1432
|
self,
|
|
1500
|
-
dataset_id: Annotated[StrictStr, Field(description="The id of the dataset to get the
|
|
1501
|
-
request: Annotated[Optional[QueryModel], Field(description="The query model to filter, sort, and paginate the results.")] = None,
|
|
1433
|
+
dataset_id: Annotated[StrictStr, Field(description="The id of the dataset to get the progress of.")],
|
|
1502
1434
|
_request_timeout: Union[
|
|
1503
1435
|
None,
|
|
1504
1436
|
Annotated[StrictFloat, Field(gt=0)],
|
|
@@ -1511,14 +1443,12 @@ class DatasetApi:
|
|
|
1511
1443
|
_content_type: Optional[StrictStr] = None,
|
|
1512
1444
|
_headers: Optional[Dict[StrictStr, Any]] = None,
|
|
1513
1445
|
_host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
|
|
1514
|
-
) ->
|
|
1515
|
-
"""Gets
|
|
1446
|
+
) -> GetDatasetProgressResult:
|
|
1447
|
+
"""Gets the upload progress of a dataset.
|
|
1516
1448
|
|
|
1517
1449
|
|
|
1518
|
-
:param dataset_id: The id of the dataset to get the
|
|
1450
|
+
:param dataset_id: The id of the dataset to get the progress of. (required)
|
|
1519
1451
|
:type dataset_id: str
|
|
1520
|
-
:param request: The query model to filter, sort, and paginate the results.
|
|
1521
|
-
:type request: QueryModel
|
|
1522
1452
|
:param _request_timeout: timeout setting for this request. If one
|
|
1523
1453
|
number provided, it will be total request
|
|
1524
1454
|
timeout. It can also be a pair (tuple) of
|
|
@@ -1541,9 +1471,8 @@ class DatasetApi:
|
|
|
1541
1471
|
:return: Returns the result object.
|
|
1542
1472
|
""" # noqa: E501
|
|
1543
1473
|
|
|
1544
|
-
_param = self.
|
|
1474
|
+
_param = self._dataset_dataset_id_progress_get_serialize(
|
|
1545
1475
|
dataset_id=dataset_id,
|
|
1546
|
-
request=request,
|
|
1547
1476
|
_request_auth=_request_auth,
|
|
1548
1477
|
_content_type=_content_type,
|
|
1549
1478
|
_headers=_headers,
|
|
@@ -1551,7 +1480,7 @@ class DatasetApi:
|
|
|
1551
1480
|
)
|
|
1552
1481
|
|
|
1553
1482
|
_response_types_map: Dict[str, Optional[str]] = {
|
|
1554
|
-
'200': "
|
|
1483
|
+
'200': "GetDatasetProgressResult",
|
|
1555
1484
|
}
|
|
1556
1485
|
response_data = self.api_client.call_api(
|
|
1557
1486
|
*_param,
|
|
@@ -1565,10 +1494,9 @@ class DatasetApi:
|
|
|
1565
1494
|
|
|
1566
1495
|
|
|
1567
1496
|
@validate_call
|
|
1568
|
-
def
|
|
1497
|
+
def dataset_dataset_id_progress_get_with_http_info(
|
|
1569
1498
|
self,
|
|
1570
|
-
dataset_id: Annotated[StrictStr, Field(description="The id of the dataset to get the
|
|
1571
|
-
request: Annotated[Optional[QueryModel], Field(description="The query model to filter, sort, and paginate the results.")] = None,
|
|
1499
|
+
dataset_id: Annotated[StrictStr, Field(description="The id of the dataset to get the progress of.")],
|
|
1572
1500
|
_request_timeout: Union[
|
|
1573
1501
|
None,
|
|
1574
1502
|
Annotated[StrictFloat, Field(gt=0)],
|
|
@@ -1581,14 +1509,12 @@ class DatasetApi:
|
|
|
1581
1509
|
_content_type: Optional[StrictStr] = None,
|
|
1582
1510
|
_headers: Optional[Dict[StrictStr, Any]] = None,
|
|
1583
1511
|
_host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
|
|
1584
|
-
) -> ApiResponse[
|
|
1585
|
-
"""Gets
|
|
1512
|
+
) -> ApiResponse[GetDatasetProgressResult]:
|
|
1513
|
+
"""Gets the upload progress of a dataset.
|
|
1586
1514
|
|
|
1587
1515
|
|
|
1588
|
-
:param dataset_id: The id of the dataset to get the
|
|
1516
|
+
:param dataset_id: The id of the dataset to get the progress of. (required)
|
|
1589
1517
|
:type dataset_id: str
|
|
1590
|
-
:param request: The query model to filter, sort, and paginate the results.
|
|
1591
|
-
:type request: QueryModel
|
|
1592
1518
|
:param _request_timeout: timeout setting for this request. If one
|
|
1593
1519
|
number provided, it will be total request
|
|
1594
1520
|
timeout. It can also be a pair (tuple) of
|
|
@@ -1611,9 +1537,8 @@ class DatasetApi:
|
|
|
1611
1537
|
:return: Returns the result object.
|
|
1612
1538
|
""" # noqa: E501
|
|
1613
1539
|
|
|
1614
|
-
_param = self.
|
|
1540
|
+
_param = self._dataset_dataset_id_progress_get_serialize(
|
|
1615
1541
|
dataset_id=dataset_id,
|
|
1616
|
-
request=request,
|
|
1617
1542
|
_request_auth=_request_auth,
|
|
1618
1543
|
_content_type=_content_type,
|
|
1619
1544
|
_headers=_headers,
|
|
@@ -1621,7 +1546,7 @@ class DatasetApi:
|
|
|
1621
1546
|
)
|
|
1622
1547
|
|
|
1623
1548
|
_response_types_map: Dict[str, Optional[str]] = {
|
|
1624
|
-
'200': "
|
|
1549
|
+
'200': "GetDatasetProgressResult",
|
|
1625
1550
|
}
|
|
1626
1551
|
response_data = self.api_client.call_api(
|
|
1627
1552
|
*_param,
|
|
@@ -1635,10 +1560,9 @@ class DatasetApi:
|
|
|
1635
1560
|
|
|
1636
1561
|
|
|
1637
1562
|
@validate_call
|
|
1638
|
-
def
|
|
1563
|
+
def dataset_dataset_id_progress_get_without_preload_content(
|
|
1639
1564
|
self,
|
|
1640
|
-
dataset_id: Annotated[StrictStr, Field(description="The id of the dataset to get the
|
|
1641
|
-
request: Annotated[Optional[QueryModel], Field(description="The query model to filter, sort, and paginate the results.")] = None,
|
|
1565
|
+
dataset_id: Annotated[StrictStr, Field(description="The id of the dataset to get the progress of.")],
|
|
1642
1566
|
_request_timeout: Union[
|
|
1643
1567
|
None,
|
|
1644
1568
|
Annotated[StrictFloat, Field(gt=0)],
|
|
@@ -1652,13 +1576,11 @@ class DatasetApi:
|
|
|
1652
1576
|
_headers: Optional[Dict[StrictStr, Any]] = None,
|
|
1653
1577
|
_host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
|
|
1654
1578
|
) -> RESTResponseType:
|
|
1655
|
-
"""Gets
|
|
1579
|
+
"""Gets the upload progress of a dataset.
|
|
1656
1580
|
|
|
1657
1581
|
|
|
1658
|
-
:param dataset_id: The id of the dataset to get the
|
|
1582
|
+
:param dataset_id: The id of the dataset to get the progress of. (required)
|
|
1659
1583
|
:type dataset_id: str
|
|
1660
|
-
:param request: The query model to filter, sort, and paginate the results.
|
|
1661
|
-
:type request: QueryModel
|
|
1662
1584
|
:param _request_timeout: timeout setting for this request. If one
|
|
1663
1585
|
number provided, it will be total request
|
|
1664
1586
|
timeout. It can also be a pair (tuple) of
|
|
@@ -1681,9 +1603,8 @@ class DatasetApi:
|
|
|
1681
1603
|
:return: Returns the result object.
|
|
1682
1604
|
""" # noqa: E501
|
|
1683
1605
|
|
|
1684
|
-
_param = self.
|
|
1606
|
+
_param = self._dataset_dataset_id_progress_get_serialize(
|
|
1685
1607
|
dataset_id=dataset_id,
|
|
1686
|
-
request=request,
|
|
1687
1608
|
_request_auth=_request_auth,
|
|
1688
1609
|
_content_type=_content_type,
|
|
1689
1610
|
_headers=_headers,
|
|
@@ -1691,7 +1612,7 @@ class DatasetApi:
|
|
|
1691
1612
|
)
|
|
1692
1613
|
|
|
1693
1614
|
_response_types_map: Dict[str, Optional[str]] = {
|
|
1694
|
-
'200': "
|
|
1615
|
+
'200': "GetDatasetProgressResult",
|
|
1695
1616
|
}
|
|
1696
1617
|
response_data = self.api_client.call_api(
|
|
1697
1618
|
*_param,
|
|
@@ -1700,10 +1621,9 @@ class DatasetApi:
|
|
|
1700
1621
|
return response_data.response
|
|
1701
1622
|
|
|
1702
1623
|
|
|
1703
|
-
def
|
|
1624
|
+
def _dataset_dataset_id_progress_get_serialize(
|
|
1704
1625
|
self,
|
|
1705
1626
|
dataset_id,
|
|
1706
|
-
request,
|
|
1707
1627
|
_request_auth,
|
|
1708
1628
|
_content_type,
|
|
1709
1629
|
_headers,
|
|
@@ -1728,10 +1648,6 @@ class DatasetApi:
|
|
|
1728
1648
|
if dataset_id is not None:
|
|
1729
1649
|
_path_params['datasetId'] = dataset_id
|
|
1730
1650
|
# process the query parameters
|
|
1731
|
-
if request is not None:
|
|
1732
|
-
|
|
1733
|
-
_query_params.append(('request', request))
|
|
1734
|
-
|
|
1735
1651
|
# process the header parameters
|
|
1736
1652
|
# process the form parameters
|
|
1737
1653
|
# process the body parameter
|
|
@@ -1750,3171 +1666,14 @@ class DatasetApi:
|
|
|
1750
1666
|
|
|
1751
1667
|
# authentication setting
|
|
1752
1668
|
_auth_settings: List[str] = [
|
|
1753
|
-
'
|
|
1754
|
-
'
|
|
1669
|
+
'OAuth2',
|
|
1670
|
+
'OpenIdConnect',
|
|
1671
|
+
'Bearer'
|
|
1755
1672
|
]
|
|
1756
1673
|
|
|
1757
1674
|
return self.api_client.param_serialize(
|
|
1758
1675
|
method='GET',
|
|
1759
|
-
resource_path='/dataset/{datasetId}/
|
|
1760
|
-
path_params=_path_params,
|
|
1761
|
-
query_params=_query_params,
|
|
1762
|
-
header_params=_header_params,
|
|
1763
|
-
body=_body_params,
|
|
1764
|
-
post_params=_form_params,
|
|
1765
|
-
files=_files,
|
|
1766
|
-
auth_settings=_auth_settings,
|
|
1767
|
-
collection_formats=_collection_formats,
|
|
1768
|
-
_host=_host,
|
|
1769
|
-
_request_auth=_request_auth
|
|
1770
|
-
)
|
|
1771
|
-
|
|
1772
|
-
|
|
1773
|
-
|
|
1774
|
-
|
|
1775
|
-
@validate_call
|
|
1776
|
-
def dataset_dataset_id_datapoints_post(
|
|
1777
|
-
self,
|
|
1778
|
-
dataset_id: Annotated[StrictStr, Field(description="The id of the dataset")],
|
|
1779
|
-
file: Annotated[Optional[List[Union[StrictBytes, StrictStr, Tuple[StrictStr, StrictBytes]]]], Field(description="The files to upload from the local storage. Must be either images or videos.")] = None,
|
|
1780
|
-
text: Annotated[Optional[List[StrictStr]], Field(description="The texts to upload. The length limit is set at 256 characters per text.")] = None,
|
|
1781
|
-
url: Annotated[Optional[List[StrictStr]], Field(description="Creates an asset from a url. The url needs to point to a publicly accessible resource. The server will download the resource and store it as an asset in the background. <remarks> Additionally, to the urls having to be publicly accessible, they need to support HTTP HEAD requests. </remarks>")] = None,
|
|
1782
|
-
metadata: Annotated[Optional[List[DatasetDatasetIdDatapointsPostRequestMetadataInner]], Field(description="Optional metadata to attach to the datapoint.")] = None,
|
|
1783
|
-
sort_index: Annotated[Optional[StrictInt], Field(description="The index will be used to keep the datapoints in order. Useful if upload is parallelized")] = None,
|
|
1784
|
-
_request_timeout: Union[
|
|
1785
|
-
None,
|
|
1786
|
-
Annotated[StrictFloat, Field(gt=0)],
|
|
1787
|
-
Tuple[
|
|
1788
|
-
Annotated[StrictFloat, Field(gt=0)],
|
|
1789
|
-
Annotated[StrictFloat, Field(gt=0)]
|
|
1790
|
-
]
|
|
1791
|
-
] = None,
|
|
1792
|
-
_request_auth: Optional[Dict[StrictStr, Any]] = None,
|
|
1793
|
-
_content_type: Optional[StrictStr] = None,
|
|
1794
|
-
_headers: Optional[Dict[StrictStr, Any]] = None,
|
|
1795
|
-
_host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
|
|
1796
|
-
) -> CreateDatapointResult:
|
|
1797
|
-
"""Creates a new datapoint from multiple possible sources.
|
|
1798
|
-
|
|
1799
|
-
Multiple files, texts, and urls can be provided. If multiple files are provided, a multi-asset datapoint will be created, meaning that all sources provided will be stored as sub-assets of the datapoint. If multiple datapoints are desired, one should not pass in multiple files, texts, or urls, instead, one should call this endpoint multiple times with the desired file, text, or url per datapoint. The request must be a multipart form request, where each parameter is sent as a separate part. The files, texts, and urls can be mixed and matched as needed, however, at least one of them must be provided, and one should make sure that mixing them makes sense for the dataset.
|
|
1800
|
-
|
|
1801
|
-
:param dataset_id: The id of the dataset (required)
|
|
1802
|
-
:type dataset_id: str
|
|
1803
|
-
:param file: The files to upload from the local storage. Must be either images or videos.
|
|
1804
|
-
:type file: List[bytearray]
|
|
1805
|
-
:param text: The texts to upload. The length limit is set at 256 characters per text.
|
|
1806
|
-
:type text: List[str]
|
|
1807
|
-
:param url: Creates an asset from a url. The url needs to point to a publicly accessible resource. The server will download the resource and store it as an asset in the background. <remarks> Additionally, to the urls having to be publicly accessible, they need to support HTTP HEAD requests. </remarks>
|
|
1808
|
-
:type url: List[str]
|
|
1809
|
-
:param metadata: Optional metadata to attach to the datapoint.
|
|
1810
|
-
:type metadata: List[DatasetDatasetIdDatapointsPostRequestMetadataInner]
|
|
1811
|
-
:param sort_index: The index will be used to keep the datapoints in order. Useful if upload is parallelized
|
|
1812
|
-
:type sort_index: int
|
|
1813
|
-
:param _request_timeout: timeout setting for this request. If one
|
|
1814
|
-
number provided, it will be total request
|
|
1815
|
-
timeout. It can also be a pair (tuple) of
|
|
1816
|
-
(connection, read) timeouts.
|
|
1817
|
-
:type _request_timeout: int, tuple(int, int), optional
|
|
1818
|
-
:param _request_auth: set to override the auth_settings for an a single
|
|
1819
|
-
request; this effectively ignores the
|
|
1820
|
-
authentication in the spec for a single request.
|
|
1821
|
-
:type _request_auth: dict, optional
|
|
1822
|
-
:param _content_type: force content-type for the request.
|
|
1823
|
-
:type _content_type: str, Optional
|
|
1824
|
-
:param _headers: set to override the headers for a single
|
|
1825
|
-
request; this effectively ignores the headers
|
|
1826
|
-
in the spec for a single request.
|
|
1827
|
-
:type _headers: dict, optional
|
|
1828
|
-
:param _host_index: set to override the host_index for a single
|
|
1829
|
-
request; this effectively ignores the host_index
|
|
1830
|
-
in the spec for a single request.
|
|
1831
|
-
:type _host_index: int, optional
|
|
1832
|
-
:return: Returns the result object.
|
|
1833
|
-
""" # noqa: E501
|
|
1834
|
-
|
|
1835
|
-
_param = self._dataset_dataset_id_datapoints_post_serialize(
|
|
1836
|
-
dataset_id=dataset_id,
|
|
1837
|
-
file=file,
|
|
1838
|
-
text=text,
|
|
1839
|
-
url=url,
|
|
1840
|
-
metadata=metadata,
|
|
1841
|
-
sort_index=sort_index,
|
|
1842
|
-
_request_auth=_request_auth,
|
|
1843
|
-
_content_type=_content_type,
|
|
1844
|
-
_headers=_headers,
|
|
1845
|
-
_host_index=_host_index
|
|
1846
|
-
)
|
|
1847
|
-
|
|
1848
|
-
_response_types_map: Dict[str, Optional[str]] = {
|
|
1849
|
-
'200': "CreateDatapointResult",
|
|
1850
|
-
}
|
|
1851
|
-
response_data = self.api_client.call_api(
|
|
1852
|
-
*_param,
|
|
1853
|
-
_request_timeout=_request_timeout
|
|
1854
|
-
)
|
|
1855
|
-
response_data.read()
|
|
1856
|
-
return self.api_client.response_deserialize(
|
|
1857
|
-
response_data=response_data,
|
|
1858
|
-
response_types_map=_response_types_map,
|
|
1859
|
-
).data
|
|
1860
|
-
|
|
1861
|
-
|
|
1862
|
-
@validate_call
|
|
1863
|
-
def dataset_dataset_id_datapoints_post_with_http_info(
|
|
1864
|
-
self,
|
|
1865
|
-
dataset_id: Annotated[StrictStr, Field(description="The id of the dataset")],
|
|
1866
|
-
file: Annotated[Optional[List[Union[StrictBytes, StrictStr, Tuple[StrictStr, StrictBytes]]]], Field(description="The files to upload from the local storage. Must be either images or videos.")] = None,
|
|
1867
|
-
text: Annotated[Optional[List[StrictStr]], Field(description="The texts to upload. The length limit is set at 256 characters per text.")] = None,
|
|
1868
|
-
url: Annotated[Optional[List[StrictStr]], Field(description="Creates an asset from a url. The url needs to point to a publicly accessible resource. The server will download the resource and store it as an asset in the background. <remarks> Additionally, to the urls having to be publicly accessible, they need to support HTTP HEAD requests. </remarks>")] = None,
|
|
1869
|
-
metadata: Annotated[Optional[List[DatasetDatasetIdDatapointsPostRequestMetadataInner]], Field(description="Optional metadata to attach to the datapoint.")] = None,
|
|
1870
|
-
sort_index: Annotated[Optional[StrictInt], Field(description="The index will be used to keep the datapoints in order. Useful if upload is parallelized")] = None,
|
|
1871
|
-
_request_timeout: Union[
|
|
1872
|
-
None,
|
|
1873
|
-
Annotated[StrictFloat, Field(gt=0)],
|
|
1874
|
-
Tuple[
|
|
1875
|
-
Annotated[StrictFloat, Field(gt=0)],
|
|
1876
|
-
Annotated[StrictFloat, Field(gt=0)]
|
|
1877
|
-
]
|
|
1878
|
-
] = None,
|
|
1879
|
-
_request_auth: Optional[Dict[StrictStr, Any]] = None,
|
|
1880
|
-
_content_type: Optional[StrictStr] = None,
|
|
1881
|
-
_headers: Optional[Dict[StrictStr, Any]] = None,
|
|
1882
|
-
_host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
|
|
1883
|
-
) -> ApiResponse[CreateDatapointResult]:
|
|
1884
|
-
"""Creates a new datapoint from multiple possible sources.
|
|
1885
|
-
|
|
1886
|
-
Multiple files, texts, and urls can be provided. If multiple files are provided, a multi-asset datapoint will be created, meaning that all sources provided will be stored as sub-assets of the datapoint. If multiple datapoints are desired, one should not pass in multiple files, texts, or urls, instead, one should call this endpoint multiple times with the desired file, text, or url per datapoint. The request must be a multipart form request, where each parameter is sent as a separate part. The files, texts, and urls can be mixed and matched as needed, however, at least one of them must be provided, and one should make sure that mixing them makes sense for the dataset.
|
|
1887
|
-
|
|
1888
|
-
:param dataset_id: The id of the dataset (required)
|
|
1889
|
-
:type dataset_id: str
|
|
1890
|
-
:param file: The files to upload from the local storage. Must be either images or videos.
|
|
1891
|
-
:type file: List[bytearray]
|
|
1892
|
-
:param text: The texts to upload. The length limit is set at 256 characters per text.
|
|
1893
|
-
:type text: List[str]
|
|
1894
|
-
:param url: Creates an asset from a url. The url needs to point to a publicly accessible resource. The server will download the resource and store it as an asset in the background. <remarks> Additionally, to the urls having to be publicly accessible, they need to support HTTP HEAD requests. </remarks>
|
|
1895
|
-
:type url: List[str]
|
|
1896
|
-
:param metadata: Optional metadata to attach to the datapoint.
|
|
1897
|
-
:type metadata: List[DatasetDatasetIdDatapointsPostRequestMetadataInner]
|
|
1898
|
-
:param sort_index: The index will be used to keep the datapoints in order. Useful if upload is parallelized
|
|
1899
|
-
:type sort_index: int
|
|
1900
|
-
:param _request_timeout: timeout setting for this request. If one
|
|
1901
|
-
number provided, it will be total request
|
|
1902
|
-
timeout. It can also be a pair (tuple) of
|
|
1903
|
-
(connection, read) timeouts.
|
|
1904
|
-
:type _request_timeout: int, tuple(int, int), optional
|
|
1905
|
-
:param _request_auth: set to override the auth_settings for an a single
|
|
1906
|
-
request; this effectively ignores the
|
|
1907
|
-
authentication in the spec for a single request.
|
|
1908
|
-
:type _request_auth: dict, optional
|
|
1909
|
-
:param _content_type: force content-type for the request.
|
|
1910
|
-
:type _content_type: str, Optional
|
|
1911
|
-
:param _headers: set to override the headers for a single
|
|
1912
|
-
request; this effectively ignores the headers
|
|
1913
|
-
in the spec for a single request.
|
|
1914
|
-
:type _headers: dict, optional
|
|
1915
|
-
:param _host_index: set to override the host_index for a single
|
|
1916
|
-
request; this effectively ignores the host_index
|
|
1917
|
-
in the spec for a single request.
|
|
1918
|
-
:type _host_index: int, optional
|
|
1919
|
-
:return: Returns the result object.
|
|
1920
|
-
""" # noqa: E501
|
|
1921
|
-
|
|
1922
|
-
_param = self._dataset_dataset_id_datapoints_post_serialize(
|
|
1923
|
-
dataset_id=dataset_id,
|
|
1924
|
-
file=file,
|
|
1925
|
-
text=text,
|
|
1926
|
-
url=url,
|
|
1927
|
-
metadata=metadata,
|
|
1928
|
-
sort_index=sort_index,
|
|
1929
|
-
_request_auth=_request_auth,
|
|
1930
|
-
_content_type=_content_type,
|
|
1931
|
-
_headers=_headers,
|
|
1932
|
-
_host_index=_host_index
|
|
1933
|
-
)
|
|
1934
|
-
|
|
1935
|
-
_response_types_map: Dict[str, Optional[str]] = {
|
|
1936
|
-
'200': "CreateDatapointResult",
|
|
1937
|
-
}
|
|
1938
|
-
response_data = self.api_client.call_api(
|
|
1939
|
-
*_param,
|
|
1940
|
-
_request_timeout=_request_timeout
|
|
1941
|
-
)
|
|
1942
|
-
response_data.read()
|
|
1943
|
-
return self.api_client.response_deserialize(
|
|
1944
|
-
response_data=response_data,
|
|
1945
|
-
response_types_map=_response_types_map,
|
|
1946
|
-
)
|
|
1947
|
-
|
|
1948
|
-
|
|
1949
|
-
@validate_call
|
|
1950
|
-
def dataset_dataset_id_datapoints_post_without_preload_content(
|
|
1951
|
-
self,
|
|
1952
|
-
dataset_id: Annotated[StrictStr, Field(description="The id of the dataset")],
|
|
1953
|
-
file: Annotated[Optional[List[Union[StrictBytes, StrictStr, Tuple[StrictStr, StrictBytes]]]], Field(description="The files to upload from the local storage. Must be either images or videos.")] = None,
|
|
1954
|
-
text: Annotated[Optional[List[StrictStr]], Field(description="The texts to upload. The length limit is set at 256 characters per text.")] = None,
|
|
1955
|
-
url: Annotated[Optional[List[StrictStr]], Field(description="Creates an asset from a url. The url needs to point to a publicly accessible resource. The server will download the resource and store it as an asset in the background. <remarks> Additionally, to the urls having to be publicly accessible, they need to support HTTP HEAD requests. </remarks>")] = None,
|
|
1956
|
-
metadata: Annotated[Optional[List[DatasetDatasetIdDatapointsPostRequestMetadataInner]], Field(description="Optional metadata to attach to the datapoint.")] = None,
|
|
1957
|
-
sort_index: Annotated[Optional[StrictInt], Field(description="The index will be used to keep the datapoints in order. Useful if upload is parallelized")] = None,
|
|
1958
|
-
_request_timeout: Union[
|
|
1959
|
-
None,
|
|
1960
|
-
Annotated[StrictFloat, Field(gt=0)],
|
|
1961
|
-
Tuple[
|
|
1962
|
-
Annotated[StrictFloat, Field(gt=0)],
|
|
1963
|
-
Annotated[StrictFloat, Field(gt=0)]
|
|
1964
|
-
]
|
|
1965
|
-
] = None,
|
|
1966
|
-
_request_auth: Optional[Dict[StrictStr, Any]] = None,
|
|
1967
|
-
_content_type: Optional[StrictStr] = None,
|
|
1968
|
-
_headers: Optional[Dict[StrictStr, Any]] = None,
|
|
1969
|
-
_host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
|
|
1970
|
-
) -> RESTResponseType:
|
|
1971
|
-
"""Creates a new datapoint from multiple possible sources.
|
|
1972
|
-
|
|
1973
|
-
Multiple files, texts, and urls can be provided. If multiple files are provided, a multi-asset datapoint will be created, meaning that all sources provided will be stored as sub-assets of the datapoint. If multiple datapoints are desired, one should not pass in multiple files, texts, or urls, instead, one should call this endpoint multiple times with the desired file, text, or url per datapoint. The request must be a multipart form request, where each parameter is sent as a separate part. The files, texts, and urls can be mixed and matched as needed, however, at least one of them must be provided, and one should make sure that mixing them makes sense for the dataset.
|
|
1974
|
-
|
|
1975
|
-
:param dataset_id: The id of the dataset (required)
|
|
1976
|
-
:type dataset_id: str
|
|
1977
|
-
:param file: The files to upload from the local storage. Must be either images or videos.
|
|
1978
|
-
:type file: List[bytearray]
|
|
1979
|
-
:param text: The texts to upload. The length limit is set at 256 characters per text.
|
|
1980
|
-
:type text: List[str]
|
|
1981
|
-
:param url: Creates an asset from a url. The url needs to point to a publicly accessible resource. The server will download the resource and store it as an asset in the background. <remarks> Additionally, to the urls having to be publicly accessible, they need to support HTTP HEAD requests. </remarks>
|
|
1982
|
-
:type url: List[str]
|
|
1983
|
-
:param metadata: Optional metadata to attach to the datapoint.
|
|
1984
|
-
:type metadata: List[DatasetDatasetIdDatapointsPostRequestMetadataInner]
|
|
1985
|
-
:param sort_index: The index will be used to keep the datapoints in order. Useful if upload is parallelized
|
|
1986
|
-
:type sort_index: int
|
|
1987
|
-
:param _request_timeout: timeout setting for this request. If one
|
|
1988
|
-
number provided, it will be total request
|
|
1989
|
-
timeout. It can also be a pair (tuple) of
|
|
1990
|
-
(connection, read) timeouts.
|
|
1991
|
-
:type _request_timeout: int, tuple(int, int), optional
|
|
1992
|
-
:param _request_auth: set to override the auth_settings for an a single
|
|
1993
|
-
request; this effectively ignores the
|
|
1994
|
-
authentication in the spec for a single request.
|
|
1995
|
-
:type _request_auth: dict, optional
|
|
1996
|
-
:param _content_type: force content-type for the request.
|
|
1997
|
-
:type _content_type: str, Optional
|
|
1998
|
-
:param _headers: set to override the headers for a single
|
|
1999
|
-
request; this effectively ignores the headers
|
|
2000
|
-
in the spec for a single request.
|
|
2001
|
-
:type _headers: dict, optional
|
|
2002
|
-
:param _host_index: set to override the host_index for a single
|
|
2003
|
-
request; this effectively ignores the host_index
|
|
2004
|
-
in the spec for a single request.
|
|
2005
|
-
:type _host_index: int, optional
|
|
2006
|
-
:return: Returns the result object.
|
|
2007
|
-
""" # noqa: E501
|
|
2008
|
-
|
|
2009
|
-
_param = self._dataset_dataset_id_datapoints_post_serialize(
|
|
2010
|
-
dataset_id=dataset_id,
|
|
2011
|
-
file=file,
|
|
2012
|
-
text=text,
|
|
2013
|
-
url=url,
|
|
2014
|
-
metadata=metadata,
|
|
2015
|
-
sort_index=sort_index,
|
|
2016
|
-
_request_auth=_request_auth,
|
|
2017
|
-
_content_type=_content_type,
|
|
2018
|
-
_headers=_headers,
|
|
2019
|
-
_host_index=_host_index
|
|
2020
|
-
)
|
|
2021
|
-
|
|
2022
|
-
_response_types_map: Dict[str, Optional[str]] = {
|
|
2023
|
-
'200': "CreateDatapointResult",
|
|
2024
|
-
}
|
|
2025
|
-
response_data = self.api_client.call_api(
|
|
2026
|
-
*_param,
|
|
2027
|
-
_request_timeout=_request_timeout
|
|
2028
|
-
)
|
|
2029
|
-
return response_data.response
|
|
2030
|
-
|
|
2031
|
-
|
|
2032
|
-
def _dataset_dataset_id_datapoints_post_serialize(
|
|
2033
|
-
self,
|
|
2034
|
-
dataset_id,
|
|
2035
|
-
file,
|
|
2036
|
-
text,
|
|
2037
|
-
url,
|
|
2038
|
-
metadata,
|
|
2039
|
-
sort_index,
|
|
2040
|
-
_request_auth,
|
|
2041
|
-
_content_type,
|
|
2042
|
-
_headers,
|
|
2043
|
-
_host_index,
|
|
2044
|
-
) -> RequestSerialized:
|
|
2045
|
-
|
|
2046
|
-
_host = None
|
|
2047
|
-
|
|
2048
|
-
_collection_formats: Dict[str, str] = {
|
|
2049
|
-
'file': 'csv',
|
|
2050
|
-
'text': 'multi',
|
|
2051
|
-
'url': 'multi',
|
|
2052
|
-
'metadata': 'multi',
|
|
2053
|
-
}
|
|
2054
|
-
|
|
2055
|
-
_path_params: Dict[str, str] = {}
|
|
2056
|
-
_query_params: List[Tuple[str, str]] = []
|
|
2057
|
-
_header_params: Dict[str, Optional[str]] = _headers or {}
|
|
2058
|
-
_form_params: List[Tuple[str, str]] = []
|
|
2059
|
-
_files: Dict[
|
|
2060
|
-
str, Union[str, bytes, List[str], List[bytes], List[Tuple[str, bytes]]]
|
|
2061
|
-
] = {}
|
|
2062
|
-
_body_params: Optional[bytes] = None
|
|
2063
|
-
|
|
2064
|
-
# process the path parameters
|
|
2065
|
-
if dataset_id is not None:
|
|
2066
|
-
_path_params['datasetId'] = dataset_id
|
|
2067
|
-
# process the query parameters
|
|
2068
|
-
# process the header parameters
|
|
2069
|
-
# process the form parameters
|
|
2070
|
-
if file is not None:
|
|
2071
|
-
_files['file'] = file
|
|
2072
|
-
if text is not None:
|
|
2073
|
-
_form_params.append(('text', text))
|
|
2074
|
-
if url is not None:
|
|
2075
|
-
_form_params.append(('url', url))
|
|
2076
|
-
if metadata is not None:
|
|
2077
|
-
_form_params.append(('metadata', metadata))
|
|
2078
|
-
if sort_index is not None:
|
|
2079
|
-
_form_params.append(('sortIndex', sort_index))
|
|
2080
|
-
# process the body parameter
|
|
2081
|
-
|
|
2082
|
-
|
|
2083
|
-
# set the HTTP header `Accept`
|
|
2084
|
-
if 'Accept' not in _header_params:
|
|
2085
|
-
_header_params['Accept'] = self.api_client.select_header_accept(
|
|
2086
|
-
[
|
|
2087
|
-
'text/plain',
|
|
2088
|
-
'application/json',
|
|
2089
|
-
'text/json'
|
|
2090
|
-
]
|
|
2091
|
-
)
|
|
2092
|
-
|
|
2093
|
-
# set the HTTP header `Content-Type`
|
|
2094
|
-
if _content_type:
|
|
2095
|
-
_header_params['Content-Type'] = _content_type
|
|
2096
|
-
else:
|
|
2097
|
-
_default_content_type = (
|
|
2098
|
-
self.api_client.select_header_content_type(
|
|
2099
|
-
[
|
|
2100
|
-
'multipart/form-data'
|
|
2101
|
-
]
|
|
2102
|
-
)
|
|
2103
|
-
)
|
|
2104
|
-
if _default_content_type is not None:
|
|
2105
|
-
_header_params['Content-Type'] = _default_content_type
|
|
2106
|
-
|
|
2107
|
-
# authentication setting
|
|
2108
|
-
_auth_settings: List[str] = [
|
|
2109
|
-
'bearer',
|
|
2110
|
-
'oauth2'
|
|
2111
|
-
]
|
|
2112
|
-
|
|
2113
|
-
return self.api_client.param_serialize(
|
|
2114
|
-
method='POST',
|
|
2115
|
-
resource_path='/dataset/{datasetId}/datapoints',
|
|
2116
|
-
path_params=_path_params,
|
|
2117
|
-
query_params=_query_params,
|
|
2118
|
-
header_params=_header_params,
|
|
2119
|
-
body=_body_params,
|
|
2120
|
-
post_params=_form_params,
|
|
2121
|
-
files=_files,
|
|
2122
|
-
auth_settings=_auth_settings,
|
|
2123
|
-
collection_formats=_collection_formats,
|
|
2124
|
-
_host=_host,
|
|
2125
|
-
_request_auth=_request_auth
|
|
2126
|
-
)
|
|
2127
|
-
|
|
2128
|
-
|
|
2129
|
-
|
|
2130
|
-
|
|
2131
|
-
@validate_call
|
|
2132
|
-
def dataset_dataset_id_datapoints_s3_post(
|
|
2133
|
-
self,
|
|
2134
|
-
dataset_id: Annotated[StrictStr, Field(description="The id of the dataset to upload the files to.")],
|
|
2135
|
-
create_datapoints_from_s3_bucket_model: Annotated[Optional[CreateDatapointsFromS3BucketModel], Field(description="The body of the request.")] = None,
|
|
2136
|
-
_request_timeout: Union[
|
|
2137
|
-
None,
|
|
2138
|
-
Annotated[StrictFloat, Field(gt=0)],
|
|
2139
|
-
Tuple[
|
|
2140
|
-
Annotated[StrictFloat, Field(gt=0)],
|
|
2141
|
-
Annotated[StrictFloat, Field(gt=0)]
|
|
2142
|
-
]
|
|
2143
|
-
] = None,
|
|
2144
|
-
_request_auth: Optional[Dict[StrictStr, Any]] = None,
|
|
2145
|
-
_content_type: Optional[StrictStr] = None,
|
|
2146
|
-
_headers: Optional[Dict[StrictStr, Any]] = None,
|
|
2147
|
-
_host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
|
|
2148
|
-
) -> UploadFromS3Result:
|
|
2149
|
-
"""Uploads files from an S3 bucket to a dataset.
|
|
2150
|
-
|
|
2151
|
-
A new datapoint will be created for each file in the bucket.
|
|
2152
|
-
|
|
2153
|
-
:param dataset_id: The id of the dataset to upload the files to. (required)
|
|
2154
|
-
:type dataset_id: str
|
|
2155
|
-
:param create_datapoints_from_s3_bucket_model: The body of the request.
|
|
2156
|
-
:type create_datapoints_from_s3_bucket_model: CreateDatapointsFromS3BucketModel
|
|
2157
|
-
:param _request_timeout: timeout setting for this request. If one
|
|
2158
|
-
number provided, it will be total request
|
|
2159
|
-
timeout. It can also be a pair (tuple) of
|
|
2160
|
-
(connection, read) timeouts.
|
|
2161
|
-
:type _request_timeout: int, tuple(int, int), optional
|
|
2162
|
-
:param _request_auth: set to override the auth_settings for an a single
|
|
2163
|
-
request; this effectively ignores the
|
|
2164
|
-
authentication in the spec for a single request.
|
|
2165
|
-
:type _request_auth: dict, optional
|
|
2166
|
-
:param _content_type: force content-type for the request.
|
|
2167
|
-
:type _content_type: str, Optional
|
|
2168
|
-
:param _headers: set to override the headers for a single
|
|
2169
|
-
request; this effectively ignores the headers
|
|
2170
|
-
in the spec for a single request.
|
|
2171
|
-
:type _headers: dict, optional
|
|
2172
|
-
:param _host_index: set to override the host_index for a single
|
|
2173
|
-
request; this effectively ignores the host_index
|
|
2174
|
-
in the spec for a single request.
|
|
2175
|
-
:type _host_index: int, optional
|
|
2176
|
-
:return: Returns the result object.
|
|
2177
|
-
""" # noqa: E501
|
|
2178
|
-
|
|
2179
|
-
_param = self._dataset_dataset_id_datapoints_s3_post_serialize(
|
|
2180
|
-
dataset_id=dataset_id,
|
|
2181
|
-
create_datapoints_from_s3_bucket_model=create_datapoints_from_s3_bucket_model,
|
|
2182
|
-
_request_auth=_request_auth,
|
|
2183
|
-
_content_type=_content_type,
|
|
2184
|
-
_headers=_headers,
|
|
2185
|
-
_host_index=_host_index
|
|
2186
|
-
)
|
|
2187
|
-
|
|
2188
|
-
_response_types_map: Dict[str, Optional[str]] = {
|
|
2189
|
-
'200': "UploadFromS3Result",
|
|
2190
|
-
}
|
|
2191
|
-
response_data = self.api_client.call_api(
|
|
2192
|
-
*_param,
|
|
2193
|
-
_request_timeout=_request_timeout
|
|
2194
|
-
)
|
|
2195
|
-
response_data.read()
|
|
2196
|
-
return self.api_client.response_deserialize(
|
|
2197
|
-
response_data=response_data,
|
|
2198
|
-
response_types_map=_response_types_map,
|
|
2199
|
-
).data
|
|
2200
|
-
|
|
2201
|
-
|
|
2202
|
-
@validate_call
|
|
2203
|
-
def dataset_dataset_id_datapoints_s3_post_with_http_info(
|
|
2204
|
-
self,
|
|
2205
|
-
dataset_id: Annotated[StrictStr, Field(description="The id of the dataset to upload the files to.")],
|
|
2206
|
-
create_datapoints_from_s3_bucket_model: Annotated[Optional[CreateDatapointsFromS3BucketModel], Field(description="The body of the request.")] = None,
|
|
2207
|
-
_request_timeout: Union[
|
|
2208
|
-
None,
|
|
2209
|
-
Annotated[StrictFloat, Field(gt=0)],
|
|
2210
|
-
Tuple[
|
|
2211
|
-
Annotated[StrictFloat, Field(gt=0)],
|
|
2212
|
-
Annotated[StrictFloat, Field(gt=0)]
|
|
2213
|
-
]
|
|
2214
|
-
] = None,
|
|
2215
|
-
_request_auth: Optional[Dict[StrictStr, Any]] = None,
|
|
2216
|
-
_content_type: Optional[StrictStr] = None,
|
|
2217
|
-
_headers: Optional[Dict[StrictStr, Any]] = None,
|
|
2218
|
-
_host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
|
|
2219
|
-
) -> ApiResponse[UploadFromS3Result]:
|
|
2220
|
-
"""Uploads files from an S3 bucket to a dataset.
|
|
2221
|
-
|
|
2222
|
-
A new datapoint will be created for each file in the bucket.
|
|
2223
|
-
|
|
2224
|
-
:param dataset_id: The id of the dataset to upload the files to. (required)
|
|
2225
|
-
:type dataset_id: str
|
|
2226
|
-
:param create_datapoints_from_s3_bucket_model: The body of the request.
|
|
2227
|
-
:type create_datapoints_from_s3_bucket_model: CreateDatapointsFromS3BucketModel
|
|
2228
|
-
:param _request_timeout: timeout setting for this request. If one
|
|
2229
|
-
number provided, it will be total request
|
|
2230
|
-
timeout. It can also be a pair (tuple) of
|
|
2231
|
-
(connection, read) timeouts.
|
|
2232
|
-
:type _request_timeout: int, tuple(int, int), optional
|
|
2233
|
-
:param _request_auth: set to override the auth_settings for an a single
|
|
2234
|
-
request; this effectively ignores the
|
|
2235
|
-
authentication in the spec for a single request.
|
|
2236
|
-
:type _request_auth: dict, optional
|
|
2237
|
-
:param _content_type: force content-type for the request.
|
|
2238
|
-
:type _content_type: str, Optional
|
|
2239
|
-
:param _headers: set to override the headers for a single
|
|
2240
|
-
request; this effectively ignores the headers
|
|
2241
|
-
in the spec for a single request.
|
|
2242
|
-
:type _headers: dict, optional
|
|
2243
|
-
:param _host_index: set to override the host_index for a single
|
|
2244
|
-
request; this effectively ignores the host_index
|
|
2245
|
-
in the spec for a single request.
|
|
2246
|
-
:type _host_index: int, optional
|
|
2247
|
-
:return: Returns the result object.
|
|
2248
|
-
""" # noqa: E501
|
|
2249
|
-
|
|
2250
|
-
_param = self._dataset_dataset_id_datapoints_s3_post_serialize(
|
|
2251
|
-
dataset_id=dataset_id,
|
|
2252
|
-
create_datapoints_from_s3_bucket_model=create_datapoints_from_s3_bucket_model,
|
|
2253
|
-
_request_auth=_request_auth,
|
|
2254
|
-
_content_type=_content_type,
|
|
2255
|
-
_headers=_headers,
|
|
2256
|
-
_host_index=_host_index
|
|
2257
|
-
)
|
|
2258
|
-
|
|
2259
|
-
_response_types_map: Dict[str, Optional[str]] = {
|
|
2260
|
-
'200': "UploadFromS3Result",
|
|
2261
|
-
}
|
|
2262
|
-
response_data = self.api_client.call_api(
|
|
2263
|
-
*_param,
|
|
2264
|
-
_request_timeout=_request_timeout
|
|
2265
|
-
)
|
|
2266
|
-
response_data.read()
|
|
2267
|
-
return self.api_client.response_deserialize(
|
|
2268
|
-
response_data=response_data,
|
|
2269
|
-
response_types_map=_response_types_map,
|
|
2270
|
-
)
|
|
2271
|
-
|
|
2272
|
-
|
|
2273
|
-
@validate_call
|
|
2274
|
-
def dataset_dataset_id_datapoints_s3_post_without_preload_content(
|
|
2275
|
-
self,
|
|
2276
|
-
dataset_id: Annotated[StrictStr, Field(description="The id of the dataset to upload the files to.")],
|
|
2277
|
-
create_datapoints_from_s3_bucket_model: Annotated[Optional[CreateDatapointsFromS3BucketModel], Field(description="The body of the request.")] = None,
|
|
2278
|
-
_request_timeout: Union[
|
|
2279
|
-
None,
|
|
2280
|
-
Annotated[StrictFloat, Field(gt=0)],
|
|
2281
|
-
Tuple[
|
|
2282
|
-
Annotated[StrictFloat, Field(gt=0)],
|
|
2283
|
-
Annotated[StrictFloat, Field(gt=0)]
|
|
2284
|
-
]
|
|
2285
|
-
] = None,
|
|
2286
|
-
_request_auth: Optional[Dict[StrictStr, Any]] = None,
|
|
2287
|
-
_content_type: Optional[StrictStr] = None,
|
|
2288
|
-
_headers: Optional[Dict[StrictStr, Any]] = None,
|
|
2289
|
-
_host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
|
|
2290
|
-
) -> RESTResponseType:
|
|
2291
|
-
"""Uploads files from an S3 bucket to a dataset.
|
|
2292
|
-
|
|
2293
|
-
A new datapoint will be created for each file in the bucket.
|
|
2294
|
-
|
|
2295
|
-
:param dataset_id: The id of the dataset to upload the files to. (required)
|
|
2296
|
-
:type dataset_id: str
|
|
2297
|
-
:param create_datapoints_from_s3_bucket_model: The body of the request.
|
|
2298
|
-
:type create_datapoints_from_s3_bucket_model: CreateDatapointsFromS3BucketModel
|
|
2299
|
-
:param _request_timeout: timeout setting for this request. If one
|
|
2300
|
-
number provided, it will be total request
|
|
2301
|
-
timeout. It can also be a pair (tuple) of
|
|
2302
|
-
(connection, read) timeouts.
|
|
2303
|
-
:type _request_timeout: int, tuple(int, int), optional
|
|
2304
|
-
:param _request_auth: set to override the auth_settings for an a single
|
|
2305
|
-
request; this effectively ignores the
|
|
2306
|
-
authentication in the spec for a single request.
|
|
2307
|
-
:type _request_auth: dict, optional
|
|
2308
|
-
:param _content_type: force content-type for the request.
|
|
2309
|
-
:type _content_type: str, Optional
|
|
2310
|
-
:param _headers: set to override the headers for a single
|
|
2311
|
-
request; this effectively ignores the headers
|
|
2312
|
-
in the spec for a single request.
|
|
2313
|
-
:type _headers: dict, optional
|
|
2314
|
-
:param _host_index: set to override the host_index for a single
|
|
2315
|
-
request; this effectively ignores the host_index
|
|
2316
|
-
in the spec for a single request.
|
|
2317
|
-
:type _host_index: int, optional
|
|
2318
|
-
:return: Returns the result object.
|
|
2319
|
-
""" # noqa: E501
|
|
2320
|
-
|
|
2321
|
-
_param = self._dataset_dataset_id_datapoints_s3_post_serialize(
|
|
2322
|
-
dataset_id=dataset_id,
|
|
2323
|
-
create_datapoints_from_s3_bucket_model=create_datapoints_from_s3_bucket_model,
|
|
2324
|
-
_request_auth=_request_auth,
|
|
2325
|
-
_content_type=_content_type,
|
|
2326
|
-
_headers=_headers,
|
|
2327
|
-
_host_index=_host_index
|
|
2328
|
-
)
|
|
2329
|
-
|
|
2330
|
-
_response_types_map: Dict[str, Optional[str]] = {
|
|
2331
|
-
'200': "UploadFromS3Result",
|
|
2332
|
-
}
|
|
2333
|
-
response_data = self.api_client.call_api(
|
|
2334
|
-
*_param,
|
|
2335
|
-
_request_timeout=_request_timeout
|
|
2336
|
-
)
|
|
2337
|
-
return response_data.response
|
|
2338
|
-
|
|
2339
|
-
|
|
2340
|
-
def _dataset_dataset_id_datapoints_s3_post_serialize(
|
|
2341
|
-
self,
|
|
2342
|
-
dataset_id,
|
|
2343
|
-
create_datapoints_from_s3_bucket_model,
|
|
2344
|
-
_request_auth,
|
|
2345
|
-
_content_type,
|
|
2346
|
-
_headers,
|
|
2347
|
-
_host_index,
|
|
2348
|
-
) -> RequestSerialized:
|
|
2349
|
-
|
|
2350
|
-
_host = None
|
|
2351
|
-
|
|
2352
|
-
_collection_formats: Dict[str, str] = {
|
|
2353
|
-
}
|
|
2354
|
-
|
|
2355
|
-
_path_params: Dict[str, str] = {}
|
|
2356
|
-
_query_params: List[Tuple[str, str]] = []
|
|
2357
|
-
_header_params: Dict[str, Optional[str]] = _headers or {}
|
|
2358
|
-
_form_params: List[Tuple[str, str]] = []
|
|
2359
|
-
_files: Dict[
|
|
2360
|
-
str, Union[str, bytes, List[str], List[bytes], List[Tuple[str, bytes]]]
|
|
2361
|
-
] = {}
|
|
2362
|
-
_body_params: Optional[bytes] = None
|
|
2363
|
-
|
|
2364
|
-
# process the path parameters
|
|
2365
|
-
if dataset_id is not None:
|
|
2366
|
-
_path_params['datasetId'] = dataset_id
|
|
2367
|
-
# process the query parameters
|
|
2368
|
-
# process the header parameters
|
|
2369
|
-
# process the form parameters
|
|
2370
|
-
# process the body parameter
|
|
2371
|
-
if create_datapoints_from_s3_bucket_model is not None:
|
|
2372
|
-
_body_params = create_datapoints_from_s3_bucket_model
|
|
2373
|
-
|
|
2374
|
-
|
|
2375
|
-
# set the HTTP header `Accept`
|
|
2376
|
-
if 'Accept' not in _header_params:
|
|
2377
|
-
_header_params['Accept'] = self.api_client.select_header_accept(
|
|
2378
|
-
[
|
|
2379
|
-
'text/plain',
|
|
2380
|
-
'application/json',
|
|
2381
|
-
'text/json'
|
|
2382
|
-
]
|
|
2383
|
-
)
|
|
2384
|
-
|
|
2385
|
-
# set the HTTP header `Content-Type`
|
|
2386
|
-
if _content_type:
|
|
2387
|
-
_header_params['Content-Type'] = _content_type
|
|
2388
|
-
else:
|
|
2389
|
-
_default_content_type = (
|
|
2390
|
-
self.api_client.select_header_content_type(
|
|
2391
|
-
[
|
|
2392
|
-
'application/json',
|
|
2393
|
-
'text/json',
|
|
2394
|
-
'application/*+json'
|
|
2395
|
-
]
|
|
2396
|
-
)
|
|
2397
|
-
)
|
|
2398
|
-
if _default_content_type is not None:
|
|
2399
|
-
_header_params['Content-Type'] = _default_content_type
|
|
2400
|
-
|
|
2401
|
-
# authentication setting
|
|
2402
|
-
_auth_settings: List[str] = [
|
|
2403
|
-
'bearer',
|
|
2404
|
-
'oauth2'
|
|
2405
|
-
]
|
|
2406
|
-
|
|
2407
|
-
return self.api_client.param_serialize(
|
|
2408
|
-
method='POST',
|
|
2409
|
-
resource_path='/dataset/{datasetId}/datapoints/s3',
|
|
2410
|
-
path_params=_path_params,
|
|
2411
|
-
query_params=_query_params,
|
|
2412
|
-
header_params=_header_params,
|
|
2413
|
-
body=_body_params,
|
|
2414
|
-
post_params=_form_params,
|
|
2415
|
-
files=_files,
|
|
2416
|
-
auth_settings=_auth_settings,
|
|
2417
|
-
collection_formats=_collection_formats,
|
|
2418
|
-
_host=_host,
|
|
2419
|
-
_request_auth=_request_auth
|
|
2420
|
-
)
|
|
2421
|
-
|
|
2422
|
-
|
|
2423
|
-
|
|
2424
|
-
|
|
2425
|
-
@validate_call
|
|
2426
|
-
def dataset_dataset_id_datapoints_texts_post(
|
|
2427
|
-
self,
|
|
2428
|
-
dataset_id: Annotated[StrictStr, Field(description="The id of the dataset to create the datapoint in.")],
|
|
2429
|
-
create_datapoint_from_text_sources_model: Annotated[Optional[CreateDatapointFromTextSourcesModel], Field(description="The body of the request.")] = None,
|
|
2430
|
-
_request_timeout: Union[
|
|
2431
|
-
None,
|
|
2432
|
-
Annotated[StrictFloat, Field(gt=0)],
|
|
2433
|
-
Tuple[
|
|
2434
|
-
Annotated[StrictFloat, Field(gt=0)],
|
|
2435
|
-
Annotated[StrictFloat, Field(gt=0)]
|
|
2436
|
-
]
|
|
2437
|
-
] = None,
|
|
2438
|
-
_request_auth: Optional[Dict[StrictStr, Any]] = None,
|
|
2439
|
-
_content_type: Optional[StrictStr] = None,
|
|
2440
|
-
_headers: Optional[Dict[StrictStr, Any]] = None,
|
|
2441
|
-
_host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
|
|
2442
|
-
) -> CreateDatapointResult:
|
|
2443
|
-
"""Creates a single datapoint from text sources.
|
|
2444
|
-
|
|
2445
|
-
If multiple text sources are uploaded, a multi asset datapoint will be created.
|
|
2446
|
-
|
|
2447
|
-
:param dataset_id: The id of the dataset to create the datapoint in. (required)
|
|
2448
|
-
:type dataset_id: str
|
|
2449
|
-
:param create_datapoint_from_text_sources_model: The body of the request.
|
|
2450
|
-
:type create_datapoint_from_text_sources_model: CreateDatapointFromTextSourcesModel
|
|
2451
|
-
:param _request_timeout: timeout setting for this request. If one
|
|
2452
|
-
number provided, it will be total request
|
|
2453
|
-
timeout. It can also be a pair (tuple) of
|
|
2454
|
-
(connection, read) timeouts.
|
|
2455
|
-
:type _request_timeout: int, tuple(int, int), optional
|
|
2456
|
-
:param _request_auth: set to override the auth_settings for an a single
|
|
2457
|
-
request; this effectively ignores the
|
|
2458
|
-
authentication in the spec for a single request.
|
|
2459
|
-
:type _request_auth: dict, optional
|
|
2460
|
-
:param _content_type: force content-type for the request.
|
|
2461
|
-
:type _content_type: str, Optional
|
|
2462
|
-
:param _headers: set to override the headers for a single
|
|
2463
|
-
request; this effectively ignores the headers
|
|
2464
|
-
in the spec for a single request.
|
|
2465
|
-
:type _headers: dict, optional
|
|
2466
|
-
:param _host_index: set to override the host_index for a single
|
|
2467
|
-
request; this effectively ignores the host_index
|
|
2468
|
-
in the spec for a single request.
|
|
2469
|
-
:type _host_index: int, optional
|
|
2470
|
-
:return: Returns the result object.
|
|
2471
|
-
""" # noqa: E501
|
|
2472
|
-
|
|
2473
|
-
_param = self._dataset_dataset_id_datapoints_texts_post_serialize(
|
|
2474
|
-
dataset_id=dataset_id,
|
|
2475
|
-
create_datapoint_from_text_sources_model=create_datapoint_from_text_sources_model,
|
|
2476
|
-
_request_auth=_request_auth,
|
|
2477
|
-
_content_type=_content_type,
|
|
2478
|
-
_headers=_headers,
|
|
2479
|
-
_host_index=_host_index
|
|
2480
|
-
)
|
|
2481
|
-
|
|
2482
|
-
_response_types_map: Dict[str, Optional[str]] = {
|
|
2483
|
-
'200': "CreateDatapointResult",
|
|
2484
|
-
}
|
|
2485
|
-
response_data = self.api_client.call_api(
|
|
2486
|
-
*_param,
|
|
2487
|
-
_request_timeout=_request_timeout
|
|
2488
|
-
)
|
|
2489
|
-
response_data.read()
|
|
2490
|
-
return self.api_client.response_deserialize(
|
|
2491
|
-
response_data=response_data,
|
|
2492
|
-
response_types_map=_response_types_map,
|
|
2493
|
-
).data
|
|
2494
|
-
|
|
2495
|
-
|
|
2496
|
-
@validate_call
|
|
2497
|
-
def dataset_dataset_id_datapoints_texts_post_with_http_info(
|
|
2498
|
-
self,
|
|
2499
|
-
dataset_id: Annotated[StrictStr, Field(description="The id of the dataset to create the datapoint in.")],
|
|
2500
|
-
create_datapoint_from_text_sources_model: Annotated[Optional[CreateDatapointFromTextSourcesModel], Field(description="The body of the request.")] = None,
|
|
2501
|
-
_request_timeout: Union[
|
|
2502
|
-
None,
|
|
2503
|
-
Annotated[StrictFloat, Field(gt=0)],
|
|
2504
|
-
Tuple[
|
|
2505
|
-
Annotated[StrictFloat, Field(gt=0)],
|
|
2506
|
-
Annotated[StrictFloat, Field(gt=0)]
|
|
2507
|
-
]
|
|
2508
|
-
] = None,
|
|
2509
|
-
_request_auth: Optional[Dict[StrictStr, Any]] = None,
|
|
2510
|
-
_content_type: Optional[StrictStr] = None,
|
|
2511
|
-
_headers: Optional[Dict[StrictStr, Any]] = None,
|
|
2512
|
-
_host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
|
|
2513
|
-
) -> ApiResponse[CreateDatapointResult]:
|
|
2514
|
-
"""Creates a single datapoint from text sources.
|
|
2515
|
-
|
|
2516
|
-
If multiple text sources are uploaded, a multi asset datapoint will be created.
|
|
2517
|
-
|
|
2518
|
-
:param dataset_id: The id of the dataset to create the datapoint in. (required)
|
|
2519
|
-
:type dataset_id: str
|
|
2520
|
-
:param create_datapoint_from_text_sources_model: The body of the request.
|
|
2521
|
-
:type create_datapoint_from_text_sources_model: CreateDatapointFromTextSourcesModel
|
|
2522
|
-
:param _request_timeout: timeout setting for this request. If one
|
|
2523
|
-
number provided, it will be total request
|
|
2524
|
-
timeout. It can also be a pair (tuple) of
|
|
2525
|
-
(connection, read) timeouts.
|
|
2526
|
-
:type _request_timeout: int, tuple(int, int), optional
|
|
2527
|
-
:param _request_auth: set to override the auth_settings for an a single
|
|
2528
|
-
request; this effectively ignores the
|
|
2529
|
-
authentication in the spec for a single request.
|
|
2530
|
-
:type _request_auth: dict, optional
|
|
2531
|
-
:param _content_type: force content-type for the request.
|
|
2532
|
-
:type _content_type: str, Optional
|
|
2533
|
-
:param _headers: set to override the headers for a single
|
|
2534
|
-
request; this effectively ignores the headers
|
|
2535
|
-
in the spec for a single request.
|
|
2536
|
-
:type _headers: dict, optional
|
|
2537
|
-
:param _host_index: set to override the host_index for a single
|
|
2538
|
-
request; this effectively ignores the host_index
|
|
2539
|
-
in the spec for a single request.
|
|
2540
|
-
:type _host_index: int, optional
|
|
2541
|
-
:return: Returns the result object.
|
|
2542
|
-
""" # noqa: E501
|
|
2543
|
-
|
|
2544
|
-
_param = self._dataset_dataset_id_datapoints_texts_post_serialize(
|
|
2545
|
-
dataset_id=dataset_id,
|
|
2546
|
-
create_datapoint_from_text_sources_model=create_datapoint_from_text_sources_model,
|
|
2547
|
-
_request_auth=_request_auth,
|
|
2548
|
-
_content_type=_content_type,
|
|
2549
|
-
_headers=_headers,
|
|
2550
|
-
_host_index=_host_index
|
|
2551
|
-
)
|
|
2552
|
-
|
|
2553
|
-
_response_types_map: Dict[str, Optional[str]] = {
|
|
2554
|
-
'200': "CreateDatapointResult",
|
|
2555
|
-
}
|
|
2556
|
-
response_data = self.api_client.call_api(
|
|
2557
|
-
*_param,
|
|
2558
|
-
_request_timeout=_request_timeout
|
|
2559
|
-
)
|
|
2560
|
-
response_data.read()
|
|
2561
|
-
return self.api_client.response_deserialize(
|
|
2562
|
-
response_data=response_data,
|
|
2563
|
-
response_types_map=_response_types_map,
|
|
2564
|
-
)
|
|
2565
|
-
|
|
2566
|
-
|
|
2567
|
-
@validate_call
|
|
2568
|
-
def dataset_dataset_id_datapoints_texts_post_without_preload_content(
|
|
2569
|
-
self,
|
|
2570
|
-
dataset_id: Annotated[StrictStr, Field(description="The id of the dataset to create the datapoint in.")],
|
|
2571
|
-
create_datapoint_from_text_sources_model: Annotated[Optional[CreateDatapointFromTextSourcesModel], Field(description="The body of the request.")] = None,
|
|
2572
|
-
_request_timeout: Union[
|
|
2573
|
-
None,
|
|
2574
|
-
Annotated[StrictFloat, Field(gt=0)],
|
|
2575
|
-
Tuple[
|
|
2576
|
-
Annotated[StrictFloat, Field(gt=0)],
|
|
2577
|
-
Annotated[StrictFloat, Field(gt=0)]
|
|
2578
|
-
]
|
|
2579
|
-
] = None,
|
|
2580
|
-
_request_auth: Optional[Dict[StrictStr, Any]] = None,
|
|
2581
|
-
_content_type: Optional[StrictStr] = None,
|
|
2582
|
-
_headers: Optional[Dict[StrictStr, Any]] = None,
|
|
2583
|
-
_host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
|
|
2584
|
-
) -> RESTResponseType:
|
|
2585
|
-
"""Creates a single datapoint from text sources.
|
|
2586
|
-
|
|
2587
|
-
If multiple text sources are uploaded, a multi asset datapoint will be created.
|
|
2588
|
-
|
|
2589
|
-
:param dataset_id: The id of the dataset to create the datapoint in. (required)
|
|
2590
|
-
:type dataset_id: str
|
|
2591
|
-
:param create_datapoint_from_text_sources_model: The body of the request.
|
|
2592
|
-
:type create_datapoint_from_text_sources_model: CreateDatapointFromTextSourcesModel
|
|
2593
|
-
:param _request_timeout: timeout setting for this request. If one
|
|
2594
|
-
number provided, it will be total request
|
|
2595
|
-
timeout. It can also be a pair (tuple) of
|
|
2596
|
-
(connection, read) timeouts.
|
|
2597
|
-
:type _request_timeout: int, tuple(int, int), optional
|
|
2598
|
-
:param _request_auth: set to override the auth_settings for an a single
|
|
2599
|
-
request; this effectively ignores the
|
|
2600
|
-
authentication in the spec for a single request.
|
|
2601
|
-
:type _request_auth: dict, optional
|
|
2602
|
-
:param _content_type: force content-type for the request.
|
|
2603
|
-
:type _content_type: str, Optional
|
|
2604
|
-
:param _headers: set to override the headers for a single
|
|
2605
|
-
request; this effectively ignores the headers
|
|
2606
|
-
in the spec for a single request.
|
|
2607
|
-
:type _headers: dict, optional
|
|
2608
|
-
:param _host_index: set to override the host_index for a single
|
|
2609
|
-
request; this effectively ignores the host_index
|
|
2610
|
-
in the spec for a single request.
|
|
2611
|
-
:type _host_index: int, optional
|
|
2612
|
-
:return: Returns the result object.
|
|
2613
|
-
""" # noqa: E501
|
|
2614
|
-
|
|
2615
|
-
_param = self._dataset_dataset_id_datapoints_texts_post_serialize(
|
|
2616
|
-
dataset_id=dataset_id,
|
|
2617
|
-
create_datapoint_from_text_sources_model=create_datapoint_from_text_sources_model,
|
|
2618
|
-
_request_auth=_request_auth,
|
|
2619
|
-
_content_type=_content_type,
|
|
2620
|
-
_headers=_headers,
|
|
2621
|
-
_host_index=_host_index
|
|
2622
|
-
)
|
|
2623
|
-
|
|
2624
|
-
_response_types_map: Dict[str, Optional[str]] = {
|
|
2625
|
-
'200': "CreateDatapointResult",
|
|
2626
|
-
}
|
|
2627
|
-
response_data = self.api_client.call_api(
|
|
2628
|
-
*_param,
|
|
2629
|
-
_request_timeout=_request_timeout
|
|
2630
|
-
)
|
|
2631
|
-
return response_data.response
|
|
2632
|
-
|
|
2633
|
-
|
|
2634
|
-
def _dataset_dataset_id_datapoints_texts_post_serialize(
|
|
2635
|
-
self,
|
|
2636
|
-
dataset_id,
|
|
2637
|
-
create_datapoint_from_text_sources_model,
|
|
2638
|
-
_request_auth,
|
|
2639
|
-
_content_type,
|
|
2640
|
-
_headers,
|
|
2641
|
-
_host_index,
|
|
2642
|
-
) -> RequestSerialized:
|
|
2643
|
-
|
|
2644
|
-
_host = None
|
|
2645
|
-
|
|
2646
|
-
_collection_formats: Dict[str, str] = {
|
|
2647
|
-
}
|
|
2648
|
-
|
|
2649
|
-
_path_params: Dict[str, str] = {}
|
|
2650
|
-
_query_params: List[Tuple[str, str]] = []
|
|
2651
|
-
_header_params: Dict[str, Optional[str]] = _headers or {}
|
|
2652
|
-
_form_params: List[Tuple[str, str]] = []
|
|
2653
|
-
_files: Dict[
|
|
2654
|
-
str, Union[str, bytes, List[str], List[bytes], List[Tuple[str, bytes]]]
|
|
2655
|
-
] = {}
|
|
2656
|
-
_body_params: Optional[bytes] = None
|
|
2657
|
-
|
|
2658
|
-
# process the path parameters
|
|
2659
|
-
if dataset_id is not None:
|
|
2660
|
-
_path_params['datasetId'] = dataset_id
|
|
2661
|
-
# process the query parameters
|
|
2662
|
-
# process the header parameters
|
|
2663
|
-
# process the form parameters
|
|
2664
|
-
# process the body parameter
|
|
2665
|
-
if create_datapoint_from_text_sources_model is not None:
|
|
2666
|
-
_body_params = create_datapoint_from_text_sources_model
|
|
2667
|
-
|
|
2668
|
-
|
|
2669
|
-
# set the HTTP header `Accept`
|
|
2670
|
-
if 'Accept' not in _header_params:
|
|
2671
|
-
_header_params['Accept'] = self.api_client.select_header_accept(
|
|
2672
|
-
[
|
|
2673
|
-
'text/plain',
|
|
2674
|
-
'application/json',
|
|
2675
|
-
'text/json'
|
|
2676
|
-
]
|
|
2677
|
-
)
|
|
2678
|
-
|
|
2679
|
-
# set the HTTP header `Content-Type`
|
|
2680
|
-
if _content_type:
|
|
2681
|
-
_header_params['Content-Type'] = _content_type
|
|
2682
|
-
else:
|
|
2683
|
-
_default_content_type = (
|
|
2684
|
-
self.api_client.select_header_content_type(
|
|
2685
|
-
[
|
|
2686
|
-
'application/json',
|
|
2687
|
-
'text/json',
|
|
2688
|
-
'application/*+json'
|
|
2689
|
-
]
|
|
2690
|
-
)
|
|
2691
|
-
)
|
|
2692
|
-
if _default_content_type is not None:
|
|
2693
|
-
_header_params['Content-Type'] = _default_content_type
|
|
2694
|
-
|
|
2695
|
-
# authentication setting
|
|
2696
|
-
_auth_settings: List[str] = [
|
|
2697
|
-
'bearer',
|
|
2698
|
-
'oauth2'
|
|
2699
|
-
]
|
|
2700
|
-
|
|
2701
|
-
return self.api_client.param_serialize(
|
|
2702
|
-
method='POST',
|
|
2703
|
-
resource_path='/dataset/{datasetId}/datapoints/texts',
|
|
2704
|
-
path_params=_path_params,
|
|
2705
|
-
query_params=_query_params,
|
|
2706
|
-
header_params=_header_params,
|
|
2707
|
-
body=_body_params,
|
|
2708
|
-
post_params=_form_params,
|
|
2709
|
-
files=_files,
|
|
2710
|
-
auth_settings=_auth_settings,
|
|
2711
|
-
collection_formats=_collection_formats,
|
|
2712
|
-
_host=_host,
|
|
2713
|
-
_request_auth=_request_auth
|
|
2714
|
-
)
|
|
2715
|
-
|
|
2716
|
-
|
|
2717
|
-
|
|
2718
|
-
|
|
2719
|
-
@validate_call
|
|
2720
|
-
def dataset_dataset_id_datapoints_urls_post(
|
|
2721
|
-
self,
|
|
2722
|
-
dataset_id: Annotated[StrictStr, Field(description="The id of the dataset to create the datapoint in.")],
|
|
2723
|
-
create_datapoint_from_urls_model: Annotated[Optional[CreateDatapointFromUrlsModel], Field(description="The body of the request.")] = None,
|
|
2724
|
-
_request_timeout: Union[
|
|
2725
|
-
None,
|
|
2726
|
-
Annotated[StrictFloat, Field(gt=0)],
|
|
2727
|
-
Tuple[
|
|
2728
|
-
Annotated[StrictFloat, Field(gt=0)],
|
|
2729
|
-
Annotated[StrictFloat, Field(gt=0)]
|
|
2730
|
-
]
|
|
2731
|
-
] = None,
|
|
2732
|
-
_request_auth: Optional[Dict[StrictStr, Any]] = None,
|
|
2733
|
-
_content_type: Optional[StrictStr] = None,
|
|
2734
|
-
_headers: Optional[Dict[StrictStr, Any]] = None,
|
|
2735
|
-
_host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
|
|
2736
|
-
) -> CreateDatapointResult:
|
|
2737
|
-
"""Creates a single datapoint where the assets are fetched from the specified urls.
|
|
2738
|
-
|
|
2739
|
-
Passing in multiple urls will create a single datapoint with a MultiAsset. Each url will be fetched and stored as a sub-asset of the MultiAsset. <para /> If any of the urls are not accessible, the request will fail.
|
|
2740
|
-
|
|
2741
|
-
:param dataset_id: The id of the dataset to create the datapoint in. (required)
|
|
2742
|
-
:type dataset_id: str
|
|
2743
|
-
:param create_datapoint_from_urls_model: The body of the request.
|
|
2744
|
-
:type create_datapoint_from_urls_model: CreateDatapointFromUrlsModel
|
|
2745
|
-
:param _request_timeout: timeout setting for this request. If one
|
|
2746
|
-
number provided, it will be total request
|
|
2747
|
-
timeout. It can also be a pair (tuple) of
|
|
2748
|
-
(connection, read) timeouts.
|
|
2749
|
-
:type _request_timeout: int, tuple(int, int), optional
|
|
2750
|
-
:param _request_auth: set to override the auth_settings for an a single
|
|
2751
|
-
request; this effectively ignores the
|
|
2752
|
-
authentication in the spec for a single request.
|
|
2753
|
-
:type _request_auth: dict, optional
|
|
2754
|
-
:param _content_type: force content-type for the request.
|
|
2755
|
-
:type _content_type: str, Optional
|
|
2756
|
-
:param _headers: set to override the headers for a single
|
|
2757
|
-
request; this effectively ignores the headers
|
|
2758
|
-
in the spec for a single request.
|
|
2759
|
-
:type _headers: dict, optional
|
|
2760
|
-
:param _host_index: set to override the host_index for a single
|
|
2761
|
-
request; this effectively ignores the host_index
|
|
2762
|
-
in the spec for a single request.
|
|
2763
|
-
:type _host_index: int, optional
|
|
2764
|
-
:return: Returns the result object.
|
|
2765
|
-
""" # noqa: E501
|
|
2766
|
-
|
|
2767
|
-
_param = self._dataset_dataset_id_datapoints_urls_post_serialize(
|
|
2768
|
-
dataset_id=dataset_id,
|
|
2769
|
-
create_datapoint_from_urls_model=create_datapoint_from_urls_model,
|
|
2770
|
-
_request_auth=_request_auth,
|
|
2771
|
-
_content_type=_content_type,
|
|
2772
|
-
_headers=_headers,
|
|
2773
|
-
_host_index=_host_index
|
|
2774
|
-
)
|
|
2775
|
-
|
|
2776
|
-
_response_types_map: Dict[str, Optional[str]] = {
|
|
2777
|
-
'200': "CreateDatapointResult",
|
|
2778
|
-
}
|
|
2779
|
-
response_data = self.api_client.call_api(
|
|
2780
|
-
*_param,
|
|
2781
|
-
_request_timeout=_request_timeout
|
|
2782
|
-
)
|
|
2783
|
-
response_data.read()
|
|
2784
|
-
return self.api_client.response_deserialize(
|
|
2785
|
-
response_data=response_data,
|
|
2786
|
-
response_types_map=_response_types_map,
|
|
2787
|
-
).data
|
|
2788
|
-
|
|
2789
|
-
|
|
2790
|
-
@validate_call
|
|
2791
|
-
def dataset_dataset_id_datapoints_urls_post_with_http_info(
|
|
2792
|
-
self,
|
|
2793
|
-
dataset_id: Annotated[StrictStr, Field(description="The id of the dataset to create the datapoint in.")],
|
|
2794
|
-
create_datapoint_from_urls_model: Annotated[Optional[CreateDatapointFromUrlsModel], Field(description="The body of the request.")] = None,
|
|
2795
|
-
_request_timeout: Union[
|
|
2796
|
-
None,
|
|
2797
|
-
Annotated[StrictFloat, Field(gt=0)],
|
|
2798
|
-
Tuple[
|
|
2799
|
-
Annotated[StrictFloat, Field(gt=0)],
|
|
2800
|
-
Annotated[StrictFloat, Field(gt=0)]
|
|
2801
|
-
]
|
|
2802
|
-
] = None,
|
|
2803
|
-
_request_auth: Optional[Dict[StrictStr, Any]] = None,
|
|
2804
|
-
_content_type: Optional[StrictStr] = None,
|
|
2805
|
-
_headers: Optional[Dict[StrictStr, Any]] = None,
|
|
2806
|
-
_host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
|
|
2807
|
-
) -> ApiResponse[CreateDatapointResult]:
|
|
2808
|
-
"""Creates a single datapoint where the assets are fetched from the specified urls.
|
|
2809
|
-
|
|
2810
|
-
Passing in multiple urls will create a single datapoint with a MultiAsset. Each url will be fetched and stored as a sub-asset of the MultiAsset. <para /> If any of the urls are not accessible, the request will fail.
|
|
2811
|
-
|
|
2812
|
-
:param dataset_id: The id of the dataset to create the datapoint in. (required)
|
|
2813
|
-
:type dataset_id: str
|
|
2814
|
-
:param create_datapoint_from_urls_model: The body of the request.
|
|
2815
|
-
:type create_datapoint_from_urls_model: CreateDatapointFromUrlsModel
|
|
2816
|
-
:param _request_timeout: timeout setting for this request. If one
|
|
2817
|
-
number provided, it will be total request
|
|
2818
|
-
timeout. It can also be a pair (tuple) of
|
|
2819
|
-
(connection, read) timeouts.
|
|
2820
|
-
:type _request_timeout: int, tuple(int, int), optional
|
|
2821
|
-
:param _request_auth: set to override the auth_settings for an a single
|
|
2822
|
-
request; this effectively ignores the
|
|
2823
|
-
authentication in the spec for a single request.
|
|
2824
|
-
:type _request_auth: dict, optional
|
|
2825
|
-
:param _content_type: force content-type for the request.
|
|
2826
|
-
:type _content_type: str, Optional
|
|
2827
|
-
:param _headers: set to override the headers for a single
|
|
2828
|
-
request; this effectively ignores the headers
|
|
2829
|
-
in the spec for a single request.
|
|
2830
|
-
:type _headers: dict, optional
|
|
2831
|
-
:param _host_index: set to override the host_index for a single
|
|
2832
|
-
request; this effectively ignores the host_index
|
|
2833
|
-
in the spec for a single request.
|
|
2834
|
-
:type _host_index: int, optional
|
|
2835
|
-
:return: Returns the result object.
|
|
2836
|
-
""" # noqa: E501
|
|
2837
|
-
|
|
2838
|
-
_param = self._dataset_dataset_id_datapoints_urls_post_serialize(
|
|
2839
|
-
dataset_id=dataset_id,
|
|
2840
|
-
create_datapoint_from_urls_model=create_datapoint_from_urls_model,
|
|
2841
|
-
_request_auth=_request_auth,
|
|
2842
|
-
_content_type=_content_type,
|
|
2843
|
-
_headers=_headers,
|
|
2844
|
-
_host_index=_host_index
|
|
2845
|
-
)
|
|
2846
|
-
|
|
2847
|
-
_response_types_map: Dict[str, Optional[str]] = {
|
|
2848
|
-
'200': "CreateDatapointResult",
|
|
2849
|
-
}
|
|
2850
|
-
response_data = self.api_client.call_api(
|
|
2851
|
-
*_param,
|
|
2852
|
-
_request_timeout=_request_timeout
|
|
2853
|
-
)
|
|
2854
|
-
response_data.read()
|
|
2855
|
-
return self.api_client.response_deserialize(
|
|
2856
|
-
response_data=response_data,
|
|
2857
|
-
response_types_map=_response_types_map,
|
|
2858
|
-
)
|
|
2859
|
-
|
|
2860
|
-
|
|
2861
|
-
@validate_call
|
|
2862
|
-
def dataset_dataset_id_datapoints_urls_post_without_preload_content(
|
|
2863
|
-
self,
|
|
2864
|
-
dataset_id: Annotated[StrictStr, Field(description="The id of the dataset to create the datapoint in.")],
|
|
2865
|
-
create_datapoint_from_urls_model: Annotated[Optional[CreateDatapointFromUrlsModel], Field(description="The body of the request.")] = None,
|
|
2866
|
-
_request_timeout: Union[
|
|
2867
|
-
None,
|
|
2868
|
-
Annotated[StrictFloat, Field(gt=0)],
|
|
2869
|
-
Tuple[
|
|
2870
|
-
Annotated[StrictFloat, Field(gt=0)],
|
|
2871
|
-
Annotated[StrictFloat, Field(gt=0)]
|
|
2872
|
-
]
|
|
2873
|
-
] = None,
|
|
2874
|
-
_request_auth: Optional[Dict[StrictStr, Any]] = None,
|
|
2875
|
-
_content_type: Optional[StrictStr] = None,
|
|
2876
|
-
_headers: Optional[Dict[StrictStr, Any]] = None,
|
|
2877
|
-
_host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
|
|
2878
|
-
) -> RESTResponseType:
|
|
2879
|
-
"""Creates a single datapoint where the assets are fetched from the specified urls.
|
|
2880
|
-
|
|
2881
|
-
Passing in multiple urls will create a single datapoint with a MultiAsset. Each url will be fetched and stored as a sub-asset of the MultiAsset. <para /> If any of the urls are not accessible, the request will fail.
|
|
2882
|
-
|
|
2883
|
-
:param dataset_id: The id of the dataset to create the datapoint in. (required)
|
|
2884
|
-
:type dataset_id: str
|
|
2885
|
-
:param create_datapoint_from_urls_model: The body of the request.
|
|
2886
|
-
:type create_datapoint_from_urls_model: CreateDatapointFromUrlsModel
|
|
2887
|
-
:param _request_timeout: timeout setting for this request. If one
|
|
2888
|
-
number provided, it will be total request
|
|
2889
|
-
timeout. It can also be a pair (tuple) of
|
|
2890
|
-
(connection, read) timeouts.
|
|
2891
|
-
:type _request_timeout: int, tuple(int, int), optional
|
|
2892
|
-
:param _request_auth: set to override the auth_settings for an a single
|
|
2893
|
-
request; this effectively ignores the
|
|
2894
|
-
authentication in the spec for a single request.
|
|
2895
|
-
:type _request_auth: dict, optional
|
|
2896
|
-
:param _content_type: force content-type for the request.
|
|
2897
|
-
:type _content_type: str, Optional
|
|
2898
|
-
:param _headers: set to override the headers for a single
|
|
2899
|
-
request; this effectively ignores the headers
|
|
2900
|
-
in the spec for a single request.
|
|
2901
|
-
:type _headers: dict, optional
|
|
2902
|
-
:param _host_index: set to override the host_index for a single
|
|
2903
|
-
request; this effectively ignores the host_index
|
|
2904
|
-
in the spec for a single request.
|
|
2905
|
-
:type _host_index: int, optional
|
|
2906
|
-
:return: Returns the result object.
|
|
2907
|
-
""" # noqa: E501
|
|
2908
|
-
|
|
2909
|
-
_param = self._dataset_dataset_id_datapoints_urls_post_serialize(
|
|
2910
|
-
dataset_id=dataset_id,
|
|
2911
|
-
create_datapoint_from_urls_model=create_datapoint_from_urls_model,
|
|
2912
|
-
_request_auth=_request_auth,
|
|
2913
|
-
_content_type=_content_type,
|
|
2914
|
-
_headers=_headers,
|
|
2915
|
-
_host_index=_host_index
|
|
2916
|
-
)
|
|
2917
|
-
|
|
2918
|
-
_response_types_map: Dict[str, Optional[str]] = {
|
|
2919
|
-
'200': "CreateDatapointResult",
|
|
2920
|
-
}
|
|
2921
|
-
response_data = self.api_client.call_api(
|
|
2922
|
-
*_param,
|
|
2923
|
-
_request_timeout=_request_timeout
|
|
2924
|
-
)
|
|
2925
|
-
return response_data.response
|
|
2926
|
-
|
|
2927
|
-
|
|
2928
|
-
def _dataset_dataset_id_datapoints_urls_post_serialize(
|
|
2929
|
-
self,
|
|
2930
|
-
dataset_id,
|
|
2931
|
-
create_datapoint_from_urls_model,
|
|
2932
|
-
_request_auth,
|
|
2933
|
-
_content_type,
|
|
2934
|
-
_headers,
|
|
2935
|
-
_host_index,
|
|
2936
|
-
) -> RequestSerialized:
|
|
2937
|
-
|
|
2938
|
-
_host = None
|
|
2939
|
-
|
|
2940
|
-
_collection_formats: Dict[str, str] = {
|
|
2941
|
-
}
|
|
2942
|
-
|
|
2943
|
-
_path_params: Dict[str, str] = {}
|
|
2944
|
-
_query_params: List[Tuple[str, str]] = []
|
|
2945
|
-
_header_params: Dict[str, Optional[str]] = _headers or {}
|
|
2946
|
-
_form_params: List[Tuple[str, str]] = []
|
|
2947
|
-
_files: Dict[
|
|
2948
|
-
str, Union[str, bytes, List[str], List[bytes], List[Tuple[str, bytes]]]
|
|
2949
|
-
] = {}
|
|
2950
|
-
_body_params: Optional[bytes] = None
|
|
2951
|
-
|
|
2952
|
-
# process the path parameters
|
|
2953
|
-
if dataset_id is not None:
|
|
2954
|
-
_path_params['datasetId'] = dataset_id
|
|
2955
|
-
# process the query parameters
|
|
2956
|
-
# process the header parameters
|
|
2957
|
-
# process the form parameters
|
|
2958
|
-
# process the body parameter
|
|
2959
|
-
if create_datapoint_from_urls_model is not None:
|
|
2960
|
-
_body_params = create_datapoint_from_urls_model
|
|
2961
|
-
|
|
2962
|
-
|
|
2963
|
-
# set the HTTP header `Accept`
|
|
2964
|
-
if 'Accept' not in _header_params:
|
|
2965
|
-
_header_params['Accept'] = self.api_client.select_header_accept(
|
|
2966
|
-
[
|
|
2967
|
-
'text/plain',
|
|
2968
|
-
'application/json',
|
|
2969
|
-
'text/json'
|
|
2970
|
-
]
|
|
2971
|
-
)
|
|
2972
|
-
|
|
2973
|
-
# set the HTTP header `Content-Type`
|
|
2974
|
-
if _content_type:
|
|
2975
|
-
_header_params['Content-Type'] = _content_type
|
|
2976
|
-
else:
|
|
2977
|
-
_default_content_type = (
|
|
2978
|
-
self.api_client.select_header_content_type(
|
|
2979
|
-
[
|
|
2980
|
-
'application/json',
|
|
2981
|
-
'text/json',
|
|
2982
|
-
'application/*+json'
|
|
2983
|
-
]
|
|
2984
|
-
)
|
|
2985
|
-
)
|
|
2986
|
-
if _default_content_type is not None:
|
|
2987
|
-
_header_params['Content-Type'] = _default_content_type
|
|
2988
|
-
|
|
2989
|
-
# authentication setting
|
|
2990
|
-
_auth_settings: List[str] = [
|
|
2991
|
-
'bearer',
|
|
2992
|
-
'oauth2'
|
|
2993
|
-
]
|
|
2994
|
-
|
|
2995
|
-
return self.api_client.param_serialize(
|
|
2996
|
-
method='POST',
|
|
2997
|
-
resource_path='/dataset/{datasetId}/datapoints/urls',
|
|
2998
|
-
path_params=_path_params,
|
|
2999
|
-
query_params=_query_params,
|
|
3000
|
-
header_params=_header_params,
|
|
3001
|
-
body=_body_params,
|
|
3002
|
-
post_params=_form_params,
|
|
3003
|
-
files=_files,
|
|
3004
|
-
auth_settings=_auth_settings,
|
|
3005
|
-
collection_formats=_collection_formats,
|
|
3006
|
-
_host=_host,
|
|
3007
|
-
_request_auth=_request_auth
|
|
3008
|
-
)
|
|
3009
|
-
|
|
3010
|
-
|
|
3011
|
-
|
|
3012
|
-
|
|
3013
|
-
@validate_call
|
|
3014
|
-
def dataset_dataset_id_get(
|
|
3015
|
-
self,
|
|
3016
|
-
dataset_id: Annotated[StrictStr, Field(description="The id of the dataset to get.")],
|
|
3017
|
-
_request_timeout: Union[
|
|
3018
|
-
None,
|
|
3019
|
-
Annotated[StrictFloat, Field(gt=0)],
|
|
3020
|
-
Tuple[
|
|
3021
|
-
Annotated[StrictFloat, Field(gt=0)],
|
|
3022
|
-
Annotated[StrictFloat, Field(gt=0)]
|
|
3023
|
-
]
|
|
3024
|
-
] = None,
|
|
3025
|
-
_request_auth: Optional[Dict[StrictStr, Any]] = None,
|
|
3026
|
-
_content_type: Optional[StrictStr] = None,
|
|
3027
|
-
_headers: Optional[Dict[StrictStr, Any]] = None,
|
|
3028
|
-
_host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
|
|
3029
|
-
) -> GetDatasetByIdResult:
|
|
3030
|
-
"""Gets a dataset by its id.
|
|
3031
|
-
|
|
3032
|
-
|
|
3033
|
-
:param dataset_id: The id of the dataset to get. (required)
|
|
3034
|
-
:type dataset_id: str
|
|
3035
|
-
:param _request_timeout: timeout setting for this request. If one
|
|
3036
|
-
number provided, it will be total request
|
|
3037
|
-
timeout. It can also be a pair (tuple) of
|
|
3038
|
-
(connection, read) timeouts.
|
|
3039
|
-
:type _request_timeout: int, tuple(int, int), optional
|
|
3040
|
-
:param _request_auth: set to override the auth_settings for an a single
|
|
3041
|
-
request; this effectively ignores the
|
|
3042
|
-
authentication in the spec for a single request.
|
|
3043
|
-
:type _request_auth: dict, optional
|
|
3044
|
-
:param _content_type: force content-type for the request.
|
|
3045
|
-
:type _content_type: str, Optional
|
|
3046
|
-
:param _headers: set to override the headers for a single
|
|
3047
|
-
request; this effectively ignores the headers
|
|
3048
|
-
in the spec for a single request.
|
|
3049
|
-
:type _headers: dict, optional
|
|
3050
|
-
:param _host_index: set to override the host_index for a single
|
|
3051
|
-
request; this effectively ignores the host_index
|
|
3052
|
-
in the spec for a single request.
|
|
3053
|
-
:type _host_index: int, optional
|
|
3054
|
-
:return: Returns the result object.
|
|
3055
|
-
""" # noqa: E501
|
|
3056
|
-
|
|
3057
|
-
_param = self._dataset_dataset_id_get_serialize(
|
|
3058
|
-
dataset_id=dataset_id,
|
|
3059
|
-
_request_auth=_request_auth,
|
|
3060
|
-
_content_type=_content_type,
|
|
3061
|
-
_headers=_headers,
|
|
3062
|
-
_host_index=_host_index
|
|
3063
|
-
)
|
|
3064
|
-
|
|
3065
|
-
_response_types_map: Dict[str, Optional[str]] = {
|
|
3066
|
-
'200': "GetDatasetByIdResult",
|
|
3067
|
-
}
|
|
3068
|
-
response_data = self.api_client.call_api(
|
|
3069
|
-
*_param,
|
|
3070
|
-
_request_timeout=_request_timeout
|
|
3071
|
-
)
|
|
3072
|
-
response_data.read()
|
|
3073
|
-
return self.api_client.response_deserialize(
|
|
3074
|
-
response_data=response_data,
|
|
3075
|
-
response_types_map=_response_types_map,
|
|
3076
|
-
).data
|
|
3077
|
-
|
|
3078
|
-
|
|
3079
|
-
@validate_call
|
|
3080
|
-
def dataset_dataset_id_get_with_http_info(
|
|
3081
|
-
self,
|
|
3082
|
-
dataset_id: Annotated[StrictStr, Field(description="The id of the dataset to get.")],
|
|
3083
|
-
_request_timeout: Union[
|
|
3084
|
-
None,
|
|
3085
|
-
Annotated[StrictFloat, Field(gt=0)],
|
|
3086
|
-
Tuple[
|
|
3087
|
-
Annotated[StrictFloat, Field(gt=0)],
|
|
3088
|
-
Annotated[StrictFloat, Field(gt=0)]
|
|
3089
|
-
]
|
|
3090
|
-
] = None,
|
|
3091
|
-
_request_auth: Optional[Dict[StrictStr, Any]] = None,
|
|
3092
|
-
_content_type: Optional[StrictStr] = None,
|
|
3093
|
-
_headers: Optional[Dict[StrictStr, Any]] = None,
|
|
3094
|
-
_host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
|
|
3095
|
-
) -> ApiResponse[GetDatasetByIdResult]:
|
|
3096
|
-
"""Gets a dataset by its id.
|
|
3097
|
-
|
|
3098
|
-
|
|
3099
|
-
:param dataset_id: The id of the dataset to get. (required)
|
|
3100
|
-
:type dataset_id: str
|
|
3101
|
-
:param _request_timeout: timeout setting for this request. If one
|
|
3102
|
-
number provided, it will be total request
|
|
3103
|
-
timeout. It can also be a pair (tuple) of
|
|
3104
|
-
(connection, read) timeouts.
|
|
3105
|
-
:type _request_timeout: int, tuple(int, int), optional
|
|
3106
|
-
:param _request_auth: set to override the auth_settings for an a single
|
|
3107
|
-
request; this effectively ignores the
|
|
3108
|
-
authentication in the spec for a single request.
|
|
3109
|
-
:type _request_auth: dict, optional
|
|
3110
|
-
:param _content_type: force content-type for the request.
|
|
3111
|
-
:type _content_type: str, Optional
|
|
3112
|
-
:param _headers: set to override the headers for a single
|
|
3113
|
-
request; this effectively ignores the headers
|
|
3114
|
-
in the spec for a single request.
|
|
3115
|
-
:type _headers: dict, optional
|
|
3116
|
-
:param _host_index: set to override the host_index for a single
|
|
3117
|
-
request; this effectively ignores the host_index
|
|
3118
|
-
in the spec for a single request.
|
|
3119
|
-
:type _host_index: int, optional
|
|
3120
|
-
:return: Returns the result object.
|
|
3121
|
-
""" # noqa: E501
|
|
3122
|
-
|
|
3123
|
-
_param = self._dataset_dataset_id_get_serialize(
|
|
3124
|
-
dataset_id=dataset_id,
|
|
3125
|
-
_request_auth=_request_auth,
|
|
3126
|
-
_content_type=_content_type,
|
|
3127
|
-
_headers=_headers,
|
|
3128
|
-
_host_index=_host_index
|
|
3129
|
-
)
|
|
3130
|
-
|
|
3131
|
-
_response_types_map: Dict[str, Optional[str]] = {
|
|
3132
|
-
'200': "GetDatasetByIdResult",
|
|
3133
|
-
}
|
|
3134
|
-
response_data = self.api_client.call_api(
|
|
3135
|
-
*_param,
|
|
3136
|
-
_request_timeout=_request_timeout
|
|
3137
|
-
)
|
|
3138
|
-
response_data.read()
|
|
3139
|
-
return self.api_client.response_deserialize(
|
|
3140
|
-
response_data=response_data,
|
|
3141
|
-
response_types_map=_response_types_map,
|
|
3142
|
-
)
|
|
3143
|
-
|
|
3144
|
-
|
|
3145
|
-
@validate_call
|
|
3146
|
-
def dataset_dataset_id_get_without_preload_content(
|
|
3147
|
-
self,
|
|
3148
|
-
dataset_id: Annotated[StrictStr, Field(description="The id of the dataset to get.")],
|
|
3149
|
-
_request_timeout: Union[
|
|
3150
|
-
None,
|
|
3151
|
-
Annotated[StrictFloat, Field(gt=0)],
|
|
3152
|
-
Tuple[
|
|
3153
|
-
Annotated[StrictFloat, Field(gt=0)],
|
|
3154
|
-
Annotated[StrictFloat, Field(gt=0)]
|
|
3155
|
-
]
|
|
3156
|
-
] = None,
|
|
3157
|
-
_request_auth: Optional[Dict[StrictStr, Any]] = None,
|
|
3158
|
-
_content_type: Optional[StrictStr] = None,
|
|
3159
|
-
_headers: Optional[Dict[StrictStr, Any]] = None,
|
|
3160
|
-
_host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
|
|
3161
|
-
) -> RESTResponseType:
|
|
3162
|
-
"""Gets a dataset by its id.
|
|
3163
|
-
|
|
3164
|
-
|
|
3165
|
-
:param dataset_id: The id of the dataset to get. (required)
|
|
3166
|
-
:type dataset_id: str
|
|
3167
|
-
:param _request_timeout: timeout setting for this request. If one
|
|
3168
|
-
number provided, it will be total request
|
|
3169
|
-
timeout. It can also be a pair (tuple) of
|
|
3170
|
-
(connection, read) timeouts.
|
|
3171
|
-
:type _request_timeout: int, tuple(int, int), optional
|
|
3172
|
-
:param _request_auth: set to override the auth_settings for an a single
|
|
3173
|
-
request; this effectively ignores the
|
|
3174
|
-
authentication in the spec for a single request.
|
|
3175
|
-
:type _request_auth: dict, optional
|
|
3176
|
-
:param _content_type: force content-type for the request.
|
|
3177
|
-
:type _content_type: str, Optional
|
|
3178
|
-
:param _headers: set to override the headers for a single
|
|
3179
|
-
request; this effectively ignores the headers
|
|
3180
|
-
in the spec for a single request.
|
|
3181
|
-
:type _headers: dict, optional
|
|
3182
|
-
:param _host_index: set to override the host_index for a single
|
|
3183
|
-
request; this effectively ignores the host_index
|
|
3184
|
-
in the spec for a single request.
|
|
3185
|
-
:type _host_index: int, optional
|
|
3186
|
-
:return: Returns the result object.
|
|
3187
|
-
""" # noqa: E501
|
|
3188
|
-
|
|
3189
|
-
_param = self._dataset_dataset_id_get_serialize(
|
|
3190
|
-
dataset_id=dataset_id,
|
|
3191
|
-
_request_auth=_request_auth,
|
|
3192
|
-
_content_type=_content_type,
|
|
3193
|
-
_headers=_headers,
|
|
3194
|
-
_host_index=_host_index
|
|
3195
|
-
)
|
|
3196
|
-
|
|
3197
|
-
_response_types_map: Dict[str, Optional[str]] = {
|
|
3198
|
-
'200': "GetDatasetByIdResult",
|
|
3199
|
-
}
|
|
3200
|
-
response_data = self.api_client.call_api(
|
|
3201
|
-
*_param,
|
|
3202
|
-
_request_timeout=_request_timeout
|
|
3203
|
-
)
|
|
3204
|
-
return response_data.response
|
|
3205
|
-
|
|
3206
|
-
|
|
3207
|
-
def _dataset_dataset_id_get_serialize(
|
|
3208
|
-
self,
|
|
3209
|
-
dataset_id,
|
|
3210
|
-
_request_auth,
|
|
3211
|
-
_content_type,
|
|
3212
|
-
_headers,
|
|
3213
|
-
_host_index,
|
|
3214
|
-
) -> RequestSerialized:
|
|
3215
|
-
|
|
3216
|
-
_host = None
|
|
3217
|
-
|
|
3218
|
-
_collection_formats: Dict[str, str] = {
|
|
3219
|
-
}
|
|
3220
|
-
|
|
3221
|
-
_path_params: Dict[str, str] = {}
|
|
3222
|
-
_query_params: List[Tuple[str, str]] = []
|
|
3223
|
-
_header_params: Dict[str, Optional[str]] = _headers or {}
|
|
3224
|
-
_form_params: List[Tuple[str, str]] = []
|
|
3225
|
-
_files: Dict[
|
|
3226
|
-
str, Union[str, bytes, List[str], List[bytes], List[Tuple[str, bytes]]]
|
|
3227
|
-
] = {}
|
|
3228
|
-
_body_params: Optional[bytes] = None
|
|
3229
|
-
|
|
3230
|
-
# process the path parameters
|
|
3231
|
-
if dataset_id is not None:
|
|
3232
|
-
_path_params['datasetId'] = dataset_id
|
|
3233
|
-
# process the query parameters
|
|
3234
|
-
# process the header parameters
|
|
3235
|
-
# process the form parameters
|
|
3236
|
-
# process the body parameter
|
|
3237
|
-
|
|
3238
|
-
|
|
3239
|
-
# set the HTTP header `Accept`
|
|
3240
|
-
if 'Accept' not in _header_params:
|
|
3241
|
-
_header_params['Accept'] = self.api_client.select_header_accept(
|
|
3242
|
-
[
|
|
3243
|
-
'text/plain',
|
|
3244
|
-
'application/json',
|
|
3245
|
-
'text/json'
|
|
3246
|
-
]
|
|
3247
|
-
)
|
|
3248
|
-
|
|
3249
|
-
|
|
3250
|
-
# authentication setting
|
|
3251
|
-
_auth_settings: List[str] = [
|
|
3252
|
-
'bearer',
|
|
3253
|
-
'oauth2'
|
|
3254
|
-
]
|
|
3255
|
-
|
|
3256
|
-
return self.api_client.param_serialize(
|
|
3257
|
-
method='GET',
|
|
3258
|
-
resource_path='/dataset/{datasetId}',
|
|
3259
|
-
path_params=_path_params,
|
|
3260
|
-
query_params=_query_params,
|
|
3261
|
-
header_params=_header_params,
|
|
3262
|
-
body=_body_params,
|
|
3263
|
-
post_params=_form_params,
|
|
3264
|
-
files=_files,
|
|
3265
|
-
auth_settings=_auth_settings,
|
|
3266
|
-
collection_formats=_collection_formats,
|
|
3267
|
-
_host=_host,
|
|
3268
|
-
_request_auth=_request_auth
|
|
3269
|
-
)
|
|
3270
|
-
|
|
3271
|
-
|
|
3272
|
-
|
|
3273
|
-
|
|
3274
|
-
@validate_call
|
|
3275
|
-
def dataset_dataset_id_name_patch(
|
|
3276
|
-
self,
|
|
3277
|
-
dataset_id: Annotated[StrictStr, Field(description="The id of the dataset to update.")],
|
|
3278
|
-
update_dataset_name_model: Annotated[Optional[UpdateDatasetNameModel], Field(description="The body of the request.")] = None,
|
|
3279
|
-
_request_timeout: Union[
|
|
3280
|
-
None,
|
|
3281
|
-
Annotated[StrictFloat, Field(gt=0)],
|
|
3282
|
-
Tuple[
|
|
3283
|
-
Annotated[StrictFloat, Field(gt=0)],
|
|
3284
|
-
Annotated[StrictFloat, Field(gt=0)]
|
|
3285
|
-
]
|
|
3286
|
-
] = None,
|
|
3287
|
-
_request_auth: Optional[Dict[StrictStr, Any]] = None,
|
|
3288
|
-
_content_type: Optional[StrictStr] = None,
|
|
3289
|
-
_headers: Optional[Dict[StrictStr, Any]] = None,
|
|
3290
|
-
_host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
|
|
3291
|
-
) -> None:
|
|
3292
|
-
"""Updates the name of a dataset.
|
|
3293
|
-
|
|
3294
|
-
|
|
3295
|
-
:param dataset_id: The id of the dataset to update. (required)
|
|
3296
|
-
:type dataset_id: str
|
|
3297
|
-
:param update_dataset_name_model: The body of the request.
|
|
3298
|
-
:type update_dataset_name_model: UpdateDatasetNameModel
|
|
3299
|
-
:param _request_timeout: timeout setting for this request. If one
|
|
3300
|
-
number provided, it will be total request
|
|
3301
|
-
timeout. It can also be a pair (tuple) of
|
|
3302
|
-
(connection, read) timeouts.
|
|
3303
|
-
:type _request_timeout: int, tuple(int, int), optional
|
|
3304
|
-
:param _request_auth: set to override the auth_settings for an a single
|
|
3305
|
-
request; this effectively ignores the
|
|
3306
|
-
authentication in the spec for a single request.
|
|
3307
|
-
:type _request_auth: dict, optional
|
|
3308
|
-
:param _content_type: force content-type for the request.
|
|
3309
|
-
:type _content_type: str, Optional
|
|
3310
|
-
:param _headers: set to override the headers for a single
|
|
3311
|
-
request; this effectively ignores the headers
|
|
3312
|
-
in the spec for a single request.
|
|
3313
|
-
:type _headers: dict, optional
|
|
3314
|
-
:param _host_index: set to override the host_index for a single
|
|
3315
|
-
request; this effectively ignores the host_index
|
|
3316
|
-
in the spec for a single request.
|
|
3317
|
-
:type _host_index: int, optional
|
|
3318
|
-
:return: Returns the result object.
|
|
3319
|
-
""" # noqa: E501
|
|
3320
|
-
|
|
3321
|
-
_param = self._dataset_dataset_id_name_patch_serialize(
|
|
3322
|
-
dataset_id=dataset_id,
|
|
3323
|
-
update_dataset_name_model=update_dataset_name_model,
|
|
3324
|
-
_request_auth=_request_auth,
|
|
3325
|
-
_content_type=_content_type,
|
|
3326
|
-
_headers=_headers,
|
|
3327
|
-
_host_index=_host_index
|
|
3328
|
-
)
|
|
3329
|
-
|
|
3330
|
-
_response_types_map: Dict[str, Optional[str]] = {
|
|
3331
|
-
'204': None,
|
|
3332
|
-
}
|
|
3333
|
-
response_data = self.api_client.call_api(
|
|
3334
|
-
*_param,
|
|
3335
|
-
_request_timeout=_request_timeout
|
|
3336
|
-
)
|
|
3337
|
-
response_data.read()
|
|
3338
|
-
return self.api_client.response_deserialize(
|
|
3339
|
-
response_data=response_data,
|
|
3340
|
-
response_types_map=_response_types_map,
|
|
3341
|
-
).data
|
|
3342
|
-
|
|
3343
|
-
|
|
3344
|
-
@validate_call
|
|
3345
|
-
def dataset_dataset_id_name_patch_with_http_info(
|
|
3346
|
-
self,
|
|
3347
|
-
dataset_id: Annotated[StrictStr, Field(description="The id of the dataset to update.")],
|
|
3348
|
-
update_dataset_name_model: Annotated[Optional[UpdateDatasetNameModel], Field(description="The body of the request.")] = None,
|
|
3349
|
-
_request_timeout: Union[
|
|
3350
|
-
None,
|
|
3351
|
-
Annotated[StrictFloat, Field(gt=0)],
|
|
3352
|
-
Tuple[
|
|
3353
|
-
Annotated[StrictFloat, Field(gt=0)],
|
|
3354
|
-
Annotated[StrictFloat, Field(gt=0)]
|
|
3355
|
-
]
|
|
3356
|
-
] = None,
|
|
3357
|
-
_request_auth: Optional[Dict[StrictStr, Any]] = None,
|
|
3358
|
-
_content_type: Optional[StrictStr] = None,
|
|
3359
|
-
_headers: Optional[Dict[StrictStr, Any]] = None,
|
|
3360
|
-
_host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
|
|
3361
|
-
) -> ApiResponse[None]:
|
|
3362
|
-
"""Updates the name of a dataset.
|
|
3363
|
-
|
|
3364
|
-
|
|
3365
|
-
:param dataset_id: The id of the dataset to update. (required)
|
|
3366
|
-
:type dataset_id: str
|
|
3367
|
-
:param update_dataset_name_model: The body of the request.
|
|
3368
|
-
:type update_dataset_name_model: UpdateDatasetNameModel
|
|
3369
|
-
:param _request_timeout: timeout setting for this request. If one
|
|
3370
|
-
number provided, it will be total request
|
|
3371
|
-
timeout. It can also be a pair (tuple) of
|
|
3372
|
-
(connection, read) timeouts.
|
|
3373
|
-
:type _request_timeout: int, tuple(int, int), optional
|
|
3374
|
-
:param _request_auth: set to override the auth_settings for an a single
|
|
3375
|
-
request; this effectively ignores the
|
|
3376
|
-
authentication in the spec for a single request.
|
|
3377
|
-
:type _request_auth: dict, optional
|
|
3378
|
-
:param _content_type: force content-type for the request.
|
|
3379
|
-
:type _content_type: str, Optional
|
|
3380
|
-
:param _headers: set to override the headers for a single
|
|
3381
|
-
request; this effectively ignores the headers
|
|
3382
|
-
in the spec for a single request.
|
|
3383
|
-
:type _headers: dict, optional
|
|
3384
|
-
:param _host_index: set to override the host_index for a single
|
|
3385
|
-
request; this effectively ignores the host_index
|
|
3386
|
-
in the spec for a single request.
|
|
3387
|
-
:type _host_index: int, optional
|
|
3388
|
-
:return: Returns the result object.
|
|
3389
|
-
""" # noqa: E501
|
|
3390
|
-
|
|
3391
|
-
_param = self._dataset_dataset_id_name_patch_serialize(
|
|
3392
|
-
dataset_id=dataset_id,
|
|
3393
|
-
update_dataset_name_model=update_dataset_name_model,
|
|
3394
|
-
_request_auth=_request_auth,
|
|
3395
|
-
_content_type=_content_type,
|
|
3396
|
-
_headers=_headers,
|
|
3397
|
-
_host_index=_host_index
|
|
3398
|
-
)
|
|
3399
|
-
|
|
3400
|
-
_response_types_map: Dict[str, Optional[str]] = {
|
|
3401
|
-
'204': None,
|
|
3402
|
-
}
|
|
3403
|
-
response_data = self.api_client.call_api(
|
|
3404
|
-
*_param,
|
|
3405
|
-
_request_timeout=_request_timeout
|
|
3406
|
-
)
|
|
3407
|
-
response_data.read()
|
|
3408
|
-
return self.api_client.response_deserialize(
|
|
3409
|
-
response_data=response_data,
|
|
3410
|
-
response_types_map=_response_types_map,
|
|
3411
|
-
)
|
|
3412
|
-
|
|
3413
|
-
|
|
3414
|
-
@validate_call
|
|
3415
|
-
def dataset_dataset_id_name_patch_without_preload_content(
|
|
3416
|
-
self,
|
|
3417
|
-
dataset_id: Annotated[StrictStr, Field(description="The id of the dataset to update.")],
|
|
3418
|
-
update_dataset_name_model: Annotated[Optional[UpdateDatasetNameModel], Field(description="The body of the request.")] = None,
|
|
3419
|
-
_request_timeout: Union[
|
|
3420
|
-
None,
|
|
3421
|
-
Annotated[StrictFloat, Field(gt=0)],
|
|
3422
|
-
Tuple[
|
|
3423
|
-
Annotated[StrictFloat, Field(gt=0)],
|
|
3424
|
-
Annotated[StrictFloat, Field(gt=0)]
|
|
3425
|
-
]
|
|
3426
|
-
] = None,
|
|
3427
|
-
_request_auth: Optional[Dict[StrictStr, Any]] = None,
|
|
3428
|
-
_content_type: Optional[StrictStr] = None,
|
|
3429
|
-
_headers: Optional[Dict[StrictStr, Any]] = None,
|
|
3430
|
-
_host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
|
|
3431
|
-
) -> RESTResponseType:
|
|
3432
|
-
"""Updates the name of a dataset.
|
|
3433
|
-
|
|
3434
|
-
|
|
3435
|
-
:param dataset_id: The id of the dataset to update. (required)
|
|
3436
|
-
:type dataset_id: str
|
|
3437
|
-
:param update_dataset_name_model: The body of the request.
|
|
3438
|
-
:type update_dataset_name_model: UpdateDatasetNameModel
|
|
3439
|
-
:param _request_timeout: timeout setting for this request. If one
|
|
3440
|
-
number provided, it will be total request
|
|
3441
|
-
timeout. It can also be a pair (tuple) of
|
|
3442
|
-
(connection, read) timeouts.
|
|
3443
|
-
:type _request_timeout: int, tuple(int, int), optional
|
|
3444
|
-
:param _request_auth: set to override the auth_settings for an a single
|
|
3445
|
-
request; this effectively ignores the
|
|
3446
|
-
authentication in the spec for a single request.
|
|
3447
|
-
:type _request_auth: dict, optional
|
|
3448
|
-
:param _content_type: force content-type for the request.
|
|
3449
|
-
:type _content_type: str, Optional
|
|
3450
|
-
:param _headers: set to override the headers for a single
|
|
3451
|
-
request; this effectively ignores the headers
|
|
3452
|
-
in the spec for a single request.
|
|
3453
|
-
:type _headers: dict, optional
|
|
3454
|
-
:param _host_index: set to override the host_index for a single
|
|
3455
|
-
request; this effectively ignores the host_index
|
|
3456
|
-
in the spec for a single request.
|
|
3457
|
-
:type _host_index: int, optional
|
|
3458
|
-
:return: Returns the result object.
|
|
3459
|
-
""" # noqa: E501
|
|
3460
|
-
|
|
3461
|
-
_param = self._dataset_dataset_id_name_patch_serialize(
|
|
3462
|
-
dataset_id=dataset_id,
|
|
3463
|
-
update_dataset_name_model=update_dataset_name_model,
|
|
3464
|
-
_request_auth=_request_auth,
|
|
3465
|
-
_content_type=_content_type,
|
|
3466
|
-
_headers=_headers,
|
|
3467
|
-
_host_index=_host_index
|
|
3468
|
-
)
|
|
3469
|
-
|
|
3470
|
-
_response_types_map: Dict[str, Optional[str]] = {
|
|
3471
|
-
'204': None,
|
|
3472
|
-
}
|
|
3473
|
-
response_data = self.api_client.call_api(
|
|
3474
|
-
*_param,
|
|
3475
|
-
_request_timeout=_request_timeout
|
|
3476
|
-
)
|
|
3477
|
-
return response_data.response
|
|
3478
|
-
|
|
3479
|
-
|
|
3480
|
-
def _dataset_dataset_id_name_patch_serialize(
|
|
3481
|
-
self,
|
|
3482
|
-
dataset_id,
|
|
3483
|
-
update_dataset_name_model,
|
|
3484
|
-
_request_auth,
|
|
3485
|
-
_content_type,
|
|
3486
|
-
_headers,
|
|
3487
|
-
_host_index,
|
|
3488
|
-
) -> RequestSerialized:
|
|
3489
|
-
|
|
3490
|
-
_host = None
|
|
3491
|
-
|
|
3492
|
-
_collection_formats: Dict[str, str] = {
|
|
3493
|
-
}
|
|
3494
|
-
|
|
3495
|
-
_path_params: Dict[str, str] = {}
|
|
3496
|
-
_query_params: List[Tuple[str, str]] = []
|
|
3497
|
-
_header_params: Dict[str, Optional[str]] = _headers or {}
|
|
3498
|
-
_form_params: List[Tuple[str, str]] = []
|
|
3499
|
-
_files: Dict[
|
|
3500
|
-
str, Union[str, bytes, List[str], List[bytes], List[Tuple[str, bytes]]]
|
|
3501
|
-
] = {}
|
|
3502
|
-
_body_params: Optional[bytes] = None
|
|
3503
|
-
|
|
3504
|
-
# process the path parameters
|
|
3505
|
-
if dataset_id is not None:
|
|
3506
|
-
_path_params['datasetId'] = dataset_id
|
|
3507
|
-
# process the query parameters
|
|
3508
|
-
# process the header parameters
|
|
3509
|
-
# process the form parameters
|
|
3510
|
-
# process the body parameter
|
|
3511
|
-
if update_dataset_name_model is not None:
|
|
3512
|
-
_body_params = update_dataset_name_model
|
|
3513
|
-
|
|
3514
|
-
|
|
3515
|
-
|
|
3516
|
-
# set the HTTP header `Content-Type`
|
|
3517
|
-
if _content_type:
|
|
3518
|
-
_header_params['Content-Type'] = _content_type
|
|
3519
|
-
else:
|
|
3520
|
-
_default_content_type = (
|
|
3521
|
-
self.api_client.select_header_content_type(
|
|
3522
|
-
[
|
|
3523
|
-
'application/json',
|
|
3524
|
-
'text/json',
|
|
3525
|
-
'application/*+json'
|
|
3526
|
-
]
|
|
3527
|
-
)
|
|
3528
|
-
)
|
|
3529
|
-
if _default_content_type is not None:
|
|
3530
|
-
_header_params['Content-Type'] = _default_content_type
|
|
3531
|
-
|
|
3532
|
-
# authentication setting
|
|
3533
|
-
_auth_settings: List[str] = [
|
|
3534
|
-
'bearer',
|
|
3535
|
-
'oauth2'
|
|
3536
|
-
]
|
|
3537
|
-
|
|
3538
|
-
return self.api_client.param_serialize(
|
|
3539
|
-
method='PATCH',
|
|
3540
|
-
resource_path='/dataset/{datasetId}/name',
|
|
3541
|
-
path_params=_path_params,
|
|
3542
|
-
query_params=_query_params,
|
|
3543
|
-
header_params=_header_params,
|
|
3544
|
-
body=_body_params,
|
|
3545
|
-
post_params=_form_params,
|
|
3546
|
-
files=_files,
|
|
3547
|
-
auth_settings=_auth_settings,
|
|
3548
|
-
collection_formats=_collection_formats,
|
|
3549
|
-
_host=_host,
|
|
3550
|
-
_request_auth=_request_auth
|
|
3551
|
-
)
|
|
3552
|
-
|
|
3553
|
-
|
|
3554
|
-
|
|
3555
|
-
|
|
3556
|
-
@validate_call
|
|
3557
|
-
def dataset_dataset_id_progress_get(
|
|
3558
|
-
self,
|
|
3559
|
-
dataset_id: Annotated[StrictStr, Field(description="The id of the dataset to get the progress of.")],
|
|
3560
|
-
_request_timeout: Union[
|
|
3561
|
-
None,
|
|
3562
|
-
Annotated[StrictFloat, Field(gt=0)],
|
|
3563
|
-
Tuple[
|
|
3564
|
-
Annotated[StrictFloat, Field(gt=0)],
|
|
3565
|
-
Annotated[StrictFloat, Field(gt=0)]
|
|
3566
|
-
]
|
|
3567
|
-
] = None,
|
|
3568
|
-
_request_auth: Optional[Dict[StrictStr, Any]] = None,
|
|
3569
|
-
_content_type: Optional[StrictStr] = None,
|
|
3570
|
-
_headers: Optional[Dict[StrictStr, Any]] = None,
|
|
3571
|
-
_host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
|
|
3572
|
-
) -> GetDatasetProgressResult:
|
|
3573
|
-
"""Gets the upload progress of a dataset.
|
|
3574
|
-
|
|
3575
|
-
|
|
3576
|
-
:param dataset_id: The id of the dataset to get the progress of. (required)
|
|
3577
|
-
:type dataset_id: str
|
|
3578
|
-
:param _request_timeout: timeout setting for this request. If one
|
|
3579
|
-
number provided, it will be total request
|
|
3580
|
-
timeout. It can also be a pair (tuple) of
|
|
3581
|
-
(connection, read) timeouts.
|
|
3582
|
-
:type _request_timeout: int, tuple(int, int), optional
|
|
3583
|
-
:param _request_auth: set to override the auth_settings for an a single
|
|
3584
|
-
request; this effectively ignores the
|
|
3585
|
-
authentication in the spec for a single request.
|
|
3586
|
-
:type _request_auth: dict, optional
|
|
3587
|
-
:param _content_type: force content-type for the request.
|
|
3588
|
-
:type _content_type: str, Optional
|
|
3589
|
-
:param _headers: set to override the headers for a single
|
|
3590
|
-
request; this effectively ignores the headers
|
|
3591
|
-
in the spec for a single request.
|
|
3592
|
-
:type _headers: dict, optional
|
|
3593
|
-
:param _host_index: set to override the host_index for a single
|
|
3594
|
-
request; this effectively ignores the host_index
|
|
3595
|
-
in the spec for a single request.
|
|
3596
|
-
:type _host_index: int, optional
|
|
3597
|
-
:return: Returns the result object.
|
|
3598
|
-
""" # noqa: E501
|
|
3599
|
-
|
|
3600
|
-
_param = self._dataset_dataset_id_progress_get_serialize(
|
|
3601
|
-
dataset_id=dataset_id,
|
|
3602
|
-
_request_auth=_request_auth,
|
|
3603
|
-
_content_type=_content_type,
|
|
3604
|
-
_headers=_headers,
|
|
3605
|
-
_host_index=_host_index
|
|
3606
|
-
)
|
|
3607
|
-
|
|
3608
|
-
_response_types_map: Dict[str, Optional[str]] = {
|
|
3609
|
-
'200': "GetDatasetProgressResult",
|
|
3610
|
-
}
|
|
3611
|
-
response_data = self.api_client.call_api(
|
|
3612
|
-
*_param,
|
|
3613
|
-
_request_timeout=_request_timeout
|
|
3614
|
-
)
|
|
3615
|
-
response_data.read()
|
|
3616
|
-
return self.api_client.response_deserialize(
|
|
3617
|
-
response_data=response_data,
|
|
3618
|
-
response_types_map=_response_types_map,
|
|
3619
|
-
).data
|
|
3620
|
-
|
|
3621
|
-
|
|
3622
|
-
@validate_call
|
|
3623
|
-
def dataset_dataset_id_progress_get_with_http_info(
|
|
3624
|
-
self,
|
|
3625
|
-
dataset_id: Annotated[StrictStr, Field(description="The id of the dataset to get the progress of.")],
|
|
3626
|
-
_request_timeout: Union[
|
|
3627
|
-
None,
|
|
3628
|
-
Annotated[StrictFloat, Field(gt=0)],
|
|
3629
|
-
Tuple[
|
|
3630
|
-
Annotated[StrictFloat, Field(gt=0)],
|
|
3631
|
-
Annotated[StrictFloat, Field(gt=0)]
|
|
3632
|
-
]
|
|
3633
|
-
] = None,
|
|
3634
|
-
_request_auth: Optional[Dict[StrictStr, Any]] = None,
|
|
3635
|
-
_content_type: Optional[StrictStr] = None,
|
|
3636
|
-
_headers: Optional[Dict[StrictStr, Any]] = None,
|
|
3637
|
-
_host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
|
|
3638
|
-
) -> ApiResponse[GetDatasetProgressResult]:
|
|
3639
|
-
"""Gets the upload progress of a dataset.
|
|
3640
|
-
|
|
3641
|
-
|
|
3642
|
-
:param dataset_id: The id of the dataset to get the progress of. (required)
|
|
3643
|
-
:type dataset_id: str
|
|
3644
|
-
:param _request_timeout: timeout setting for this request. If one
|
|
3645
|
-
number provided, it will be total request
|
|
3646
|
-
timeout. It can also be a pair (tuple) of
|
|
3647
|
-
(connection, read) timeouts.
|
|
3648
|
-
:type _request_timeout: int, tuple(int, int), optional
|
|
3649
|
-
:param _request_auth: set to override the auth_settings for an a single
|
|
3650
|
-
request; this effectively ignores the
|
|
3651
|
-
authentication in the spec for a single request.
|
|
3652
|
-
:type _request_auth: dict, optional
|
|
3653
|
-
:param _content_type: force content-type for the request.
|
|
3654
|
-
:type _content_type: str, Optional
|
|
3655
|
-
:param _headers: set to override the headers for a single
|
|
3656
|
-
request; this effectively ignores the headers
|
|
3657
|
-
in the spec for a single request.
|
|
3658
|
-
:type _headers: dict, optional
|
|
3659
|
-
:param _host_index: set to override the host_index for a single
|
|
3660
|
-
request; this effectively ignores the host_index
|
|
3661
|
-
in the spec for a single request.
|
|
3662
|
-
:type _host_index: int, optional
|
|
3663
|
-
:return: Returns the result object.
|
|
3664
|
-
""" # noqa: E501
|
|
3665
|
-
|
|
3666
|
-
_param = self._dataset_dataset_id_progress_get_serialize(
|
|
3667
|
-
dataset_id=dataset_id,
|
|
3668
|
-
_request_auth=_request_auth,
|
|
3669
|
-
_content_type=_content_type,
|
|
3670
|
-
_headers=_headers,
|
|
3671
|
-
_host_index=_host_index
|
|
3672
|
-
)
|
|
3673
|
-
|
|
3674
|
-
_response_types_map: Dict[str, Optional[str]] = {
|
|
3675
|
-
'200': "GetDatasetProgressResult",
|
|
3676
|
-
}
|
|
3677
|
-
response_data = self.api_client.call_api(
|
|
3678
|
-
*_param,
|
|
3679
|
-
_request_timeout=_request_timeout
|
|
3680
|
-
)
|
|
3681
|
-
response_data.read()
|
|
3682
|
-
return self.api_client.response_deserialize(
|
|
3683
|
-
response_data=response_data,
|
|
3684
|
-
response_types_map=_response_types_map,
|
|
3685
|
-
)
|
|
3686
|
-
|
|
3687
|
-
|
|
3688
|
-
@validate_call
|
|
3689
|
-
def dataset_dataset_id_progress_get_without_preload_content(
|
|
3690
|
-
self,
|
|
3691
|
-
dataset_id: Annotated[StrictStr, Field(description="The id of the dataset to get the progress of.")],
|
|
3692
|
-
_request_timeout: Union[
|
|
3693
|
-
None,
|
|
3694
|
-
Annotated[StrictFloat, Field(gt=0)],
|
|
3695
|
-
Tuple[
|
|
3696
|
-
Annotated[StrictFloat, Field(gt=0)],
|
|
3697
|
-
Annotated[StrictFloat, Field(gt=0)]
|
|
3698
|
-
]
|
|
3699
|
-
] = None,
|
|
3700
|
-
_request_auth: Optional[Dict[StrictStr, Any]] = None,
|
|
3701
|
-
_content_type: Optional[StrictStr] = None,
|
|
3702
|
-
_headers: Optional[Dict[StrictStr, Any]] = None,
|
|
3703
|
-
_host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
|
|
3704
|
-
) -> RESTResponseType:
|
|
3705
|
-
"""Gets the upload progress of a dataset.
|
|
3706
|
-
|
|
3707
|
-
|
|
3708
|
-
:param dataset_id: The id of the dataset to get the progress of. (required)
|
|
3709
|
-
:type dataset_id: str
|
|
3710
|
-
:param _request_timeout: timeout setting for this request. If one
|
|
3711
|
-
number provided, it will be total request
|
|
3712
|
-
timeout. It can also be a pair (tuple) of
|
|
3713
|
-
(connection, read) timeouts.
|
|
3714
|
-
:type _request_timeout: int, tuple(int, int), optional
|
|
3715
|
-
:param _request_auth: set to override the auth_settings for an a single
|
|
3716
|
-
request; this effectively ignores the
|
|
3717
|
-
authentication in the spec for a single request.
|
|
3718
|
-
:type _request_auth: dict, optional
|
|
3719
|
-
:param _content_type: force content-type for the request.
|
|
3720
|
-
:type _content_type: str, Optional
|
|
3721
|
-
:param _headers: set to override the headers for a single
|
|
3722
|
-
request; this effectively ignores the headers
|
|
3723
|
-
in the spec for a single request.
|
|
3724
|
-
:type _headers: dict, optional
|
|
3725
|
-
:param _host_index: set to override the host_index for a single
|
|
3726
|
-
request; this effectively ignores the host_index
|
|
3727
|
-
in the spec for a single request.
|
|
3728
|
-
:type _host_index: int, optional
|
|
3729
|
-
:return: Returns the result object.
|
|
3730
|
-
""" # noqa: E501
|
|
3731
|
-
|
|
3732
|
-
_param = self._dataset_dataset_id_progress_get_serialize(
|
|
3733
|
-
dataset_id=dataset_id,
|
|
3734
|
-
_request_auth=_request_auth,
|
|
3735
|
-
_content_type=_content_type,
|
|
3736
|
-
_headers=_headers,
|
|
3737
|
-
_host_index=_host_index
|
|
3738
|
-
)
|
|
3739
|
-
|
|
3740
|
-
_response_types_map: Dict[str, Optional[str]] = {
|
|
3741
|
-
'200': "GetDatasetProgressResult",
|
|
3742
|
-
}
|
|
3743
|
-
response_data = self.api_client.call_api(
|
|
3744
|
-
*_param,
|
|
3745
|
-
_request_timeout=_request_timeout
|
|
3746
|
-
)
|
|
3747
|
-
return response_data.response
|
|
3748
|
-
|
|
3749
|
-
|
|
3750
|
-
def _dataset_dataset_id_progress_get_serialize(
|
|
3751
|
-
self,
|
|
3752
|
-
dataset_id,
|
|
3753
|
-
_request_auth,
|
|
3754
|
-
_content_type,
|
|
3755
|
-
_headers,
|
|
3756
|
-
_host_index,
|
|
3757
|
-
) -> RequestSerialized:
|
|
3758
|
-
|
|
3759
|
-
_host = None
|
|
3760
|
-
|
|
3761
|
-
_collection_formats: Dict[str, str] = {
|
|
3762
|
-
}
|
|
3763
|
-
|
|
3764
|
-
_path_params: Dict[str, str] = {}
|
|
3765
|
-
_query_params: List[Tuple[str, str]] = []
|
|
3766
|
-
_header_params: Dict[str, Optional[str]] = _headers or {}
|
|
3767
|
-
_form_params: List[Tuple[str, str]] = []
|
|
3768
|
-
_files: Dict[
|
|
3769
|
-
str, Union[str, bytes, List[str], List[bytes], List[Tuple[str, bytes]]]
|
|
3770
|
-
] = {}
|
|
3771
|
-
_body_params: Optional[bytes] = None
|
|
3772
|
-
|
|
3773
|
-
# process the path parameters
|
|
3774
|
-
if dataset_id is not None:
|
|
3775
|
-
_path_params['datasetId'] = dataset_id
|
|
3776
|
-
# process the query parameters
|
|
3777
|
-
# process the header parameters
|
|
3778
|
-
# process the form parameters
|
|
3779
|
-
# process the body parameter
|
|
3780
|
-
|
|
3781
|
-
|
|
3782
|
-
# set the HTTP header `Accept`
|
|
3783
|
-
if 'Accept' not in _header_params:
|
|
3784
|
-
_header_params['Accept'] = self.api_client.select_header_accept(
|
|
3785
|
-
[
|
|
3786
|
-
'text/plain',
|
|
3787
|
-
'application/json',
|
|
3788
|
-
'text/json'
|
|
3789
|
-
]
|
|
3790
|
-
)
|
|
3791
|
-
|
|
3792
|
-
|
|
3793
|
-
# authentication setting
|
|
3794
|
-
_auth_settings: List[str] = [
|
|
3795
|
-
'bearer',
|
|
3796
|
-
'oauth2'
|
|
3797
|
-
]
|
|
3798
|
-
|
|
3799
|
-
return self.api_client.param_serialize(
|
|
3800
|
-
method='GET',
|
|
3801
|
-
resource_path='/dataset/{datasetId}/progress',
|
|
3802
|
-
path_params=_path_params,
|
|
3803
|
-
query_params=_query_params,
|
|
3804
|
-
header_params=_header_params,
|
|
3805
|
-
body=_body_params,
|
|
3806
|
-
post_params=_form_params,
|
|
3807
|
-
files=_files,
|
|
3808
|
-
auth_settings=_auth_settings,
|
|
3809
|
-
collection_formats=_collection_formats,
|
|
3810
|
-
_host=_host,
|
|
3811
|
-
_request_auth=_request_auth
|
|
3812
|
-
)
|
|
3813
|
-
|
|
3814
|
-
|
|
3815
|
-
|
|
3816
|
-
|
|
3817
|
-
@validate_call
|
|
3818
|
-
def dataset_getbyid_get(
|
|
3819
|
-
self,
|
|
3820
|
-
id: Annotated[Optional[StrictStr], Field(description="The id of the dataset to get.")] = None,
|
|
3821
|
-
_request_timeout: Union[
|
|
3822
|
-
None,
|
|
3823
|
-
Annotated[StrictFloat, Field(gt=0)],
|
|
3824
|
-
Tuple[
|
|
3825
|
-
Annotated[StrictFloat, Field(gt=0)],
|
|
3826
|
-
Annotated[StrictFloat, Field(gt=0)]
|
|
3827
|
-
]
|
|
3828
|
-
] = None,
|
|
3829
|
-
_request_auth: Optional[Dict[StrictStr, Any]] = None,
|
|
3830
|
-
_content_type: Optional[StrictStr] = None,
|
|
3831
|
-
_headers: Optional[Dict[StrictStr, Any]] = None,
|
|
3832
|
-
_host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
|
|
3833
|
-
) -> GetDatasetByIdResult:
|
|
3834
|
-
"""(Deprecated) Gets a dataset by its id.
|
|
3835
|
-
|
|
3836
|
-
|
|
3837
|
-
:param id: The id of the dataset to get.
|
|
3838
|
-
:type id: str
|
|
3839
|
-
:param _request_timeout: timeout setting for this request. If one
|
|
3840
|
-
number provided, it will be total request
|
|
3841
|
-
timeout. It can also be a pair (tuple) of
|
|
3842
|
-
(connection, read) timeouts.
|
|
3843
|
-
:type _request_timeout: int, tuple(int, int), optional
|
|
3844
|
-
:param _request_auth: set to override the auth_settings for an a single
|
|
3845
|
-
request; this effectively ignores the
|
|
3846
|
-
authentication in the spec for a single request.
|
|
3847
|
-
:type _request_auth: dict, optional
|
|
3848
|
-
:param _content_type: force content-type for the request.
|
|
3849
|
-
:type _content_type: str, Optional
|
|
3850
|
-
:param _headers: set to override the headers for a single
|
|
3851
|
-
request; this effectively ignores the headers
|
|
3852
|
-
in the spec for a single request.
|
|
3853
|
-
:type _headers: dict, optional
|
|
3854
|
-
:param _host_index: set to override the host_index for a single
|
|
3855
|
-
request; this effectively ignores the host_index
|
|
3856
|
-
in the spec for a single request.
|
|
3857
|
-
:type _host_index: int, optional
|
|
3858
|
-
:return: Returns the result object.
|
|
3859
|
-
""" # noqa: E501
|
|
3860
|
-
warnings.warn("GET /dataset/getbyid is deprecated.", DeprecationWarning)
|
|
3861
|
-
|
|
3862
|
-
_param = self._dataset_getbyid_get_serialize(
|
|
3863
|
-
id=id,
|
|
3864
|
-
_request_auth=_request_auth,
|
|
3865
|
-
_content_type=_content_type,
|
|
3866
|
-
_headers=_headers,
|
|
3867
|
-
_host_index=_host_index
|
|
3868
|
-
)
|
|
3869
|
-
|
|
3870
|
-
_response_types_map: Dict[str, Optional[str]] = {
|
|
3871
|
-
'200': "GetDatasetByIdResult",
|
|
3872
|
-
}
|
|
3873
|
-
response_data = self.api_client.call_api(
|
|
3874
|
-
*_param,
|
|
3875
|
-
_request_timeout=_request_timeout
|
|
3876
|
-
)
|
|
3877
|
-
response_data.read()
|
|
3878
|
-
return self.api_client.response_deserialize(
|
|
3879
|
-
response_data=response_data,
|
|
3880
|
-
response_types_map=_response_types_map,
|
|
3881
|
-
).data
|
|
3882
|
-
|
|
3883
|
-
|
|
3884
|
-
@validate_call
|
|
3885
|
-
def dataset_getbyid_get_with_http_info(
|
|
3886
|
-
self,
|
|
3887
|
-
id: Annotated[Optional[StrictStr], Field(description="The id of the dataset to get.")] = None,
|
|
3888
|
-
_request_timeout: Union[
|
|
3889
|
-
None,
|
|
3890
|
-
Annotated[StrictFloat, Field(gt=0)],
|
|
3891
|
-
Tuple[
|
|
3892
|
-
Annotated[StrictFloat, Field(gt=0)],
|
|
3893
|
-
Annotated[StrictFloat, Field(gt=0)]
|
|
3894
|
-
]
|
|
3895
|
-
] = None,
|
|
3896
|
-
_request_auth: Optional[Dict[StrictStr, Any]] = None,
|
|
3897
|
-
_content_type: Optional[StrictStr] = None,
|
|
3898
|
-
_headers: Optional[Dict[StrictStr, Any]] = None,
|
|
3899
|
-
_host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
|
|
3900
|
-
) -> ApiResponse[GetDatasetByIdResult]:
|
|
3901
|
-
"""(Deprecated) Gets a dataset by its id.
|
|
3902
|
-
|
|
3903
|
-
|
|
3904
|
-
:param id: The id of the dataset to get.
|
|
3905
|
-
:type id: str
|
|
3906
|
-
:param _request_timeout: timeout setting for this request. If one
|
|
3907
|
-
number provided, it will be total request
|
|
3908
|
-
timeout. It can also be a pair (tuple) of
|
|
3909
|
-
(connection, read) timeouts.
|
|
3910
|
-
:type _request_timeout: int, tuple(int, int), optional
|
|
3911
|
-
:param _request_auth: set to override the auth_settings for an a single
|
|
3912
|
-
request; this effectively ignores the
|
|
3913
|
-
authentication in the spec for a single request.
|
|
3914
|
-
:type _request_auth: dict, optional
|
|
3915
|
-
:param _content_type: force content-type for the request.
|
|
3916
|
-
:type _content_type: str, Optional
|
|
3917
|
-
:param _headers: set to override the headers for a single
|
|
3918
|
-
request; this effectively ignores the headers
|
|
3919
|
-
in the spec for a single request.
|
|
3920
|
-
:type _headers: dict, optional
|
|
3921
|
-
:param _host_index: set to override the host_index for a single
|
|
3922
|
-
request; this effectively ignores the host_index
|
|
3923
|
-
in the spec for a single request.
|
|
3924
|
-
:type _host_index: int, optional
|
|
3925
|
-
:return: Returns the result object.
|
|
3926
|
-
""" # noqa: E501
|
|
3927
|
-
warnings.warn("GET /dataset/getbyid is deprecated.", DeprecationWarning)
|
|
3928
|
-
|
|
3929
|
-
_param = self._dataset_getbyid_get_serialize(
|
|
3930
|
-
id=id,
|
|
3931
|
-
_request_auth=_request_auth,
|
|
3932
|
-
_content_type=_content_type,
|
|
3933
|
-
_headers=_headers,
|
|
3934
|
-
_host_index=_host_index
|
|
3935
|
-
)
|
|
3936
|
-
|
|
3937
|
-
_response_types_map: Dict[str, Optional[str]] = {
|
|
3938
|
-
'200': "GetDatasetByIdResult",
|
|
3939
|
-
}
|
|
3940
|
-
response_data = self.api_client.call_api(
|
|
3941
|
-
*_param,
|
|
3942
|
-
_request_timeout=_request_timeout
|
|
3943
|
-
)
|
|
3944
|
-
response_data.read()
|
|
3945
|
-
return self.api_client.response_deserialize(
|
|
3946
|
-
response_data=response_data,
|
|
3947
|
-
response_types_map=_response_types_map,
|
|
3948
|
-
)
|
|
3949
|
-
|
|
3950
|
-
|
|
3951
|
-
@validate_call
|
|
3952
|
-
def dataset_getbyid_get_without_preload_content(
|
|
3953
|
-
self,
|
|
3954
|
-
id: Annotated[Optional[StrictStr], Field(description="The id of the dataset to get.")] = None,
|
|
3955
|
-
_request_timeout: Union[
|
|
3956
|
-
None,
|
|
3957
|
-
Annotated[StrictFloat, Field(gt=0)],
|
|
3958
|
-
Tuple[
|
|
3959
|
-
Annotated[StrictFloat, Field(gt=0)],
|
|
3960
|
-
Annotated[StrictFloat, Field(gt=0)]
|
|
3961
|
-
]
|
|
3962
|
-
] = None,
|
|
3963
|
-
_request_auth: Optional[Dict[StrictStr, Any]] = None,
|
|
3964
|
-
_content_type: Optional[StrictStr] = None,
|
|
3965
|
-
_headers: Optional[Dict[StrictStr, Any]] = None,
|
|
3966
|
-
_host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
|
|
3967
|
-
) -> RESTResponseType:
|
|
3968
|
-
"""(Deprecated) Gets a dataset by its id.
|
|
3969
|
-
|
|
3970
|
-
|
|
3971
|
-
:param id: The id of the dataset to get.
|
|
3972
|
-
:type id: str
|
|
3973
|
-
:param _request_timeout: timeout setting for this request. If one
|
|
3974
|
-
number provided, it will be total request
|
|
3975
|
-
timeout. It can also be a pair (tuple) of
|
|
3976
|
-
(connection, read) timeouts.
|
|
3977
|
-
:type _request_timeout: int, tuple(int, int), optional
|
|
3978
|
-
:param _request_auth: set to override the auth_settings for an a single
|
|
3979
|
-
request; this effectively ignores the
|
|
3980
|
-
authentication in the spec for a single request.
|
|
3981
|
-
:type _request_auth: dict, optional
|
|
3982
|
-
:param _content_type: force content-type for the request.
|
|
3983
|
-
:type _content_type: str, Optional
|
|
3984
|
-
:param _headers: set to override the headers for a single
|
|
3985
|
-
request; this effectively ignores the headers
|
|
3986
|
-
in the spec for a single request.
|
|
3987
|
-
:type _headers: dict, optional
|
|
3988
|
-
:param _host_index: set to override the host_index for a single
|
|
3989
|
-
request; this effectively ignores the host_index
|
|
3990
|
-
in the spec for a single request.
|
|
3991
|
-
:type _host_index: int, optional
|
|
3992
|
-
:return: Returns the result object.
|
|
3993
|
-
""" # noqa: E501
|
|
3994
|
-
warnings.warn("GET /dataset/getbyid is deprecated.", DeprecationWarning)
|
|
3995
|
-
|
|
3996
|
-
_param = self._dataset_getbyid_get_serialize(
|
|
3997
|
-
id=id,
|
|
3998
|
-
_request_auth=_request_auth,
|
|
3999
|
-
_content_type=_content_type,
|
|
4000
|
-
_headers=_headers,
|
|
4001
|
-
_host_index=_host_index
|
|
4002
|
-
)
|
|
4003
|
-
|
|
4004
|
-
_response_types_map: Dict[str, Optional[str]] = {
|
|
4005
|
-
'200': "GetDatasetByIdResult",
|
|
4006
|
-
}
|
|
4007
|
-
response_data = self.api_client.call_api(
|
|
4008
|
-
*_param,
|
|
4009
|
-
_request_timeout=_request_timeout
|
|
4010
|
-
)
|
|
4011
|
-
return response_data.response
|
|
4012
|
-
|
|
4013
|
-
|
|
4014
|
-
def _dataset_getbyid_get_serialize(
|
|
4015
|
-
self,
|
|
4016
|
-
id,
|
|
4017
|
-
_request_auth,
|
|
4018
|
-
_content_type,
|
|
4019
|
-
_headers,
|
|
4020
|
-
_host_index,
|
|
4021
|
-
) -> RequestSerialized:
|
|
4022
|
-
|
|
4023
|
-
_host = None
|
|
4024
|
-
|
|
4025
|
-
_collection_formats: Dict[str, str] = {
|
|
4026
|
-
}
|
|
4027
|
-
|
|
4028
|
-
_path_params: Dict[str, str] = {}
|
|
4029
|
-
_query_params: List[Tuple[str, str]] = []
|
|
4030
|
-
_header_params: Dict[str, Optional[str]] = _headers or {}
|
|
4031
|
-
_form_params: List[Tuple[str, str]] = []
|
|
4032
|
-
_files: Dict[
|
|
4033
|
-
str, Union[str, bytes, List[str], List[bytes], List[Tuple[str, bytes]]]
|
|
4034
|
-
] = {}
|
|
4035
|
-
_body_params: Optional[bytes] = None
|
|
4036
|
-
|
|
4037
|
-
# process the path parameters
|
|
4038
|
-
# process the query parameters
|
|
4039
|
-
if id is not None:
|
|
4040
|
-
|
|
4041
|
-
_query_params.append(('id', id))
|
|
4042
|
-
|
|
4043
|
-
# process the header parameters
|
|
4044
|
-
# process the form parameters
|
|
4045
|
-
# process the body parameter
|
|
4046
|
-
|
|
4047
|
-
|
|
4048
|
-
# set the HTTP header `Accept`
|
|
4049
|
-
if 'Accept' not in _header_params:
|
|
4050
|
-
_header_params['Accept'] = self.api_client.select_header_accept(
|
|
4051
|
-
[
|
|
4052
|
-
'text/plain',
|
|
4053
|
-
'application/json',
|
|
4054
|
-
'text/json'
|
|
4055
|
-
]
|
|
4056
|
-
)
|
|
4057
|
-
|
|
4058
|
-
|
|
4059
|
-
# authentication setting
|
|
4060
|
-
_auth_settings: List[str] = [
|
|
4061
|
-
'bearer',
|
|
4062
|
-
'oauth2'
|
|
4063
|
-
]
|
|
4064
|
-
|
|
4065
|
-
return self.api_client.param_serialize(
|
|
4066
|
-
method='GET',
|
|
4067
|
-
resource_path='/dataset/getbyid',
|
|
4068
|
-
path_params=_path_params,
|
|
4069
|
-
query_params=_query_params,
|
|
4070
|
-
header_params=_header_params,
|
|
4071
|
-
body=_body_params,
|
|
4072
|
-
post_params=_form_params,
|
|
4073
|
-
files=_files,
|
|
4074
|
-
auth_settings=_auth_settings,
|
|
4075
|
-
collection_formats=_collection_formats,
|
|
4076
|
-
_host=_host,
|
|
4077
|
-
_request_auth=_request_auth
|
|
4078
|
-
)
|
|
4079
|
-
|
|
4080
|
-
|
|
4081
|
-
|
|
4082
|
-
|
|
4083
|
-
@validate_call
|
|
4084
|
-
def dataset_import_post(
|
|
4085
|
-
self,
|
|
4086
|
-
dataset_id: Annotated[Optional[StrictStr], Field(description="The id of the dataset to import the datapoints to.")] = None,
|
|
4087
|
-
file: Annotated[Optional[Union[StrictBytes, StrictStr, Tuple[StrictStr, StrictBytes]]], Field(description="The csv file to import.")] = None,
|
|
4088
|
-
_request_timeout: Union[
|
|
4089
|
-
None,
|
|
4090
|
-
Annotated[StrictFloat, Field(gt=0)],
|
|
4091
|
-
Tuple[
|
|
4092
|
-
Annotated[StrictFloat, Field(gt=0)],
|
|
4093
|
-
Annotated[StrictFloat, Field(gt=0)]
|
|
4094
|
-
]
|
|
4095
|
-
] = None,
|
|
4096
|
-
_request_auth: Optional[Dict[StrictStr, Any]] = None,
|
|
4097
|
-
_content_type: Optional[StrictStr] = None,
|
|
4098
|
-
_headers: Optional[Dict[StrictStr, Any]] = None,
|
|
4099
|
-
_host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
|
|
4100
|
-
) -> ImportFromFileResult:
|
|
4101
|
-
"""(Deprecated) Imports datapoints from a csv file.
|
|
4102
|
-
|
|
4103
|
-
|
|
4104
|
-
:param dataset_id: The id of the dataset to import the datapoints to.
|
|
4105
|
-
:type dataset_id: str
|
|
4106
|
-
:param file: The csv file to import.
|
|
4107
|
-
:type file: bytearray
|
|
4108
|
-
:param _request_timeout: timeout setting for this request. If one
|
|
4109
|
-
number provided, it will be total request
|
|
4110
|
-
timeout. It can also be a pair (tuple) of
|
|
4111
|
-
(connection, read) timeouts.
|
|
4112
|
-
:type _request_timeout: int, tuple(int, int), optional
|
|
4113
|
-
:param _request_auth: set to override the auth_settings for an a single
|
|
4114
|
-
request; this effectively ignores the
|
|
4115
|
-
authentication in the spec for a single request.
|
|
4116
|
-
:type _request_auth: dict, optional
|
|
4117
|
-
:param _content_type: force content-type for the request.
|
|
4118
|
-
:type _content_type: str, Optional
|
|
4119
|
-
:param _headers: set to override the headers for a single
|
|
4120
|
-
request; this effectively ignores the headers
|
|
4121
|
-
in the spec for a single request.
|
|
4122
|
-
:type _headers: dict, optional
|
|
4123
|
-
:param _host_index: set to override the host_index for a single
|
|
4124
|
-
request; this effectively ignores the host_index
|
|
4125
|
-
in the spec for a single request.
|
|
4126
|
-
:type _host_index: int, optional
|
|
4127
|
-
:return: Returns the result object.
|
|
4128
|
-
""" # noqa: E501
|
|
4129
|
-
warnings.warn("POST /dataset/import is deprecated.", DeprecationWarning)
|
|
4130
|
-
|
|
4131
|
-
_param = self._dataset_import_post_serialize(
|
|
4132
|
-
dataset_id=dataset_id,
|
|
4133
|
-
file=file,
|
|
4134
|
-
_request_auth=_request_auth,
|
|
4135
|
-
_content_type=_content_type,
|
|
4136
|
-
_headers=_headers,
|
|
4137
|
-
_host_index=_host_index
|
|
4138
|
-
)
|
|
4139
|
-
|
|
4140
|
-
_response_types_map: Dict[str, Optional[str]] = {
|
|
4141
|
-
'200': "ImportFromFileResult",
|
|
4142
|
-
}
|
|
4143
|
-
response_data = self.api_client.call_api(
|
|
4144
|
-
*_param,
|
|
4145
|
-
_request_timeout=_request_timeout
|
|
4146
|
-
)
|
|
4147
|
-
response_data.read()
|
|
4148
|
-
return self.api_client.response_deserialize(
|
|
4149
|
-
response_data=response_data,
|
|
4150
|
-
response_types_map=_response_types_map,
|
|
4151
|
-
).data
|
|
4152
|
-
|
|
4153
|
-
|
|
4154
|
-
@validate_call
|
|
4155
|
-
def dataset_import_post_with_http_info(
|
|
4156
|
-
self,
|
|
4157
|
-
dataset_id: Annotated[Optional[StrictStr], Field(description="The id of the dataset to import the datapoints to.")] = None,
|
|
4158
|
-
file: Annotated[Optional[Union[StrictBytes, StrictStr, Tuple[StrictStr, StrictBytes]]], Field(description="The csv file to import.")] = None,
|
|
4159
|
-
_request_timeout: Union[
|
|
4160
|
-
None,
|
|
4161
|
-
Annotated[StrictFloat, Field(gt=0)],
|
|
4162
|
-
Tuple[
|
|
4163
|
-
Annotated[StrictFloat, Field(gt=0)],
|
|
4164
|
-
Annotated[StrictFloat, Field(gt=0)]
|
|
4165
|
-
]
|
|
4166
|
-
] = None,
|
|
4167
|
-
_request_auth: Optional[Dict[StrictStr, Any]] = None,
|
|
4168
|
-
_content_type: Optional[StrictStr] = None,
|
|
4169
|
-
_headers: Optional[Dict[StrictStr, Any]] = None,
|
|
4170
|
-
_host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
|
|
4171
|
-
) -> ApiResponse[ImportFromFileResult]:
|
|
4172
|
-
"""(Deprecated) Imports datapoints from a csv file.
|
|
4173
|
-
|
|
4174
|
-
|
|
4175
|
-
:param dataset_id: The id of the dataset to import the datapoints to.
|
|
4176
|
-
:type dataset_id: str
|
|
4177
|
-
:param file: The csv file to import.
|
|
4178
|
-
:type file: bytearray
|
|
4179
|
-
:param _request_timeout: timeout setting for this request. If one
|
|
4180
|
-
number provided, it will be total request
|
|
4181
|
-
timeout. It can also be a pair (tuple) of
|
|
4182
|
-
(connection, read) timeouts.
|
|
4183
|
-
:type _request_timeout: int, tuple(int, int), optional
|
|
4184
|
-
:param _request_auth: set to override the auth_settings for an a single
|
|
4185
|
-
request; this effectively ignores the
|
|
4186
|
-
authentication in the spec for a single request.
|
|
4187
|
-
:type _request_auth: dict, optional
|
|
4188
|
-
:param _content_type: force content-type for the request.
|
|
4189
|
-
:type _content_type: str, Optional
|
|
4190
|
-
:param _headers: set to override the headers for a single
|
|
4191
|
-
request; this effectively ignores the headers
|
|
4192
|
-
in the spec for a single request.
|
|
4193
|
-
:type _headers: dict, optional
|
|
4194
|
-
:param _host_index: set to override the host_index for a single
|
|
4195
|
-
request; this effectively ignores the host_index
|
|
4196
|
-
in the spec for a single request.
|
|
4197
|
-
:type _host_index: int, optional
|
|
4198
|
-
:return: Returns the result object.
|
|
4199
|
-
""" # noqa: E501
|
|
4200
|
-
warnings.warn("POST /dataset/import is deprecated.", DeprecationWarning)
|
|
4201
|
-
|
|
4202
|
-
_param = self._dataset_import_post_serialize(
|
|
4203
|
-
dataset_id=dataset_id,
|
|
4204
|
-
file=file,
|
|
4205
|
-
_request_auth=_request_auth,
|
|
4206
|
-
_content_type=_content_type,
|
|
4207
|
-
_headers=_headers,
|
|
4208
|
-
_host_index=_host_index
|
|
4209
|
-
)
|
|
4210
|
-
|
|
4211
|
-
_response_types_map: Dict[str, Optional[str]] = {
|
|
4212
|
-
'200': "ImportFromFileResult",
|
|
4213
|
-
}
|
|
4214
|
-
response_data = self.api_client.call_api(
|
|
4215
|
-
*_param,
|
|
4216
|
-
_request_timeout=_request_timeout
|
|
4217
|
-
)
|
|
4218
|
-
response_data.read()
|
|
4219
|
-
return self.api_client.response_deserialize(
|
|
4220
|
-
response_data=response_data,
|
|
4221
|
-
response_types_map=_response_types_map,
|
|
4222
|
-
)
|
|
4223
|
-
|
|
4224
|
-
|
|
4225
|
-
@validate_call
|
|
4226
|
-
def dataset_import_post_without_preload_content(
|
|
4227
|
-
self,
|
|
4228
|
-
dataset_id: Annotated[Optional[StrictStr], Field(description="The id of the dataset to import the datapoints to.")] = None,
|
|
4229
|
-
file: Annotated[Optional[Union[StrictBytes, StrictStr, Tuple[StrictStr, StrictBytes]]], Field(description="The csv file to import.")] = None,
|
|
4230
|
-
_request_timeout: Union[
|
|
4231
|
-
None,
|
|
4232
|
-
Annotated[StrictFloat, Field(gt=0)],
|
|
4233
|
-
Tuple[
|
|
4234
|
-
Annotated[StrictFloat, Field(gt=0)],
|
|
4235
|
-
Annotated[StrictFloat, Field(gt=0)]
|
|
4236
|
-
]
|
|
4237
|
-
] = None,
|
|
4238
|
-
_request_auth: Optional[Dict[StrictStr, Any]] = None,
|
|
4239
|
-
_content_type: Optional[StrictStr] = None,
|
|
4240
|
-
_headers: Optional[Dict[StrictStr, Any]] = None,
|
|
4241
|
-
_host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
|
|
4242
|
-
) -> RESTResponseType:
|
|
4243
|
-
"""(Deprecated) Imports datapoints from a csv file.
|
|
4244
|
-
|
|
4245
|
-
|
|
4246
|
-
:param dataset_id: The id of the dataset to import the datapoints to.
|
|
4247
|
-
:type dataset_id: str
|
|
4248
|
-
:param file: The csv file to import.
|
|
4249
|
-
:type file: bytearray
|
|
4250
|
-
:param _request_timeout: timeout setting for this request. If one
|
|
4251
|
-
number provided, it will be total request
|
|
4252
|
-
timeout. It can also be a pair (tuple) of
|
|
4253
|
-
(connection, read) timeouts.
|
|
4254
|
-
:type _request_timeout: int, tuple(int, int), optional
|
|
4255
|
-
:param _request_auth: set to override the auth_settings for an a single
|
|
4256
|
-
request; this effectively ignores the
|
|
4257
|
-
authentication in the spec for a single request.
|
|
4258
|
-
:type _request_auth: dict, optional
|
|
4259
|
-
:param _content_type: force content-type for the request.
|
|
4260
|
-
:type _content_type: str, Optional
|
|
4261
|
-
:param _headers: set to override the headers for a single
|
|
4262
|
-
request; this effectively ignores the headers
|
|
4263
|
-
in the spec for a single request.
|
|
4264
|
-
:type _headers: dict, optional
|
|
4265
|
-
:param _host_index: set to override the host_index for a single
|
|
4266
|
-
request; this effectively ignores the host_index
|
|
4267
|
-
in the spec for a single request.
|
|
4268
|
-
:type _host_index: int, optional
|
|
4269
|
-
:return: Returns the result object.
|
|
4270
|
-
""" # noqa: E501
|
|
4271
|
-
warnings.warn("POST /dataset/import is deprecated.", DeprecationWarning)
|
|
4272
|
-
|
|
4273
|
-
_param = self._dataset_import_post_serialize(
|
|
4274
|
-
dataset_id=dataset_id,
|
|
4275
|
-
file=file,
|
|
4276
|
-
_request_auth=_request_auth,
|
|
4277
|
-
_content_type=_content_type,
|
|
4278
|
-
_headers=_headers,
|
|
4279
|
-
_host_index=_host_index
|
|
4280
|
-
)
|
|
4281
|
-
|
|
4282
|
-
_response_types_map: Dict[str, Optional[str]] = {
|
|
4283
|
-
'200': "ImportFromFileResult",
|
|
4284
|
-
}
|
|
4285
|
-
response_data = self.api_client.call_api(
|
|
4286
|
-
*_param,
|
|
4287
|
-
_request_timeout=_request_timeout
|
|
4288
|
-
)
|
|
4289
|
-
return response_data.response
|
|
4290
|
-
|
|
4291
|
-
|
|
4292
|
-
def _dataset_import_post_serialize(
|
|
4293
|
-
self,
|
|
4294
|
-
dataset_id,
|
|
4295
|
-
file,
|
|
4296
|
-
_request_auth,
|
|
4297
|
-
_content_type,
|
|
4298
|
-
_headers,
|
|
4299
|
-
_host_index,
|
|
4300
|
-
) -> RequestSerialized:
|
|
4301
|
-
|
|
4302
|
-
_host = None
|
|
4303
|
-
|
|
4304
|
-
_collection_formats: Dict[str, str] = {
|
|
4305
|
-
}
|
|
4306
|
-
|
|
4307
|
-
_path_params: Dict[str, str] = {}
|
|
4308
|
-
_query_params: List[Tuple[str, str]] = []
|
|
4309
|
-
_header_params: Dict[str, Optional[str]] = _headers or {}
|
|
4310
|
-
_form_params: List[Tuple[str, str]] = []
|
|
4311
|
-
_files: Dict[
|
|
4312
|
-
str, Union[str, bytes, List[str], List[bytes], List[Tuple[str, bytes]]]
|
|
4313
|
-
] = {}
|
|
4314
|
-
_body_params: Optional[bytes] = None
|
|
4315
|
-
|
|
4316
|
-
# process the path parameters
|
|
4317
|
-
# process the query parameters
|
|
4318
|
-
if dataset_id is not None:
|
|
4319
|
-
|
|
4320
|
-
_query_params.append(('datasetId', dataset_id))
|
|
4321
|
-
|
|
4322
|
-
# process the header parameters
|
|
4323
|
-
# process the form parameters
|
|
4324
|
-
if file is not None:
|
|
4325
|
-
_files['file'] = file
|
|
4326
|
-
# process the body parameter
|
|
4327
|
-
|
|
4328
|
-
|
|
4329
|
-
# set the HTTP header `Accept`
|
|
4330
|
-
if 'Accept' not in _header_params:
|
|
4331
|
-
_header_params['Accept'] = self.api_client.select_header_accept(
|
|
4332
|
-
[
|
|
4333
|
-
'text/plain',
|
|
4334
|
-
'application/json',
|
|
4335
|
-
'text/json'
|
|
4336
|
-
]
|
|
4337
|
-
)
|
|
4338
|
-
|
|
4339
|
-
# set the HTTP header `Content-Type`
|
|
4340
|
-
if _content_type:
|
|
4341
|
-
_header_params['Content-Type'] = _content_type
|
|
4342
|
-
else:
|
|
4343
|
-
_default_content_type = (
|
|
4344
|
-
self.api_client.select_header_content_type(
|
|
4345
|
-
[
|
|
4346
|
-
'multipart/form-data'
|
|
4347
|
-
]
|
|
4348
|
-
)
|
|
4349
|
-
)
|
|
4350
|
-
if _default_content_type is not None:
|
|
4351
|
-
_header_params['Content-Type'] = _default_content_type
|
|
4352
|
-
|
|
4353
|
-
# authentication setting
|
|
4354
|
-
_auth_settings: List[str] = [
|
|
4355
|
-
'bearer',
|
|
4356
|
-
'oauth2'
|
|
4357
|
-
]
|
|
4358
|
-
|
|
4359
|
-
return self.api_client.param_serialize(
|
|
4360
|
-
method='POST',
|
|
4361
|
-
resource_path='/dataset/import',
|
|
4362
|
-
path_params=_path_params,
|
|
4363
|
-
query_params=_query_params,
|
|
4364
|
-
header_params=_header_params,
|
|
4365
|
-
body=_body_params,
|
|
4366
|
-
post_params=_form_params,
|
|
4367
|
-
files=_files,
|
|
4368
|
-
auth_settings=_auth_settings,
|
|
4369
|
-
collection_formats=_collection_formats,
|
|
4370
|
-
_host=_host,
|
|
4371
|
-
_request_auth=_request_auth
|
|
4372
|
-
)
|
|
4373
|
-
|
|
4374
|
-
|
|
4375
|
-
|
|
4376
|
-
|
|
4377
|
-
@validate_call
|
|
4378
|
-
def dataset_updatename_post(
|
|
4379
|
-
self,
|
|
4380
|
-
id: Annotated[Optional[StrictStr], Field(description="The id of the dataset to update.")] = None,
|
|
4381
|
-
name: Annotated[Optional[StrictStr], Field(description="The new name of the dataset.")] = None,
|
|
4382
|
-
_request_timeout: Union[
|
|
4383
|
-
None,
|
|
4384
|
-
Annotated[StrictFloat, Field(gt=0)],
|
|
4385
|
-
Tuple[
|
|
4386
|
-
Annotated[StrictFloat, Field(gt=0)],
|
|
4387
|
-
Annotated[StrictFloat, Field(gt=0)]
|
|
4388
|
-
]
|
|
4389
|
-
] = None,
|
|
4390
|
-
_request_auth: Optional[Dict[StrictStr, Any]] = None,
|
|
4391
|
-
_content_type: Optional[StrictStr] = None,
|
|
4392
|
-
_headers: Optional[Dict[StrictStr, Any]] = None,
|
|
4393
|
-
_host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
|
|
4394
|
-
) -> None:
|
|
4395
|
-
"""(Deprecated) Updates the name of a dataset.
|
|
4396
|
-
|
|
4397
|
-
|
|
4398
|
-
:param id: The id of the dataset to update.
|
|
4399
|
-
:type id: str
|
|
4400
|
-
:param name: The new name of the dataset.
|
|
4401
|
-
:type name: str
|
|
4402
|
-
:param _request_timeout: timeout setting for this request. If one
|
|
4403
|
-
number provided, it will be total request
|
|
4404
|
-
timeout. It can also be a pair (tuple) of
|
|
4405
|
-
(connection, read) timeouts.
|
|
4406
|
-
:type _request_timeout: int, tuple(int, int), optional
|
|
4407
|
-
:param _request_auth: set to override the auth_settings for an a single
|
|
4408
|
-
request; this effectively ignores the
|
|
4409
|
-
authentication in the spec for a single request.
|
|
4410
|
-
:type _request_auth: dict, optional
|
|
4411
|
-
:param _content_type: force content-type for the request.
|
|
4412
|
-
:type _content_type: str, Optional
|
|
4413
|
-
:param _headers: set to override the headers for a single
|
|
4414
|
-
request; this effectively ignores the headers
|
|
4415
|
-
in the spec for a single request.
|
|
4416
|
-
:type _headers: dict, optional
|
|
4417
|
-
:param _host_index: set to override the host_index for a single
|
|
4418
|
-
request; this effectively ignores the host_index
|
|
4419
|
-
in the spec for a single request.
|
|
4420
|
-
:type _host_index: int, optional
|
|
4421
|
-
:return: Returns the result object.
|
|
4422
|
-
""" # noqa: E501
|
|
4423
|
-
warnings.warn("POST /dataset/updatename is deprecated.", DeprecationWarning)
|
|
4424
|
-
|
|
4425
|
-
_param = self._dataset_updatename_post_serialize(
|
|
4426
|
-
id=id,
|
|
4427
|
-
name=name,
|
|
4428
|
-
_request_auth=_request_auth,
|
|
4429
|
-
_content_type=_content_type,
|
|
4430
|
-
_headers=_headers,
|
|
4431
|
-
_host_index=_host_index
|
|
4432
|
-
)
|
|
4433
|
-
|
|
4434
|
-
_response_types_map: Dict[str, Optional[str]] = {
|
|
4435
|
-
'200': None,
|
|
4436
|
-
}
|
|
4437
|
-
response_data = self.api_client.call_api(
|
|
4438
|
-
*_param,
|
|
4439
|
-
_request_timeout=_request_timeout
|
|
4440
|
-
)
|
|
4441
|
-
response_data.read()
|
|
4442
|
-
return self.api_client.response_deserialize(
|
|
4443
|
-
response_data=response_data,
|
|
4444
|
-
response_types_map=_response_types_map,
|
|
4445
|
-
).data
|
|
4446
|
-
|
|
4447
|
-
|
|
4448
|
-
@validate_call
|
|
4449
|
-
def dataset_updatename_post_with_http_info(
|
|
4450
|
-
self,
|
|
4451
|
-
id: Annotated[Optional[StrictStr], Field(description="The id of the dataset to update.")] = None,
|
|
4452
|
-
name: Annotated[Optional[StrictStr], Field(description="The new name of the dataset.")] = None,
|
|
4453
|
-
_request_timeout: Union[
|
|
4454
|
-
None,
|
|
4455
|
-
Annotated[StrictFloat, Field(gt=0)],
|
|
4456
|
-
Tuple[
|
|
4457
|
-
Annotated[StrictFloat, Field(gt=0)],
|
|
4458
|
-
Annotated[StrictFloat, Field(gt=0)]
|
|
4459
|
-
]
|
|
4460
|
-
] = None,
|
|
4461
|
-
_request_auth: Optional[Dict[StrictStr, Any]] = None,
|
|
4462
|
-
_content_type: Optional[StrictStr] = None,
|
|
4463
|
-
_headers: Optional[Dict[StrictStr, Any]] = None,
|
|
4464
|
-
_host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
|
|
4465
|
-
) -> ApiResponse[None]:
|
|
4466
|
-
"""(Deprecated) Updates the name of a dataset.
|
|
4467
|
-
|
|
4468
|
-
|
|
4469
|
-
:param id: The id of the dataset to update.
|
|
4470
|
-
:type id: str
|
|
4471
|
-
:param name: The new name of the dataset.
|
|
4472
|
-
:type name: str
|
|
4473
|
-
:param _request_timeout: timeout setting for this request. If one
|
|
4474
|
-
number provided, it will be total request
|
|
4475
|
-
timeout. It can also be a pair (tuple) of
|
|
4476
|
-
(connection, read) timeouts.
|
|
4477
|
-
:type _request_timeout: int, tuple(int, int), optional
|
|
4478
|
-
:param _request_auth: set to override the auth_settings for an a single
|
|
4479
|
-
request; this effectively ignores the
|
|
4480
|
-
authentication in the spec for a single request.
|
|
4481
|
-
:type _request_auth: dict, optional
|
|
4482
|
-
:param _content_type: force content-type for the request.
|
|
4483
|
-
:type _content_type: str, Optional
|
|
4484
|
-
:param _headers: set to override the headers for a single
|
|
4485
|
-
request; this effectively ignores the headers
|
|
4486
|
-
in the spec for a single request.
|
|
4487
|
-
:type _headers: dict, optional
|
|
4488
|
-
:param _host_index: set to override the host_index for a single
|
|
4489
|
-
request; this effectively ignores the host_index
|
|
4490
|
-
in the spec for a single request.
|
|
4491
|
-
:type _host_index: int, optional
|
|
4492
|
-
:return: Returns the result object.
|
|
4493
|
-
""" # noqa: E501
|
|
4494
|
-
warnings.warn("POST /dataset/updatename is deprecated.", DeprecationWarning)
|
|
4495
|
-
|
|
4496
|
-
_param = self._dataset_updatename_post_serialize(
|
|
4497
|
-
id=id,
|
|
4498
|
-
name=name,
|
|
4499
|
-
_request_auth=_request_auth,
|
|
4500
|
-
_content_type=_content_type,
|
|
4501
|
-
_headers=_headers,
|
|
4502
|
-
_host_index=_host_index
|
|
4503
|
-
)
|
|
4504
|
-
|
|
4505
|
-
_response_types_map: Dict[str, Optional[str]] = {
|
|
4506
|
-
'200': None,
|
|
4507
|
-
}
|
|
4508
|
-
response_data = self.api_client.call_api(
|
|
4509
|
-
*_param,
|
|
4510
|
-
_request_timeout=_request_timeout
|
|
4511
|
-
)
|
|
4512
|
-
response_data.read()
|
|
4513
|
-
return self.api_client.response_deserialize(
|
|
4514
|
-
response_data=response_data,
|
|
4515
|
-
response_types_map=_response_types_map,
|
|
4516
|
-
)
|
|
4517
|
-
|
|
4518
|
-
|
|
4519
|
-
@validate_call
|
|
4520
|
-
def dataset_updatename_post_without_preload_content(
|
|
4521
|
-
self,
|
|
4522
|
-
id: Annotated[Optional[StrictStr], Field(description="The id of the dataset to update.")] = None,
|
|
4523
|
-
name: Annotated[Optional[StrictStr], Field(description="The new name of the dataset.")] = None,
|
|
4524
|
-
_request_timeout: Union[
|
|
4525
|
-
None,
|
|
4526
|
-
Annotated[StrictFloat, Field(gt=0)],
|
|
4527
|
-
Tuple[
|
|
4528
|
-
Annotated[StrictFloat, Field(gt=0)],
|
|
4529
|
-
Annotated[StrictFloat, Field(gt=0)]
|
|
4530
|
-
]
|
|
4531
|
-
] = None,
|
|
4532
|
-
_request_auth: Optional[Dict[StrictStr, Any]] = None,
|
|
4533
|
-
_content_type: Optional[StrictStr] = None,
|
|
4534
|
-
_headers: Optional[Dict[StrictStr, Any]] = None,
|
|
4535
|
-
_host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
|
|
4536
|
-
) -> RESTResponseType:
|
|
4537
|
-
"""(Deprecated) Updates the name of a dataset.
|
|
4538
|
-
|
|
4539
|
-
|
|
4540
|
-
:param id: The id of the dataset to update.
|
|
4541
|
-
:type id: str
|
|
4542
|
-
:param name: The new name of the dataset.
|
|
4543
|
-
:type name: str
|
|
4544
|
-
:param _request_timeout: timeout setting for this request. If one
|
|
4545
|
-
number provided, it will be total request
|
|
4546
|
-
timeout. It can also be a pair (tuple) of
|
|
4547
|
-
(connection, read) timeouts.
|
|
4548
|
-
:type _request_timeout: int, tuple(int, int), optional
|
|
4549
|
-
:param _request_auth: set to override the auth_settings for an a single
|
|
4550
|
-
request; this effectively ignores the
|
|
4551
|
-
authentication in the spec for a single request.
|
|
4552
|
-
:type _request_auth: dict, optional
|
|
4553
|
-
:param _content_type: force content-type for the request.
|
|
4554
|
-
:type _content_type: str, Optional
|
|
4555
|
-
:param _headers: set to override the headers for a single
|
|
4556
|
-
request; this effectively ignores the headers
|
|
4557
|
-
in the spec for a single request.
|
|
4558
|
-
:type _headers: dict, optional
|
|
4559
|
-
:param _host_index: set to override the host_index for a single
|
|
4560
|
-
request; this effectively ignores the host_index
|
|
4561
|
-
in the spec for a single request.
|
|
4562
|
-
:type _host_index: int, optional
|
|
4563
|
-
:return: Returns the result object.
|
|
4564
|
-
""" # noqa: E501
|
|
4565
|
-
warnings.warn("POST /dataset/updatename is deprecated.", DeprecationWarning)
|
|
4566
|
-
|
|
4567
|
-
_param = self._dataset_updatename_post_serialize(
|
|
4568
|
-
id=id,
|
|
4569
|
-
name=name,
|
|
4570
|
-
_request_auth=_request_auth,
|
|
4571
|
-
_content_type=_content_type,
|
|
4572
|
-
_headers=_headers,
|
|
4573
|
-
_host_index=_host_index
|
|
4574
|
-
)
|
|
4575
|
-
|
|
4576
|
-
_response_types_map: Dict[str, Optional[str]] = {
|
|
4577
|
-
'200': None,
|
|
4578
|
-
}
|
|
4579
|
-
response_data = self.api_client.call_api(
|
|
4580
|
-
*_param,
|
|
4581
|
-
_request_timeout=_request_timeout
|
|
4582
|
-
)
|
|
4583
|
-
return response_data.response
|
|
4584
|
-
|
|
4585
|
-
|
|
4586
|
-
def _dataset_updatename_post_serialize(
|
|
4587
|
-
self,
|
|
4588
|
-
id,
|
|
4589
|
-
name,
|
|
4590
|
-
_request_auth,
|
|
4591
|
-
_content_type,
|
|
4592
|
-
_headers,
|
|
4593
|
-
_host_index,
|
|
4594
|
-
) -> RequestSerialized:
|
|
4595
|
-
|
|
4596
|
-
_host = None
|
|
4597
|
-
|
|
4598
|
-
_collection_formats: Dict[str, str] = {
|
|
4599
|
-
}
|
|
4600
|
-
|
|
4601
|
-
_path_params: Dict[str, str] = {}
|
|
4602
|
-
_query_params: List[Tuple[str, str]] = []
|
|
4603
|
-
_header_params: Dict[str, Optional[str]] = _headers or {}
|
|
4604
|
-
_form_params: List[Tuple[str, str]] = []
|
|
4605
|
-
_files: Dict[
|
|
4606
|
-
str, Union[str, bytes, List[str], List[bytes], List[Tuple[str, bytes]]]
|
|
4607
|
-
] = {}
|
|
4608
|
-
_body_params: Optional[bytes] = None
|
|
4609
|
-
|
|
4610
|
-
# process the path parameters
|
|
4611
|
-
# process the query parameters
|
|
4612
|
-
if id is not None:
|
|
4613
|
-
|
|
4614
|
-
_query_params.append(('id', id))
|
|
4615
|
-
|
|
4616
|
-
if name is not None:
|
|
4617
|
-
|
|
4618
|
-
_query_params.append(('name', name))
|
|
4619
|
-
|
|
4620
|
-
# process the header parameters
|
|
4621
|
-
# process the form parameters
|
|
4622
|
-
# process the body parameter
|
|
4623
|
-
|
|
4624
|
-
|
|
4625
|
-
|
|
4626
|
-
|
|
4627
|
-
# authentication setting
|
|
4628
|
-
_auth_settings: List[str] = [
|
|
4629
|
-
'bearer',
|
|
4630
|
-
'oauth2'
|
|
4631
|
-
]
|
|
4632
|
-
|
|
4633
|
-
return self.api_client.param_serialize(
|
|
4634
|
-
method='POST',
|
|
4635
|
-
resource_path='/dataset/updatename',
|
|
4636
|
-
path_params=_path_params,
|
|
4637
|
-
query_params=_query_params,
|
|
4638
|
-
header_params=_header_params,
|
|
4639
|
-
body=_body_params,
|
|
4640
|
-
post_params=_form_params,
|
|
4641
|
-
files=_files,
|
|
4642
|
-
auth_settings=_auth_settings,
|
|
4643
|
-
collection_formats=_collection_formats,
|
|
4644
|
-
_host=_host,
|
|
4645
|
-
_request_auth=_request_auth
|
|
4646
|
-
)
|
|
4647
|
-
|
|
4648
|
-
|
|
4649
|
-
|
|
4650
|
-
|
|
4651
|
-
@validate_call
|
|
4652
|
-
def dataset_uploadfilesfroms3_post(
|
|
4653
|
-
self,
|
|
4654
|
-
upload_files_from_s3_bucket_model: Annotated[Optional[UploadFilesFromS3BucketModel], Field(description="The body of the request.")] = None,
|
|
4655
|
-
_request_timeout: Union[
|
|
4656
|
-
None,
|
|
4657
|
-
Annotated[StrictFloat, Field(gt=0)],
|
|
4658
|
-
Tuple[
|
|
4659
|
-
Annotated[StrictFloat, Field(gt=0)],
|
|
4660
|
-
Annotated[StrictFloat, Field(gt=0)]
|
|
4661
|
-
]
|
|
4662
|
-
] = None,
|
|
4663
|
-
_request_auth: Optional[Dict[StrictStr, Any]] = None,
|
|
4664
|
-
_content_type: Optional[StrictStr] = None,
|
|
4665
|
-
_headers: Optional[Dict[StrictStr, Any]] = None,
|
|
4666
|
-
_host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
|
|
4667
|
-
) -> UploadFromS3Result:
|
|
4668
|
-
"""(Deprecated) Uploads files from an S3 bucket to a dataset.
|
|
4669
|
-
|
|
4670
|
-
A new datapoint will be created for each file in the bucket.
|
|
4671
|
-
|
|
4672
|
-
:param upload_files_from_s3_bucket_model: The body of the request.
|
|
4673
|
-
:type upload_files_from_s3_bucket_model: UploadFilesFromS3BucketModel
|
|
4674
|
-
:param _request_timeout: timeout setting for this request. If one
|
|
4675
|
-
number provided, it will be total request
|
|
4676
|
-
timeout. It can also be a pair (tuple) of
|
|
4677
|
-
(connection, read) timeouts.
|
|
4678
|
-
:type _request_timeout: int, tuple(int, int), optional
|
|
4679
|
-
:param _request_auth: set to override the auth_settings for an a single
|
|
4680
|
-
request; this effectively ignores the
|
|
4681
|
-
authentication in the spec for a single request.
|
|
4682
|
-
:type _request_auth: dict, optional
|
|
4683
|
-
:param _content_type: force content-type for the request.
|
|
4684
|
-
:type _content_type: str, Optional
|
|
4685
|
-
:param _headers: set to override the headers for a single
|
|
4686
|
-
request; this effectively ignores the headers
|
|
4687
|
-
in the spec for a single request.
|
|
4688
|
-
:type _headers: dict, optional
|
|
4689
|
-
:param _host_index: set to override the host_index for a single
|
|
4690
|
-
request; this effectively ignores the host_index
|
|
4691
|
-
in the spec for a single request.
|
|
4692
|
-
:type _host_index: int, optional
|
|
4693
|
-
:return: Returns the result object.
|
|
4694
|
-
""" # noqa: E501
|
|
4695
|
-
warnings.warn("POST /dataset/uploadfilesfroms3 is deprecated.", DeprecationWarning)
|
|
4696
|
-
|
|
4697
|
-
_param = self._dataset_uploadfilesfroms3_post_serialize(
|
|
4698
|
-
upload_files_from_s3_bucket_model=upload_files_from_s3_bucket_model,
|
|
4699
|
-
_request_auth=_request_auth,
|
|
4700
|
-
_content_type=_content_type,
|
|
4701
|
-
_headers=_headers,
|
|
4702
|
-
_host_index=_host_index
|
|
4703
|
-
)
|
|
4704
|
-
|
|
4705
|
-
_response_types_map: Dict[str, Optional[str]] = {
|
|
4706
|
-
'200': "UploadFromS3Result",
|
|
4707
|
-
}
|
|
4708
|
-
response_data = self.api_client.call_api(
|
|
4709
|
-
*_param,
|
|
4710
|
-
_request_timeout=_request_timeout
|
|
4711
|
-
)
|
|
4712
|
-
response_data.read()
|
|
4713
|
-
return self.api_client.response_deserialize(
|
|
4714
|
-
response_data=response_data,
|
|
4715
|
-
response_types_map=_response_types_map,
|
|
4716
|
-
).data
|
|
4717
|
-
|
|
4718
|
-
|
|
4719
|
-
@validate_call
|
|
4720
|
-
def dataset_uploadfilesfroms3_post_with_http_info(
|
|
4721
|
-
self,
|
|
4722
|
-
upload_files_from_s3_bucket_model: Annotated[Optional[UploadFilesFromS3BucketModel], Field(description="The body of the request.")] = None,
|
|
4723
|
-
_request_timeout: Union[
|
|
4724
|
-
None,
|
|
4725
|
-
Annotated[StrictFloat, Field(gt=0)],
|
|
4726
|
-
Tuple[
|
|
4727
|
-
Annotated[StrictFloat, Field(gt=0)],
|
|
4728
|
-
Annotated[StrictFloat, Field(gt=0)]
|
|
4729
|
-
]
|
|
4730
|
-
] = None,
|
|
4731
|
-
_request_auth: Optional[Dict[StrictStr, Any]] = None,
|
|
4732
|
-
_content_type: Optional[StrictStr] = None,
|
|
4733
|
-
_headers: Optional[Dict[StrictStr, Any]] = None,
|
|
4734
|
-
_host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
|
|
4735
|
-
) -> ApiResponse[UploadFromS3Result]:
|
|
4736
|
-
"""(Deprecated) Uploads files from an S3 bucket to a dataset.
|
|
4737
|
-
|
|
4738
|
-
A new datapoint will be created for each file in the bucket.
|
|
4739
|
-
|
|
4740
|
-
:param upload_files_from_s3_bucket_model: The body of the request.
|
|
4741
|
-
:type upload_files_from_s3_bucket_model: UploadFilesFromS3BucketModel
|
|
4742
|
-
:param _request_timeout: timeout setting for this request. If one
|
|
4743
|
-
number provided, it will be total request
|
|
4744
|
-
timeout. It can also be a pair (tuple) of
|
|
4745
|
-
(connection, read) timeouts.
|
|
4746
|
-
:type _request_timeout: int, tuple(int, int), optional
|
|
4747
|
-
:param _request_auth: set to override the auth_settings for an a single
|
|
4748
|
-
request; this effectively ignores the
|
|
4749
|
-
authentication in the spec for a single request.
|
|
4750
|
-
:type _request_auth: dict, optional
|
|
4751
|
-
:param _content_type: force content-type for the request.
|
|
4752
|
-
:type _content_type: str, Optional
|
|
4753
|
-
:param _headers: set to override the headers for a single
|
|
4754
|
-
request; this effectively ignores the headers
|
|
4755
|
-
in the spec for a single request.
|
|
4756
|
-
:type _headers: dict, optional
|
|
4757
|
-
:param _host_index: set to override the host_index for a single
|
|
4758
|
-
request; this effectively ignores the host_index
|
|
4759
|
-
in the spec for a single request.
|
|
4760
|
-
:type _host_index: int, optional
|
|
4761
|
-
:return: Returns the result object.
|
|
4762
|
-
""" # noqa: E501
|
|
4763
|
-
warnings.warn("POST /dataset/uploadfilesfroms3 is deprecated.", DeprecationWarning)
|
|
4764
|
-
|
|
4765
|
-
_param = self._dataset_uploadfilesfroms3_post_serialize(
|
|
4766
|
-
upload_files_from_s3_bucket_model=upload_files_from_s3_bucket_model,
|
|
4767
|
-
_request_auth=_request_auth,
|
|
4768
|
-
_content_type=_content_type,
|
|
4769
|
-
_headers=_headers,
|
|
4770
|
-
_host_index=_host_index
|
|
4771
|
-
)
|
|
4772
|
-
|
|
4773
|
-
_response_types_map: Dict[str, Optional[str]] = {
|
|
4774
|
-
'200': "UploadFromS3Result",
|
|
4775
|
-
}
|
|
4776
|
-
response_data = self.api_client.call_api(
|
|
4777
|
-
*_param,
|
|
4778
|
-
_request_timeout=_request_timeout
|
|
4779
|
-
)
|
|
4780
|
-
response_data.read()
|
|
4781
|
-
return self.api_client.response_deserialize(
|
|
4782
|
-
response_data=response_data,
|
|
4783
|
-
response_types_map=_response_types_map,
|
|
4784
|
-
)
|
|
4785
|
-
|
|
4786
|
-
|
|
4787
|
-
@validate_call
|
|
4788
|
-
def dataset_uploadfilesfroms3_post_without_preload_content(
|
|
4789
|
-
self,
|
|
4790
|
-
upload_files_from_s3_bucket_model: Annotated[Optional[UploadFilesFromS3BucketModel], Field(description="The body of the request.")] = None,
|
|
4791
|
-
_request_timeout: Union[
|
|
4792
|
-
None,
|
|
4793
|
-
Annotated[StrictFloat, Field(gt=0)],
|
|
4794
|
-
Tuple[
|
|
4795
|
-
Annotated[StrictFloat, Field(gt=0)],
|
|
4796
|
-
Annotated[StrictFloat, Field(gt=0)]
|
|
4797
|
-
]
|
|
4798
|
-
] = None,
|
|
4799
|
-
_request_auth: Optional[Dict[StrictStr, Any]] = None,
|
|
4800
|
-
_content_type: Optional[StrictStr] = None,
|
|
4801
|
-
_headers: Optional[Dict[StrictStr, Any]] = None,
|
|
4802
|
-
_host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
|
|
4803
|
-
) -> RESTResponseType:
|
|
4804
|
-
"""(Deprecated) Uploads files from an S3 bucket to a dataset.
|
|
4805
|
-
|
|
4806
|
-
A new datapoint will be created for each file in the bucket.
|
|
4807
|
-
|
|
4808
|
-
:param upload_files_from_s3_bucket_model: The body of the request.
|
|
4809
|
-
:type upload_files_from_s3_bucket_model: UploadFilesFromS3BucketModel
|
|
4810
|
-
:param _request_timeout: timeout setting for this request. If one
|
|
4811
|
-
number provided, it will be total request
|
|
4812
|
-
timeout. It can also be a pair (tuple) of
|
|
4813
|
-
(connection, read) timeouts.
|
|
4814
|
-
:type _request_timeout: int, tuple(int, int), optional
|
|
4815
|
-
:param _request_auth: set to override the auth_settings for an a single
|
|
4816
|
-
request; this effectively ignores the
|
|
4817
|
-
authentication in the spec for a single request.
|
|
4818
|
-
:type _request_auth: dict, optional
|
|
4819
|
-
:param _content_type: force content-type for the request.
|
|
4820
|
-
:type _content_type: str, Optional
|
|
4821
|
-
:param _headers: set to override the headers for a single
|
|
4822
|
-
request; this effectively ignores the headers
|
|
4823
|
-
in the spec for a single request.
|
|
4824
|
-
:type _headers: dict, optional
|
|
4825
|
-
:param _host_index: set to override the host_index for a single
|
|
4826
|
-
request; this effectively ignores the host_index
|
|
4827
|
-
in the spec for a single request.
|
|
4828
|
-
:type _host_index: int, optional
|
|
4829
|
-
:return: Returns the result object.
|
|
4830
|
-
""" # noqa: E501
|
|
4831
|
-
warnings.warn("POST /dataset/uploadfilesfroms3 is deprecated.", DeprecationWarning)
|
|
4832
|
-
|
|
4833
|
-
_param = self._dataset_uploadfilesfroms3_post_serialize(
|
|
4834
|
-
upload_files_from_s3_bucket_model=upload_files_from_s3_bucket_model,
|
|
4835
|
-
_request_auth=_request_auth,
|
|
4836
|
-
_content_type=_content_type,
|
|
4837
|
-
_headers=_headers,
|
|
4838
|
-
_host_index=_host_index
|
|
4839
|
-
)
|
|
4840
|
-
|
|
4841
|
-
_response_types_map: Dict[str, Optional[str]] = {
|
|
4842
|
-
'200': "UploadFromS3Result",
|
|
4843
|
-
}
|
|
4844
|
-
response_data = self.api_client.call_api(
|
|
4845
|
-
*_param,
|
|
4846
|
-
_request_timeout=_request_timeout
|
|
4847
|
-
)
|
|
4848
|
-
return response_data.response
|
|
4849
|
-
|
|
4850
|
-
|
|
4851
|
-
def _dataset_uploadfilesfroms3_post_serialize(
|
|
4852
|
-
self,
|
|
4853
|
-
upload_files_from_s3_bucket_model,
|
|
4854
|
-
_request_auth,
|
|
4855
|
-
_content_type,
|
|
4856
|
-
_headers,
|
|
4857
|
-
_host_index,
|
|
4858
|
-
) -> RequestSerialized:
|
|
4859
|
-
|
|
4860
|
-
_host = None
|
|
4861
|
-
|
|
4862
|
-
_collection_formats: Dict[str, str] = {
|
|
4863
|
-
}
|
|
4864
|
-
|
|
4865
|
-
_path_params: Dict[str, str] = {}
|
|
4866
|
-
_query_params: List[Tuple[str, str]] = []
|
|
4867
|
-
_header_params: Dict[str, Optional[str]] = _headers or {}
|
|
4868
|
-
_form_params: List[Tuple[str, str]] = []
|
|
4869
|
-
_files: Dict[
|
|
4870
|
-
str, Union[str, bytes, List[str], List[bytes], List[Tuple[str, bytes]]]
|
|
4871
|
-
] = {}
|
|
4872
|
-
_body_params: Optional[bytes] = None
|
|
4873
|
-
|
|
4874
|
-
# process the path parameters
|
|
4875
|
-
# process the query parameters
|
|
4876
|
-
# process the header parameters
|
|
4877
|
-
# process the form parameters
|
|
4878
|
-
# process the body parameter
|
|
4879
|
-
if upload_files_from_s3_bucket_model is not None:
|
|
4880
|
-
_body_params = upload_files_from_s3_bucket_model
|
|
4881
|
-
|
|
4882
|
-
|
|
4883
|
-
# set the HTTP header `Accept`
|
|
4884
|
-
if 'Accept' not in _header_params:
|
|
4885
|
-
_header_params['Accept'] = self.api_client.select_header_accept(
|
|
4886
|
-
[
|
|
4887
|
-
'text/plain',
|
|
4888
|
-
'application/json',
|
|
4889
|
-
'text/json'
|
|
4890
|
-
]
|
|
4891
|
-
)
|
|
4892
|
-
|
|
4893
|
-
# set the HTTP header `Content-Type`
|
|
4894
|
-
if _content_type:
|
|
4895
|
-
_header_params['Content-Type'] = _content_type
|
|
4896
|
-
else:
|
|
4897
|
-
_default_content_type = (
|
|
4898
|
-
self.api_client.select_header_content_type(
|
|
4899
|
-
[
|
|
4900
|
-
'application/json',
|
|
4901
|
-
'text/json',
|
|
4902
|
-
'application/*+json'
|
|
4903
|
-
]
|
|
4904
|
-
)
|
|
4905
|
-
)
|
|
4906
|
-
if _default_content_type is not None:
|
|
4907
|
-
_header_params['Content-Type'] = _default_content_type
|
|
4908
|
-
|
|
4909
|
-
# authentication setting
|
|
4910
|
-
_auth_settings: List[str] = [
|
|
4911
|
-
'bearer',
|
|
4912
|
-
'oauth2'
|
|
4913
|
-
]
|
|
4914
|
-
|
|
4915
|
-
return self.api_client.param_serialize(
|
|
4916
|
-
method='POST',
|
|
4917
|
-
resource_path='/dataset/uploadfilesfroms3',
|
|
1676
|
+
resource_path='/dataset/{datasetId}/progress',
|
|
4918
1677
|
path_params=_path_params,
|
|
4919
1678
|
query_params=_query_params,
|
|
4920
1679
|
header_params=_header_params,
|