rapidata 2.35.1__py3-none-any.whl → 3.0.0a8__py3-none-any.whl
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Potentially problematic release.
This version of rapidata might be problematic. Click here for more details.
- rapidata/__init__.py +25 -16
- rapidata/api_client/__init__.py +84 -408
- rapidata/api_client/api/__init__.py +6 -2
- rapidata/api_client/api/asset_api.py +853 -0
- rapidata/api_client/api/audience_api.py +2505 -0
- rapidata/api_client/api/benchmark_api.py +904 -245
- rapidata/api_client/api/campaign_api.py +582 -24
- rapidata/api_client/api/client_api.py +38 -33
- rapidata/api_client/api/compare_workflow_api.py +11 -10
- rapidata/api_client/api/customer_rapid_api.py +364 -123
- rapidata/api_client/api/datapoint_api.py +8 -6
- rapidata/api_client/api/dataset_api.py +240 -1516
- rapidata/api_client/api/evaluation_workflow_api.py +29 -82
- rapidata/api_client/api/feedback_api.py +11 -11
- rapidata/api_client/api/grouped_ranking_workflow_api.py +319 -0
- rapidata/api_client/api/identity_api.py +26 -300
- rapidata/api_client/api/job_api.py +3902 -0
- rapidata/api_client/api/job_definition_api.py +319 -0
- rapidata/api_client/api/job_revision_api.py +335 -0
- rapidata/api_client/api/leaderboard_api.py +140 -2067
- rapidata/api_client/api/newsletter_api.py +20 -19
- rapidata/api_client/api/order_api.py +375 -91
- rapidata/api_client/api/participant_api.py +80 -118
- rapidata/api_client/api/pipeline_api.py +24 -1480
- rapidata/api_client/api/prompt_api.py +11 -11
- rapidata/api_client/api/rapidata_identity_api_api.py +5 -4
- rapidata/api_client/api/sample_api.py +300 -0
- rapidata/api_client/api/simple_workflow_api.py +11 -10
- rapidata/api_client/api/survey_api.py +304 -0
- rapidata/api_client/api/user_rapid_api.py +35 -31
- rapidata/api_client/api/validation_set_api.py +377 -1835
- rapidata/api_client/api/workflow_api.py +32 -26
- rapidata/api_client/api_client.py +2 -2
- rapidata/api_client/configuration.py +16 -29
- rapidata/api_client/exceptions.py +2 -2
- rapidata/api_client/models/__init__.py +65 -382
- rapidata/api_client/models/ab_test_selection_a_inner.py +1 -1
- rapidata/api_client/models/add_rapid_to_audience_model.py +144 -0
- rapidata/api_client/models/add_user_response_result.py +10 -5
- rapidata/api_client/models/add_validation_rapid_model.py +49 -26
- rapidata/api_client/models/add_validation_rapid_model_asset.py +154 -0
- rapidata/api_client/models/add_validation_rapid_model_context_asset.py +160 -0
- rapidata/api_client/models/add_validation_rapid_model_metadata_inner.py +140 -0
- rapidata/api_client/models/add_validation_rapid_model_truth.py +7 -1
- rapidata/api_client/models/add_validation_rapid_new_model.py +137 -0
- rapidata/api_client/models/add_validation_rapid_new_model_asset.py +182 -0
- rapidata/api_client/models/add_validation_rapid_new_model_truth.py +286 -0
- rapidata/api_client/models/age_user_filter_model.py +2 -2
- rapidata/api_client/models/age_user_filter_model_age_group.py +41 -0
- rapidata/api_client/models/aggregated_orders_model.py +98 -0
- rapidata/api_client/models/aggregator_type.py +4 -2
- rapidata/api_client/models/and_filter.py +121 -0
- rapidata/api_client/models/and_filter_filters_inner.py +282 -0
- rapidata/api_client/models/are_rapids_active_result.py +2 -2
- rapidata/api_client/models/asset_metadata.py +11 -9
- rapidata/api_client/models/asset_type.py +40 -0
- rapidata/api_client/models/attach_category_rapid_blueprint.py +13 -3
- rapidata/api_client/models/attach_category_rapid_blueprint_category.py +89 -0
- rapidata/api_client/models/audience_job_state.py +38 -0
- rapidata/api_client/models/audience_status.py +39 -0
- rapidata/api_client/models/benchmark_query_result.py +5 -3
- rapidata/api_client/models/boost_leaderboard_model.py +5 -5
- rapidata/api_client/models/boost_mode.py +37 -0
- rapidata/api_client/models/boost_query_result.py +7 -10
- rapidata/api_client/models/boost_query_result_boost_mode.py +37 -0
- rapidata/api_client/models/boost_query_result_boost_status.py +39 -0
- rapidata/api_client/models/boosting_profile.py +91 -0
- rapidata/api_client/models/box_shape.py +4 -33
- rapidata/api_client/models/campaign_filter.py +98 -0
- rapidata/api_client/models/campaign_query_result.py +15 -13
- rapidata/api_client/models/campaign_status.py +2 -2
- rapidata/api_client/models/change_boost_model.py +89 -0
- rapidata/api_client/models/classification_metadata.py +12 -1
- rapidata/api_client/models/classify_payload.py +14 -15
- rapidata/api_client/models/classify_payload_category.py +89 -0
- rapidata/api_client/models/client_model.py +25 -35
- rapidata/api_client/models/clients_query_result.py +5 -5
- rapidata/api_client/models/clone_order_model.py +4 -4
- rapidata/api_client/models/clone_order_result.py +9 -4
- rapidata/api_client/models/compare_rapid_blueprint.py +5 -3
- rapidata/api_client/models/compare_rapid_blueprint1.py +96 -0
- rapidata/api_client/models/compare_workflow_config.py +34 -23
- rapidata/api_client/models/compare_workflow_config_context_asset.py +174 -0
- rapidata/api_client/models/compare_workflow_config_model.py +15 -5
- rapidata/api_client/models/compare_workflow_model.py +34 -6
- rapidata/api_client/models/compare_workflow_model1.py +20 -9
- rapidata/api_client/models/compare_workflow_model_context_asset.py +160 -0
- rapidata/api_client/models/compare_workflow_model_metadata_inner.py +154 -0
- rapidata/api_client/models/compare_workflow_model_pair_maker_config.py +1 -1
- rapidata/api_client/models/comparison_operator.py +2 -2
- rapidata/api_client/models/conditional_validation_selection.py +6 -11
- rapidata/api_client/models/conditional_validation_selection_validation_chance.py +103 -0
- rapidata/api_client/models/confidence_interval.py +89 -0
- rapidata/api_client/models/count_metadata.py +12 -1
- rapidata/api_client/models/country_filter.py +98 -0
- rapidata/api_client/models/create_audience_request.py +122 -0
- rapidata/api_client/models/create_audience_result.py +87 -0
- rapidata/api_client/models/create_benchmark_model.py +5 -5
- rapidata/api_client/models/create_benchmark_participant_model.py +5 -5
- rapidata/api_client/models/create_benchmark_participant_result.py +4 -4
- rapidata/api_client/models/create_benchmark_prompt_result.py +87 -0
- rapidata/api_client/models/create_benchmark_result.py +2 -2
- rapidata/api_client/models/create_bridge_token_result.py +2 -2
- rapidata/api_client/models/create_client_model.py +6 -13
- rapidata/api_client/models/create_complex_order_model.py +9 -9
- rapidata/api_client/models/create_complex_order_result.py +2 -2
- rapidata/api_client/models/create_customer_client_result.py +2 -2
- rapidata/api_client/models/create_datapoint_from_files_model.py +3 -3
- rapidata/api_client/models/create_datapoint_from_text_sources_model.py +3 -3
- rapidata/api_client/models/create_datapoint_from_urls_model.py +3 -3
- rapidata/api_client/models/create_datapoint_model.py +124 -0
- rapidata/api_client/models/create_datapoint_model_asset.py +154 -0
- rapidata/api_client/models/create_datapoint_model_context_asset.py +160 -0
- rapidata/api_client/models/create_datapoint_model_metadata_inner.py +154 -0
- rapidata/api_client/models/create_datapoint_result.py +2 -2
- rapidata/api_client/models/create_dataset_endpoint_input.py +87 -0
- rapidata/api_client/models/create_dataset_endpoint_output.py +87 -0
- rapidata/api_client/models/create_demographic_rapid_model.py +45 -7
- rapidata/api_client/models/create_demographic_rapid_model_asset.py +160 -0
- rapidata/api_client/models/create_demographic_rapid_model_context_asset.py +160 -0
- rapidata/api_client/models/create_demographic_rapid_model_new.py +119 -0
- rapidata/api_client/models/create_empty_validation_set_result.py +2 -2
- rapidata/api_client/models/create_job_definition_endpoint_input.py +119 -0
- rapidata/api_client/models/create_job_definition_endpoint_output.py +89 -0
- rapidata/api_client/models/create_job_endpoint_input.py +100 -0
- rapidata/api_client/models/create_job_endpoint_output.py +89 -0
- rapidata/api_client/models/create_job_revision_endpoint_input.py +127 -0
- rapidata/api_client/models/create_job_revision_endpoint_output.py +89 -0
- rapidata/api_client/models/create_leaderboard_model.py +42 -15
- rapidata/api_client/models/create_leaderboard_result.py +2 -2
- rapidata/api_client/models/create_order_definition_model.py +119 -0
- rapidata/api_client/models/create_order_definition_result.py +87 -0
- rapidata/api_client/models/create_order_definition_revision_model.py +117 -0
- rapidata/api_client/models/create_order_definition_revision_result.py +87 -0
- rapidata/api_client/models/create_order_model.py +30 -101
- rapidata/api_client/models/create_order_model_referee.py +12 -12
- rapidata/api_client/models/create_order_model_workflow.py +35 -21
- rapidata/api_client/models/create_order_result.py +2 -2
- rapidata/api_client/models/create_rapid_result.py +2 -2
- rapidata/api_client/models/create_sample_model.py +13 -7
- rapidata/api_client/models/create_sample_model_asset.py +154 -0
- rapidata/api_client/models/create_sample_model_obsolete.py +87 -0
- rapidata/api_client/models/create_simple_pipeline_model_pipeline_steps_inner.py +8 -22
- rapidata/api_client/models/create_unsupported_order_model.py +6 -6
- rapidata/api_client/models/create_validation_set_model.py +5 -5
- rapidata/api_client/models/datapoint_model.py +3 -3
- rapidata/api_client/models/datapoint_state.py +2 -2
- rapidata/api_client/models/definition_type.py +49 -0
- rapidata/api_client/models/demographic_filter.py +100 -0
- rapidata/api_client/models/dynamic_client_registration_request.py +21 -36
- rapidata/api_client/models/early_stopping_referee_model.py +3 -3
- rapidata/api_client/models/effort_capped_selection.py +2 -11
- rapidata/api_client/models/elo_config.py +2 -2
- rapidata/api_client/models/elo_config_model.py +6 -6
- rapidata/api_client/models/entity_tag_header_value.py +93 -0
- rapidata/api_client/models/evaluation_workflow_config.py +13 -3
- rapidata/api_client/models/evaluation_workflow_model.py +16 -6
- rapidata/api_client/models/existing_asset_input.py +109 -0
- rapidata/api_client/models/existing_asset_input_metadata_value.py +126 -0
- rapidata/api_client/models/feature_flag.py +2 -2
- rapidata/api_client/models/feature_flag_model.py +6 -6
- rapidata/api_client/models/feedback_model.py +7 -7
- rapidata/api_client/models/file_asset.py +3 -5
- rapidata/api_client/models/file_asset_input_file.py +8 -22
- rapidata/api_client/models/file_asset_metadata_value.py +252 -0
- rapidata/api_client/models/file_asset_model_metadata_value.py +18 -88
- rapidata/api_client/models/file_stream_result.py +122 -0
- rapidata/api_client/models/file_type.py +2 -2
- rapidata/api_client/models/file_type_metadata.py +11 -6
- rapidata/api_client/models/file_type_metadata_model.py +2 -8
- rapidata/api_client/models/filter.py +7 -25
- rapidata/api_client/models/filter_operator.py +2 -2
- rapidata/api_client/models/fork_benchmark_result.py +87 -0
- rapidata/api_client/models/form_file_wrapper.py +17 -2
- rapidata/api_client/models/free_text_payload.py +10 -3
- rapidata/api_client/models/free_text_rapid_blueprint.py +10 -3
- rapidata/api_client/models/gender_user_filter_model.py +2 -2
- rapidata/api_client/models/gender_user_filter_model_gender.py +38 -0
- rapidata/api_client/models/get_asset_metadata_result.py +100 -0
- rapidata/api_client/models/get_audience_by_id_result.py +118 -0
- rapidata/api_client/models/get_available_validation_sets_result.py +2 -2
- rapidata/api_client/models/get_benchmark_by_id_result.py +8 -4
- rapidata/api_client/models/get_boost_result.py +97 -0
- rapidata/api_client/models/get_boost_result_boost_mode.py +37 -0
- rapidata/api_client/models/get_boost_result_boost_status.py +39 -0
- rapidata/api_client/models/get_compare_ab_summary_result.py +5 -5
- rapidata/api_client/models/get_compare_workflow_results_model.py +7 -7
- rapidata/api_client/models/get_compare_workflow_results_result.py +5 -5
- rapidata/api_client/models/get_datapoint_by_id_result.py +10 -21
- rapidata/api_client/models/get_datapoint_by_id_result_asset.py +170 -0
- rapidata/api_client/models/get_dataset_by_id_result.py +2 -2
- rapidata/api_client/models/get_dataset_progress_result.py +2 -2
- rapidata/api_client/models/get_evaluation_workflow_results_model.py +119 -0
- rapidata/api_client/models/get_failed_datapoints_result.py +5 -5
- rapidata/api_client/models/get_failed_datapoints_result_datapoint.py +100 -0
- rapidata/api_client/models/get_file_metadata_result.py +100 -0
- rapidata/api_client/models/get_grouped_ranking_workflow_results_model.py +106 -0
- rapidata/api_client/models/get_grouped_ranking_workflow_results_result.py +97 -0
- rapidata/api_client/models/get_grouped_ranking_workflow_results_result_paged_result.py +105 -0
- rapidata/api_client/models/get_job_by_id_endpoint_output.py +130 -0
- rapidata/api_client/models/get_job_definition_by_id_endpoint_output.py +95 -0
- rapidata/api_client/models/get_job_revision_endpoint_output.py +133 -0
- rapidata/api_client/models/get_leaderboard_by_id_result.py +31 -4
- rapidata/api_client/models/get_order_by_id_result.py +12 -5
- rapidata/api_client/models/get_participant_by_id_result.py +4 -6
- rapidata/api_client/models/get_pipeline_by_id_result.py +5 -5
- rapidata/api_client/models/get_public_orders_result.py +2 -2
- rapidata/api_client/models/get_public_responses_result.py +95 -0
- rapidata/api_client/models/get_public_responses_result_response.py +112 -0
- rapidata/api_client/models/get_rapid_responses_result.py +6 -12
- rapidata/api_client/models/get_recommended_validation_set_result.py +95 -0
- rapidata/api_client/models/get_responses_for_rapid_result.py +106 -0
- rapidata/api_client/models/get_responses_for_rapid_result_response.py +103 -0
- rapidata/api_client/models/get_responses_for_rapid_result_response_result.py +266 -0
- rapidata/api_client/models/get_responses_result.py +5 -5
- rapidata/api_client/models/get_responses_result_response.py +103 -0
- rapidata/api_client/models/get_sample_by_id_result.py +125 -0
- rapidata/api_client/models/get_simple_workflow_results_model.py +20 -15
- rapidata/api_client/models/get_standing_by_id_result.py +6 -14
- rapidata/api_client/models/get_validation_rapids_result.py +32 -41
- rapidata/api_client/models/get_validation_set_by_id_result.py +10 -4
- rapidata/api_client/models/get_workflow_by_id_result.py +5 -5
- rapidata/api_client/models/get_workflow_by_id_result_workflow.py +23 -9
- rapidata/api_client/models/get_workflow_progress_result.py +5 -11
- rapidata/api_client/models/get_workflow_results_result.py +34 -23
- rapidata/api_client/models/get_workflow_results_result_response.py +103 -0
- rapidata/api_client/models/google_one_tap_login_model.py +4 -4
- rapidata/api_client/models/grouped_ranking_workflow_config.py +155 -0
- rapidata/api_client/models/grouped_ranking_workflow_config_context_assets_value.py +170 -0
- rapidata/api_client/models/grouped_ranking_workflow_model.py +147 -0
- rapidata/api_client/models/grouped_ranking_workflow_model1.py +121 -0
- rapidata/api_client/models/i_artifact_model.py +182 -0
- rapidata/api_client/models/i_artifact_model_campaign_artifact_model.py +98 -0
- rapidata/api_client/models/i_artifact_model_dataset_artifact_model.py +98 -0
- rapidata/api_client/models/i_artifact_model_file_artifact_model.py +98 -0
- rapidata/api_client/models/i_artifact_model_workflow_artifact_model.py +98 -0
- rapidata/api_client/models/i_artifact_model_workflow_config_artifact_model.py +102 -0
- rapidata/api_client/models/i_asset.py +170 -0
- rapidata/api_client/models/i_asset_file_asset.py +111 -0
- rapidata/api_client/models/i_asset_input.py +156 -0
- rapidata/api_client/models/i_asset_input_existing_asset_input.py +118 -0
- rapidata/api_client/models/i_asset_input_multi_asset_input.py +128 -0
- rapidata/api_client/models/i_asset_input_text_asset_input.py +118 -0
- rapidata/api_client/models/i_asset_model.py +170 -0
- rapidata/api_client/models/i_asset_model_file_asset_model.py +113 -0
- rapidata/api_client/models/i_asset_model_multi_asset_model.py +123 -0
- rapidata/api_client/models/i_asset_model_null_asset_model.py +111 -0
- rapidata/api_client/models/i_asset_model_text_asset_model.py +113 -0
- rapidata/api_client/models/i_asset_multi_asset.py +121 -0
- rapidata/api_client/models/i_asset_null_asset.py +109 -0
- rapidata/api_client/models/i_asset_text_asset.py +111 -0
- rapidata/api_client/models/i_audience_filter.py +184 -0
- rapidata/api_client/models/i_audience_filter_and_audience_filter.py +106 -0
- rapidata/api_client/models/i_audience_filter_country_audience_filter.py +96 -0
- rapidata/api_client/models/i_audience_filter_country_filter.py +96 -0
- rapidata/api_client/models/i_audience_filter_language_audience_filter.py +96 -0
- rapidata/api_client/models/i_audience_filter_language_filter.py +96 -0
- rapidata/api_client/models/i_audience_filter_not_audience_filter.py +102 -0
- rapidata/api_client/models/i_audience_filter_or_audience_filter.py +106 -0
- rapidata/api_client/models/i_campaign_filter.py +296 -0
- rapidata/api_client/models/i_campaign_filter_and_filter.py +117 -0
- rapidata/api_client/models/i_campaign_filter_campaign_filter.py +98 -0
- rapidata/api_client/models/i_campaign_filter_campaign_session_count_filter.py +101 -0
- rapidata/api_client/models/i_campaign_filter_country_filter.py +98 -0
- rapidata/api_client/models/i_campaign_filter_demographic_filter.py +100 -0
- rapidata/api_client/models/i_campaign_filter_device_filter.py +106 -0
- rapidata/api_client/models/i_campaign_filter_language_filter.py +98 -0
- rapidata/api_client/models/i_campaign_filter_new_user_filter.py +96 -0
- rapidata/api_client/models/i_campaign_filter_not_filter.py +113 -0
- rapidata/api_client/models/i_campaign_filter_or_filter.py +117 -0
- rapidata/api_client/models/i_campaign_filter_response_count_filter.py +103 -0
- rapidata/api_client/models/i_campaign_filter_user_action_restriction_filter.py +106 -0
- rapidata/api_client/models/i_campaign_filter_user_score_filter.py +102 -0
- rapidata/api_client/models/i_campaign_filter_user_state_filter.py +106 -0
- rapidata/api_client/models/i_dataset_metadata_input.py +154 -0
- rapidata/api_client/models/i_dataset_metadata_input_prompt_asset_metadata_input.py +100 -0
- rapidata/api_client/models/i_dataset_metadata_input_prompt_metadata_input.py +96 -0
- rapidata/api_client/models/i_dataset_metadata_input_transcription_metadata_input.py +96 -0
- rapidata/api_client/models/i_dataset_model.py +126 -0
- rapidata/api_client/models/i_dataset_model_clone_dataset_model.py +98 -0
- rapidata/api_client/models/i_metadata.py +252 -0
- rapidata/api_client/models/i_metadata_classification_metadata.py +109 -0
- rapidata/api_client/models/i_metadata_count_metadata.py +109 -0
- rapidata/api_client/models/i_metadata_duration_metadata.py +110 -0
- rapidata/api_client/models/i_metadata_file_type_metadata.py +110 -0
- rapidata/api_client/models/i_metadata_image_dimension_metadata.py +111 -0
- rapidata/api_client/models/i_metadata_input.py +126 -0
- rapidata/api_client/models/i_metadata_input_text_metadata_input.py +111 -0
- rapidata/api_client/models/i_metadata_location_metadata.py +111 -0
- rapidata/api_client/models/i_metadata_model.py +252 -0
- rapidata/api_client/models/i_metadata_model_classification_metadata_model.py +96 -0
- rapidata/api_client/models/i_metadata_model_count_metadata_model.py +96 -0
- rapidata/api_client/models/i_metadata_model_file_type_metadata_model.py +97 -0
- rapidata/api_client/models/i_metadata_model_image_dimension_metadata_model.py +98 -0
- rapidata/api_client/models/i_metadata_model_location_metadata_model.py +98 -0
- rapidata/api_client/models/i_metadata_model_original_filename_metadata_model.py +96 -0
- rapidata/api_client/models/i_metadata_model_source_url_metadata_model.py +96 -0
- rapidata/api_client/models/i_metadata_model_streams_metadata_model.py +100 -0
- rapidata/api_client/models/i_metadata_model_text_metadata_model.py +101 -0
- rapidata/api_client/models/i_metadata_model_video_duration_metadata_model.py +97 -0
- rapidata/api_client/models/i_metadata_original_filename_metadata.py +109 -0
- rapidata/api_client/models/i_metadata_source_url_metadata.py +109 -0
- rapidata/api_client/models/i_metadata_streams_metadata.py +113 -0
- rapidata/api_client/models/i_metadata_text_metadata.py +114 -0
- rapidata/api_client/models/i_metadata_video_duration_metadata.py +110 -0
- rapidata/api_client/models/i_order_workflow_model.py +168 -0
- rapidata/api_client/models/i_order_workflow_model_compare_workflow_model.py +146 -0
- rapidata/api_client/models/i_order_workflow_model_evaluation_workflow_model.py +108 -0
- rapidata/api_client/models/i_order_workflow_model_grouped_ranking_workflow_model.py +147 -0
- rapidata/api_client/models/i_order_workflow_model_simple_workflow_model.py +110 -0
- rapidata/api_client/models/i_pair_maker_config.py +126 -0
- rapidata/api_client/models/i_pair_maker_config_model.py +126 -0
- rapidata/api_client/models/i_pair_maker_config_model_online_pair_maker_config_model.py +98 -0
- rapidata/api_client/models/i_pair_maker_config_online_pair_maker_config.py +98 -0
- rapidata/api_client/models/i_pair_maker_information.py +126 -0
- rapidata/api_client/models/i_pair_maker_information_online_pair_maker_information.py +100 -0
- rapidata/api_client/models/i_pipeline_artifact_model.py +126 -0
- rapidata/api_client/models/i_pipeline_artifact_model_create_dataset_artifact_model.py +102 -0
- rapidata/api_client/models/i_pipeline_model.py +126 -0
- rapidata/api_client/models/i_pipeline_model_create_simple_pipeline_model.py +116 -0
- rapidata/api_client/models/i_pipeline_step_model.py +168 -0
- rapidata/api_client/models/i_pipeline_step_model_dataset_evaluation_step_model.py +102 -0
- rapidata/api_client/models/i_pipeline_step_model_send_completion_mail_step_model.py +98 -0
- rapidata/api_client/models/i_pipeline_step_model_workflow_aggregation_step_model.py +103 -0
- rapidata/api_client/models/i_pipeline_step_model_workflow_labeling_step_model.py +96 -0
- rapidata/api_client/models/i_rapid_blueprint.py +252 -0
- rapidata/api_client/models/i_rapid_blueprint_attach_category_rapid_blueprint.py +108 -0
- rapidata/api_client/models/i_rapid_blueprint_bounding_box_rapid_blueprint.py +96 -0
- rapidata/api_client/models/i_rapid_blueprint_compare_rapid_blueprint.py +98 -0
- rapidata/api_client/models/i_rapid_blueprint_free_text_rapid_blueprint.py +105 -0
- rapidata/api_client/models/i_rapid_blueprint_line_rapid_blueprint.py +96 -0
- rapidata/api_client/models/i_rapid_blueprint_locate_rapid_blueprint.py +96 -0
- rapidata/api_client/models/i_rapid_blueprint_named_entity_rapid_blueprint.py +98 -0
- rapidata/api_client/models/i_rapid_blueprint_polygon_rapid_blueprint.py +96 -0
- rapidata/api_client/models/i_rapid_blueprint_scrub_rapid_blueprint.py +96 -0
- rapidata/api_client/models/i_rapid_blueprint_transcription_rapid_blueprint.py +96 -0
- rapidata/api_client/models/i_rapid_payload.py +252 -0
- rapidata/api_client/models/i_rapid_payload_bounding_box_payload.py +96 -0
- rapidata/api_client/models/i_rapid_payload_classify_payload.py +106 -0
- rapidata/api_client/models/i_rapid_payload_compare_payload.py +96 -0
- rapidata/api_client/models/i_rapid_payload_free_text_payload.py +105 -0
- rapidata/api_client/models/i_rapid_payload_line_payload.py +96 -0
- rapidata/api_client/models/i_rapid_payload_locate_payload.py +96 -0
- rapidata/api_client/models/i_rapid_payload_named_entity_payload.py +98 -0
- rapidata/api_client/models/i_rapid_payload_polygon_payload.py +96 -0
- rapidata/api_client/models/i_rapid_payload_scrub_payload.py +96 -0
- rapidata/api_client/models/i_rapid_payload_transcription_payload.py +106 -0
- rapidata/api_client/models/i_rapid_result.py +266 -0
- rapidata/api_client/models/i_rapid_result_attach_category_result.py +98 -0
- rapidata/api_client/models/i_rapid_result_bounding_box_result.py +106 -0
- rapidata/api_client/models/i_rapid_result_compare_result.py +98 -0
- rapidata/api_client/models/i_rapid_result_free_text_result.py +98 -0
- rapidata/api_client/models/i_rapid_result_line_result.py +106 -0
- rapidata/api_client/models/i_rapid_result_locate_result.py +106 -0
- rapidata/api_client/models/i_rapid_result_named_entity_result.py +106 -0
- rapidata/api_client/models/i_rapid_result_polygon_result.py +106 -0
- rapidata/api_client/models/i_rapid_result_scrub_result.py +98 -0
- rapidata/api_client/models/i_rapid_result_skip_result.py +96 -0
- rapidata/api_client/models/i_rapid_result_transcription_result.py +106 -0
- rapidata/api_client/models/i_referee_config.py +154 -0
- rapidata/api_client/models/i_referee_config_naive_referee_config.py +96 -0
- rapidata/api_client/models/i_referee_config_never_ending_referee_config.py +94 -0
- rapidata/api_client/models/i_referee_config_probabilistic_attach_category_referee_config.py +98 -0
- rapidata/api_client/models/i_referee_info.py +154 -0
- rapidata/api_client/models/i_referee_info_naive_referee_info.py +96 -0
- rapidata/api_client/models/i_referee_info_never_ending_referee_info.py +94 -0
- rapidata/api_client/models/i_referee_info_probabilistic_attach_category_referee_info.py +98 -0
- rapidata/api_client/models/i_referee_model.py +140 -0
- rapidata/api_client/models/i_referee_model_early_stopping_referee_model.py +98 -0
- rapidata/api_client/models/i_referee_model_naive_referee_model.py +96 -0
- rapidata/api_client/models/i_selection.py +240 -0
- rapidata/api_client/models/i_selection_ab_test_selection.py +122 -0
- rapidata/api_client/models/i_selection_capped_selection.py +108 -0
- rapidata/api_client/models/i_selection_conditional_validation_selection.py +110 -0
- rapidata/api_client/models/i_selection_demographic_selection.py +98 -0
- rapidata/api_client/models/i_selection_effort_capped_selection.py +101 -0
- rapidata/api_client/models/i_selection_labeling_selection.py +103 -0
- rapidata/api_client/models/i_selection_shuffling_selection.py +106 -0
- rapidata/api_client/models/i_selection_static_selection.py +96 -0
- rapidata/api_client/models/i_selection_validation_selection.py +98 -0
- rapidata/api_client/models/i_user_filter_model.py +296 -0
- rapidata/api_client/models/i_user_filter_model_age_user_filter_model.py +104 -0
- rapidata/api_client/models/i_user_filter_model_and_user_filter_model.py +106 -0
- rapidata/api_client/models/i_user_filter_model_campaign_user_filter_model.py +96 -0
- rapidata/api_client/models/i_user_filter_model_country_user_filter_model.py +96 -0
- rapidata/api_client/models/i_user_filter_model_custom_user_filter_model.py +98 -0
- rapidata/api_client/models/i_user_filter_model_device_user_filter_model.py +104 -0
- rapidata/api_client/models/i_user_filter_model_gender_user_filter_model.py +104 -0
- rapidata/api_client/models/i_user_filter_model_language_user_filter_model.py +96 -0
- rapidata/api_client/models/i_user_filter_model_new_user_filter_model.py +94 -0
- rapidata/api_client/models/i_user_filter_model_not_user_filter_model.py +102 -0
- rapidata/api_client/models/i_user_filter_model_or_user_filter_model.py +106 -0
- rapidata/api_client/models/i_user_filter_model_response_count_user_filter_model.py +101 -0
- rapidata/api_client/models/i_user_filter_model_user_score_user_filter_model.py +105 -0
- rapidata/api_client/models/i_validation_metadata_input.py +140 -0
- rapidata/api_client/models/i_validation_metadata_input_prompt_asset_metadata_input.py +100 -0
- rapidata/api_client/models/i_validation_metadata_input_prompt_metadata_input.py +96 -0
- rapidata/api_client/models/i_validation_truth.py +280 -0
- rapidata/api_client/models/i_validation_truth_attach_category_truth.py +96 -0
- rapidata/api_client/models/i_validation_truth_bounding_box_truth.py +102 -0
- rapidata/api_client/models/i_validation_truth_compare_truth.py +96 -0
- rapidata/api_client/models/i_validation_truth_empty_validation_truth.py +94 -0
- rapidata/api_client/models/i_validation_truth_line_truth.py +94 -0
- rapidata/api_client/models/i_validation_truth_locate_box_truth.py +108 -0
- rapidata/api_client/models/i_validation_truth_model.py +294 -0
- rapidata/api_client/models/i_validation_truth_model_attach_category_truth_model.py +96 -0
- rapidata/api_client/models/i_validation_truth_model_bounding_box_truth_model.py +102 -0
- rapidata/api_client/models/i_validation_truth_model_classify_truth_model.py +96 -0
- rapidata/api_client/models/i_validation_truth_model_compare_truth_model.py +96 -0
- rapidata/api_client/models/i_validation_truth_model_empty_validation_truth_model.py +94 -0
- rapidata/api_client/models/i_validation_truth_model_line_truth_model.py +94 -0
- rapidata/api_client/models/i_validation_truth_model_locate_box_truth_model.py +108 -0
- rapidata/api_client/models/i_validation_truth_model_multi_compare_truth_model.py +96 -0
- rapidata/api_client/models/i_validation_truth_model_named_entity_truth_model.py +104 -0
- rapidata/api_client/models/i_validation_truth_model_polygon_truth_model.py +94 -0
- rapidata/api_client/models/i_validation_truth_model_scrub_truth_model.py +104 -0
- rapidata/api_client/models/i_validation_truth_model_skip_truth_model.py +94 -0
- rapidata/api_client/models/i_validation_truth_model_transcription_truth_model.py +115 -0
- rapidata/api_client/models/i_validation_truth_multi_compare_truth.py +96 -0
- rapidata/api_client/models/i_validation_truth_named_entity_truth.py +104 -0
- rapidata/api_client/models/i_validation_truth_polygon_truth.py +94 -0
- rapidata/api_client/models/i_validation_truth_scrub_truth.py +104 -0
- rapidata/api_client/models/i_validation_truth_skip_truth.py +94 -0
- rapidata/api_client/models/i_validation_truth_transcription_truth.py +115 -0
- rapidata/api_client/models/i_workflow_config.py +168 -0
- rapidata/api_client/models/i_workflow_config_compare_workflow_config.py +142 -0
- rapidata/api_client/models/i_workflow_config_evaluation_workflow_config.py +114 -0
- rapidata/api_client/models/i_workflow_config_grouped_ranking_workflow_config.py +155 -0
- rapidata/api_client/models/i_workflow_config_simple_workflow_config.py +116 -0
- rapidata/api_client/models/i_workflow_model.py +168 -0
- rapidata/api_client/models/i_workflow_model_compare_workflow_model.py +145 -0
- rapidata/api_client/models/i_workflow_model_evaluation_workflow_model.py +115 -0
- rapidata/api_client/models/i_workflow_model_grouped_ranking_workflow_model.py +121 -0
- rapidata/api_client/models/i_workflow_model_simple_workflow_model.py +119 -0
- rapidata/api_client/models/image_dimension_metadata.py +12 -1
- rapidata/api_client/models/inquire_file_metadata_result.py +100 -0
- rapidata/api_client/models/inspect_report_result.py +2 -2
- rapidata/api_client/models/job_definition_revision_state.py +38 -0
- rapidata/api_client/models/json_web_key.py +2 -36
- rapidata/api_client/models/json_web_key_set.py +2 -22
- rapidata/api_client/models/labeling_selection.py +11 -13
- rapidata/api_client/models/language_filter.py +98 -0
- rapidata/api_client/models/leaderboard_query_result.py +29 -2
- rapidata/api_client/models/leaderboards_query_result.py +135 -0
- rapidata/api_client/models/line_result.py +3 -3
- rapidata/api_client/models/line_result_line.py +97 -0
- rapidata/api_client/models/line_result_line_point.py +89 -0
- rapidata/api_client/models/locate_coordinate.py +4 -13
- rapidata/api_client/models/location_metadata.py +12 -1
- rapidata/api_client/models/logic_operator.py +2 -2
- rapidata/api_client/models/metadata_i_order_metadata_input.py +154 -0
- rapidata/api_client/models/metadata_i_order_metadata_input_metadata_prompt_asset_metadata_input.py +100 -0
- rapidata/api_client/models/metadata_i_order_metadata_input_metadata_prompt_metadata_input.py +96 -0
- rapidata/api_client/models/metadata_i_order_metadata_input_metadata_transcription_metadata_input.py +96 -0
- rapidata/api_client/models/metadata_prompt_asset_metadata_input.py +100 -0
- rapidata/api_client/models/metadata_prompt_metadata_input.py +96 -0
- rapidata/api_client/models/metadata_transcription_metadata_input.py +96 -0
- rapidata/api_client/models/multi_asset.py +6 -6
- rapidata/api_client/models/multi_asset_assets_inner.py +170 -0
- rapidata/api_client/models/multi_asset_input.py +21 -1
- rapidata/api_client/models/multi_asset_input1_assets_inner.py +40 -12
- rapidata/api_client/models/multi_asset_input3_assets_inner.py +40 -12
- rapidata/api_client/models/multi_asset_input_assets_inner.py +16 -30
- rapidata/api_client/models/multi_asset_model.py +3 -3
- rapidata/api_client/models/naive_referee_model.py +2 -2
- rapidata/api_client/models/named_classification.py +4 -13
- rapidata/api_client/models/new_user_filter.py +96 -0
- rapidata/api_client/models/newsletter_model.py +6 -6
- rapidata/api_client/models/not_available_yet_result.py +4 -13
- rapidata/api_client/models/not_filter.py +117 -0
- rapidata/api_client/models/null_asset.py +3 -5
- rapidata/api_client/models/online_pair_maker_config_model.py +3 -3
- rapidata/api_client/models/option_of_aggregator_type.py +49 -0
- rapidata/api_client/models/or_filter.py +121 -0
- rapidata/api_client/models/order_model.py +15 -14
- rapidata/api_client/models/order_state.py +2 -2
- rapidata/api_client/models/original_filename_metadata.py +12 -1
- rapidata/api_client/models/page_info.py +2 -7
- rapidata/api_client/models/paged_result_aggregated_orders_model.py +105 -0
- rapidata/api_client/models/paged_result_benchmark_query_result.py +105 -0
- rapidata/api_client/models/paged_result_campaign_query_result.py +105 -0
- rapidata/api_client/models/paged_result_clients_query_result.py +105 -0
- rapidata/api_client/models/paged_result_datapoint_model.py +105 -0
- rapidata/api_client/models/paged_result_get_compare_workflow_results_result.py +105 -0
- rapidata/api_client/models/paged_result_get_grouped_ranking_workflow_results_result.py +105 -0
- rapidata/api_client/models/paged_result_get_validation_rapids_result.py +105 -0
- rapidata/api_client/models/paged_result_get_workflow_results_result.py +105 -0
- rapidata/api_client/models/paged_result_i_workflow_model.py +105 -0
- rapidata/api_client/models/paged_result_leaderboard_query_result.py +105 -0
- rapidata/api_client/models/paged_result_leaderboards_query_result.py +105 -0
- rapidata/api_client/models/paged_result_of_aggregated_orders_model.py +103 -0
- rapidata/api_client/models/paged_result_of_benchmark_query_result.py +103 -0
- rapidata/api_client/models/paged_result_of_campaign_query_result.py +103 -0
- rapidata/api_client/models/paged_result_of_clients_query_result.py +103 -0
- rapidata/api_client/models/paged_result_of_get_compare_workflow_results_result.py +103 -0
- rapidata/api_client/models/paged_result_of_get_grouped_ranking_workflow_results_result.py +103 -0
- rapidata/api_client/models/paged_result_of_get_validation_rapids_result.py +103 -0
- rapidata/api_client/models/paged_result_of_get_workflow_results_result.py +103 -0
- rapidata/api_client/models/paged_result_of_i_workflow_model.py +103 -0
- rapidata/api_client/models/paged_result_of_leaderboards_query_result.py +103 -0
- rapidata/api_client/models/paged_result_of_order_model.py +103 -0
- rapidata/api_client/models/paged_result_of_participant_by_benchmark.py +103 -0
- rapidata/api_client/models/paged_result_of_prompt_by_benchmark_result.py +103 -0
- rapidata/api_client/models/paged_result_of_query_audiences_result.py +103 -0
- rapidata/api_client/models/paged_result_of_query_datapoints_by_dataset_id_result.py +103 -0
- rapidata/api_client/models/paged_result_of_query_job_definitions_result.py +103 -0
- rapidata/api_client/models/paged_result_of_query_job_revisions_result.py +103 -0
- rapidata/api_client/models/paged_result_of_query_jobs_result.py +103 -0
- rapidata/api_client/models/paged_result_of_query_rapids_for_audience_result.py +103 -0
- rapidata/api_client/models/paged_result_of_query_validation_rapid_eligibility_result.py +103 -0
- rapidata/api_client/models/paged_result_of_rapid_model.py +103 -0
- rapidata/api_client/models/paged_result_of_runs_by_leaderboard_result.py +103 -0
- rapidata/api_client/models/paged_result_of_sample_by_identifier.py +103 -0
- rapidata/api_client/models/paged_result_of_sample_by_participant.py +103 -0
- rapidata/api_client/models/paged_result_of_standing_by_leaderboard.py +103 -0
- rapidata/api_client/models/paged_result_of_validation_set_model.py +103 -0
- rapidata/api_client/models/paged_result_order_model.py +105 -0
- rapidata/api_client/models/paged_result_participant_by_benchmark.py +105 -0
- rapidata/api_client/models/paged_result_potential_validation_rapid.py +105 -0
- rapidata/api_client/models/paged_result_prompt_by_benchmark_result.py +105 -0
- rapidata/api_client/models/paged_result_query_audiences_result.py +105 -0
- rapidata/api_client/models/paged_result_query_datapoints_by_dataset_id_result.py +105 -0
- rapidata/api_client/models/paged_result_query_validation_rapid_eligibility_result.py +105 -0
- rapidata/api_client/models/paged_result_rapid_model.py +105 -0
- rapidata/api_client/models/paged_result_runs_by_leaderboard_result.py +105 -0
- rapidata/api_client/models/paged_result_sample_by_identifier.py +105 -0
- rapidata/api_client/models/paged_result_sample_by_participant.py +105 -0
- rapidata/api_client/models/paged_result_standing_by_leaderboard.py +105 -0
- rapidata/api_client/models/paged_result_validation_set_model.py +105 -0
- rapidata/api_client/models/participant_by_benchmark.py +6 -14
- rapidata/api_client/models/participant_status.py +2 -2
- rapidata/api_client/models/polygon_result.py +3 -3
- rapidata/api_client/models/polygon_result_coordinate.py +89 -0
- rapidata/api_client/models/polygon_result_shape.py +95 -0
- rapidata/api_client/models/preliminary_download_model.py +5 -5
- rapidata/api_client/models/preview_order_model.py +5 -5
- rapidata/api_client/models/problem_details.py +2 -20
- rapidata/api_client/models/prompt_asset_metadata_input.py +4 -6
- rapidata/api_client/models/prompt_asset_metadata_input_asset.py +25 -41
- rapidata/api_client/models/prompt_by_benchmark_result.py +5 -5
- rapidata/api_client/models/prompt_metadata.py +12 -1
- rapidata/api_client/models/prompt_metadata_input.py +5 -7
- rapidata/api_client/models/prompt_type.py +38 -0
- rapidata/api_client/models/proxy_file_wrapper.py +17 -2
- rapidata/api_client/models/public_order_model.py +2 -2
- rapidata/api_client/models/public_rapid_response.py +112 -0
- rapidata/api_client/models/query_audiences_result.py +118 -0
- rapidata/api_client/models/query_datapoints_by_dataset_id_result.py +95 -0
- rapidata/api_client/models/query_job_definitions_result.py +97 -0
- rapidata/api_client/models/query_job_revisions_result.py +95 -0
- rapidata/api_client/models/query_jobs_result.py +103 -0
- rapidata/api_client/models/query_model.py +10 -5
- rapidata/api_client/models/query_rapids_for_audience_result.py +150 -0
- rapidata/api_client/models/query_validation_rapid_eligibility_model_query_validation_model.py +107 -0
- rapidata/api_client/models/query_validation_rapid_eligibility_result.py +103 -0
- rapidata/api_client/models/query_validation_rapid_eligibility_result_truth.py +280 -0
- rapidata/api_client/models/rapid_issue.py +2 -2
- rapidata/api_client/models/rapid_modality.py +46 -0
- rapidata/api_client/models/rapid_model.py +33 -49
- rapidata/api_client/models/rapid_result_model.py +7 -7
- rapidata/api_client/models/rapid_skipped_model.py +5 -5
- rapidata/api_client/models/rapid_state.py +2 -2
- rapidata/api_client/models/read_bridge_token_keys_result.py +10 -24
- rapidata/api_client/models/reference_asset_input.py +100 -0
- rapidata/api_client/models/report_model.py +9 -15
- rapidata/api_client/models/response_count_filter.py +103 -0
- rapidata/api_client/models/response_count_user_filter_model.py +2 -8
- rapidata/api_client/models/retrieval_mode.py +2 -2
- rapidata/api_client/models/root_filter.py +5 -14
- rapidata/api_client/models/run_status.py +2 -2
- rapidata/api_client/models/runs_by_leaderboard_result.py +6 -12
- rapidata/api_client/models/sample_by_identifier.py +125 -0
- rapidata/api_client/models/sample_by_identifier_paged_result.py +105 -0
- rapidata/api_client/models/sample_by_participant.py +7 -8
- rapidata/api_client/models/scrub_range.py +2 -2
- rapidata/api_client/models/send_survey_model.py +87 -0
- rapidata/api_client/models/simple_workflow_config.py +15 -5
- rapidata/api_client/models/simple_workflow_config_blueprint.py +37 -23
- rapidata/api_client/models/simple_workflow_config_model.py +11 -3
- rapidata/api_client/models/simple_workflow_model.py +14 -4
- rapidata/api_client/models/simple_workflow_model1.py +4 -11
- rapidata/api_client/models/simple_workflow_model_blueprint.py +1 -1
- rapidata/api_client/models/sort_criterion.py +5 -11
- rapidata/api_client/models/sort_direction.py +2 -2
- rapidata/api_client/models/source_url_metadata.py +12 -1
- rapidata/api_client/models/standing_by_benchmark.py +113 -0
- rapidata/api_client/models/standing_by_leaderboard.py +19 -21
- rapidata/api_client/models/standing_status.py +2 -2
- rapidata/api_client/models/standings_by_benchmark_result.py +95 -0
- rapidata/api_client/models/standings_by_leaderboard_result.py +2 -2
- rapidata/api_client/models/start_preliminary_download_result.py +87 -0
- rapidata/api_client/models/sticky_state.py +3 -2
- rapidata/api_client/models/stream_file_wrapper.py +25 -3
- rapidata/api_client/models/streams_metadata.py +12 -1
- rapidata/api_client/models/string_segment.py +105 -0
- rapidata/api_client/models/submit_order_model.py +5 -5
- rapidata/api_client/models/submit_participant_result.py +2 -2
- rapidata/api_client/models/submit_prompt_model.py +9 -14
- rapidata/api_client/models/submit_prompt_model_prompt_asset.py +40 -12
- rapidata/api_client/models/tags_by_benchmark_result.py +2 -2
- rapidata/api_client/models/text_asset.py +3 -5
- rapidata/api_client/models/text_asset_input.py +21 -1
- rapidata/api_client/models/text_metadata.py +18 -2
- rapidata/api_client/models/text_metadata_input.py +111 -0
- rapidata/api_client/models/text_metadata_model.py +7 -2
- rapidata/api_client/models/transcription_metadata.py +9 -1
- rapidata/api_client/models/transcription_metadata_input.py +5 -7
- rapidata/api_client/models/transcription_word.py +2 -2
- rapidata/api_client/models/translated_string.py +2 -2
- rapidata/api_client/models/unlock_order_result.py +2 -2
- rapidata/api_client/models/update_audience_request.py +113 -0
- rapidata/api_client/models/update_benchmark_model.py +99 -0
- rapidata/api_client/models/update_benchmark_name_model.py +5 -5
- rapidata/api_client/models/update_campaign_model.py +11 -11
- rapidata/api_client/models/update_dataset_name_model.py +5 -5
- rapidata/api_client/models/update_dimensions_model.py +3 -3
- rapidata/api_client/models/update_job_definition_endpoint_input.py +92 -0
- rapidata/api_client/models/update_leaderboard_model.py +106 -0
- rapidata/api_client/models/update_leaderboard_name_model.py +5 -5
- rapidata/api_client/models/update_leaderboard_response_config_model.py +5 -5
- rapidata/api_client/models/update_order_name_model.py +5 -5
- rapidata/api_client/models/update_participant_model.py +92 -0
- rapidata/api_client/models/update_participant_name_model.py +5 -5
- rapidata/api_client/models/update_priority_model.py +87 -0
- rapidata/api_client/models/update_prompt_tags_model.py +5 -5
- rapidata/api_client/models/update_should_alert_model.py +4 -4
- rapidata/api_client/models/update_validation_rapid_model.py +35 -14
- rapidata/api_client/models/update_validation_rapid_model_context_asset.py +160 -0
- rapidata/api_client/models/update_validation_set_model.py +120 -0
- rapidata/api_client/models/upload_asset_result.py +102 -0
- rapidata/api_client/models/upload_file_from_url_result.py +87 -0
- rapidata/api_client/models/upload_file_result.py +87 -0
- rapidata/api_client/models/user_action_restriction.py +37 -0
- rapidata/api_client/models/user_action_restriction_filter.py +101 -0
- rapidata/api_client/models/user_score_filter.py +102 -0
- rapidata/api_client/models/user_state.py +38 -0
- rapidata/api_client/models/user_state_filter.py +101 -0
- rapidata/api_client/models/validation_chance.py +20 -3
- rapidata/api_client/models/validation_problem_details.py +117 -0
- rapidata/api_client/models/validation_set_model.py +39 -5
- rapidata/api_client/models/validation_set_overview_model.py +2 -2
- rapidata/api_client/models/video_duration_metadata.py +12 -1
- rapidata/api_client/models/workflow_aggregation_step_model.py +3 -12
- rapidata/api_client/models/workflow_config_artifact_model_workflow_config.py +23 -9
- rapidata/api_client/models/workflow_state.py +2 -2
- rapidata/api_client/models/zip_entry_file_wrapper.py +33 -2
- rapidata/api_client/rest.py +2 -2
- rapidata/api_client_README.md +384 -318
- rapidata/rapidata_client/__init__.py +17 -22
- rapidata/rapidata_client/api/rapidata_api_client.py +253 -0
- rapidata/rapidata_client/audience/__init__.py +2 -0
- rapidata/rapidata_client/audience/audience_example_handler.py +168 -0
- rapidata/rapidata_client/audience/rapidata_audience.py +287 -0
- rapidata/rapidata_client/audience/rapidata_audience_manager.py +162 -0
- rapidata/rapidata_client/benchmark/_detail_mapper.py +11 -9
- rapidata/rapidata_client/benchmark/leaderboard/rapidata_leaderboard.py +98 -54
- rapidata/rapidata_client/benchmark/participant/_participant.py +90 -46
- rapidata/rapidata_client/benchmark/rapidata_benchmark.py +388 -225
- rapidata/rapidata_client/benchmark/rapidata_benchmark_manager.py +172 -65
- rapidata/rapidata_client/config/__init__.py +4 -0
- rapidata/rapidata_client/config/logger.py +135 -0
- rapidata/rapidata_client/config/logging_config.py +55 -0
- rapidata/rapidata_client/config/managed_print.py +6 -0
- rapidata/rapidata_client/config/order_config.py +14 -0
- rapidata/rapidata_client/config/rapidata_config.py +36 -0
- rapidata/rapidata_client/config/tracer.py +184 -0
- rapidata/rapidata_client/config/upload_config.py +64 -0
- rapidata/rapidata_client/datapoints/__init__.py +8 -3
- rapidata/rapidata_client/datapoints/_asset_uploader.py +184 -0
- rapidata/rapidata_client/datapoints/_datapoint.py +92 -0
- rapidata/rapidata_client/datapoints/_datapoint_uploader.py +47 -0
- rapidata/rapidata_client/datapoints/_datapoints_validator.py +70 -0
- rapidata/rapidata_client/datapoints/assets/__init__.py +0 -10
- rapidata/rapidata_client/datapoints/assets/constants.py +7 -0
- rapidata/rapidata_client/datapoints/metadata/__init__.py +0 -2
- rapidata/rapidata_client/datapoints/metadata/_private_text_metadata.py +5 -6
- rapidata/rapidata_client/datapoints/metadata/_prompt_identifier_metadata.py +4 -5
- rapidata/rapidata_client/datapoints/metadata/_public_text_metadata.py +5 -6
- rapidata/rapidata_client/datapoints/metadata/_select_words_metadata.py +3 -4
- rapidata/rapidata_client/dataset/__init__.py +1 -0
- rapidata/rapidata_client/dataset/_rapidata_dataset.py +55 -0
- rapidata/rapidata_client/demographic/demographic_manager.py +44 -19
- rapidata/rapidata_client/exceptions/failed_upload_exception.py +15 -41
- rapidata/rapidata_client/filter/_backend_filter_mapper.py +134 -0
- rapidata/rapidata_client/filter/_base_filter.py +13 -8
- rapidata/rapidata_client/filter/age_filter.py +26 -10
- rapidata/rapidata_client/filter/and_filter.py +36 -11
- rapidata/rapidata_client/filter/campaign_filter.py +21 -10
- rapidata/rapidata_client/filter/country_filter.py +46 -12
- rapidata/rapidata_client/filter/custom_filter.py +25 -12
- rapidata/rapidata_client/filter/gender_filter.py +25 -10
- rapidata/rapidata_client/filter/language_filter.py +51 -21
- rapidata/rapidata_client/filter/models/age_group.py +14 -12
- rapidata/rapidata_client/filter/models/gender.py +12 -8
- rapidata/rapidata_client/filter/new_user_filter.py +14 -4
- rapidata/rapidata_client/filter/not_filter.py +35 -11
- rapidata/rapidata_client/filter/or_filter.py +36 -11
- rapidata/rapidata_client/filter/rapidata_filters.py +17 -23
- rapidata/rapidata_client/filter/response_count_filter.py +51 -20
- rapidata/rapidata_client/filter/user_score_filter.py +62 -24
- rapidata/rapidata_client/job/__init__.py +3 -0
- rapidata/rapidata_client/job/job_definition.py +110 -0
- rapidata/rapidata_client/job/job_manager.py +758 -0
- rapidata/rapidata_client/job/rapidata_job.py +326 -0
- rapidata/rapidata_client/order/__init__.py +2 -0
- rapidata/rapidata_client/order/_rapidata_order_builder.py +273 -122
- rapidata/rapidata_client/order/rapidata_order.py +316 -160
- rapidata/rapidata_client/order/rapidata_order_manager.py +680 -421
- rapidata/rapidata_client/rapidata_client.py +115 -37
- rapidata/rapidata_client/referee/__init__.py +1 -1
- rapidata/rapidata_client/referee/_base_referee.py +14 -3
- rapidata/rapidata_client/referee/_early_stopping_referee.py +32 -17
- rapidata/rapidata_client/referee/_naive_referee.py +24 -3
- rapidata/rapidata_client/results/__init__.py +3 -0
- rapidata/rapidata_client/{order → results}/rapidata_results.py +86 -63
- rapidata/rapidata_client/selection/__init__.py +1 -1
- rapidata/rapidata_client/selection/_base_selection.py +9 -2
- rapidata/rapidata_client/selection/ab_test_selection.py +28 -20
- rapidata/rapidata_client/selection/capped_selection.py +23 -16
- rapidata/rapidata_client/selection/conditional_validation_selection.py +43 -24
- rapidata/rapidata_client/selection/demographic_selection.py +21 -6
- rapidata/rapidata_client/selection/effort_selection.py +31 -8
- rapidata/rapidata_client/selection/labeling_selection.py +34 -11
- rapidata/rapidata_client/selection/{retrieval_modes.py → rapidata_retrieval_modes.py} +7 -4
- rapidata/rapidata_client/selection/rapidata_selections.py +23 -14
- rapidata/rapidata_client/selection/shuffling_selection.py +21 -13
- rapidata/rapidata_client/selection/static_selection.py +19 -8
- rapidata/rapidata_client/selection/validation_selection.py +20 -4
- rapidata/rapidata_client/settings/__init__.py +2 -0
- rapidata/rapidata_client/settings/_rapidata_setting.py +22 -3
- rapidata/rapidata_client/settings/alert_on_fast_response.py +8 -5
- rapidata/rapidata_client/settings/allow_neither_both.py +3 -0
- rapidata/rapidata_client/settings/custom_setting.py +3 -2
- rapidata/rapidata_client/settings/free_text_minimum_characters.py +9 -4
- rapidata/rapidata_client/settings/models/translation_behaviour_options.py +3 -2
- rapidata/rapidata_client/settings/mute_video.py +15 -0
- rapidata/rapidata_client/settings/no_shuffle.py +4 -2
- rapidata/rapidata_client/settings/play_video_until_the_end.py +7 -4
- rapidata/rapidata_client/settings/rapidata_settings.py +22 -9
- rapidata/rapidata_client/settings/swap_context_instruction.py +20 -0
- rapidata/rapidata_client/settings/translation_behaviour.py +7 -5
- rapidata/rapidata_client/utils/__init__.py +3 -0
- rapidata/rapidata_client/utils/threaded_uploader.py +153 -0
- rapidata/rapidata_client/validation/__init__.py +2 -0
- rapidata/rapidata_client/validation/rapidata_validation_set.py +96 -18
- rapidata/rapidata_client/validation/rapids/__init__.py +2 -0
- rapidata/rapidata_client/validation/rapids/_validation_rapid_uploader.py +48 -0
- rapidata/rapidata_client/validation/rapids/box.py +37 -12
- rapidata/rapidata_client/validation/rapids/rapids.py +29 -83
- rapidata/rapidata_client/validation/rapids/rapids_manager.py +369 -211
- rapidata/rapidata_client/validation/validation_set_manager.py +505 -276
- rapidata/rapidata_client/workflow/__init__.py +2 -2
- rapidata/rapidata_client/workflow/_base_workflow.py +25 -7
- rapidata/rapidata_client/workflow/_classify_workflow.py +58 -15
- rapidata/rapidata_client/workflow/_compare_workflow.py +44 -9
- rapidata/rapidata_client/workflow/_draw_workflow.py +40 -10
- rapidata/rapidata_client/workflow/_evaluation_workflow.py +28 -7
- rapidata/rapidata_client/workflow/_free_text_workflow.py +46 -9
- rapidata/rapidata_client/workflow/_locate_workflow.py +40 -10
- rapidata/rapidata_client/workflow/_multi_ranking_workflow.py +90 -0
- rapidata/rapidata_client/workflow/_select_words_workflow.py +51 -11
- rapidata/rapidata_client/workflow/_timestamp_workflow.py +42 -11
- rapidata/service/__init__.py +0 -1
- rapidata/service/credential_manager.py +14 -14
- rapidata/service/openapi_service.py +119 -34
- rapidata/types/__init__.py +149 -0
- rapidata-3.0.0a8.dist-info/METADATA +32 -0
- rapidata-3.0.0a8.dist-info/RECORD +1083 -0
- {rapidata-2.35.1.dist-info → rapidata-3.0.0a8.dist-info}/WHEEL +1 -1
- rapidata/rapidata_client/api/rapidata_exception.py +0 -107
- rapidata/rapidata_client/country_codes/__init__.py +0 -1
- rapidata/rapidata_client/country_codes/country_codes.py +0 -19
- rapidata/rapidata_client/datapoints/assets/_base_asset.py +0 -11
- rapidata/rapidata_client/datapoints/assets/_media_asset.py +0 -306
- rapidata/rapidata_client/datapoints/assets/_multi_asset.py +0 -61
- rapidata/rapidata_client/datapoints/assets/_sessions.py +0 -35
- rapidata/rapidata_client/datapoints/assets/_text_asset.py +0 -34
- rapidata/rapidata_client/datapoints/assets/data_type_enum.py +0 -8
- rapidata/rapidata_client/datapoints/datapoint.py +0 -108
- rapidata/rapidata_client/datapoints/metadata/_media_asset_metadata.py +0 -22
- rapidata/rapidata_client/datapoints/metadata/_prompt_metadata.py +0 -18
- rapidata/rapidata_client/logging/__init__.py +0 -2
- rapidata/rapidata_client/logging/logger.py +0 -122
- rapidata/rapidata_client/logging/output_manager.py +0 -20
- rapidata/rapidata_client/order/_rapidata_dataset.py +0 -396
- rapidata/rapidata_client/workflow/_ranking_workflow.py +0 -47
- rapidata/service/local_file_service.py +0 -25
- rapidata-2.35.1.dist-info/METADATA +0 -35
- rapidata-2.35.1.dist-info/RECORD +0 -657
- {rapidata-2.35.1.dist-info → rapidata-3.0.0a8.dist-info/licenses}/LICENSE +0 -0
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
# coding: utf-8
|
|
2
2
|
|
|
3
3
|
"""
|
|
4
|
-
Rapidata
|
|
4
|
+
Rapidata Asset API
|
|
5
5
|
|
|
6
|
-
|
|
6
|
+
The API for the Rapidata Asset service
|
|
7
7
|
|
|
8
8
|
The version of the OpenAPI document: v1
|
|
9
9
|
Generated by OpenAPI Generator (https://openapi-generator.tech)
|
|
@@ -16,23 +16,19 @@ 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.
|
|
27
|
-
from rapidata.api_client.models.
|
|
28
|
-
from rapidata.api_client.models.dataset_dataset_id_datapoints_post_request_metadata_inner import DatasetDatasetIdDatapointsPostRequestMetadataInner
|
|
24
|
+
from rapidata.api_client.models.create_dataset_endpoint_input import CreateDatasetEndpointInput
|
|
25
|
+
from rapidata.api_client.models.create_dataset_endpoint_output import CreateDatasetEndpointOutput
|
|
29
26
|
from rapidata.api_client.models.get_dataset_by_id_result import GetDatasetByIdResult
|
|
30
27
|
from rapidata.api_client.models.get_dataset_progress_result import GetDatasetProgressResult
|
|
31
28
|
from rapidata.api_client.models.get_failed_datapoints_result import GetFailedDatapointsResult
|
|
32
|
-
from rapidata.api_client.models.
|
|
29
|
+
from rapidata.api_client.models.paged_result_of_query_datapoints_by_dataset_id_result import PagedResultOfQueryDatapointsByDatasetIdResult
|
|
33
30
|
from rapidata.api_client.models.query_model import QueryModel
|
|
34
31
|
from rapidata.api_client.models.update_dataset_name_model import UpdateDatasetNameModel
|
|
35
|
-
from rapidata.api_client.models.upload_from_s3_result import UploadFromS3Result
|
|
36
32
|
|
|
37
33
|
from rapidata.api_client.api_client import ApiClient, RequestSerialized
|
|
38
34
|
from rapidata.api_client.api_response import ApiResponse
|
|
@@ -53,10 +49,10 @@ class DatasetApi:
|
|
|
53
49
|
|
|
54
50
|
|
|
55
51
|
@validate_call
|
|
56
|
-
def
|
|
52
|
+
def dataset_dataset_id_datapoint_post(
|
|
57
53
|
self,
|
|
58
|
-
dataset_id: Annotated[StrictStr, Field(description="The id of the dataset to
|
|
59
|
-
|
|
54
|
+
dataset_id: Annotated[StrictStr, Field(description="The id of the dataset to create the datapoint in.")],
|
|
55
|
+
create_datapoint_model: Annotated[CreateDatapointModel, Field(description="The datapoint model containing asset, metadata, and sort index.")],
|
|
60
56
|
_request_timeout: Union[
|
|
61
57
|
None,
|
|
62
58
|
Annotated[StrictFloat, Field(gt=0)],
|
|
@@ -69,14 +65,14 @@ class DatasetApi:
|
|
|
69
65
|
_content_type: Optional[StrictStr] = None,
|
|
70
66
|
_headers: Optional[Dict[StrictStr, Any]] = None,
|
|
71
67
|
_host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
|
|
72
|
-
) ->
|
|
73
|
-
"""Creates
|
|
68
|
+
) -> CreateDatapointResult:
|
|
69
|
+
"""Creates a datapoint with JSON body.
|
|
74
70
|
|
|
75
71
|
|
|
76
|
-
:param dataset_id: The id of the dataset to
|
|
72
|
+
:param dataset_id: The id of the dataset to create the datapoint in. (required)
|
|
77
73
|
:type dataset_id: str
|
|
78
|
-
:param
|
|
79
|
-
:type
|
|
74
|
+
:param create_datapoint_model: The datapoint model containing asset, metadata, and sort index. (required)
|
|
75
|
+
:type create_datapoint_model: CreateDatapointModel
|
|
80
76
|
:param _request_timeout: timeout setting for this request. If one
|
|
81
77
|
number provided, it will be total request
|
|
82
78
|
timeout. It can also be a pair (tuple) of
|
|
@@ -99,9 +95,9 @@ class DatasetApi:
|
|
|
99
95
|
:return: Returns the result object.
|
|
100
96
|
""" # noqa: E501
|
|
101
97
|
|
|
102
|
-
_param = self.
|
|
98
|
+
_param = self._dataset_dataset_id_datapoint_post_serialize(
|
|
103
99
|
dataset_id=dataset_id,
|
|
104
|
-
|
|
100
|
+
create_datapoint_model=create_datapoint_model,
|
|
105
101
|
_request_auth=_request_auth,
|
|
106
102
|
_content_type=_content_type,
|
|
107
103
|
_headers=_headers,
|
|
@@ -109,7 +105,7 @@ class DatasetApi:
|
|
|
109
105
|
)
|
|
110
106
|
|
|
111
107
|
_response_types_map: Dict[str, Optional[str]] = {
|
|
112
|
-
'200': "
|
|
108
|
+
'200': "CreateDatapointResult",
|
|
113
109
|
}
|
|
114
110
|
response_data = self.api_client.call_api(
|
|
115
111
|
*_param,
|
|
@@ -123,10 +119,10 @@ class DatasetApi:
|
|
|
123
119
|
|
|
124
120
|
|
|
125
121
|
@validate_call
|
|
126
|
-
def
|
|
122
|
+
def dataset_dataset_id_datapoint_post_with_http_info(
|
|
127
123
|
self,
|
|
128
|
-
dataset_id: Annotated[StrictStr, Field(description="The id of the dataset to
|
|
129
|
-
|
|
124
|
+
dataset_id: Annotated[StrictStr, Field(description="The id of the dataset to create the datapoint in.")],
|
|
125
|
+
create_datapoint_model: Annotated[CreateDatapointModel, Field(description="The datapoint model containing asset, metadata, and sort index.")],
|
|
130
126
|
_request_timeout: Union[
|
|
131
127
|
None,
|
|
132
128
|
Annotated[StrictFloat, Field(gt=0)],
|
|
@@ -139,14 +135,14 @@ class DatasetApi:
|
|
|
139
135
|
_content_type: Optional[StrictStr] = None,
|
|
140
136
|
_headers: Optional[Dict[StrictStr, Any]] = None,
|
|
141
137
|
_host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
|
|
142
|
-
) -> ApiResponse[
|
|
143
|
-
"""Creates
|
|
138
|
+
) -> ApiResponse[CreateDatapointResult]:
|
|
139
|
+
"""Creates a datapoint with JSON body.
|
|
144
140
|
|
|
145
141
|
|
|
146
|
-
:param dataset_id: The id of the dataset to
|
|
142
|
+
:param dataset_id: The id of the dataset to create the datapoint in. (required)
|
|
147
143
|
:type dataset_id: str
|
|
148
|
-
:param
|
|
149
|
-
:type
|
|
144
|
+
:param create_datapoint_model: The datapoint model containing asset, metadata, and sort index. (required)
|
|
145
|
+
:type create_datapoint_model: CreateDatapointModel
|
|
150
146
|
:param _request_timeout: timeout setting for this request. If one
|
|
151
147
|
number provided, it will be total request
|
|
152
148
|
timeout. It can also be a pair (tuple) of
|
|
@@ -169,9 +165,9 @@ class DatasetApi:
|
|
|
169
165
|
:return: Returns the result object.
|
|
170
166
|
""" # noqa: E501
|
|
171
167
|
|
|
172
|
-
_param = self.
|
|
168
|
+
_param = self._dataset_dataset_id_datapoint_post_serialize(
|
|
173
169
|
dataset_id=dataset_id,
|
|
174
|
-
|
|
170
|
+
create_datapoint_model=create_datapoint_model,
|
|
175
171
|
_request_auth=_request_auth,
|
|
176
172
|
_content_type=_content_type,
|
|
177
173
|
_headers=_headers,
|
|
@@ -179,7 +175,7 @@ class DatasetApi:
|
|
|
179
175
|
)
|
|
180
176
|
|
|
181
177
|
_response_types_map: Dict[str, Optional[str]] = {
|
|
182
|
-
'200': "
|
|
178
|
+
'200': "CreateDatapointResult",
|
|
183
179
|
}
|
|
184
180
|
response_data = self.api_client.call_api(
|
|
185
181
|
*_param,
|
|
@@ -193,10 +189,10 @@ class DatasetApi:
|
|
|
193
189
|
|
|
194
190
|
|
|
195
191
|
@validate_call
|
|
196
|
-
def
|
|
192
|
+
def dataset_dataset_id_datapoint_post_without_preload_content(
|
|
197
193
|
self,
|
|
198
|
-
dataset_id: Annotated[StrictStr, Field(description="The id of the dataset to
|
|
199
|
-
|
|
194
|
+
dataset_id: Annotated[StrictStr, Field(description="The id of the dataset to create the datapoint in.")],
|
|
195
|
+
create_datapoint_model: Annotated[CreateDatapointModel, Field(description="The datapoint model containing asset, metadata, and sort index.")],
|
|
200
196
|
_request_timeout: Union[
|
|
201
197
|
None,
|
|
202
198
|
Annotated[StrictFloat, Field(gt=0)],
|
|
@@ -210,13 +206,13 @@ class DatasetApi:
|
|
|
210
206
|
_headers: Optional[Dict[StrictStr, Any]] = None,
|
|
211
207
|
_host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
|
|
212
208
|
) -> RESTResponseType:
|
|
213
|
-
"""Creates
|
|
209
|
+
"""Creates a datapoint with JSON body.
|
|
214
210
|
|
|
215
211
|
|
|
216
|
-
:param dataset_id: The id of the dataset to
|
|
212
|
+
:param dataset_id: The id of the dataset to create the datapoint in. (required)
|
|
217
213
|
:type dataset_id: str
|
|
218
|
-
:param
|
|
219
|
-
:type
|
|
214
|
+
:param create_datapoint_model: The datapoint model containing asset, metadata, and sort index. (required)
|
|
215
|
+
:type create_datapoint_model: CreateDatapointModel
|
|
220
216
|
:param _request_timeout: timeout setting for this request. If one
|
|
221
217
|
number provided, it will be total request
|
|
222
218
|
timeout. It can also be a pair (tuple) of
|
|
@@ -239,9 +235,9 @@ class DatasetApi:
|
|
|
239
235
|
:return: Returns the result object.
|
|
240
236
|
""" # noqa: E501
|
|
241
237
|
|
|
242
|
-
_param = self.
|
|
238
|
+
_param = self._dataset_dataset_id_datapoint_post_serialize(
|
|
243
239
|
dataset_id=dataset_id,
|
|
244
|
-
|
|
240
|
+
create_datapoint_model=create_datapoint_model,
|
|
245
241
|
_request_auth=_request_auth,
|
|
246
242
|
_content_type=_content_type,
|
|
247
243
|
_headers=_headers,
|
|
@@ -249,7 +245,7 @@ class DatasetApi:
|
|
|
249
245
|
)
|
|
250
246
|
|
|
251
247
|
_response_types_map: Dict[str, Optional[str]] = {
|
|
252
|
-
'200': "
|
|
248
|
+
'200': "CreateDatapointResult",
|
|
253
249
|
}
|
|
254
250
|
response_data = self.api_client.call_api(
|
|
255
251
|
*_param,
|
|
@@ -258,10 +254,10 @@ class DatasetApi:
|
|
|
258
254
|
return response_data.response
|
|
259
255
|
|
|
260
256
|
|
|
261
|
-
def
|
|
257
|
+
def _dataset_dataset_id_datapoint_post_serialize(
|
|
262
258
|
self,
|
|
263
259
|
dataset_id,
|
|
264
|
-
|
|
260
|
+
create_datapoint_model,
|
|
265
261
|
_request_auth,
|
|
266
262
|
_content_type,
|
|
267
263
|
_headers,
|
|
@@ -288,9 +284,9 @@ class DatasetApi:
|
|
|
288
284
|
# process the query parameters
|
|
289
285
|
# process the header parameters
|
|
290
286
|
# process the form parameters
|
|
291
|
-
if file is not None:
|
|
292
|
-
_files['file'] = file
|
|
293
287
|
# process the body parameter
|
|
288
|
+
if create_datapoint_model is not None:
|
|
289
|
+
_body_params = create_datapoint_model
|
|
294
290
|
|
|
295
291
|
|
|
296
292
|
# set the HTTP header `Accept`
|
|
@@ -310,7 +306,9 @@ class DatasetApi:
|
|
|
310
306
|
_default_content_type = (
|
|
311
307
|
self.api_client.select_header_content_type(
|
|
312
308
|
[
|
|
313
|
-
'
|
|
309
|
+
'application/json',
|
|
310
|
+
'text/json',
|
|
311
|
+
'application/*+json'
|
|
314
312
|
]
|
|
315
313
|
)
|
|
316
314
|
)
|
|
@@ -319,13 +317,14 @@ class DatasetApi:
|
|
|
319
317
|
|
|
320
318
|
# authentication setting
|
|
321
319
|
_auth_settings: List[str] = [
|
|
322
|
-
'
|
|
323
|
-
'
|
|
320
|
+
'OAuth2',
|
|
321
|
+
'OpenIdConnect',
|
|
322
|
+
'Bearer'
|
|
324
323
|
]
|
|
325
324
|
|
|
326
325
|
return self.api_client.param_serialize(
|
|
327
326
|
method='POST',
|
|
328
|
-
resource_path='/dataset/{datasetId}/
|
|
327
|
+
resource_path='/dataset/{datasetId}/datapoint',
|
|
329
328
|
path_params=_path_params,
|
|
330
329
|
query_params=_query_params,
|
|
331
330
|
header_params=_header_params,
|
|
@@ -360,7 +359,7 @@ class DatasetApi:
|
|
|
360
359
|
) -> GetFailedDatapointsResult:
|
|
361
360
|
"""Gets a list of all datapoints that failed to upload.
|
|
362
361
|
|
|
363
|
-
A datapoint usually fails to upload when using a deferred upload mechanism such as when providing a URL
|
|
362
|
+
A datapoint usually fails to upload when using a deferred upload mechanism such as when providing a URL and the URL is not accessible.
|
|
364
363
|
|
|
365
364
|
:param dataset_id: The id of the dataset to get the failed datapoints of. (required)
|
|
366
365
|
:type dataset_id: str
|
|
@@ -427,7 +426,7 @@ class DatasetApi:
|
|
|
427
426
|
) -> ApiResponse[GetFailedDatapointsResult]:
|
|
428
427
|
"""Gets a list of all datapoints that failed to upload.
|
|
429
428
|
|
|
430
|
-
A datapoint usually fails to upload when using a deferred upload mechanism such as when providing a URL
|
|
429
|
+
A datapoint usually fails to upload when using a deferred upload mechanism such as when providing a URL and the URL is not accessible.
|
|
431
430
|
|
|
432
431
|
:param dataset_id: The id of the dataset to get the failed datapoints of. (required)
|
|
433
432
|
:type dataset_id: str
|
|
@@ -494,7 +493,7 @@ class DatasetApi:
|
|
|
494
493
|
) -> RESTResponseType:
|
|
495
494
|
"""Gets a list of all datapoints that failed to upload.
|
|
496
495
|
|
|
497
|
-
A datapoint usually fails to upload when using a deferred upload mechanism such as when providing a URL
|
|
496
|
+
A datapoint usually fails to upload when using a deferred upload mechanism such as when providing a URL and the URL is not accessible.
|
|
498
497
|
|
|
499
498
|
:param dataset_id: The id of the dataset to get the failed datapoints of. (required)
|
|
500
499
|
:type dataset_id: str
|
|
@@ -583,8 +582,9 @@ class DatasetApi:
|
|
|
583
582
|
|
|
584
583
|
# authentication setting
|
|
585
584
|
_auth_settings: List[str] = [
|
|
586
|
-
'
|
|
587
|
-
'
|
|
585
|
+
'OAuth2',
|
|
586
|
+
'OpenIdConnect',
|
|
587
|
+
'Bearer'
|
|
588
588
|
]
|
|
589
589
|
|
|
590
590
|
return self.api_client.param_serialize(
|
|
@@ -606,11 +606,10 @@ class DatasetApi:
|
|
|
606
606
|
|
|
607
607
|
|
|
608
608
|
@validate_call
|
|
609
|
-
def
|
|
609
|
+
def dataset_dataset_id_datapoints_get(
|
|
610
610
|
self,
|
|
611
|
-
dataset_id: Annotated[StrictStr, Field(description="The id of the dataset to
|
|
612
|
-
|
|
613
|
-
model: Optional[CreateDatapointFromFilesModel] = None,
|
|
611
|
+
dataset_id: Annotated[StrictStr, Field(description="The id of the dataset to get the datapoints of.")],
|
|
612
|
+
request: Annotated[Optional[QueryModel], Field(description="The query model to filter, sort, and paginate the results.")] = None,
|
|
614
613
|
_request_timeout: Union[
|
|
615
614
|
None,
|
|
616
615
|
Annotated[StrictFloat, Field(gt=0)],
|
|
@@ -623,17 +622,14 @@ class DatasetApi:
|
|
|
623
622
|
_content_type: Optional[StrictStr] = None,
|
|
624
623
|
_headers: Optional[Dict[StrictStr, Any]] = None,
|
|
625
624
|
_host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
|
|
626
|
-
) ->
|
|
627
|
-
"""
|
|
625
|
+
) -> PagedResultOfQueryDatapointsByDatasetIdResult:
|
|
626
|
+
"""Gets all datapoints of a dataset.
|
|
628
627
|
|
|
629
|
-
If multiple files are uploaded, a multi asset datapoint will be created.
|
|
630
628
|
|
|
631
|
-
:param dataset_id: The id of the dataset to
|
|
629
|
+
:param dataset_id: The id of the dataset to get the datapoints of. (required)
|
|
632
630
|
:type dataset_id: str
|
|
633
|
-
:param
|
|
634
|
-
:type
|
|
635
|
-
:param model:
|
|
636
|
-
:type model: CreateDatapointFromFilesModel
|
|
631
|
+
:param request: The query model to filter, sort, and paginate the results.
|
|
632
|
+
:type request: QueryModel
|
|
637
633
|
:param _request_timeout: timeout setting for this request. If one
|
|
638
634
|
number provided, it will be total request
|
|
639
635
|
timeout. It can also be a pair (tuple) of
|
|
@@ -656,10 +652,9 @@ class DatasetApi:
|
|
|
656
652
|
:return: Returns the result object.
|
|
657
653
|
""" # noqa: E501
|
|
658
654
|
|
|
659
|
-
_param = self.
|
|
655
|
+
_param = self._dataset_dataset_id_datapoints_get_serialize(
|
|
660
656
|
dataset_id=dataset_id,
|
|
661
|
-
|
|
662
|
-
model=model,
|
|
657
|
+
request=request,
|
|
663
658
|
_request_auth=_request_auth,
|
|
664
659
|
_content_type=_content_type,
|
|
665
660
|
_headers=_headers,
|
|
@@ -667,7 +662,7 @@ class DatasetApi:
|
|
|
667
662
|
)
|
|
668
663
|
|
|
669
664
|
_response_types_map: Dict[str, Optional[str]] = {
|
|
670
|
-
'200': "
|
|
665
|
+
'200': "PagedResultOfQueryDatapointsByDatasetIdResult",
|
|
671
666
|
}
|
|
672
667
|
response_data = self.api_client.call_api(
|
|
673
668
|
*_param,
|
|
@@ -681,11 +676,10 @@ class DatasetApi:
|
|
|
681
676
|
|
|
682
677
|
|
|
683
678
|
@validate_call
|
|
684
|
-
def
|
|
679
|
+
def dataset_dataset_id_datapoints_get_with_http_info(
|
|
685
680
|
self,
|
|
686
|
-
dataset_id: Annotated[StrictStr, Field(description="The id of the dataset to
|
|
687
|
-
|
|
688
|
-
model: Optional[CreateDatapointFromFilesModel] = None,
|
|
681
|
+
dataset_id: Annotated[StrictStr, Field(description="The id of the dataset to get the datapoints of.")],
|
|
682
|
+
request: Annotated[Optional[QueryModel], Field(description="The query model to filter, sort, and paginate the results.")] = None,
|
|
689
683
|
_request_timeout: Union[
|
|
690
684
|
None,
|
|
691
685
|
Annotated[StrictFloat, Field(gt=0)],
|
|
@@ -698,17 +692,14 @@ class DatasetApi:
|
|
|
698
692
|
_content_type: Optional[StrictStr] = None,
|
|
699
693
|
_headers: Optional[Dict[StrictStr, Any]] = None,
|
|
700
694
|
_host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
|
|
701
|
-
) -> ApiResponse[
|
|
702
|
-
"""
|
|
695
|
+
) -> ApiResponse[PagedResultOfQueryDatapointsByDatasetIdResult]:
|
|
696
|
+
"""Gets all datapoints of a dataset.
|
|
703
697
|
|
|
704
|
-
If multiple files are uploaded, a multi asset datapoint will be created.
|
|
705
698
|
|
|
706
|
-
:param dataset_id: The id of the dataset to
|
|
699
|
+
:param dataset_id: The id of the dataset to get the datapoints of. (required)
|
|
707
700
|
:type dataset_id: str
|
|
708
|
-
:param
|
|
709
|
-
:type
|
|
710
|
-
:param model:
|
|
711
|
-
:type model: CreateDatapointFromFilesModel
|
|
701
|
+
:param request: The query model to filter, sort, and paginate the results.
|
|
702
|
+
:type request: QueryModel
|
|
712
703
|
:param _request_timeout: timeout setting for this request. If one
|
|
713
704
|
number provided, it will be total request
|
|
714
705
|
timeout. It can also be a pair (tuple) of
|
|
@@ -731,10 +722,9 @@ class DatasetApi:
|
|
|
731
722
|
:return: Returns the result object.
|
|
732
723
|
""" # noqa: E501
|
|
733
724
|
|
|
734
|
-
_param = self.
|
|
725
|
+
_param = self._dataset_dataset_id_datapoints_get_serialize(
|
|
735
726
|
dataset_id=dataset_id,
|
|
736
|
-
|
|
737
|
-
model=model,
|
|
727
|
+
request=request,
|
|
738
728
|
_request_auth=_request_auth,
|
|
739
729
|
_content_type=_content_type,
|
|
740
730
|
_headers=_headers,
|
|
@@ -742,7 +732,7 @@ class DatasetApi:
|
|
|
742
732
|
)
|
|
743
733
|
|
|
744
734
|
_response_types_map: Dict[str, Optional[str]] = {
|
|
745
|
-
'200': "
|
|
735
|
+
'200': "PagedResultOfQueryDatapointsByDatasetIdResult",
|
|
746
736
|
}
|
|
747
737
|
response_data = self.api_client.call_api(
|
|
748
738
|
*_param,
|
|
@@ -756,11 +746,10 @@ class DatasetApi:
|
|
|
756
746
|
|
|
757
747
|
|
|
758
748
|
@validate_call
|
|
759
|
-
def
|
|
749
|
+
def dataset_dataset_id_datapoints_get_without_preload_content(
|
|
760
750
|
self,
|
|
761
|
-
dataset_id: Annotated[StrictStr, Field(description="The id of the dataset to
|
|
762
|
-
|
|
763
|
-
model: Optional[CreateDatapointFromFilesModel] = None,
|
|
751
|
+
dataset_id: Annotated[StrictStr, Field(description="The id of the dataset to get the datapoints of.")],
|
|
752
|
+
request: Annotated[Optional[QueryModel], Field(description="The query model to filter, sort, and paginate the results.")] = None,
|
|
764
753
|
_request_timeout: Union[
|
|
765
754
|
None,
|
|
766
755
|
Annotated[StrictFloat, Field(gt=0)],
|
|
@@ -774,16 +763,13 @@ class DatasetApi:
|
|
|
774
763
|
_headers: Optional[Dict[StrictStr, Any]] = None,
|
|
775
764
|
_host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
|
|
776
765
|
) -> RESTResponseType:
|
|
777
|
-
"""
|
|
766
|
+
"""Gets all datapoints of a dataset.
|
|
778
767
|
|
|
779
|
-
If multiple files are uploaded, a multi asset datapoint will be created.
|
|
780
768
|
|
|
781
|
-
:param dataset_id: The id of the dataset to
|
|
769
|
+
:param dataset_id: The id of the dataset to get the datapoints of. (required)
|
|
782
770
|
:type dataset_id: str
|
|
783
|
-
:param
|
|
784
|
-
:type
|
|
785
|
-
:param model:
|
|
786
|
-
:type model: CreateDatapointFromFilesModel
|
|
771
|
+
:param request: The query model to filter, sort, and paginate the results.
|
|
772
|
+
:type request: QueryModel
|
|
787
773
|
:param _request_timeout: timeout setting for this request. If one
|
|
788
774
|
number provided, it will be total request
|
|
789
775
|
timeout. It can also be a pair (tuple) of
|
|
@@ -806,10 +792,9 @@ class DatasetApi:
|
|
|
806
792
|
:return: Returns the result object.
|
|
807
793
|
""" # noqa: E501
|
|
808
794
|
|
|
809
|
-
_param = self.
|
|
795
|
+
_param = self._dataset_dataset_id_datapoints_get_serialize(
|
|
810
796
|
dataset_id=dataset_id,
|
|
811
|
-
|
|
812
|
-
model=model,
|
|
797
|
+
request=request,
|
|
813
798
|
_request_auth=_request_auth,
|
|
814
799
|
_content_type=_content_type,
|
|
815
800
|
_headers=_headers,
|
|
@@ -817,7 +802,7 @@ class DatasetApi:
|
|
|
817
802
|
)
|
|
818
803
|
|
|
819
804
|
_response_types_map: Dict[str, Optional[str]] = {
|
|
820
|
-
'200': "
|
|
805
|
+
'200': "PagedResultOfQueryDatapointsByDatasetIdResult",
|
|
821
806
|
}
|
|
822
807
|
response_data = self.api_client.call_api(
|
|
823
808
|
*_param,
|
|
@@ -826,11 +811,10 @@ class DatasetApi:
|
|
|
826
811
|
return response_data.response
|
|
827
812
|
|
|
828
813
|
|
|
829
|
-
def
|
|
814
|
+
def _dataset_dataset_id_datapoints_get_serialize(
|
|
830
815
|
self,
|
|
831
816
|
dataset_id,
|
|
832
|
-
|
|
833
|
-
model,
|
|
817
|
+
request,
|
|
834
818
|
_request_auth,
|
|
835
819
|
_content_type,
|
|
836
820
|
_headers,
|
|
@@ -840,7 +824,6 @@ class DatasetApi:
|
|
|
840
824
|
_host = None
|
|
841
825
|
|
|
842
826
|
_collection_formats: Dict[str, str] = {
|
|
843
|
-
'files': 'multi',
|
|
844
827
|
}
|
|
845
828
|
|
|
846
829
|
_path_params: Dict[str, str] = {}
|
|
@@ -856,12 +839,12 @@ class DatasetApi:
|
|
|
856
839
|
if dataset_id is not None:
|
|
857
840
|
_path_params['datasetId'] = dataset_id
|
|
858
841
|
# process the query parameters
|
|
842
|
+
if request is not None:
|
|
843
|
+
|
|
844
|
+
_query_params.append(('request', request))
|
|
845
|
+
|
|
859
846
|
# process the header parameters
|
|
860
847
|
# process the form parameters
|
|
861
|
-
if files is not None:
|
|
862
|
-
_files['files'] = files
|
|
863
|
-
if model is not None:
|
|
864
|
-
_form_params.append(('model', model))
|
|
865
848
|
# process the body parameter
|
|
866
849
|
|
|
867
850
|
|
|
@@ -875,29 +858,17 @@ class DatasetApi:
|
|
|
875
858
|
]
|
|
876
859
|
)
|
|
877
860
|
|
|
878
|
-
# set the HTTP header `Content-Type`
|
|
879
|
-
if _content_type:
|
|
880
|
-
_header_params['Content-Type'] = _content_type
|
|
881
|
-
else:
|
|
882
|
-
_default_content_type = (
|
|
883
|
-
self.api_client.select_header_content_type(
|
|
884
|
-
[
|
|
885
|
-
'multipart/form-data'
|
|
886
|
-
]
|
|
887
|
-
)
|
|
888
|
-
)
|
|
889
|
-
if _default_content_type is not None:
|
|
890
|
-
_header_params['Content-Type'] = _default_content_type
|
|
891
861
|
|
|
892
862
|
# authentication setting
|
|
893
863
|
_auth_settings: List[str] = [
|
|
894
|
-
'
|
|
895
|
-
'
|
|
864
|
+
'OAuth2',
|
|
865
|
+
'OpenIdConnect',
|
|
866
|
+
'Bearer'
|
|
896
867
|
]
|
|
897
868
|
|
|
898
869
|
return self.api_client.param_serialize(
|
|
899
|
-
method='
|
|
900
|
-
resource_path='/dataset/{datasetId}/datapoints
|
|
870
|
+
method='GET',
|
|
871
|
+
resource_path='/dataset/{datasetId}/datapoints',
|
|
901
872
|
path_params=_path_params,
|
|
902
873
|
query_params=_query_params,
|
|
903
874
|
header_params=_header_params,
|
|
@@ -914,10 +885,9 @@ class DatasetApi:
|
|
|
914
885
|
|
|
915
886
|
|
|
916
887
|
@validate_call
|
|
917
|
-
def
|
|
888
|
+
def dataset_dataset_id_get(
|
|
918
889
|
self,
|
|
919
|
-
dataset_id: Annotated[StrictStr, Field(description="The id of the dataset to get
|
|
920
|
-
request: Annotated[Optional[QueryModel], Field(description="The query model to filter, sort, and paginate the results.")] = None,
|
|
890
|
+
dataset_id: Annotated[StrictStr, Field(description="The id of the dataset to get.")],
|
|
921
891
|
_request_timeout: Union[
|
|
922
892
|
None,
|
|
923
893
|
Annotated[StrictFloat, Field(gt=0)],
|
|
@@ -930,14 +900,12 @@ class DatasetApi:
|
|
|
930
900
|
_content_type: Optional[StrictStr] = None,
|
|
931
901
|
_headers: Optional[Dict[StrictStr, Any]] = None,
|
|
932
902
|
_host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
|
|
933
|
-
) ->
|
|
934
|
-
"""Gets
|
|
903
|
+
) -> GetDatasetByIdResult:
|
|
904
|
+
"""Gets a dataset by its id.
|
|
935
905
|
|
|
936
906
|
|
|
937
|
-
:param dataset_id: The id of the dataset to get
|
|
907
|
+
:param dataset_id: The id of the dataset to get. (required)
|
|
938
908
|
:type dataset_id: str
|
|
939
|
-
:param request: The query model to filter, sort, and paginate the results.
|
|
940
|
-
:type request: QueryModel
|
|
941
909
|
:param _request_timeout: timeout setting for this request. If one
|
|
942
910
|
number provided, it will be total request
|
|
943
911
|
timeout. It can also be a pair (tuple) of
|
|
@@ -960,9 +928,8 @@ class DatasetApi:
|
|
|
960
928
|
:return: Returns the result object.
|
|
961
929
|
""" # noqa: E501
|
|
962
930
|
|
|
963
|
-
_param = self.
|
|
931
|
+
_param = self._dataset_dataset_id_get_serialize(
|
|
964
932
|
dataset_id=dataset_id,
|
|
965
|
-
request=request,
|
|
966
933
|
_request_auth=_request_auth,
|
|
967
934
|
_content_type=_content_type,
|
|
968
935
|
_headers=_headers,
|
|
@@ -970,7 +937,7 @@ class DatasetApi:
|
|
|
970
937
|
)
|
|
971
938
|
|
|
972
939
|
_response_types_map: Dict[str, Optional[str]] = {
|
|
973
|
-
'200': "
|
|
940
|
+
'200': "GetDatasetByIdResult",
|
|
974
941
|
}
|
|
975
942
|
response_data = self.api_client.call_api(
|
|
976
943
|
*_param,
|
|
@@ -984,10 +951,9 @@ class DatasetApi:
|
|
|
984
951
|
|
|
985
952
|
|
|
986
953
|
@validate_call
|
|
987
|
-
def
|
|
954
|
+
def dataset_dataset_id_get_with_http_info(
|
|
988
955
|
self,
|
|
989
|
-
dataset_id: Annotated[StrictStr, Field(description="The id of the dataset to get
|
|
990
|
-
request: Annotated[Optional[QueryModel], Field(description="The query model to filter, sort, and paginate the results.")] = None,
|
|
956
|
+
dataset_id: Annotated[StrictStr, Field(description="The id of the dataset to get.")],
|
|
991
957
|
_request_timeout: Union[
|
|
992
958
|
None,
|
|
993
959
|
Annotated[StrictFloat, Field(gt=0)],
|
|
@@ -1000,14 +966,12 @@ class DatasetApi:
|
|
|
1000
966
|
_content_type: Optional[StrictStr] = None,
|
|
1001
967
|
_headers: Optional[Dict[StrictStr, Any]] = None,
|
|
1002
968
|
_host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
|
|
1003
|
-
) -> ApiResponse[
|
|
1004
|
-
"""Gets
|
|
969
|
+
) -> ApiResponse[GetDatasetByIdResult]:
|
|
970
|
+
"""Gets a dataset by its id.
|
|
1005
971
|
|
|
1006
972
|
|
|
1007
|
-
:param dataset_id: The id of the dataset to get
|
|
973
|
+
:param dataset_id: The id of the dataset to get. (required)
|
|
1008
974
|
:type dataset_id: str
|
|
1009
|
-
:param request: The query model to filter, sort, and paginate the results.
|
|
1010
|
-
:type request: QueryModel
|
|
1011
975
|
:param _request_timeout: timeout setting for this request. If one
|
|
1012
976
|
number provided, it will be total request
|
|
1013
977
|
timeout. It can also be a pair (tuple) of
|
|
@@ -1030,9 +994,8 @@ class DatasetApi:
|
|
|
1030
994
|
:return: Returns the result object.
|
|
1031
995
|
""" # noqa: E501
|
|
1032
996
|
|
|
1033
|
-
_param = self.
|
|
997
|
+
_param = self._dataset_dataset_id_get_serialize(
|
|
1034
998
|
dataset_id=dataset_id,
|
|
1035
|
-
request=request,
|
|
1036
999
|
_request_auth=_request_auth,
|
|
1037
1000
|
_content_type=_content_type,
|
|
1038
1001
|
_headers=_headers,
|
|
@@ -1040,7 +1003,7 @@ class DatasetApi:
|
|
|
1040
1003
|
)
|
|
1041
1004
|
|
|
1042
1005
|
_response_types_map: Dict[str, Optional[str]] = {
|
|
1043
|
-
'200': "
|
|
1006
|
+
'200': "GetDatasetByIdResult",
|
|
1044
1007
|
}
|
|
1045
1008
|
response_data = self.api_client.call_api(
|
|
1046
1009
|
*_param,
|
|
@@ -1054,10 +1017,9 @@ class DatasetApi:
|
|
|
1054
1017
|
|
|
1055
1018
|
|
|
1056
1019
|
@validate_call
|
|
1057
|
-
def
|
|
1020
|
+
def dataset_dataset_id_get_without_preload_content(
|
|
1058
1021
|
self,
|
|
1059
|
-
dataset_id: Annotated[StrictStr, Field(description="The id of the dataset to get
|
|
1060
|
-
request: Annotated[Optional[QueryModel], Field(description="The query model to filter, sort, and paginate the results.")] = None,
|
|
1022
|
+
dataset_id: Annotated[StrictStr, Field(description="The id of the dataset to get.")],
|
|
1061
1023
|
_request_timeout: Union[
|
|
1062
1024
|
None,
|
|
1063
1025
|
Annotated[StrictFloat, Field(gt=0)],
|
|
@@ -1071,13 +1033,11 @@ class DatasetApi:
|
|
|
1071
1033
|
_headers: Optional[Dict[StrictStr, Any]] = None,
|
|
1072
1034
|
_host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
|
|
1073
1035
|
) -> RESTResponseType:
|
|
1074
|
-
"""Gets
|
|
1036
|
+
"""Gets a dataset by its id.
|
|
1075
1037
|
|
|
1076
1038
|
|
|
1077
|
-
:param dataset_id: The id of the dataset to get
|
|
1039
|
+
:param dataset_id: The id of the dataset to get. (required)
|
|
1078
1040
|
:type dataset_id: str
|
|
1079
|
-
:param request: The query model to filter, sort, and paginate the results.
|
|
1080
|
-
:type request: QueryModel
|
|
1081
1041
|
:param _request_timeout: timeout setting for this request. If one
|
|
1082
1042
|
number provided, it will be total request
|
|
1083
1043
|
timeout. It can also be a pair (tuple) of
|
|
@@ -1100,9 +1060,8 @@ class DatasetApi:
|
|
|
1100
1060
|
:return: Returns the result object.
|
|
1101
1061
|
""" # noqa: E501
|
|
1102
1062
|
|
|
1103
|
-
_param = self.
|
|
1063
|
+
_param = self._dataset_dataset_id_get_serialize(
|
|
1104
1064
|
dataset_id=dataset_id,
|
|
1105
|
-
request=request,
|
|
1106
1065
|
_request_auth=_request_auth,
|
|
1107
1066
|
_content_type=_content_type,
|
|
1108
1067
|
_headers=_headers,
|
|
@@ -1110,7 +1069,7 @@ class DatasetApi:
|
|
|
1110
1069
|
)
|
|
1111
1070
|
|
|
1112
1071
|
_response_types_map: Dict[str, Optional[str]] = {
|
|
1113
|
-
'200': "
|
|
1072
|
+
'200': "GetDatasetByIdResult",
|
|
1114
1073
|
}
|
|
1115
1074
|
response_data = self.api_client.call_api(
|
|
1116
1075
|
*_param,
|
|
@@ -1119,10 +1078,9 @@ class DatasetApi:
|
|
|
1119
1078
|
return response_data.response
|
|
1120
1079
|
|
|
1121
1080
|
|
|
1122
|
-
def
|
|
1081
|
+
def _dataset_dataset_id_get_serialize(
|
|
1123
1082
|
self,
|
|
1124
1083
|
dataset_id,
|
|
1125
|
-
request,
|
|
1126
1084
|
_request_auth,
|
|
1127
1085
|
_content_type,
|
|
1128
1086
|
_headers,
|
|
@@ -1147,10 +1105,6 @@ class DatasetApi:
|
|
|
1147
1105
|
if dataset_id is not None:
|
|
1148
1106
|
_path_params['datasetId'] = dataset_id
|
|
1149
1107
|
# process the query parameters
|
|
1150
|
-
if request is not None:
|
|
1151
|
-
|
|
1152
|
-
_query_params.append(('request', request))
|
|
1153
|
-
|
|
1154
1108
|
# process the header parameters
|
|
1155
1109
|
# process the form parameters
|
|
1156
1110
|
# process the body parameter
|
|
@@ -1169,13 +1123,14 @@ class DatasetApi:
|
|
|
1169
1123
|
|
|
1170
1124
|
# authentication setting
|
|
1171
1125
|
_auth_settings: List[str] = [
|
|
1172
|
-
'
|
|
1173
|
-
'
|
|
1126
|
+
'OAuth2',
|
|
1127
|
+
'OpenIdConnect',
|
|
1128
|
+
'Bearer'
|
|
1174
1129
|
]
|
|
1175
1130
|
|
|
1176
1131
|
return self.api_client.param_serialize(
|
|
1177
1132
|
method='GET',
|
|
1178
|
-
resource_path='/dataset/{datasetId}
|
|
1133
|
+
resource_path='/dataset/{datasetId}',
|
|
1179
1134
|
path_params=_path_params,
|
|
1180
1135
|
query_params=_query_params,
|
|
1181
1136
|
header_params=_header_params,
|
|
@@ -1192,15 +1147,10 @@ class DatasetApi:
|
|
|
1192
1147
|
|
|
1193
1148
|
|
|
1194
1149
|
@validate_call
|
|
1195
|
-
def
|
|
1150
|
+
def dataset_dataset_id_name_patch(
|
|
1196
1151
|
self,
|
|
1197
|
-
dataset_id: Annotated[StrictStr, Field(description="The id of the dataset")],
|
|
1198
|
-
|
|
1199
|
-
file: Optional[List[Union[StrictBytes, StrictStr, Tuple[StrictStr, StrictBytes]]]] = None,
|
|
1200
|
-
text: Annotated[Optional[List[StrictStr]], Field(description="The texts to upload. The length limit is set at 256 characters per text.")] = None,
|
|
1201
|
-
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,
|
|
1202
|
-
metadata: Annotated[Optional[List[DatasetDatasetIdDatapointsPostRequestMetadataInner]], Field(description="Optional metadata to attach to the datapoint.")] = None,
|
|
1203
|
-
sort_index: Annotated[Optional[StrictInt], Field(description="The index will be used to keep the datapoints in order. Useful if upload is parallelized")] = None,
|
|
1152
|
+
dataset_id: Annotated[StrictStr, Field(description="The id of the dataset to update.")],
|
|
1153
|
+
update_dataset_name_model: Annotated[UpdateDatasetNameModel, Field(description="The body of the request.")],
|
|
1204
1154
|
_request_timeout: Union[
|
|
1205
1155
|
None,
|
|
1206
1156
|
Annotated[StrictFloat, Field(gt=0)],
|
|
@@ -1213,25 +1163,14 @@ class DatasetApi:
|
|
|
1213
1163
|
_content_type: Optional[StrictStr] = None,
|
|
1214
1164
|
_headers: Optional[Dict[StrictStr, Any]] = None,
|
|
1215
1165
|
_host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
|
|
1216
|
-
) ->
|
|
1217
|
-
"""
|
|
1166
|
+
) -> None:
|
|
1167
|
+
"""Updates the name of a dataset.
|
|
1218
1168
|
|
|
1219
|
-
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.
|
|
1220
1169
|
|
|
1221
|
-
:param dataset_id: The id of the dataset (required)
|
|
1170
|
+
:param dataset_id: The id of the dataset to update. (required)
|
|
1222
1171
|
:type dataset_id: str
|
|
1223
|
-
:param
|
|
1224
|
-
:type
|
|
1225
|
-
:param file:
|
|
1226
|
-
:type file: List[bytearray]
|
|
1227
|
-
:param text: The texts to upload. The length limit is set at 256 characters per text.
|
|
1228
|
-
:type text: List[str]
|
|
1229
|
-
: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>
|
|
1230
|
-
:type url: List[str]
|
|
1231
|
-
:param metadata: Optional metadata to attach to the datapoint.
|
|
1232
|
-
:type metadata: List[DatasetDatasetIdDatapointsPostRequestMetadataInner]
|
|
1233
|
-
:param sort_index: The index will be used to keep the datapoints in order. Useful if upload is parallelized
|
|
1234
|
-
:type sort_index: int
|
|
1172
|
+
:param update_dataset_name_model: The body of the request. (required)
|
|
1173
|
+
:type update_dataset_name_model: UpdateDatasetNameModel
|
|
1235
1174
|
:param _request_timeout: timeout setting for this request. If one
|
|
1236
1175
|
number provided, it will be total request
|
|
1237
1176
|
timeout. It can also be a pair (tuple) of
|
|
@@ -1254,14 +1193,9 @@ class DatasetApi:
|
|
|
1254
1193
|
:return: Returns the result object.
|
|
1255
1194
|
""" # noqa: E501
|
|
1256
1195
|
|
|
1257
|
-
_param = self.
|
|
1196
|
+
_param = self._dataset_dataset_id_name_patch_serialize(
|
|
1258
1197
|
dataset_id=dataset_id,
|
|
1259
|
-
|
|
1260
|
-
file=file,
|
|
1261
|
-
text=text,
|
|
1262
|
-
url=url,
|
|
1263
|
-
metadata=metadata,
|
|
1264
|
-
sort_index=sort_index,
|
|
1198
|
+
update_dataset_name_model=update_dataset_name_model,
|
|
1265
1199
|
_request_auth=_request_auth,
|
|
1266
1200
|
_content_type=_content_type,
|
|
1267
1201
|
_headers=_headers,
|
|
@@ -1269,7 +1203,7 @@ class DatasetApi:
|
|
|
1269
1203
|
)
|
|
1270
1204
|
|
|
1271
1205
|
_response_types_map: Dict[str, Optional[str]] = {
|
|
1272
|
-
'
|
|
1206
|
+
'204': None,
|
|
1273
1207
|
}
|
|
1274
1208
|
response_data = self.api_client.call_api(
|
|
1275
1209
|
*_param,
|
|
@@ -1283,15 +1217,10 @@ class DatasetApi:
|
|
|
1283
1217
|
|
|
1284
1218
|
|
|
1285
1219
|
@validate_call
|
|
1286
|
-
def
|
|
1220
|
+
def dataset_dataset_id_name_patch_with_http_info(
|
|
1287
1221
|
self,
|
|
1288
|
-
dataset_id: Annotated[StrictStr, Field(description="The id of the dataset")],
|
|
1289
|
-
|
|
1290
|
-
file: Optional[List[Union[StrictBytes, StrictStr, Tuple[StrictStr, StrictBytes]]]] = None,
|
|
1291
|
-
text: Annotated[Optional[List[StrictStr]], Field(description="The texts to upload. The length limit is set at 256 characters per text.")] = None,
|
|
1292
|
-
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,
|
|
1293
|
-
metadata: Annotated[Optional[List[DatasetDatasetIdDatapointsPostRequestMetadataInner]], Field(description="Optional metadata to attach to the datapoint.")] = None,
|
|
1294
|
-
sort_index: Annotated[Optional[StrictInt], Field(description="The index will be used to keep the datapoints in order. Useful if upload is parallelized")] = None,
|
|
1222
|
+
dataset_id: Annotated[StrictStr, Field(description="The id of the dataset to update.")],
|
|
1223
|
+
update_dataset_name_model: Annotated[UpdateDatasetNameModel, Field(description="The body of the request.")],
|
|
1295
1224
|
_request_timeout: Union[
|
|
1296
1225
|
None,
|
|
1297
1226
|
Annotated[StrictFloat, Field(gt=0)],
|
|
@@ -1304,25 +1233,14 @@ class DatasetApi:
|
|
|
1304
1233
|
_content_type: Optional[StrictStr] = None,
|
|
1305
1234
|
_headers: Optional[Dict[StrictStr, Any]] = None,
|
|
1306
1235
|
_host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
|
|
1307
|
-
) -> ApiResponse[
|
|
1308
|
-
"""
|
|
1236
|
+
) -> ApiResponse[None]:
|
|
1237
|
+
"""Updates the name of a dataset.
|
|
1309
1238
|
|
|
1310
|
-
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.
|
|
1311
1239
|
|
|
1312
|
-
:param dataset_id: The id of the dataset (required)
|
|
1240
|
+
:param dataset_id: The id of the dataset to update. (required)
|
|
1313
1241
|
:type dataset_id: str
|
|
1314
|
-
:param
|
|
1315
|
-
:type
|
|
1316
|
-
:param file:
|
|
1317
|
-
:type file: List[bytearray]
|
|
1318
|
-
:param text: The texts to upload. The length limit is set at 256 characters per text.
|
|
1319
|
-
:type text: List[str]
|
|
1320
|
-
: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>
|
|
1321
|
-
:type url: List[str]
|
|
1322
|
-
:param metadata: Optional metadata to attach to the datapoint.
|
|
1323
|
-
:type metadata: List[DatasetDatasetIdDatapointsPostRequestMetadataInner]
|
|
1324
|
-
:param sort_index: The index will be used to keep the datapoints in order. Useful if upload is parallelized
|
|
1325
|
-
:type sort_index: int
|
|
1242
|
+
:param update_dataset_name_model: The body of the request. (required)
|
|
1243
|
+
:type update_dataset_name_model: UpdateDatasetNameModel
|
|
1326
1244
|
:param _request_timeout: timeout setting for this request. If one
|
|
1327
1245
|
number provided, it will be total request
|
|
1328
1246
|
timeout. It can also be a pair (tuple) of
|
|
@@ -1345,14 +1263,9 @@ class DatasetApi:
|
|
|
1345
1263
|
:return: Returns the result object.
|
|
1346
1264
|
""" # noqa: E501
|
|
1347
1265
|
|
|
1348
|
-
_param = self.
|
|
1266
|
+
_param = self._dataset_dataset_id_name_patch_serialize(
|
|
1349
1267
|
dataset_id=dataset_id,
|
|
1350
|
-
|
|
1351
|
-
file=file,
|
|
1352
|
-
text=text,
|
|
1353
|
-
url=url,
|
|
1354
|
-
metadata=metadata,
|
|
1355
|
-
sort_index=sort_index,
|
|
1268
|
+
update_dataset_name_model=update_dataset_name_model,
|
|
1356
1269
|
_request_auth=_request_auth,
|
|
1357
1270
|
_content_type=_content_type,
|
|
1358
1271
|
_headers=_headers,
|
|
@@ -1360,7 +1273,7 @@ class DatasetApi:
|
|
|
1360
1273
|
)
|
|
1361
1274
|
|
|
1362
1275
|
_response_types_map: Dict[str, Optional[str]] = {
|
|
1363
|
-
'
|
|
1276
|
+
'204': None,
|
|
1364
1277
|
}
|
|
1365
1278
|
response_data = self.api_client.call_api(
|
|
1366
1279
|
*_param,
|
|
@@ -1374,15 +1287,10 @@ class DatasetApi:
|
|
|
1374
1287
|
|
|
1375
1288
|
|
|
1376
1289
|
@validate_call
|
|
1377
|
-
def
|
|
1290
|
+
def dataset_dataset_id_name_patch_without_preload_content(
|
|
1378
1291
|
self,
|
|
1379
|
-
dataset_id: Annotated[StrictStr, Field(description="The id of the dataset")],
|
|
1380
|
-
|
|
1381
|
-
file: Optional[List[Union[StrictBytes, StrictStr, Tuple[StrictStr, StrictBytes]]]] = None,
|
|
1382
|
-
text: Annotated[Optional[List[StrictStr]], Field(description="The texts to upload. The length limit is set at 256 characters per text.")] = None,
|
|
1383
|
-
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,
|
|
1384
|
-
metadata: Annotated[Optional[List[DatasetDatasetIdDatapointsPostRequestMetadataInner]], Field(description="Optional metadata to attach to the datapoint.")] = None,
|
|
1385
|
-
sort_index: Annotated[Optional[StrictInt], Field(description="The index will be used to keep the datapoints in order. Useful if upload is parallelized")] = None,
|
|
1292
|
+
dataset_id: Annotated[StrictStr, Field(description="The id of the dataset to update.")],
|
|
1293
|
+
update_dataset_name_model: Annotated[UpdateDatasetNameModel, Field(description="The body of the request.")],
|
|
1386
1294
|
_request_timeout: Union[
|
|
1387
1295
|
None,
|
|
1388
1296
|
Annotated[StrictFloat, Field(gt=0)],
|
|
@@ -1396,24 +1304,13 @@ class DatasetApi:
|
|
|
1396
1304
|
_headers: Optional[Dict[StrictStr, Any]] = None,
|
|
1397
1305
|
_host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
|
|
1398
1306
|
) -> RESTResponseType:
|
|
1399
|
-
"""
|
|
1307
|
+
"""Updates the name of a dataset.
|
|
1400
1308
|
|
|
1401
|
-
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.
|
|
1402
1309
|
|
|
1403
|
-
:param dataset_id: The id of the dataset (required)
|
|
1310
|
+
:param dataset_id: The id of the dataset to update. (required)
|
|
1404
1311
|
:type dataset_id: str
|
|
1405
|
-
:param
|
|
1406
|
-
:type
|
|
1407
|
-
:param file:
|
|
1408
|
-
:type file: List[bytearray]
|
|
1409
|
-
:param text: The texts to upload. The length limit is set at 256 characters per text.
|
|
1410
|
-
:type text: List[str]
|
|
1411
|
-
: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>
|
|
1412
|
-
:type url: List[str]
|
|
1413
|
-
:param metadata: Optional metadata to attach to the datapoint.
|
|
1414
|
-
:type metadata: List[DatasetDatasetIdDatapointsPostRequestMetadataInner]
|
|
1415
|
-
:param sort_index: The index will be used to keep the datapoints in order. Useful if upload is parallelized
|
|
1416
|
-
:type sort_index: int
|
|
1312
|
+
:param update_dataset_name_model: The body of the request. (required)
|
|
1313
|
+
:type update_dataset_name_model: UpdateDatasetNameModel
|
|
1417
1314
|
:param _request_timeout: timeout setting for this request. If one
|
|
1418
1315
|
number provided, it will be total request
|
|
1419
1316
|
timeout. It can also be a pair (tuple) of
|
|
@@ -1436,14 +1333,9 @@ class DatasetApi:
|
|
|
1436
1333
|
:return: Returns the result object.
|
|
1437
1334
|
""" # noqa: E501
|
|
1438
1335
|
|
|
1439
|
-
_param = self.
|
|
1336
|
+
_param = self._dataset_dataset_id_name_patch_serialize(
|
|
1440
1337
|
dataset_id=dataset_id,
|
|
1441
|
-
|
|
1442
|
-
file=file,
|
|
1443
|
-
text=text,
|
|
1444
|
-
url=url,
|
|
1445
|
-
metadata=metadata,
|
|
1446
|
-
sort_index=sort_index,
|
|
1338
|
+
update_dataset_name_model=update_dataset_name_model,
|
|
1447
1339
|
_request_auth=_request_auth,
|
|
1448
1340
|
_content_type=_content_type,
|
|
1449
1341
|
_headers=_headers,
|
|
@@ -1451,7 +1343,7 @@ class DatasetApi:
|
|
|
1451
1343
|
)
|
|
1452
1344
|
|
|
1453
1345
|
_response_types_map: Dict[str, Optional[str]] = {
|
|
1454
|
-
'
|
|
1346
|
+
'204': None,
|
|
1455
1347
|
}
|
|
1456
1348
|
response_data = self.api_client.call_api(
|
|
1457
1349
|
*_param,
|
|
@@ -1460,15 +1352,10 @@ class DatasetApi:
|
|
|
1460
1352
|
return response_data.response
|
|
1461
1353
|
|
|
1462
1354
|
|
|
1463
|
-
def
|
|
1355
|
+
def _dataset_dataset_id_name_patch_serialize(
|
|
1464
1356
|
self,
|
|
1465
1357
|
dataset_id,
|
|
1466
|
-
|
|
1467
|
-
file,
|
|
1468
|
-
text,
|
|
1469
|
-
url,
|
|
1470
|
-
metadata,
|
|
1471
|
-
sort_index,
|
|
1358
|
+
update_dataset_name_model,
|
|
1472
1359
|
_request_auth,
|
|
1473
1360
|
_content_type,
|
|
1474
1361
|
_headers,
|
|
@@ -1478,11 +1365,6 @@ class DatasetApi:
|
|
|
1478
1365
|
_host = None
|
|
1479
1366
|
|
|
1480
1367
|
_collection_formats: Dict[str, str] = {
|
|
1481
|
-
'promptAsset': 'multi',
|
|
1482
|
-
'file': 'multi',
|
|
1483
|
-
'text': 'multi',
|
|
1484
|
-
'url': 'multi',
|
|
1485
|
-
'metadata': 'multi',
|
|
1486
1368
|
}
|
|
1487
1369
|
|
|
1488
1370
|
_path_params: Dict[str, str] = {}
|
|
@@ -1500,30 +1382,11 @@ class DatasetApi:
|
|
|
1500
1382
|
# process the query parameters
|
|
1501
1383
|
# process the header parameters
|
|
1502
1384
|
# process the form parameters
|
|
1503
|
-
if prompt_asset is not None:
|
|
1504
|
-
_files['promptAsset'] = prompt_asset
|
|
1505
|
-
if file is not None:
|
|
1506
|
-
_files['file'] = file
|
|
1507
|
-
if text is not None:
|
|
1508
|
-
_form_params.append(('text', text))
|
|
1509
|
-
if url is not None:
|
|
1510
|
-
_form_params.append(('url', url))
|
|
1511
|
-
if metadata is not None:
|
|
1512
|
-
_form_params.append(('metadata', metadata))
|
|
1513
|
-
if sort_index is not None:
|
|
1514
|
-
_form_params.append(('sortIndex', sort_index))
|
|
1515
1385
|
# process the body parameter
|
|
1386
|
+
if update_dataset_name_model is not None:
|
|
1387
|
+
_body_params = update_dataset_name_model
|
|
1516
1388
|
|
|
1517
1389
|
|
|
1518
|
-
# set the HTTP header `Accept`
|
|
1519
|
-
if 'Accept' not in _header_params:
|
|
1520
|
-
_header_params['Accept'] = self.api_client.select_header_accept(
|
|
1521
|
-
[
|
|
1522
|
-
'text/plain',
|
|
1523
|
-
'application/json',
|
|
1524
|
-
'text/json'
|
|
1525
|
-
]
|
|
1526
|
-
)
|
|
1527
1390
|
|
|
1528
1391
|
# set the HTTP header `Content-Type`
|
|
1529
1392
|
if _content_type:
|
|
@@ -1532,7 +1395,9 @@ class DatasetApi:
|
|
|
1532
1395
|
_default_content_type = (
|
|
1533
1396
|
self.api_client.select_header_content_type(
|
|
1534
1397
|
[
|
|
1535
|
-
'
|
|
1398
|
+
'application/json',
|
|
1399
|
+
'text/json',
|
|
1400
|
+
'application/*+json'
|
|
1536
1401
|
]
|
|
1537
1402
|
)
|
|
1538
1403
|
)
|
|
@@ -1541,13 +1406,14 @@ class DatasetApi:
|
|
|
1541
1406
|
|
|
1542
1407
|
# authentication setting
|
|
1543
1408
|
_auth_settings: List[str] = [
|
|
1544
|
-
'
|
|
1545
|
-
'
|
|
1409
|
+
'OAuth2',
|
|
1410
|
+
'OpenIdConnect',
|
|
1411
|
+
'Bearer'
|
|
1546
1412
|
]
|
|
1547
1413
|
|
|
1548
1414
|
return self.api_client.param_serialize(
|
|
1549
|
-
method='
|
|
1550
|
-
resource_path='/dataset/{datasetId}/
|
|
1415
|
+
method='PATCH',
|
|
1416
|
+
resource_path='/dataset/{datasetId}/name',
|
|
1551
1417
|
path_params=_path_params,
|
|
1552
1418
|
query_params=_query_params,
|
|
1553
1419
|
header_params=_header_params,
|
|
@@ -1564,10 +1430,9 @@ class DatasetApi:
|
|
|
1564
1430
|
|
|
1565
1431
|
|
|
1566
1432
|
@validate_call
|
|
1567
|
-
def
|
|
1433
|
+
def dataset_dataset_id_progress_get(
|
|
1568
1434
|
self,
|
|
1569
|
-
dataset_id: Annotated[StrictStr, Field(description="The id of the dataset to
|
|
1570
|
-
create_datapoints_from_s3_bucket_model: Annotated[Optional[CreateDatapointsFromS3BucketModel], Field(description="The body of the request.")] = None,
|
|
1435
|
+
dataset_id: Annotated[StrictStr, Field(description="The id of the dataset to get the progress of.")],
|
|
1571
1436
|
_request_timeout: Union[
|
|
1572
1437
|
None,
|
|
1573
1438
|
Annotated[StrictFloat, Field(gt=0)],
|
|
@@ -1580,15 +1445,12 @@ class DatasetApi:
|
|
|
1580
1445
|
_content_type: Optional[StrictStr] = None,
|
|
1581
1446
|
_headers: Optional[Dict[StrictStr, Any]] = None,
|
|
1582
1447
|
_host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
|
|
1583
|
-
) ->
|
|
1584
|
-
"""
|
|
1448
|
+
) -> GetDatasetProgressResult:
|
|
1449
|
+
"""Gets the upload progress of a dataset.
|
|
1585
1450
|
|
|
1586
|
-
A new datapoint will be created for each file in the bucket.
|
|
1587
1451
|
|
|
1588
|
-
:param dataset_id: The id of the dataset to
|
|
1452
|
+
:param dataset_id: The id of the dataset to get the progress of. (required)
|
|
1589
1453
|
:type dataset_id: str
|
|
1590
|
-
:param create_datapoints_from_s3_bucket_model: The body of the request.
|
|
1591
|
-
:type create_datapoints_from_s3_bucket_model: CreateDatapointsFromS3BucketModel
|
|
1592
1454
|
:param _request_timeout: timeout setting for this request. If one
|
|
1593
1455
|
number provided, it will be total request
|
|
1594
1456
|
timeout. It can also be a pair (tuple) of
|
|
@@ -1611,9 +1473,8 @@ class DatasetApi:
|
|
|
1611
1473
|
:return: Returns the result object.
|
|
1612
1474
|
""" # noqa: E501
|
|
1613
1475
|
|
|
1614
|
-
_param = self.
|
|
1476
|
+
_param = self._dataset_dataset_id_progress_get_serialize(
|
|
1615
1477
|
dataset_id=dataset_id,
|
|
1616
|
-
create_datapoints_from_s3_bucket_model=create_datapoints_from_s3_bucket_model,
|
|
1617
1478
|
_request_auth=_request_auth,
|
|
1618
1479
|
_content_type=_content_type,
|
|
1619
1480
|
_headers=_headers,
|
|
@@ -1621,7 +1482,7 @@ class DatasetApi:
|
|
|
1621
1482
|
)
|
|
1622
1483
|
|
|
1623
1484
|
_response_types_map: Dict[str, Optional[str]] = {
|
|
1624
|
-
'200': "
|
|
1485
|
+
'200': "GetDatasetProgressResult",
|
|
1625
1486
|
}
|
|
1626
1487
|
response_data = self.api_client.call_api(
|
|
1627
1488
|
*_param,
|
|
@@ -1635,10 +1496,9 @@ class DatasetApi:
|
|
|
1635
1496
|
|
|
1636
1497
|
|
|
1637
1498
|
@validate_call
|
|
1638
|
-
def
|
|
1499
|
+
def dataset_dataset_id_progress_get_with_http_info(
|
|
1639
1500
|
self,
|
|
1640
|
-
dataset_id: Annotated[StrictStr, Field(description="The id of the dataset to
|
|
1641
|
-
create_datapoints_from_s3_bucket_model: Annotated[Optional[CreateDatapointsFromS3BucketModel], Field(description="The body of the request.")] = None,
|
|
1501
|
+
dataset_id: Annotated[StrictStr, Field(description="The id of the dataset to get the progress of.")],
|
|
1642
1502
|
_request_timeout: Union[
|
|
1643
1503
|
None,
|
|
1644
1504
|
Annotated[StrictFloat, Field(gt=0)],
|
|
@@ -1651,15 +1511,12 @@ class DatasetApi:
|
|
|
1651
1511
|
_content_type: Optional[StrictStr] = None,
|
|
1652
1512
|
_headers: Optional[Dict[StrictStr, Any]] = None,
|
|
1653
1513
|
_host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
|
|
1654
|
-
) -> ApiResponse[
|
|
1655
|
-
"""
|
|
1514
|
+
) -> ApiResponse[GetDatasetProgressResult]:
|
|
1515
|
+
"""Gets the upload progress of a dataset.
|
|
1656
1516
|
|
|
1657
|
-
A new datapoint will be created for each file in the bucket.
|
|
1658
1517
|
|
|
1659
|
-
:param dataset_id: The id of the dataset to
|
|
1518
|
+
:param dataset_id: The id of the dataset to get the progress of. (required)
|
|
1660
1519
|
:type dataset_id: str
|
|
1661
|
-
:param create_datapoints_from_s3_bucket_model: The body of the request.
|
|
1662
|
-
:type create_datapoints_from_s3_bucket_model: CreateDatapointsFromS3BucketModel
|
|
1663
1520
|
:param _request_timeout: timeout setting for this request. If one
|
|
1664
1521
|
number provided, it will be total request
|
|
1665
1522
|
timeout. It can also be a pair (tuple) of
|
|
@@ -1682,9 +1539,8 @@ class DatasetApi:
|
|
|
1682
1539
|
:return: Returns the result object.
|
|
1683
1540
|
""" # noqa: E501
|
|
1684
1541
|
|
|
1685
|
-
_param = self.
|
|
1542
|
+
_param = self._dataset_dataset_id_progress_get_serialize(
|
|
1686
1543
|
dataset_id=dataset_id,
|
|
1687
|
-
create_datapoints_from_s3_bucket_model=create_datapoints_from_s3_bucket_model,
|
|
1688
1544
|
_request_auth=_request_auth,
|
|
1689
1545
|
_content_type=_content_type,
|
|
1690
1546
|
_headers=_headers,
|
|
@@ -1692,7 +1548,7 @@ class DatasetApi:
|
|
|
1692
1548
|
)
|
|
1693
1549
|
|
|
1694
1550
|
_response_types_map: Dict[str, Optional[str]] = {
|
|
1695
|
-
'200': "
|
|
1551
|
+
'200': "GetDatasetProgressResult",
|
|
1696
1552
|
}
|
|
1697
1553
|
response_data = self.api_client.call_api(
|
|
1698
1554
|
*_param,
|
|
@@ -1706,10 +1562,9 @@ class DatasetApi:
|
|
|
1706
1562
|
|
|
1707
1563
|
|
|
1708
1564
|
@validate_call
|
|
1709
|
-
def
|
|
1565
|
+
def dataset_dataset_id_progress_get_without_preload_content(
|
|
1710
1566
|
self,
|
|
1711
|
-
dataset_id: Annotated[StrictStr, Field(description="The id of the dataset to
|
|
1712
|
-
create_datapoints_from_s3_bucket_model: Annotated[Optional[CreateDatapointsFromS3BucketModel], Field(description="The body of the request.")] = None,
|
|
1567
|
+
dataset_id: Annotated[StrictStr, Field(description="The id of the dataset to get the progress of.")],
|
|
1713
1568
|
_request_timeout: Union[
|
|
1714
1569
|
None,
|
|
1715
1570
|
Annotated[StrictFloat, Field(gt=0)],
|
|
@@ -1723,14 +1578,11 @@ class DatasetApi:
|
|
|
1723
1578
|
_headers: Optional[Dict[StrictStr, Any]] = None,
|
|
1724
1579
|
_host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
|
|
1725
1580
|
) -> RESTResponseType:
|
|
1726
|
-
"""
|
|
1581
|
+
"""Gets the upload progress of a dataset.
|
|
1727
1582
|
|
|
1728
|
-
A new datapoint will be created for each file in the bucket.
|
|
1729
1583
|
|
|
1730
|
-
:param dataset_id: The id of the dataset to
|
|
1584
|
+
:param dataset_id: The id of the dataset to get the progress of. (required)
|
|
1731
1585
|
:type dataset_id: str
|
|
1732
|
-
:param create_datapoints_from_s3_bucket_model: The body of the request.
|
|
1733
|
-
:type create_datapoints_from_s3_bucket_model: CreateDatapointsFromS3BucketModel
|
|
1734
1586
|
:param _request_timeout: timeout setting for this request. If one
|
|
1735
1587
|
number provided, it will be total request
|
|
1736
1588
|
timeout. It can also be a pair (tuple) of
|
|
@@ -1753,9 +1605,8 @@ class DatasetApi:
|
|
|
1753
1605
|
:return: Returns the result object.
|
|
1754
1606
|
""" # noqa: E501
|
|
1755
1607
|
|
|
1756
|
-
_param = self.
|
|
1608
|
+
_param = self._dataset_dataset_id_progress_get_serialize(
|
|
1757
1609
|
dataset_id=dataset_id,
|
|
1758
|
-
create_datapoints_from_s3_bucket_model=create_datapoints_from_s3_bucket_model,
|
|
1759
1610
|
_request_auth=_request_auth,
|
|
1760
1611
|
_content_type=_content_type,
|
|
1761
1612
|
_headers=_headers,
|
|
@@ -1763,7 +1614,7 @@ class DatasetApi:
|
|
|
1763
1614
|
)
|
|
1764
1615
|
|
|
1765
1616
|
_response_types_map: Dict[str, Optional[str]] = {
|
|
1766
|
-
'200': "
|
|
1617
|
+
'200': "GetDatasetProgressResult",
|
|
1767
1618
|
}
|
|
1768
1619
|
response_data = self.api_client.call_api(
|
|
1769
1620
|
*_param,
|
|
@@ -1772,10 +1623,9 @@ class DatasetApi:
|
|
|
1772
1623
|
return response_data.response
|
|
1773
1624
|
|
|
1774
1625
|
|
|
1775
|
-
def
|
|
1626
|
+
def _dataset_dataset_id_progress_get_serialize(
|
|
1776
1627
|
self,
|
|
1777
1628
|
dataset_id,
|
|
1778
|
-
create_datapoints_from_s3_bucket_model,
|
|
1779
1629
|
_request_auth,
|
|
1780
1630
|
_content_type,
|
|
1781
1631
|
_headers,
|
|
@@ -1803,8 +1653,6 @@ class DatasetApi:
|
|
|
1803
1653
|
# process the header parameters
|
|
1804
1654
|
# process the form parameters
|
|
1805
1655
|
# process the body parameter
|
|
1806
|
-
if create_datapoints_from_s3_bucket_model is not None:
|
|
1807
|
-
_body_params = create_datapoints_from_s3_bucket_model
|
|
1808
1656
|
|
|
1809
1657
|
|
|
1810
1658
|
# set the HTTP header `Accept`
|
|
@@ -1817,31 +1665,17 @@ class DatasetApi:
|
|
|
1817
1665
|
]
|
|
1818
1666
|
)
|
|
1819
1667
|
|
|
1820
|
-
# set the HTTP header `Content-Type`
|
|
1821
|
-
if _content_type:
|
|
1822
|
-
_header_params['Content-Type'] = _content_type
|
|
1823
|
-
else:
|
|
1824
|
-
_default_content_type = (
|
|
1825
|
-
self.api_client.select_header_content_type(
|
|
1826
|
-
[
|
|
1827
|
-
'application/json',
|
|
1828
|
-
'text/json',
|
|
1829
|
-
'application/*+json'
|
|
1830
|
-
]
|
|
1831
|
-
)
|
|
1832
|
-
)
|
|
1833
|
-
if _default_content_type is not None:
|
|
1834
|
-
_header_params['Content-Type'] = _default_content_type
|
|
1835
1668
|
|
|
1836
1669
|
# authentication setting
|
|
1837
1670
|
_auth_settings: List[str] = [
|
|
1838
|
-
'
|
|
1839
|
-
'
|
|
1671
|
+
'OAuth2',
|
|
1672
|
+
'OpenIdConnect',
|
|
1673
|
+
'Bearer'
|
|
1840
1674
|
]
|
|
1841
1675
|
|
|
1842
1676
|
return self.api_client.param_serialize(
|
|
1843
|
-
method='
|
|
1844
|
-
resource_path='/dataset/{datasetId}/
|
|
1677
|
+
method='GET',
|
|
1678
|
+
resource_path='/dataset/{datasetId}/progress',
|
|
1845
1679
|
path_params=_path_params,
|
|
1846
1680
|
query_params=_query_params,
|
|
1847
1681
|
header_params=_header_params,
|
|
@@ -1858,10 +1692,9 @@ class DatasetApi:
|
|
|
1858
1692
|
|
|
1859
1693
|
|
|
1860
1694
|
@validate_call
|
|
1861
|
-
def
|
|
1695
|
+
def dataset_post(
|
|
1862
1696
|
self,
|
|
1863
|
-
|
|
1864
|
-
create_datapoint_from_text_sources_model: Annotated[Optional[CreateDatapointFromTextSourcesModel], Field(description="The body of the request.")] = None,
|
|
1697
|
+
create_dataset_endpoint_input: CreateDatasetEndpointInput,
|
|
1865
1698
|
_request_timeout: Union[
|
|
1866
1699
|
None,
|
|
1867
1700
|
Annotated[StrictFloat, Field(gt=0)],
|
|
@@ -1874,15 +1707,12 @@ class DatasetApi:
|
|
|
1874
1707
|
_content_type: Optional[StrictStr] = None,
|
|
1875
1708
|
_headers: Optional[Dict[StrictStr, Any]] = None,
|
|
1876
1709
|
_host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
|
|
1877
|
-
) ->
|
|
1878
|
-
"""Creates a
|
|
1710
|
+
) -> CreateDatasetEndpointOutput:
|
|
1711
|
+
"""Creates a new empty dataset.
|
|
1879
1712
|
|
|
1880
|
-
If multiple text sources are uploaded, a multi asset datapoint will be created.
|
|
1881
1713
|
|
|
1882
|
-
:param
|
|
1883
|
-
:type
|
|
1884
|
-
:param create_datapoint_from_text_sources_model: The body of the request.
|
|
1885
|
-
:type create_datapoint_from_text_sources_model: CreateDatapointFromTextSourcesModel
|
|
1714
|
+
:param create_dataset_endpoint_input: (required)
|
|
1715
|
+
:type create_dataset_endpoint_input: CreateDatasetEndpointInput
|
|
1886
1716
|
:param _request_timeout: timeout setting for this request. If one
|
|
1887
1717
|
number provided, it will be total request
|
|
1888
1718
|
timeout. It can also be a pair (tuple) of
|
|
@@ -1905,9 +1735,8 @@ class DatasetApi:
|
|
|
1905
1735
|
:return: Returns the result object.
|
|
1906
1736
|
""" # noqa: E501
|
|
1907
1737
|
|
|
1908
|
-
_param = self.
|
|
1909
|
-
|
|
1910
|
-
create_datapoint_from_text_sources_model=create_datapoint_from_text_sources_model,
|
|
1738
|
+
_param = self._dataset_post_serialize(
|
|
1739
|
+
create_dataset_endpoint_input=create_dataset_endpoint_input,
|
|
1911
1740
|
_request_auth=_request_auth,
|
|
1912
1741
|
_content_type=_content_type,
|
|
1913
1742
|
_headers=_headers,
|
|
@@ -1915,7 +1744,10 @@ class DatasetApi:
|
|
|
1915
1744
|
)
|
|
1916
1745
|
|
|
1917
1746
|
_response_types_map: Dict[str, Optional[str]] = {
|
|
1918
|
-
'200': "
|
|
1747
|
+
'200': "CreateDatasetEndpointOutput",
|
|
1748
|
+
'400': "ValidationProblemDetails",
|
|
1749
|
+
'401': None,
|
|
1750
|
+
'403': None,
|
|
1919
1751
|
}
|
|
1920
1752
|
response_data = self.api_client.call_api(
|
|
1921
1753
|
*_param,
|
|
@@ -1929,10 +1761,9 @@ class DatasetApi:
|
|
|
1929
1761
|
|
|
1930
1762
|
|
|
1931
1763
|
@validate_call
|
|
1932
|
-
def
|
|
1764
|
+
def dataset_post_with_http_info(
|
|
1933
1765
|
self,
|
|
1934
|
-
|
|
1935
|
-
create_datapoint_from_text_sources_model: Annotated[Optional[CreateDatapointFromTextSourcesModel], Field(description="The body of the request.")] = None,
|
|
1766
|
+
create_dataset_endpoint_input: CreateDatasetEndpointInput,
|
|
1936
1767
|
_request_timeout: Union[
|
|
1937
1768
|
None,
|
|
1938
1769
|
Annotated[StrictFloat, Field(gt=0)],
|
|
@@ -1945,15 +1776,12 @@ class DatasetApi:
|
|
|
1945
1776
|
_content_type: Optional[StrictStr] = None,
|
|
1946
1777
|
_headers: Optional[Dict[StrictStr, Any]] = None,
|
|
1947
1778
|
_host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
|
|
1948
|
-
) -> ApiResponse[
|
|
1949
|
-
"""Creates a
|
|
1779
|
+
) -> ApiResponse[CreateDatasetEndpointOutput]:
|
|
1780
|
+
"""Creates a new empty dataset.
|
|
1950
1781
|
|
|
1951
|
-
If multiple text sources are uploaded, a multi asset datapoint will be created.
|
|
1952
1782
|
|
|
1953
|
-
:param
|
|
1954
|
-
:type
|
|
1955
|
-
:param create_datapoint_from_text_sources_model: The body of the request.
|
|
1956
|
-
:type create_datapoint_from_text_sources_model: CreateDatapointFromTextSourcesModel
|
|
1783
|
+
:param create_dataset_endpoint_input: (required)
|
|
1784
|
+
:type create_dataset_endpoint_input: CreateDatasetEndpointInput
|
|
1957
1785
|
:param _request_timeout: timeout setting for this request. If one
|
|
1958
1786
|
number provided, it will be total request
|
|
1959
1787
|
timeout. It can also be a pair (tuple) of
|
|
@@ -1976,9 +1804,8 @@ class DatasetApi:
|
|
|
1976
1804
|
:return: Returns the result object.
|
|
1977
1805
|
""" # noqa: E501
|
|
1978
1806
|
|
|
1979
|
-
_param = self.
|
|
1980
|
-
|
|
1981
|
-
create_datapoint_from_text_sources_model=create_datapoint_from_text_sources_model,
|
|
1807
|
+
_param = self._dataset_post_serialize(
|
|
1808
|
+
create_dataset_endpoint_input=create_dataset_endpoint_input,
|
|
1982
1809
|
_request_auth=_request_auth,
|
|
1983
1810
|
_content_type=_content_type,
|
|
1984
1811
|
_headers=_headers,
|
|
@@ -1986,7 +1813,10 @@ class DatasetApi:
|
|
|
1986
1813
|
)
|
|
1987
1814
|
|
|
1988
1815
|
_response_types_map: Dict[str, Optional[str]] = {
|
|
1989
|
-
'200': "
|
|
1816
|
+
'200': "CreateDatasetEndpointOutput",
|
|
1817
|
+
'400': "ValidationProblemDetails",
|
|
1818
|
+
'401': None,
|
|
1819
|
+
'403': None,
|
|
1990
1820
|
}
|
|
1991
1821
|
response_data = self.api_client.call_api(
|
|
1992
1822
|
*_param,
|
|
@@ -2000,10 +1830,9 @@ class DatasetApi:
|
|
|
2000
1830
|
|
|
2001
1831
|
|
|
2002
1832
|
@validate_call
|
|
2003
|
-
def
|
|
1833
|
+
def dataset_post_without_preload_content(
|
|
2004
1834
|
self,
|
|
2005
|
-
|
|
2006
|
-
create_datapoint_from_text_sources_model: Annotated[Optional[CreateDatapointFromTextSourcesModel], Field(description="The body of the request.")] = None,
|
|
1835
|
+
create_dataset_endpoint_input: CreateDatasetEndpointInput,
|
|
2007
1836
|
_request_timeout: Union[
|
|
2008
1837
|
None,
|
|
2009
1838
|
Annotated[StrictFloat, Field(gt=0)],
|
|
@@ -2017,14 +1846,11 @@ class DatasetApi:
|
|
|
2017
1846
|
_headers: Optional[Dict[StrictStr, Any]] = None,
|
|
2018
1847
|
_host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
|
|
2019
1848
|
) -> RESTResponseType:
|
|
2020
|
-
"""Creates a
|
|
1849
|
+
"""Creates a new empty dataset.
|
|
2021
1850
|
|
|
2022
|
-
If multiple text sources are uploaded, a multi asset datapoint will be created.
|
|
2023
1851
|
|
|
2024
|
-
:param
|
|
2025
|
-
:type
|
|
2026
|
-
:param create_datapoint_from_text_sources_model: The body of the request.
|
|
2027
|
-
:type create_datapoint_from_text_sources_model: CreateDatapointFromTextSourcesModel
|
|
1852
|
+
:param create_dataset_endpoint_input: (required)
|
|
1853
|
+
:type create_dataset_endpoint_input: CreateDatasetEndpointInput
|
|
2028
1854
|
:param _request_timeout: timeout setting for this request. If one
|
|
2029
1855
|
number provided, it will be total request
|
|
2030
1856
|
timeout. It can also be a pair (tuple) of
|
|
@@ -2047,9 +1873,8 @@ class DatasetApi:
|
|
|
2047
1873
|
:return: Returns the result object.
|
|
2048
1874
|
""" # noqa: E501
|
|
2049
1875
|
|
|
2050
|
-
_param = self.
|
|
2051
|
-
|
|
2052
|
-
create_datapoint_from_text_sources_model=create_datapoint_from_text_sources_model,
|
|
1876
|
+
_param = self._dataset_post_serialize(
|
|
1877
|
+
create_dataset_endpoint_input=create_dataset_endpoint_input,
|
|
2053
1878
|
_request_auth=_request_auth,
|
|
2054
1879
|
_content_type=_content_type,
|
|
2055
1880
|
_headers=_headers,
|
|
@@ -2057,7 +1882,10 @@ class DatasetApi:
|
|
|
2057
1882
|
)
|
|
2058
1883
|
|
|
2059
1884
|
_response_types_map: Dict[str, Optional[str]] = {
|
|
2060
|
-
'200': "
|
|
1885
|
+
'200': "CreateDatasetEndpointOutput",
|
|
1886
|
+
'400': "ValidationProblemDetails",
|
|
1887
|
+
'401': None,
|
|
1888
|
+
'403': None,
|
|
2061
1889
|
}
|
|
2062
1890
|
response_data = self.api_client.call_api(
|
|
2063
1891
|
*_param,
|
|
@@ -2066,10 +1894,9 @@ class DatasetApi:
|
|
|
2066
1894
|
return response_data.response
|
|
2067
1895
|
|
|
2068
1896
|
|
|
2069
|
-
def
|
|
1897
|
+
def _dataset_post_serialize(
|
|
2070
1898
|
self,
|
|
2071
|
-
|
|
2072
|
-
create_datapoint_from_text_sources_model,
|
|
1899
|
+
create_dataset_endpoint_input,
|
|
2073
1900
|
_request_auth,
|
|
2074
1901
|
_content_type,
|
|
2075
1902
|
_headers,
|
|
@@ -2091,23 +1918,19 @@ class DatasetApi:
|
|
|
2091
1918
|
_body_params: Optional[bytes] = None
|
|
2092
1919
|
|
|
2093
1920
|
# process the path parameters
|
|
2094
|
-
if dataset_id is not None:
|
|
2095
|
-
_path_params['datasetId'] = dataset_id
|
|
2096
1921
|
# process the query parameters
|
|
2097
1922
|
# process the header parameters
|
|
2098
1923
|
# process the form parameters
|
|
2099
1924
|
# process the body parameter
|
|
2100
|
-
if
|
|
2101
|
-
_body_params =
|
|
1925
|
+
if create_dataset_endpoint_input is not None:
|
|
1926
|
+
_body_params = create_dataset_endpoint_input
|
|
2102
1927
|
|
|
2103
1928
|
|
|
2104
1929
|
# set the HTTP header `Accept`
|
|
2105
1930
|
if 'Accept' not in _header_params:
|
|
2106
1931
|
_header_params['Accept'] = self.api_client.select_header_accept(
|
|
2107
1932
|
[
|
|
2108
|
-
'
|
|
2109
|
-
'application/json',
|
|
2110
|
-
'text/json'
|
|
1933
|
+
'application/json'
|
|
2111
1934
|
]
|
|
2112
1935
|
)
|
|
2113
1936
|
|
|
@@ -2118,9 +1941,7 @@ class DatasetApi:
|
|
|
2118
1941
|
_default_content_type = (
|
|
2119
1942
|
self.api_client.select_header_content_type(
|
|
2120
1943
|
[
|
|
2121
|
-
'application/json'
|
|
2122
|
-
'text/json',
|
|
2123
|
-
'application/*+json'
|
|
1944
|
+
'application/json'
|
|
2124
1945
|
]
|
|
2125
1946
|
)
|
|
2126
1947
|
)
|
|
@@ -2129,1111 +1950,14 @@ class DatasetApi:
|
|
|
2129
1950
|
|
|
2130
1951
|
# authentication setting
|
|
2131
1952
|
_auth_settings: List[str] = [
|
|
2132
|
-
'
|
|
2133
|
-
'
|
|
1953
|
+
'OAuth2',
|
|
1954
|
+
'OpenIdConnect',
|
|
1955
|
+
'Bearer'
|
|
2134
1956
|
]
|
|
2135
1957
|
|
|
2136
1958
|
return self.api_client.param_serialize(
|
|
2137
1959
|
method='POST',
|
|
2138
|
-
resource_path='/dataset
|
|
2139
|
-
path_params=_path_params,
|
|
2140
|
-
query_params=_query_params,
|
|
2141
|
-
header_params=_header_params,
|
|
2142
|
-
body=_body_params,
|
|
2143
|
-
post_params=_form_params,
|
|
2144
|
-
files=_files,
|
|
2145
|
-
auth_settings=_auth_settings,
|
|
2146
|
-
collection_formats=_collection_formats,
|
|
2147
|
-
_host=_host,
|
|
2148
|
-
_request_auth=_request_auth
|
|
2149
|
-
)
|
|
2150
|
-
|
|
2151
|
-
|
|
2152
|
-
|
|
2153
|
-
|
|
2154
|
-
@validate_call
|
|
2155
|
-
def dataset_dataset_id_datapoints_urls_post(
|
|
2156
|
-
self,
|
|
2157
|
-
dataset_id: Annotated[StrictStr, Field(description="The id of the dataset to create the datapoint in.")],
|
|
2158
|
-
create_datapoint_from_urls_model: Annotated[Optional[CreateDatapointFromUrlsModel], Field(description="The body of the request.")] = None,
|
|
2159
|
-
_request_timeout: Union[
|
|
2160
|
-
None,
|
|
2161
|
-
Annotated[StrictFloat, Field(gt=0)],
|
|
2162
|
-
Tuple[
|
|
2163
|
-
Annotated[StrictFloat, Field(gt=0)],
|
|
2164
|
-
Annotated[StrictFloat, Field(gt=0)]
|
|
2165
|
-
]
|
|
2166
|
-
] = None,
|
|
2167
|
-
_request_auth: Optional[Dict[StrictStr, Any]] = None,
|
|
2168
|
-
_content_type: Optional[StrictStr] = None,
|
|
2169
|
-
_headers: Optional[Dict[StrictStr, Any]] = None,
|
|
2170
|
-
_host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
|
|
2171
|
-
) -> CreateDatapointResult:
|
|
2172
|
-
"""Creates a single datapoint where the assets are fetched from the specified urls.
|
|
2173
|
-
|
|
2174
|
-
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.
|
|
2175
|
-
|
|
2176
|
-
:param dataset_id: The id of the dataset to create the datapoint in. (required)
|
|
2177
|
-
:type dataset_id: str
|
|
2178
|
-
:param create_datapoint_from_urls_model: The body of the request.
|
|
2179
|
-
:type create_datapoint_from_urls_model: CreateDatapointFromUrlsModel
|
|
2180
|
-
:param _request_timeout: timeout setting for this request. If one
|
|
2181
|
-
number provided, it will be total request
|
|
2182
|
-
timeout. It can also be a pair (tuple) of
|
|
2183
|
-
(connection, read) timeouts.
|
|
2184
|
-
:type _request_timeout: int, tuple(int, int), optional
|
|
2185
|
-
:param _request_auth: set to override the auth_settings for an a single
|
|
2186
|
-
request; this effectively ignores the
|
|
2187
|
-
authentication in the spec for a single request.
|
|
2188
|
-
:type _request_auth: dict, optional
|
|
2189
|
-
:param _content_type: force content-type for the request.
|
|
2190
|
-
:type _content_type: str, Optional
|
|
2191
|
-
:param _headers: set to override the headers for a single
|
|
2192
|
-
request; this effectively ignores the headers
|
|
2193
|
-
in the spec for a single request.
|
|
2194
|
-
:type _headers: dict, optional
|
|
2195
|
-
:param _host_index: set to override the host_index for a single
|
|
2196
|
-
request; this effectively ignores the host_index
|
|
2197
|
-
in the spec for a single request.
|
|
2198
|
-
:type _host_index: int, optional
|
|
2199
|
-
:return: Returns the result object.
|
|
2200
|
-
""" # noqa: E501
|
|
2201
|
-
|
|
2202
|
-
_param = self._dataset_dataset_id_datapoints_urls_post_serialize(
|
|
2203
|
-
dataset_id=dataset_id,
|
|
2204
|
-
create_datapoint_from_urls_model=create_datapoint_from_urls_model,
|
|
2205
|
-
_request_auth=_request_auth,
|
|
2206
|
-
_content_type=_content_type,
|
|
2207
|
-
_headers=_headers,
|
|
2208
|
-
_host_index=_host_index
|
|
2209
|
-
)
|
|
2210
|
-
|
|
2211
|
-
_response_types_map: Dict[str, Optional[str]] = {
|
|
2212
|
-
'200': "CreateDatapointResult",
|
|
2213
|
-
}
|
|
2214
|
-
response_data = self.api_client.call_api(
|
|
2215
|
-
*_param,
|
|
2216
|
-
_request_timeout=_request_timeout
|
|
2217
|
-
)
|
|
2218
|
-
response_data.read()
|
|
2219
|
-
return self.api_client.response_deserialize(
|
|
2220
|
-
response_data=response_data,
|
|
2221
|
-
response_types_map=_response_types_map,
|
|
2222
|
-
).data
|
|
2223
|
-
|
|
2224
|
-
|
|
2225
|
-
@validate_call
|
|
2226
|
-
def dataset_dataset_id_datapoints_urls_post_with_http_info(
|
|
2227
|
-
self,
|
|
2228
|
-
dataset_id: Annotated[StrictStr, Field(description="The id of the dataset to create the datapoint in.")],
|
|
2229
|
-
create_datapoint_from_urls_model: Annotated[Optional[CreateDatapointFromUrlsModel], Field(description="The body of the request.")] = None,
|
|
2230
|
-
_request_timeout: Union[
|
|
2231
|
-
None,
|
|
2232
|
-
Annotated[StrictFloat, Field(gt=0)],
|
|
2233
|
-
Tuple[
|
|
2234
|
-
Annotated[StrictFloat, Field(gt=0)],
|
|
2235
|
-
Annotated[StrictFloat, Field(gt=0)]
|
|
2236
|
-
]
|
|
2237
|
-
] = None,
|
|
2238
|
-
_request_auth: Optional[Dict[StrictStr, Any]] = None,
|
|
2239
|
-
_content_type: Optional[StrictStr] = None,
|
|
2240
|
-
_headers: Optional[Dict[StrictStr, Any]] = None,
|
|
2241
|
-
_host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
|
|
2242
|
-
) -> ApiResponse[CreateDatapointResult]:
|
|
2243
|
-
"""Creates a single datapoint where the assets are fetched from the specified urls.
|
|
2244
|
-
|
|
2245
|
-
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.
|
|
2246
|
-
|
|
2247
|
-
:param dataset_id: The id of the dataset to create the datapoint in. (required)
|
|
2248
|
-
:type dataset_id: str
|
|
2249
|
-
:param create_datapoint_from_urls_model: The body of the request.
|
|
2250
|
-
:type create_datapoint_from_urls_model: CreateDatapointFromUrlsModel
|
|
2251
|
-
:param _request_timeout: timeout setting for this request. If one
|
|
2252
|
-
number provided, it will be total request
|
|
2253
|
-
timeout. It can also be a pair (tuple) of
|
|
2254
|
-
(connection, read) timeouts.
|
|
2255
|
-
:type _request_timeout: int, tuple(int, int), optional
|
|
2256
|
-
:param _request_auth: set to override the auth_settings for an a single
|
|
2257
|
-
request; this effectively ignores the
|
|
2258
|
-
authentication in the spec for a single request.
|
|
2259
|
-
:type _request_auth: dict, optional
|
|
2260
|
-
:param _content_type: force content-type for the request.
|
|
2261
|
-
:type _content_type: str, Optional
|
|
2262
|
-
:param _headers: set to override the headers for a single
|
|
2263
|
-
request; this effectively ignores the headers
|
|
2264
|
-
in the spec for a single request.
|
|
2265
|
-
:type _headers: dict, optional
|
|
2266
|
-
:param _host_index: set to override the host_index for a single
|
|
2267
|
-
request; this effectively ignores the host_index
|
|
2268
|
-
in the spec for a single request.
|
|
2269
|
-
:type _host_index: int, optional
|
|
2270
|
-
:return: Returns the result object.
|
|
2271
|
-
""" # noqa: E501
|
|
2272
|
-
|
|
2273
|
-
_param = self._dataset_dataset_id_datapoints_urls_post_serialize(
|
|
2274
|
-
dataset_id=dataset_id,
|
|
2275
|
-
create_datapoint_from_urls_model=create_datapoint_from_urls_model,
|
|
2276
|
-
_request_auth=_request_auth,
|
|
2277
|
-
_content_type=_content_type,
|
|
2278
|
-
_headers=_headers,
|
|
2279
|
-
_host_index=_host_index
|
|
2280
|
-
)
|
|
2281
|
-
|
|
2282
|
-
_response_types_map: Dict[str, Optional[str]] = {
|
|
2283
|
-
'200': "CreateDatapointResult",
|
|
2284
|
-
}
|
|
2285
|
-
response_data = self.api_client.call_api(
|
|
2286
|
-
*_param,
|
|
2287
|
-
_request_timeout=_request_timeout
|
|
2288
|
-
)
|
|
2289
|
-
response_data.read()
|
|
2290
|
-
return self.api_client.response_deserialize(
|
|
2291
|
-
response_data=response_data,
|
|
2292
|
-
response_types_map=_response_types_map,
|
|
2293
|
-
)
|
|
2294
|
-
|
|
2295
|
-
|
|
2296
|
-
@validate_call
|
|
2297
|
-
def dataset_dataset_id_datapoints_urls_post_without_preload_content(
|
|
2298
|
-
self,
|
|
2299
|
-
dataset_id: Annotated[StrictStr, Field(description="The id of the dataset to create the datapoint in.")],
|
|
2300
|
-
create_datapoint_from_urls_model: Annotated[Optional[CreateDatapointFromUrlsModel], Field(description="The body of the request.")] = None,
|
|
2301
|
-
_request_timeout: Union[
|
|
2302
|
-
None,
|
|
2303
|
-
Annotated[StrictFloat, Field(gt=0)],
|
|
2304
|
-
Tuple[
|
|
2305
|
-
Annotated[StrictFloat, Field(gt=0)],
|
|
2306
|
-
Annotated[StrictFloat, Field(gt=0)]
|
|
2307
|
-
]
|
|
2308
|
-
] = None,
|
|
2309
|
-
_request_auth: Optional[Dict[StrictStr, Any]] = None,
|
|
2310
|
-
_content_type: Optional[StrictStr] = None,
|
|
2311
|
-
_headers: Optional[Dict[StrictStr, Any]] = None,
|
|
2312
|
-
_host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
|
|
2313
|
-
) -> RESTResponseType:
|
|
2314
|
-
"""Creates a single datapoint where the assets are fetched from the specified urls.
|
|
2315
|
-
|
|
2316
|
-
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.
|
|
2317
|
-
|
|
2318
|
-
:param dataset_id: The id of the dataset to create the datapoint in. (required)
|
|
2319
|
-
:type dataset_id: str
|
|
2320
|
-
:param create_datapoint_from_urls_model: The body of the request.
|
|
2321
|
-
:type create_datapoint_from_urls_model: CreateDatapointFromUrlsModel
|
|
2322
|
-
:param _request_timeout: timeout setting for this request. If one
|
|
2323
|
-
number provided, it will be total request
|
|
2324
|
-
timeout. It can also be a pair (tuple) of
|
|
2325
|
-
(connection, read) timeouts.
|
|
2326
|
-
:type _request_timeout: int, tuple(int, int), optional
|
|
2327
|
-
:param _request_auth: set to override the auth_settings for an a single
|
|
2328
|
-
request; this effectively ignores the
|
|
2329
|
-
authentication in the spec for a single request.
|
|
2330
|
-
:type _request_auth: dict, optional
|
|
2331
|
-
:param _content_type: force content-type for the request.
|
|
2332
|
-
:type _content_type: str, Optional
|
|
2333
|
-
:param _headers: set to override the headers for a single
|
|
2334
|
-
request; this effectively ignores the headers
|
|
2335
|
-
in the spec for a single request.
|
|
2336
|
-
:type _headers: dict, optional
|
|
2337
|
-
:param _host_index: set to override the host_index for a single
|
|
2338
|
-
request; this effectively ignores the host_index
|
|
2339
|
-
in the spec for a single request.
|
|
2340
|
-
:type _host_index: int, optional
|
|
2341
|
-
:return: Returns the result object.
|
|
2342
|
-
""" # noqa: E501
|
|
2343
|
-
|
|
2344
|
-
_param = self._dataset_dataset_id_datapoints_urls_post_serialize(
|
|
2345
|
-
dataset_id=dataset_id,
|
|
2346
|
-
create_datapoint_from_urls_model=create_datapoint_from_urls_model,
|
|
2347
|
-
_request_auth=_request_auth,
|
|
2348
|
-
_content_type=_content_type,
|
|
2349
|
-
_headers=_headers,
|
|
2350
|
-
_host_index=_host_index
|
|
2351
|
-
)
|
|
2352
|
-
|
|
2353
|
-
_response_types_map: Dict[str, Optional[str]] = {
|
|
2354
|
-
'200': "CreateDatapointResult",
|
|
2355
|
-
}
|
|
2356
|
-
response_data = self.api_client.call_api(
|
|
2357
|
-
*_param,
|
|
2358
|
-
_request_timeout=_request_timeout
|
|
2359
|
-
)
|
|
2360
|
-
return response_data.response
|
|
2361
|
-
|
|
2362
|
-
|
|
2363
|
-
def _dataset_dataset_id_datapoints_urls_post_serialize(
|
|
2364
|
-
self,
|
|
2365
|
-
dataset_id,
|
|
2366
|
-
create_datapoint_from_urls_model,
|
|
2367
|
-
_request_auth,
|
|
2368
|
-
_content_type,
|
|
2369
|
-
_headers,
|
|
2370
|
-
_host_index,
|
|
2371
|
-
) -> RequestSerialized:
|
|
2372
|
-
|
|
2373
|
-
_host = None
|
|
2374
|
-
|
|
2375
|
-
_collection_formats: Dict[str, str] = {
|
|
2376
|
-
}
|
|
2377
|
-
|
|
2378
|
-
_path_params: Dict[str, str] = {}
|
|
2379
|
-
_query_params: List[Tuple[str, str]] = []
|
|
2380
|
-
_header_params: Dict[str, Optional[str]] = _headers or {}
|
|
2381
|
-
_form_params: List[Tuple[str, str]] = []
|
|
2382
|
-
_files: Dict[
|
|
2383
|
-
str, Union[str, bytes, List[str], List[bytes], List[Tuple[str, bytes]]]
|
|
2384
|
-
] = {}
|
|
2385
|
-
_body_params: Optional[bytes] = None
|
|
2386
|
-
|
|
2387
|
-
# process the path parameters
|
|
2388
|
-
if dataset_id is not None:
|
|
2389
|
-
_path_params['datasetId'] = dataset_id
|
|
2390
|
-
# process the query parameters
|
|
2391
|
-
# process the header parameters
|
|
2392
|
-
# process the form parameters
|
|
2393
|
-
# process the body parameter
|
|
2394
|
-
if create_datapoint_from_urls_model is not None:
|
|
2395
|
-
_body_params = create_datapoint_from_urls_model
|
|
2396
|
-
|
|
2397
|
-
|
|
2398
|
-
# set the HTTP header `Accept`
|
|
2399
|
-
if 'Accept' not in _header_params:
|
|
2400
|
-
_header_params['Accept'] = self.api_client.select_header_accept(
|
|
2401
|
-
[
|
|
2402
|
-
'text/plain',
|
|
2403
|
-
'application/json',
|
|
2404
|
-
'text/json'
|
|
2405
|
-
]
|
|
2406
|
-
)
|
|
2407
|
-
|
|
2408
|
-
# set the HTTP header `Content-Type`
|
|
2409
|
-
if _content_type:
|
|
2410
|
-
_header_params['Content-Type'] = _content_type
|
|
2411
|
-
else:
|
|
2412
|
-
_default_content_type = (
|
|
2413
|
-
self.api_client.select_header_content_type(
|
|
2414
|
-
[
|
|
2415
|
-
'application/json',
|
|
2416
|
-
'text/json',
|
|
2417
|
-
'application/*+json'
|
|
2418
|
-
]
|
|
2419
|
-
)
|
|
2420
|
-
)
|
|
2421
|
-
if _default_content_type is not None:
|
|
2422
|
-
_header_params['Content-Type'] = _default_content_type
|
|
2423
|
-
|
|
2424
|
-
# authentication setting
|
|
2425
|
-
_auth_settings: List[str] = [
|
|
2426
|
-
'bearer',
|
|
2427
|
-
'oauth2'
|
|
2428
|
-
]
|
|
2429
|
-
|
|
2430
|
-
return self.api_client.param_serialize(
|
|
2431
|
-
method='POST',
|
|
2432
|
-
resource_path='/dataset/{datasetId}/datapoints/urls',
|
|
2433
|
-
path_params=_path_params,
|
|
2434
|
-
query_params=_query_params,
|
|
2435
|
-
header_params=_header_params,
|
|
2436
|
-
body=_body_params,
|
|
2437
|
-
post_params=_form_params,
|
|
2438
|
-
files=_files,
|
|
2439
|
-
auth_settings=_auth_settings,
|
|
2440
|
-
collection_formats=_collection_formats,
|
|
2441
|
-
_host=_host,
|
|
2442
|
-
_request_auth=_request_auth
|
|
2443
|
-
)
|
|
2444
|
-
|
|
2445
|
-
|
|
2446
|
-
|
|
2447
|
-
|
|
2448
|
-
@validate_call
|
|
2449
|
-
def dataset_dataset_id_get(
|
|
2450
|
-
self,
|
|
2451
|
-
dataset_id: Annotated[StrictStr, Field(description="The id of the dataset to get.")],
|
|
2452
|
-
_request_timeout: Union[
|
|
2453
|
-
None,
|
|
2454
|
-
Annotated[StrictFloat, Field(gt=0)],
|
|
2455
|
-
Tuple[
|
|
2456
|
-
Annotated[StrictFloat, Field(gt=0)],
|
|
2457
|
-
Annotated[StrictFloat, Field(gt=0)]
|
|
2458
|
-
]
|
|
2459
|
-
] = None,
|
|
2460
|
-
_request_auth: Optional[Dict[StrictStr, Any]] = None,
|
|
2461
|
-
_content_type: Optional[StrictStr] = None,
|
|
2462
|
-
_headers: Optional[Dict[StrictStr, Any]] = None,
|
|
2463
|
-
_host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
|
|
2464
|
-
) -> GetDatasetByIdResult:
|
|
2465
|
-
"""Gets a dataset by its id.
|
|
2466
|
-
|
|
2467
|
-
|
|
2468
|
-
:param dataset_id: The id of the dataset to get. (required)
|
|
2469
|
-
:type dataset_id: str
|
|
2470
|
-
:param _request_timeout: timeout setting for this request. If one
|
|
2471
|
-
number provided, it will be total request
|
|
2472
|
-
timeout. It can also be a pair (tuple) of
|
|
2473
|
-
(connection, read) timeouts.
|
|
2474
|
-
:type _request_timeout: int, tuple(int, int), optional
|
|
2475
|
-
:param _request_auth: set to override the auth_settings for an a single
|
|
2476
|
-
request; this effectively ignores the
|
|
2477
|
-
authentication in the spec for a single request.
|
|
2478
|
-
:type _request_auth: dict, optional
|
|
2479
|
-
:param _content_type: force content-type for the request.
|
|
2480
|
-
:type _content_type: str, Optional
|
|
2481
|
-
:param _headers: set to override the headers for a single
|
|
2482
|
-
request; this effectively ignores the headers
|
|
2483
|
-
in the spec for a single request.
|
|
2484
|
-
:type _headers: dict, optional
|
|
2485
|
-
:param _host_index: set to override the host_index for a single
|
|
2486
|
-
request; this effectively ignores the host_index
|
|
2487
|
-
in the spec for a single request.
|
|
2488
|
-
:type _host_index: int, optional
|
|
2489
|
-
:return: Returns the result object.
|
|
2490
|
-
""" # noqa: E501
|
|
2491
|
-
|
|
2492
|
-
_param = self._dataset_dataset_id_get_serialize(
|
|
2493
|
-
dataset_id=dataset_id,
|
|
2494
|
-
_request_auth=_request_auth,
|
|
2495
|
-
_content_type=_content_type,
|
|
2496
|
-
_headers=_headers,
|
|
2497
|
-
_host_index=_host_index
|
|
2498
|
-
)
|
|
2499
|
-
|
|
2500
|
-
_response_types_map: Dict[str, Optional[str]] = {
|
|
2501
|
-
'200': "GetDatasetByIdResult",
|
|
2502
|
-
}
|
|
2503
|
-
response_data = self.api_client.call_api(
|
|
2504
|
-
*_param,
|
|
2505
|
-
_request_timeout=_request_timeout
|
|
2506
|
-
)
|
|
2507
|
-
response_data.read()
|
|
2508
|
-
return self.api_client.response_deserialize(
|
|
2509
|
-
response_data=response_data,
|
|
2510
|
-
response_types_map=_response_types_map,
|
|
2511
|
-
).data
|
|
2512
|
-
|
|
2513
|
-
|
|
2514
|
-
@validate_call
|
|
2515
|
-
def dataset_dataset_id_get_with_http_info(
|
|
2516
|
-
self,
|
|
2517
|
-
dataset_id: Annotated[StrictStr, Field(description="The id of the dataset to get.")],
|
|
2518
|
-
_request_timeout: Union[
|
|
2519
|
-
None,
|
|
2520
|
-
Annotated[StrictFloat, Field(gt=0)],
|
|
2521
|
-
Tuple[
|
|
2522
|
-
Annotated[StrictFloat, Field(gt=0)],
|
|
2523
|
-
Annotated[StrictFloat, Field(gt=0)]
|
|
2524
|
-
]
|
|
2525
|
-
] = None,
|
|
2526
|
-
_request_auth: Optional[Dict[StrictStr, Any]] = None,
|
|
2527
|
-
_content_type: Optional[StrictStr] = None,
|
|
2528
|
-
_headers: Optional[Dict[StrictStr, Any]] = None,
|
|
2529
|
-
_host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
|
|
2530
|
-
) -> ApiResponse[GetDatasetByIdResult]:
|
|
2531
|
-
"""Gets a dataset by its id.
|
|
2532
|
-
|
|
2533
|
-
|
|
2534
|
-
:param dataset_id: The id of the dataset to get. (required)
|
|
2535
|
-
:type dataset_id: str
|
|
2536
|
-
:param _request_timeout: timeout setting for this request. If one
|
|
2537
|
-
number provided, it will be total request
|
|
2538
|
-
timeout. It can also be a pair (tuple) of
|
|
2539
|
-
(connection, read) timeouts.
|
|
2540
|
-
:type _request_timeout: int, tuple(int, int), optional
|
|
2541
|
-
:param _request_auth: set to override the auth_settings for an a single
|
|
2542
|
-
request; this effectively ignores the
|
|
2543
|
-
authentication in the spec for a single request.
|
|
2544
|
-
:type _request_auth: dict, optional
|
|
2545
|
-
:param _content_type: force content-type for the request.
|
|
2546
|
-
:type _content_type: str, Optional
|
|
2547
|
-
:param _headers: set to override the headers for a single
|
|
2548
|
-
request; this effectively ignores the headers
|
|
2549
|
-
in the spec for a single request.
|
|
2550
|
-
:type _headers: dict, optional
|
|
2551
|
-
:param _host_index: set to override the host_index for a single
|
|
2552
|
-
request; this effectively ignores the host_index
|
|
2553
|
-
in the spec for a single request.
|
|
2554
|
-
:type _host_index: int, optional
|
|
2555
|
-
:return: Returns the result object.
|
|
2556
|
-
""" # noqa: E501
|
|
2557
|
-
|
|
2558
|
-
_param = self._dataset_dataset_id_get_serialize(
|
|
2559
|
-
dataset_id=dataset_id,
|
|
2560
|
-
_request_auth=_request_auth,
|
|
2561
|
-
_content_type=_content_type,
|
|
2562
|
-
_headers=_headers,
|
|
2563
|
-
_host_index=_host_index
|
|
2564
|
-
)
|
|
2565
|
-
|
|
2566
|
-
_response_types_map: Dict[str, Optional[str]] = {
|
|
2567
|
-
'200': "GetDatasetByIdResult",
|
|
2568
|
-
}
|
|
2569
|
-
response_data = self.api_client.call_api(
|
|
2570
|
-
*_param,
|
|
2571
|
-
_request_timeout=_request_timeout
|
|
2572
|
-
)
|
|
2573
|
-
response_data.read()
|
|
2574
|
-
return self.api_client.response_deserialize(
|
|
2575
|
-
response_data=response_data,
|
|
2576
|
-
response_types_map=_response_types_map,
|
|
2577
|
-
)
|
|
2578
|
-
|
|
2579
|
-
|
|
2580
|
-
@validate_call
|
|
2581
|
-
def dataset_dataset_id_get_without_preload_content(
|
|
2582
|
-
self,
|
|
2583
|
-
dataset_id: Annotated[StrictStr, Field(description="The id of the dataset to get.")],
|
|
2584
|
-
_request_timeout: Union[
|
|
2585
|
-
None,
|
|
2586
|
-
Annotated[StrictFloat, Field(gt=0)],
|
|
2587
|
-
Tuple[
|
|
2588
|
-
Annotated[StrictFloat, Field(gt=0)],
|
|
2589
|
-
Annotated[StrictFloat, Field(gt=0)]
|
|
2590
|
-
]
|
|
2591
|
-
] = None,
|
|
2592
|
-
_request_auth: Optional[Dict[StrictStr, Any]] = None,
|
|
2593
|
-
_content_type: Optional[StrictStr] = None,
|
|
2594
|
-
_headers: Optional[Dict[StrictStr, Any]] = None,
|
|
2595
|
-
_host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
|
|
2596
|
-
) -> RESTResponseType:
|
|
2597
|
-
"""Gets a dataset by its id.
|
|
2598
|
-
|
|
2599
|
-
|
|
2600
|
-
:param dataset_id: The id of the dataset to get. (required)
|
|
2601
|
-
:type dataset_id: str
|
|
2602
|
-
:param _request_timeout: timeout setting for this request. If one
|
|
2603
|
-
number provided, it will be total request
|
|
2604
|
-
timeout. It can also be a pair (tuple) of
|
|
2605
|
-
(connection, read) timeouts.
|
|
2606
|
-
:type _request_timeout: int, tuple(int, int), optional
|
|
2607
|
-
:param _request_auth: set to override the auth_settings for an a single
|
|
2608
|
-
request; this effectively ignores the
|
|
2609
|
-
authentication in the spec for a single request.
|
|
2610
|
-
:type _request_auth: dict, optional
|
|
2611
|
-
:param _content_type: force content-type for the request.
|
|
2612
|
-
:type _content_type: str, Optional
|
|
2613
|
-
:param _headers: set to override the headers for a single
|
|
2614
|
-
request; this effectively ignores the headers
|
|
2615
|
-
in the spec for a single request.
|
|
2616
|
-
:type _headers: dict, optional
|
|
2617
|
-
:param _host_index: set to override the host_index for a single
|
|
2618
|
-
request; this effectively ignores the host_index
|
|
2619
|
-
in the spec for a single request.
|
|
2620
|
-
:type _host_index: int, optional
|
|
2621
|
-
:return: Returns the result object.
|
|
2622
|
-
""" # noqa: E501
|
|
2623
|
-
|
|
2624
|
-
_param = self._dataset_dataset_id_get_serialize(
|
|
2625
|
-
dataset_id=dataset_id,
|
|
2626
|
-
_request_auth=_request_auth,
|
|
2627
|
-
_content_type=_content_type,
|
|
2628
|
-
_headers=_headers,
|
|
2629
|
-
_host_index=_host_index
|
|
2630
|
-
)
|
|
2631
|
-
|
|
2632
|
-
_response_types_map: Dict[str, Optional[str]] = {
|
|
2633
|
-
'200': "GetDatasetByIdResult",
|
|
2634
|
-
}
|
|
2635
|
-
response_data = self.api_client.call_api(
|
|
2636
|
-
*_param,
|
|
2637
|
-
_request_timeout=_request_timeout
|
|
2638
|
-
)
|
|
2639
|
-
return response_data.response
|
|
2640
|
-
|
|
2641
|
-
|
|
2642
|
-
def _dataset_dataset_id_get_serialize(
|
|
2643
|
-
self,
|
|
2644
|
-
dataset_id,
|
|
2645
|
-
_request_auth,
|
|
2646
|
-
_content_type,
|
|
2647
|
-
_headers,
|
|
2648
|
-
_host_index,
|
|
2649
|
-
) -> RequestSerialized:
|
|
2650
|
-
|
|
2651
|
-
_host = None
|
|
2652
|
-
|
|
2653
|
-
_collection_formats: Dict[str, str] = {
|
|
2654
|
-
}
|
|
2655
|
-
|
|
2656
|
-
_path_params: Dict[str, str] = {}
|
|
2657
|
-
_query_params: List[Tuple[str, str]] = []
|
|
2658
|
-
_header_params: Dict[str, Optional[str]] = _headers or {}
|
|
2659
|
-
_form_params: List[Tuple[str, str]] = []
|
|
2660
|
-
_files: Dict[
|
|
2661
|
-
str, Union[str, bytes, List[str], List[bytes], List[Tuple[str, bytes]]]
|
|
2662
|
-
] = {}
|
|
2663
|
-
_body_params: Optional[bytes] = None
|
|
2664
|
-
|
|
2665
|
-
# process the path parameters
|
|
2666
|
-
if dataset_id is not None:
|
|
2667
|
-
_path_params['datasetId'] = dataset_id
|
|
2668
|
-
# process the query parameters
|
|
2669
|
-
# process the header parameters
|
|
2670
|
-
# process the form parameters
|
|
2671
|
-
# process the body parameter
|
|
2672
|
-
|
|
2673
|
-
|
|
2674
|
-
# set the HTTP header `Accept`
|
|
2675
|
-
if 'Accept' not in _header_params:
|
|
2676
|
-
_header_params['Accept'] = self.api_client.select_header_accept(
|
|
2677
|
-
[
|
|
2678
|
-
'text/plain',
|
|
2679
|
-
'application/json',
|
|
2680
|
-
'text/json'
|
|
2681
|
-
]
|
|
2682
|
-
)
|
|
2683
|
-
|
|
2684
|
-
|
|
2685
|
-
# authentication setting
|
|
2686
|
-
_auth_settings: List[str] = [
|
|
2687
|
-
'bearer',
|
|
2688
|
-
'oauth2'
|
|
2689
|
-
]
|
|
2690
|
-
|
|
2691
|
-
return self.api_client.param_serialize(
|
|
2692
|
-
method='GET',
|
|
2693
|
-
resource_path='/dataset/{datasetId}',
|
|
2694
|
-
path_params=_path_params,
|
|
2695
|
-
query_params=_query_params,
|
|
2696
|
-
header_params=_header_params,
|
|
2697
|
-
body=_body_params,
|
|
2698
|
-
post_params=_form_params,
|
|
2699
|
-
files=_files,
|
|
2700
|
-
auth_settings=_auth_settings,
|
|
2701
|
-
collection_formats=_collection_formats,
|
|
2702
|
-
_host=_host,
|
|
2703
|
-
_request_auth=_request_auth
|
|
2704
|
-
)
|
|
2705
|
-
|
|
2706
|
-
|
|
2707
|
-
|
|
2708
|
-
|
|
2709
|
-
@validate_call
|
|
2710
|
-
def dataset_dataset_id_name_patch(
|
|
2711
|
-
self,
|
|
2712
|
-
dataset_id: Annotated[StrictStr, Field(description="The id of the dataset to update.")],
|
|
2713
|
-
update_dataset_name_model: Annotated[Optional[UpdateDatasetNameModel], Field(description="The body of the request.")] = None,
|
|
2714
|
-
_request_timeout: Union[
|
|
2715
|
-
None,
|
|
2716
|
-
Annotated[StrictFloat, Field(gt=0)],
|
|
2717
|
-
Tuple[
|
|
2718
|
-
Annotated[StrictFloat, Field(gt=0)],
|
|
2719
|
-
Annotated[StrictFloat, Field(gt=0)]
|
|
2720
|
-
]
|
|
2721
|
-
] = None,
|
|
2722
|
-
_request_auth: Optional[Dict[StrictStr, Any]] = None,
|
|
2723
|
-
_content_type: Optional[StrictStr] = None,
|
|
2724
|
-
_headers: Optional[Dict[StrictStr, Any]] = None,
|
|
2725
|
-
_host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
|
|
2726
|
-
) -> None:
|
|
2727
|
-
"""Updates the name of a dataset.
|
|
2728
|
-
|
|
2729
|
-
|
|
2730
|
-
:param dataset_id: The id of the dataset to update. (required)
|
|
2731
|
-
:type dataset_id: str
|
|
2732
|
-
:param update_dataset_name_model: The body of the request.
|
|
2733
|
-
:type update_dataset_name_model: UpdateDatasetNameModel
|
|
2734
|
-
:param _request_timeout: timeout setting for this request. If one
|
|
2735
|
-
number provided, it will be total request
|
|
2736
|
-
timeout. It can also be a pair (tuple) of
|
|
2737
|
-
(connection, read) timeouts.
|
|
2738
|
-
:type _request_timeout: int, tuple(int, int), optional
|
|
2739
|
-
:param _request_auth: set to override the auth_settings for an a single
|
|
2740
|
-
request; this effectively ignores the
|
|
2741
|
-
authentication in the spec for a single request.
|
|
2742
|
-
:type _request_auth: dict, optional
|
|
2743
|
-
:param _content_type: force content-type for the request.
|
|
2744
|
-
:type _content_type: str, Optional
|
|
2745
|
-
:param _headers: set to override the headers for a single
|
|
2746
|
-
request; this effectively ignores the headers
|
|
2747
|
-
in the spec for a single request.
|
|
2748
|
-
:type _headers: dict, optional
|
|
2749
|
-
:param _host_index: set to override the host_index for a single
|
|
2750
|
-
request; this effectively ignores the host_index
|
|
2751
|
-
in the spec for a single request.
|
|
2752
|
-
:type _host_index: int, optional
|
|
2753
|
-
:return: Returns the result object.
|
|
2754
|
-
""" # noqa: E501
|
|
2755
|
-
|
|
2756
|
-
_param = self._dataset_dataset_id_name_patch_serialize(
|
|
2757
|
-
dataset_id=dataset_id,
|
|
2758
|
-
update_dataset_name_model=update_dataset_name_model,
|
|
2759
|
-
_request_auth=_request_auth,
|
|
2760
|
-
_content_type=_content_type,
|
|
2761
|
-
_headers=_headers,
|
|
2762
|
-
_host_index=_host_index
|
|
2763
|
-
)
|
|
2764
|
-
|
|
2765
|
-
_response_types_map: Dict[str, Optional[str]] = {
|
|
2766
|
-
'204': None,
|
|
2767
|
-
}
|
|
2768
|
-
response_data = self.api_client.call_api(
|
|
2769
|
-
*_param,
|
|
2770
|
-
_request_timeout=_request_timeout
|
|
2771
|
-
)
|
|
2772
|
-
response_data.read()
|
|
2773
|
-
return self.api_client.response_deserialize(
|
|
2774
|
-
response_data=response_data,
|
|
2775
|
-
response_types_map=_response_types_map,
|
|
2776
|
-
).data
|
|
2777
|
-
|
|
2778
|
-
|
|
2779
|
-
@validate_call
|
|
2780
|
-
def dataset_dataset_id_name_patch_with_http_info(
|
|
2781
|
-
self,
|
|
2782
|
-
dataset_id: Annotated[StrictStr, Field(description="The id of the dataset to update.")],
|
|
2783
|
-
update_dataset_name_model: Annotated[Optional[UpdateDatasetNameModel], Field(description="The body of the request.")] = None,
|
|
2784
|
-
_request_timeout: Union[
|
|
2785
|
-
None,
|
|
2786
|
-
Annotated[StrictFloat, Field(gt=0)],
|
|
2787
|
-
Tuple[
|
|
2788
|
-
Annotated[StrictFloat, Field(gt=0)],
|
|
2789
|
-
Annotated[StrictFloat, Field(gt=0)]
|
|
2790
|
-
]
|
|
2791
|
-
] = None,
|
|
2792
|
-
_request_auth: Optional[Dict[StrictStr, Any]] = None,
|
|
2793
|
-
_content_type: Optional[StrictStr] = None,
|
|
2794
|
-
_headers: Optional[Dict[StrictStr, Any]] = None,
|
|
2795
|
-
_host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
|
|
2796
|
-
) -> ApiResponse[None]:
|
|
2797
|
-
"""Updates the name of a dataset.
|
|
2798
|
-
|
|
2799
|
-
|
|
2800
|
-
:param dataset_id: The id of the dataset to update. (required)
|
|
2801
|
-
:type dataset_id: str
|
|
2802
|
-
:param update_dataset_name_model: The body of the request.
|
|
2803
|
-
:type update_dataset_name_model: UpdateDatasetNameModel
|
|
2804
|
-
:param _request_timeout: timeout setting for this request. If one
|
|
2805
|
-
number provided, it will be total request
|
|
2806
|
-
timeout. It can also be a pair (tuple) of
|
|
2807
|
-
(connection, read) timeouts.
|
|
2808
|
-
:type _request_timeout: int, tuple(int, int), optional
|
|
2809
|
-
:param _request_auth: set to override the auth_settings for an a single
|
|
2810
|
-
request; this effectively ignores the
|
|
2811
|
-
authentication in the spec for a single request.
|
|
2812
|
-
:type _request_auth: dict, optional
|
|
2813
|
-
:param _content_type: force content-type for the request.
|
|
2814
|
-
:type _content_type: str, Optional
|
|
2815
|
-
:param _headers: set to override the headers for a single
|
|
2816
|
-
request; this effectively ignores the headers
|
|
2817
|
-
in the spec for a single request.
|
|
2818
|
-
:type _headers: dict, optional
|
|
2819
|
-
:param _host_index: set to override the host_index for a single
|
|
2820
|
-
request; this effectively ignores the host_index
|
|
2821
|
-
in the spec for a single request.
|
|
2822
|
-
:type _host_index: int, optional
|
|
2823
|
-
:return: Returns the result object.
|
|
2824
|
-
""" # noqa: E501
|
|
2825
|
-
|
|
2826
|
-
_param = self._dataset_dataset_id_name_patch_serialize(
|
|
2827
|
-
dataset_id=dataset_id,
|
|
2828
|
-
update_dataset_name_model=update_dataset_name_model,
|
|
2829
|
-
_request_auth=_request_auth,
|
|
2830
|
-
_content_type=_content_type,
|
|
2831
|
-
_headers=_headers,
|
|
2832
|
-
_host_index=_host_index
|
|
2833
|
-
)
|
|
2834
|
-
|
|
2835
|
-
_response_types_map: Dict[str, Optional[str]] = {
|
|
2836
|
-
'204': None,
|
|
2837
|
-
}
|
|
2838
|
-
response_data = self.api_client.call_api(
|
|
2839
|
-
*_param,
|
|
2840
|
-
_request_timeout=_request_timeout
|
|
2841
|
-
)
|
|
2842
|
-
response_data.read()
|
|
2843
|
-
return self.api_client.response_deserialize(
|
|
2844
|
-
response_data=response_data,
|
|
2845
|
-
response_types_map=_response_types_map,
|
|
2846
|
-
)
|
|
2847
|
-
|
|
2848
|
-
|
|
2849
|
-
@validate_call
|
|
2850
|
-
def dataset_dataset_id_name_patch_without_preload_content(
|
|
2851
|
-
self,
|
|
2852
|
-
dataset_id: Annotated[StrictStr, Field(description="The id of the dataset to update.")],
|
|
2853
|
-
update_dataset_name_model: Annotated[Optional[UpdateDatasetNameModel], Field(description="The body of the request.")] = None,
|
|
2854
|
-
_request_timeout: Union[
|
|
2855
|
-
None,
|
|
2856
|
-
Annotated[StrictFloat, Field(gt=0)],
|
|
2857
|
-
Tuple[
|
|
2858
|
-
Annotated[StrictFloat, Field(gt=0)],
|
|
2859
|
-
Annotated[StrictFloat, Field(gt=0)]
|
|
2860
|
-
]
|
|
2861
|
-
] = None,
|
|
2862
|
-
_request_auth: Optional[Dict[StrictStr, Any]] = None,
|
|
2863
|
-
_content_type: Optional[StrictStr] = None,
|
|
2864
|
-
_headers: Optional[Dict[StrictStr, Any]] = None,
|
|
2865
|
-
_host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
|
|
2866
|
-
) -> RESTResponseType:
|
|
2867
|
-
"""Updates the name of a dataset.
|
|
2868
|
-
|
|
2869
|
-
|
|
2870
|
-
:param dataset_id: The id of the dataset to update. (required)
|
|
2871
|
-
:type dataset_id: str
|
|
2872
|
-
:param update_dataset_name_model: The body of the request.
|
|
2873
|
-
:type update_dataset_name_model: UpdateDatasetNameModel
|
|
2874
|
-
:param _request_timeout: timeout setting for this request. If one
|
|
2875
|
-
number provided, it will be total request
|
|
2876
|
-
timeout. It can also be a pair (tuple) of
|
|
2877
|
-
(connection, read) timeouts.
|
|
2878
|
-
:type _request_timeout: int, tuple(int, int), optional
|
|
2879
|
-
:param _request_auth: set to override the auth_settings for an a single
|
|
2880
|
-
request; this effectively ignores the
|
|
2881
|
-
authentication in the spec for a single request.
|
|
2882
|
-
:type _request_auth: dict, optional
|
|
2883
|
-
:param _content_type: force content-type for the request.
|
|
2884
|
-
:type _content_type: str, Optional
|
|
2885
|
-
:param _headers: set to override the headers for a single
|
|
2886
|
-
request; this effectively ignores the headers
|
|
2887
|
-
in the spec for a single request.
|
|
2888
|
-
:type _headers: dict, optional
|
|
2889
|
-
:param _host_index: set to override the host_index for a single
|
|
2890
|
-
request; this effectively ignores the host_index
|
|
2891
|
-
in the spec for a single request.
|
|
2892
|
-
:type _host_index: int, optional
|
|
2893
|
-
:return: Returns the result object.
|
|
2894
|
-
""" # noqa: E501
|
|
2895
|
-
|
|
2896
|
-
_param = self._dataset_dataset_id_name_patch_serialize(
|
|
2897
|
-
dataset_id=dataset_id,
|
|
2898
|
-
update_dataset_name_model=update_dataset_name_model,
|
|
2899
|
-
_request_auth=_request_auth,
|
|
2900
|
-
_content_type=_content_type,
|
|
2901
|
-
_headers=_headers,
|
|
2902
|
-
_host_index=_host_index
|
|
2903
|
-
)
|
|
2904
|
-
|
|
2905
|
-
_response_types_map: Dict[str, Optional[str]] = {
|
|
2906
|
-
'204': None,
|
|
2907
|
-
}
|
|
2908
|
-
response_data = self.api_client.call_api(
|
|
2909
|
-
*_param,
|
|
2910
|
-
_request_timeout=_request_timeout
|
|
2911
|
-
)
|
|
2912
|
-
return response_data.response
|
|
2913
|
-
|
|
2914
|
-
|
|
2915
|
-
def _dataset_dataset_id_name_patch_serialize(
|
|
2916
|
-
self,
|
|
2917
|
-
dataset_id,
|
|
2918
|
-
update_dataset_name_model,
|
|
2919
|
-
_request_auth,
|
|
2920
|
-
_content_type,
|
|
2921
|
-
_headers,
|
|
2922
|
-
_host_index,
|
|
2923
|
-
) -> RequestSerialized:
|
|
2924
|
-
|
|
2925
|
-
_host = None
|
|
2926
|
-
|
|
2927
|
-
_collection_formats: Dict[str, str] = {
|
|
2928
|
-
}
|
|
2929
|
-
|
|
2930
|
-
_path_params: Dict[str, str] = {}
|
|
2931
|
-
_query_params: List[Tuple[str, str]] = []
|
|
2932
|
-
_header_params: Dict[str, Optional[str]] = _headers or {}
|
|
2933
|
-
_form_params: List[Tuple[str, str]] = []
|
|
2934
|
-
_files: Dict[
|
|
2935
|
-
str, Union[str, bytes, List[str], List[bytes], List[Tuple[str, bytes]]]
|
|
2936
|
-
] = {}
|
|
2937
|
-
_body_params: Optional[bytes] = None
|
|
2938
|
-
|
|
2939
|
-
# process the path parameters
|
|
2940
|
-
if dataset_id is not None:
|
|
2941
|
-
_path_params['datasetId'] = dataset_id
|
|
2942
|
-
# process the query parameters
|
|
2943
|
-
# process the header parameters
|
|
2944
|
-
# process the form parameters
|
|
2945
|
-
# process the body parameter
|
|
2946
|
-
if update_dataset_name_model is not None:
|
|
2947
|
-
_body_params = update_dataset_name_model
|
|
2948
|
-
|
|
2949
|
-
|
|
2950
|
-
|
|
2951
|
-
# set the HTTP header `Content-Type`
|
|
2952
|
-
if _content_type:
|
|
2953
|
-
_header_params['Content-Type'] = _content_type
|
|
2954
|
-
else:
|
|
2955
|
-
_default_content_type = (
|
|
2956
|
-
self.api_client.select_header_content_type(
|
|
2957
|
-
[
|
|
2958
|
-
'application/json',
|
|
2959
|
-
'text/json',
|
|
2960
|
-
'application/*+json'
|
|
2961
|
-
]
|
|
2962
|
-
)
|
|
2963
|
-
)
|
|
2964
|
-
if _default_content_type is not None:
|
|
2965
|
-
_header_params['Content-Type'] = _default_content_type
|
|
2966
|
-
|
|
2967
|
-
# authentication setting
|
|
2968
|
-
_auth_settings: List[str] = [
|
|
2969
|
-
'bearer',
|
|
2970
|
-
'oauth2'
|
|
2971
|
-
]
|
|
2972
|
-
|
|
2973
|
-
return self.api_client.param_serialize(
|
|
2974
|
-
method='PATCH',
|
|
2975
|
-
resource_path='/dataset/{datasetId}/name',
|
|
2976
|
-
path_params=_path_params,
|
|
2977
|
-
query_params=_query_params,
|
|
2978
|
-
header_params=_header_params,
|
|
2979
|
-
body=_body_params,
|
|
2980
|
-
post_params=_form_params,
|
|
2981
|
-
files=_files,
|
|
2982
|
-
auth_settings=_auth_settings,
|
|
2983
|
-
collection_formats=_collection_formats,
|
|
2984
|
-
_host=_host,
|
|
2985
|
-
_request_auth=_request_auth
|
|
2986
|
-
)
|
|
2987
|
-
|
|
2988
|
-
|
|
2989
|
-
|
|
2990
|
-
|
|
2991
|
-
@validate_call
|
|
2992
|
-
def dataset_dataset_id_progress_get(
|
|
2993
|
-
self,
|
|
2994
|
-
dataset_id: Annotated[StrictStr, Field(description="The id of the dataset to get the progress of.")],
|
|
2995
|
-
_request_timeout: Union[
|
|
2996
|
-
None,
|
|
2997
|
-
Annotated[StrictFloat, Field(gt=0)],
|
|
2998
|
-
Tuple[
|
|
2999
|
-
Annotated[StrictFloat, Field(gt=0)],
|
|
3000
|
-
Annotated[StrictFloat, Field(gt=0)]
|
|
3001
|
-
]
|
|
3002
|
-
] = None,
|
|
3003
|
-
_request_auth: Optional[Dict[StrictStr, Any]] = None,
|
|
3004
|
-
_content_type: Optional[StrictStr] = None,
|
|
3005
|
-
_headers: Optional[Dict[StrictStr, Any]] = None,
|
|
3006
|
-
_host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
|
|
3007
|
-
) -> GetDatasetProgressResult:
|
|
3008
|
-
"""Gets the upload progress of a dataset.
|
|
3009
|
-
|
|
3010
|
-
|
|
3011
|
-
:param dataset_id: The id of the dataset to get the progress of. (required)
|
|
3012
|
-
:type dataset_id: str
|
|
3013
|
-
:param _request_timeout: timeout setting for this request. If one
|
|
3014
|
-
number provided, it will be total request
|
|
3015
|
-
timeout. It can also be a pair (tuple) of
|
|
3016
|
-
(connection, read) timeouts.
|
|
3017
|
-
:type _request_timeout: int, tuple(int, int), optional
|
|
3018
|
-
:param _request_auth: set to override the auth_settings for an a single
|
|
3019
|
-
request; this effectively ignores the
|
|
3020
|
-
authentication in the spec for a single request.
|
|
3021
|
-
:type _request_auth: dict, optional
|
|
3022
|
-
:param _content_type: force content-type for the request.
|
|
3023
|
-
:type _content_type: str, Optional
|
|
3024
|
-
:param _headers: set to override the headers for a single
|
|
3025
|
-
request; this effectively ignores the headers
|
|
3026
|
-
in the spec for a single request.
|
|
3027
|
-
:type _headers: dict, optional
|
|
3028
|
-
:param _host_index: set to override the host_index for a single
|
|
3029
|
-
request; this effectively ignores the host_index
|
|
3030
|
-
in the spec for a single request.
|
|
3031
|
-
:type _host_index: int, optional
|
|
3032
|
-
:return: Returns the result object.
|
|
3033
|
-
""" # noqa: E501
|
|
3034
|
-
|
|
3035
|
-
_param = self._dataset_dataset_id_progress_get_serialize(
|
|
3036
|
-
dataset_id=dataset_id,
|
|
3037
|
-
_request_auth=_request_auth,
|
|
3038
|
-
_content_type=_content_type,
|
|
3039
|
-
_headers=_headers,
|
|
3040
|
-
_host_index=_host_index
|
|
3041
|
-
)
|
|
3042
|
-
|
|
3043
|
-
_response_types_map: Dict[str, Optional[str]] = {
|
|
3044
|
-
'200': "GetDatasetProgressResult",
|
|
3045
|
-
}
|
|
3046
|
-
response_data = self.api_client.call_api(
|
|
3047
|
-
*_param,
|
|
3048
|
-
_request_timeout=_request_timeout
|
|
3049
|
-
)
|
|
3050
|
-
response_data.read()
|
|
3051
|
-
return self.api_client.response_deserialize(
|
|
3052
|
-
response_data=response_data,
|
|
3053
|
-
response_types_map=_response_types_map,
|
|
3054
|
-
).data
|
|
3055
|
-
|
|
3056
|
-
|
|
3057
|
-
@validate_call
|
|
3058
|
-
def dataset_dataset_id_progress_get_with_http_info(
|
|
3059
|
-
self,
|
|
3060
|
-
dataset_id: Annotated[StrictStr, Field(description="The id of the dataset to get the progress of.")],
|
|
3061
|
-
_request_timeout: Union[
|
|
3062
|
-
None,
|
|
3063
|
-
Annotated[StrictFloat, Field(gt=0)],
|
|
3064
|
-
Tuple[
|
|
3065
|
-
Annotated[StrictFloat, Field(gt=0)],
|
|
3066
|
-
Annotated[StrictFloat, Field(gt=0)]
|
|
3067
|
-
]
|
|
3068
|
-
] = None,
|
|
3069
|
-
_request_auth: Optional[Dict[StrictStr, Any]] = None,
|
|
3070
|
-
_content_type: Optional[StrictStr] = None,
|
|
3071
|
-
_headers: Optional[Dict[StrictStr, Any]] = None,
|
|
3072
|
-
_host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
|
|
3073
|
-
) -> ApiResponse[GetDatasetProgressResult]:
|
|
3074
|
-
"""Gets the upload progress of a dataset.
|
|
3075
|
-
|
|
3076
|
-
|
|
3077
|
-
:param dataset_id: The id of the dataset to get the progress of. (required)
|
|
3078
|
-
:type dataset_id: str
|
|
3079
|
-
:param _request_timeout: timeout setting for this request. If one
|
|
3080
|
-
number provided, it will be total request
|
|
3081
|
-
timeout. It can also be a pair (tuple) of
|
|
3082
|
-
(connection, read) timeouts.
|
|
3083
|
-
:type _request_timeout: int, tuple(int, int), optional
|
|
3084
|
-
:param _request_auth: set to override the auth_settings for an a single
|
|
3085
|
-
request; this effectively ignores the
|
|
3086
|
-
authentication in the spec for a single request.
|
|
3087
|
-
:type _request_auth: dict, optional
|
|
3088
|
-
:param _content_type: force content-type for the request.
|
|
3089
|
-
:type _content_type: str, Optional
|
|
3090
|
-
:param _headers: set to override the headers for a single
|
|
3091
|
-
request; this effectively ignores the headers
|
|
3092
|
-
in the spec for a single request.
|
|
3093
|
-
:type _headers: dict, optional
|
|
3094
|
-
:param _host_index: set to override the host_index for a single
|
|
3095
|
-
request; this effectively ignores the host_index
|
|
3096
|
-
in the spec for a single request.
|
|
3097
|
-
:type _host_index: int, optional
|
|
3098
|
-
:return: Returns the result object.
|
|
3099
|
-
""" # noqa: E501
|
|
3100
|
-
|
|
3101
|
-
_param = self._dataset_dataset_id_progress_get_serialize(
|
|
3102
|
-
dataset_id=dataset_id,
|
|
3103
|
-
_request_auth=_request_auth,
|
|
3104
|
-
_content_type=_content_type,
|
|
3105
|
-
_headers=_headers,
|
|
3106
|
-
_host_index=_host_index
|
|
3107
|
-
)
|
|
3108
|
-
|
|
3109
|
-
_response_types_map: Dict[str, Optional[str]] = {
|
|
3110
|
-
'200': "GetDatasetProgressResult",
|
|
3111
|
-
}
|
|
3112
|
-
response_data = self.api_client.call_api(
|
|
3113
|
-
*_param,
|
|
3114
|
-
_request_timeout=_request_timeout
|
|
3115
|
-
)
|
|
3116
|
-
response_data.read()
|
|
3117
|
-
return self.api_client.response_deserialize(
|
|
3118
|
-
response_data=response_data,
|
|
3119
|
-
response_types_map=_response_types_map,
|
|
3120
|
-
)
|
|
3121
|
-
|
|
3122
|
-
|
|
3123
|
-
@validate_call
|
|
3124
|
-
def dataset_dataset_id_progress_get_without_preload_content(
|
|
3125
|
-
self,
|
|
3126
|
-
dataset_id: Annotated[StrictStr, Field(description="The id of the dataset to get the progress of.")],
|
|
3127
|
-
_request_timeout: Union[
|
|
3128
|
-
None,
|
|
3129
|
-
Annotated[StrictFloat, Field(gt=0)],
|
|
3130
|
-
Tuple[
|
|
3131
|
-
Annotated[StrictFloat, Field(gt=0)],
|
|
3132
|
-
Annotated[StrictFloat, Field(gt=0)]
|
|
3133
|
-
]
|
|
3134
|
-
] = None,
|
|
3135
|
-
_request_auth: Optional[Dict[StrictStr, Any]] = None,
|
|
3136
|
-
_content_type: Optional[StrictStr] = None,
|
|
3137
|
-
_headers: Optional[Dict[StrictStr, Any]] = None,
|
|
3138
|
-
_host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
|
|
3139
|
-
) -> RESTResponseType:
|
|
3140
|
-
"""Gets the upload progress of a dataset.
|
|
3141
|
-
|
|
3142
|
-
|
|
3143
|
-
:param dataset_id: The id of the dataset to get the progress of. (required)
|
|
3144
|
-
:type dataset_id: str
|
|
3145
|
-
:param _request_timeout: timeout setting for this request. If one
|
|
3146
|
-
number provided, it will be total request
|
|
3147
|
-
timeout. It can also be a pair (tuple) of
|
|
3148
|
-
(connection, read) timeouts.
|
|
3149
|
-
:type _request_timeout: int, tuple(int, int), optional
|
|
3150
|
-
:param _request_auth: set to override the auth_settings for an a single
|
|
3151
|
-
request; this effectively ignores the
|
|
3152
|
-
authentication in the spec for a single request.
|
|
3153
|
-
:type _request_auth: dict, optional
|
|
3154
|
-
:param _content_type: force content-type for the request.
|
|
3155
|
-
:type _content_type: str, Optional
|
|
3156
|
-
:param _headers: set to override the headers for a single
|
|
3157
|
-
request; this effectively ignores the headers
|
|
3158
|
-
in the spec for a single request.
|
|
3159
|
-
:type _headers: dict, optional
|
|
3160
|
-
:param _host_index: set to override the host_index for a single
|
|
3161
|
-
request; this effectively ignores the host_index
|
|
3162
|
-
in the spec for a single request.
|
|
3163
|
-
:type _host_index: int, optional
|
|
3164
|
-
:return: Returns the result object.
|
|
3165
|
-
""" # noqa: E501
|
|
3166
|
-
|
|
3167
|
-
_param = self._dataset_dataset_id_progress_get_serialize(
|
|
3168
|
-
dataset_id=dataset_id,
|
|
3169
|
-
_request_auth=_request_auth,
|
|
3170
|
-
_content_type=_content_type,
|
|
3171
|
-
_headers=_headers,
|
|
3172
|
-
_host_index=_host_index
|
|
3173
|
-
)
|
|
3174
|
-
|
|
3175
|
-
_response_types_map: Dict[str, Optional[str]] = {
|
|
3176
|
-
'200': "GetDatasetProgressResult",
|
|
3177
|
-
}
|
|
3178
|
-
response_data = self.api_client.call_api(
|
|
3179
|
-
*_param,
|
|
3180
|
-
_request_timeout=_request_timeout
|
|
3181
|
-
)
|
|
3182
|
-
return response_data.response
|
|
3183
|
-
|
|
3184
|
-
|
|
3185
|
-
def _dataset_dataset_id_progress_get_serialize(
|
|
3186
|
-
self,
|
|
3187
|
-
dataset_id,
|
|
3188
|
-
_request_auth,
|
|
3189
|
-
_content_type,
|
|
3190
|
-
_headers,
|
|
3191
|
-
_host_index,
|
|
3192
|
-
) -> RequestSerialized:
|
|
3193
|
-
|
|
3194
|
-
_host = None
|
|
3195
|
-
|
|
3196
|
-
_collection_formats: Dict[str, str] = {
|
|
3197
|
-
}
|
|
3198
|
-
|
|
3199
|
-
_path_params: Dict[str, str] = {}
|
|
3200
|
-
_query_params: List[Tuple[str, str]] = []
|
|
3201
|
-
_header_params: Dict[str, Optional[str]] = _headers or {}
|
|
3202
|
-
_form_params: List[Tuple[str, str]] = []
|
|
3203
|
-
_files: Dict[
|
|
3204
|
-
str, Union[str, bytes, List[str], List[bytes], List[Tuple[str, bytes]]]
|
|
3205
|
-
] = {}
|
|
3206
|
-
_body_params: Optional[bytes] = None
|
|
3207
|
-
|
|
3208
|
-
# process the path parameters
|
|
3209
|
-
if dataset_id is not None:
|
|
3210
|
-
_path_params['datasetId'] = dataset_id
|
|
3211
|
-
# process the query parameters
|
|
3212
|
-
# process the header parameters
|
|
3213
|
-
# process the form parameters
|
|
3214
|
-
# process the body parameter
|
|
3215
|
-
|
|
3216
|
-
|
|
3217
|
-
# set the HTTP header `Accept`
|
|
3218
|
-
if 'Accept' not in _header_params:
|
|
3219
|
-
_header_params['Accept'] = self.api_client.select_header_accept(
|
|
3220
|
-
[
|
|
3221
|
-
'text/plain',
|
|
3222
|
-
'application/json',
|
|
3223
|
-
'text/json'
|
|
3224
|
-
]
|
|
3225
|
-
)
|
|
3226
|
-
|
|
3227
|
-
|
|
3228
|
-
# authentication setting
|
|
3229
|
-
_auth_settings: List[str] = [
|
|
3230
|
-
'bearer',
|
|
3231
|
-
'oauth2'
|
|
3232
|
-
]
|
|
3233
|
-
|
|
3234
|
-
return self.api_client.param_serialize(
|
|
3235
|
-
method='GET',
|
|
3236
|
-
resource_path='/dataset/{datasetId}/progress',
|
|
1960
|
+
resource_path='/dataset',
|
|
3237
1961
|
path_params=_path_params,
|
|
3238
1962
|
query_params=_query_params,
|
|
3239
1963
|
header_params=_header_params,
|