rapidata 2.28.2__py3-none-any.whl → 2.44.3__py3-none-any.whl
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- rapidata/__init__.py +11 -10
- rapidata/api_client/__init__.py +83 -355
- rapidata/api_client/api/__init__.py +8 -2
- rapidata/api_client/api/asset_api.py +853 -0
- rapidata/api_client/api/audience_api.py +1133 -0
- rapidata/api_client/api/benchmark_api.py +3966 -0
- rapidata/api_client/api/campaign_api.py +222 -444
- rapidata/api_client/api/client_api.py +38 -33
- rapidata/api_client/api/coco_api.py +0 -571
- rapidata/api_client/api/compare_workflow_api.py +11 -10
- rapidata/api_client/api/customer_rapid_api.py +644 -72
- rapidata/api_client/api/datapoint_api.py +8 -530
- rapidata/api_client/api/dataset_api.py +228 -3469
- rapidata/api_client/api/evaluation_workflow_api.py +29 -82
- rapidata/api_client/api/feedback_api.py +11 -281
- rapidata/api_client/api/grouped_ranking_workflow_api.py +319 -0
- rapidata/api_client/api/identity_api.py +83 -1171
- rapidata/api_client/api/leaderboard_api.py +356 -312
- rapidata/api_client/api/newsletter_api.py +20 -19
- rapidata/api_client/api/order_api.py +758 -5487
- rapidata/api_client/api/participant_api.py +2181 -0
- rapidata/api_client/api/pipeline_api.py +24 -1783
- rapidata/api_client/api/prompt_api.py +320 -0
- rapidata/api_client/api/rapidata_identity_api_api.py +5 -4
- rapidata/api_client/api/sample_api.py +300 -0
- rapidata/api_client/api/simple_workflow_api.py +11 -10
- rapidata/api_client/api/survey_api.py +304 -0
- rapidata/api_client/api/user_rapid_api.py +35 -31
- rapidata/api_client/api/validation_set_api.py +510 -3659
- rapidata/api_client/api/workflow_api.py +32 -825
- rapidata/api_client/api_client.py +2 -2
- rapidata/api_client/configuration.py +16 -29
- rapidata/api_client/exceptions.py +2 -2
- rapidata/api_client/models/__init__.py +65 -332
- rapidata/api_client/models/ab_test_selection_a_inner.py +1 -1
- rapidata/api_client/models/add_campaign_model.py +3 -3
- rapidata/api_client/models/add_user_response_result.py +10 -5
- rapidata/api_client/models/add_validation_rapid_model.py +55 -24
- rapidata/api_client/models/add_validation_rapid_model_asset.py +154 -0
- rapidata/api_client/models/add_validation_rapid_model_context_asset.py +160 -0
- rapidata/api_client/models/add_validation_rapid_model_metadata_inner.py +140 -0
- rapidata/api_client/models/add_validation_rapid_model_truth.py +7 -1
- rapidata/api_client/models/add_validation_rapid_new_model.py +137 -0
- rapidata/api_client/models/add_validation_rapid_new_model_asset.py +182 -0
- rapidata/api_client/models/add_validation_rapid_new_model_truth.py +286 -0
- rapidata/api_client/models/add_validation_text_rapid_model.py +1 -3
- rapidata/api_client/models/age_user_filter_model.py +2 -2
- rapidata/api_client/models/age_user_filter_model_age_group.py +41 -0
- rapidata/api_client/models/aggregated_orders_model.py +98 -0
- rapidata/api_client/models/aggregator_type.py +4 -2
- rapidata/api_client/models/and_filter.py +121 -0
- rapidata/api_client/models/and_filter_filters_inner.py +282 -0
- rapidata/api_client/models/and_user_filter_model.py +106 -0
- rapidata/api_client/models/and_user_filter_model_filters_inner.py +282 -0
- rapidata/api_client/models/are_rapids_active_result.py +2 -2
- rapidata/api_client/models/asset_metadata.py +11 -9
- rapidata/api_client/models/asset_type.py +40 -0
- rapidata/api_client/models/attach_category_rapid_blueprint.py +13 -3
- rapidata/api_client/models/attach_category_rapid_blueprint_category.py +89 -0
- rapidata/api_client/models/audience_status.py +38 -0
- rapidata/api_client/models/benchmark_query_result.py +98 -0
- rapidata/api_client/models/benchmark_query_result_paged_result.py +105 -0
- rapidata/api_client/models/boost_leaderboard_model.py +89 -0
- rapidata/api_client/models/boost_mode.py +37 -0
- rapidata/api_client/models/boost_query_result.py +7 -10
- rapidata/api_client/models/boost_query_result_boost_mode.py +37 -0
- rapidata/api_client/models/boost_query_result_boost_status.py +39 -0
- rapidata/api_client/models/boosting_profile.py +89 -0
- rapidata/api_client/models/box_shape.py +4 -33
- rapidata/api_client/models/campaign_filter.py +98 -0
- rapidata/api_client/models/campaign_query_result.py +15 -13
- rapidata/api_client/models/campaign_status.py +2 -2
- rapidata/api_client/models/change_boost_model.py +89 -0
- rapidata/api_client/models/classification_metadata.py +12 -1
- rapidata/api_client/models/classify_payload.py +14 -15
- rapidata/api_client/models/classify_payload_category.py +89 -0
- rapidata/api_client/models/client_model.py +25 -35
- rapidata/api_client/models/clients_query_result.py +5 -5
- rapidata/api_client/models/clone_order_model.py +6 -8
- rapidata/api_client/models/clone_order_result.py +9 -4
- rapidata/api_client/models/compare_rapid_blueprint.py +5 -3
- rapidata/api_client/models/compare_rapid_blueprint1.py +96 -0
- rapidata/api_client/models/compare_workflow_config.py +34 -23
- rapidata/api_client/models/compare_workflow_config_context_asset.py +174 -0
- rapidata/api_client/models/compare_workflow_config_metadata_value.py +31 -17
- rapidata/api_client/models/compare_workflow_config_model.py +15 -5
- rapidata/api_client/models/compare_workflow_model.py +34 -6
- rapidata/api_client/models/compare_workflow_model1.py +20 -9
- rapidata/api_client/models/compare_workflow_model_context_asset.py +160 -0
- rapidata/api_client/models/compare_workflow_model_metadata_inner.py +154 -0
- rapidata/api_client/models/compare_workflow_model_pair_maker_config.py +1 -1
- rapidata/api_client/models/comparison_operator.py +2 -2
- rapidata/api_client/models/conditional_validation_selection.py +8 -11
- rapidata/api_client/models/conditional_validation_selection_validation_chance.py +103 -0
- rapidata/api_client/models/confidence_interval.py +89 -0
- rapidata/api_client/models/count_metadata.py +12 -1
- rapidata/api_client/models/country_filter.py +98 -0
- rapidata/api_client/models/create_audience_request.py +99 -0
- rapidata/api_client/models/create_audience_result.py +87 -0
- rapidata/api_client/models/create_benchmark_model.py +87 -0
- rapidata/api_client/models/create_benchmark_participant_model.py +87 -0
- rapidata/api_client/models/create_benchmark_participant_result.py +89 -0
- rapidata/api_client/models/create_benchmark_prompt_result.py +87 -0
- rapidata/api_client/models/create_benchmark_result.py +87 -0
- rapidata/api_client/models/create_bridge_token_result.py +2 -2
- rapidata/api_client/models/create_client_model.py +6 -13
- rapidata/api_client/models/create_complex_order_model.py +9 -9
- rapidata/api_client/models/create_complex_order_result.py +6 -4
- rapidata/api_client/models/create_customer_client_result.py +2 -2
- rapidata/api_client/models/create_datapoint_from_files_model.py +3 -3
- rapidata/api_client/models/create_datapoint_from_text_sources_model.py +3 -3
- rapidata/api_client/models/create_datapoint_from_urls_model.py +3 -3
- rapidata/api_client/models/create_datapoint_model.py +134 -0
- rapidata/api_client/models/create_datapoint_model_asset.py +154 -0
- rapidata/api_client/models/create_datapoint_model_context_asset.py +160 -0
- rapidata/api_client/models/create_datapoint_model_metadata_inner.py +154 -0
- rapidata/api_client/models/create_datapoint_result.py +6 -18
- rapidata/api_client/models/create_demographic_rapid_model.py +45 -7
- rapidata/api_client/models/create_demographic_rapid_model_asset.py +160 -0
- rapidata/api_client/models/create_demographic_rapid_model_context_asset.py +160 -0
- rapidata/api_client/models/create_demographic_rapid_model_new.py +119 -0
- rapidata/api_client/models/create_empty_validation_set_result.py +2 -2
- rapidata/api_client/models/create_leaderboard_model.py +59 -10
- rapidata/api_client/models/create_leaderboard_result.py +17 -5
- rapidata/api_client/models/create_order_model.py +30 -101
- rapidata/api_client/models/create_order_model_referee.py +12 -12
- rapidata/api_client/models/create_order_model_workflow.py +35 -21
- rapidata/api_client/models/create_order_result.py +6 -4
- rapidata/api_client/models/create_rapid_result.py +2 -2
- rapidata/api_client/models/create_sample_model.py +93 -0
- rapidata/api_client/models/create_sample_model_asset.py +154 -0
- rapidata/api_client/models/create_sample_model_obsolete.py +87 -0
- rapidata/api_client/models/create_simple_pipeline_model_pipeline_steps_inner.py +8 -22
- rapidata/api_client/models/create_unsupported_order_model.py +6 -6
- rapidata/api_client/models/create_validation_set_model.py +5 -5
- rapidata/api_client/models/datapoint_model.py +3 -3
- rapidata/api_client/models/datapoint_state.py +2 -2
- rapidata/api_client/models/demographic_filter.py +100 -0
- rapidata/api_client/models/dynamic_client_registration_request.py +21 -36
- rapidata/api_client/models/early_stopping_referee_model.py +3 -3
- rapidata/api_client/models/effort_capped_selection.py +2 -11
- rapidata/api_client/models/elo_config.py +2 -2
- rapidata/api_client/models/elo_config_model.py +6 -6
- rapidata/api_client/models/entity_tag_header_value.py +93 -0
- rapidata/api_client/models/evaluation_workflow_config.py +13 -3
- rapidata/api_client/models/evaluation_workflow_model.py +16 -6
- rapidata/api_client/models/existing_asset_input.py +120 -0
- rapidata/api_client/models/existing_asset_input_metadata_value.py +126 -0
- rapidata/api_client/models/feature_flag.py +2 -2
- rapidata/api_client/models/feature_flag_model.py +6 -6
- rapidata/api_client/models/feedback_model.py +7 -7
- rapidata/api_client/models/file_asset.py +3 -5
- rapidata/api_client/models/file_asset_input.py +104 -0
- rapidata/api_client/models/file_asset_input1.py +104 -0
- rapidata/api_client/models/file_asset_input1_file.py +168 -0
- rapidata/api_client/models/file_asset_input2.py +104 -0
- rapidata/api_client/models/file_asset_input3.py +104 -0
- rapidata/api_client/models/file_asset_input_file.py +168 -0
- rapidata/api_client/models/file_asset_metadata_value.py +252 -0
- rapidata/api_client/models/file_asset_model_metadata_value.py +25 -81
- rapidata/api_client/models/file_stream_result.py +122 -0
- rapidata/api_client/models/file_type.py +39 -0
- rapidata/api_client/models/file_type_metadata.py +110 -0
- rapidata/api_client/models/file_type_metadata_model.py +97 -0
- rapidata/api_client/models/filter.py +7 -25
- rapidata/api_client/models/filter_operator.py +3 -2
- rapidata/api_client/models/fork_benchmark_result.py +87 -0
- rapidata/api_client/models/form_file_wrapper.py +135 -0
- rapidata/api_client/models/free_text_payload.py +10 -3
- rapidata/api_client/models/free_text_rapid_blueprint.py +10 -3
- rapidata/api_client/models/gender_user_filter_model.py +2 -2
- rapidata/api_client/models/gender_user_filter_model_gender.py +38 -0
- rapidata/api_client/models/get_asset_metadata_result.py +100 -0
- rapidata/api_client/models/get_audience_by_id_result.py +111 -0
- rapidata/api_client/models/get_available_validation_sets_result.py +2 -2
- rapidata/api_client/models/get_benchmark_by_id_query.py +96 -0
- rapidata/api_client/models/get_benchmark_by_id_query_result.py +94 -0
- rapidata/api_client/models/get_benchmark_by_id_query_result_paged_result.py +105 -0
- rapidata/api_client/models/get_benchmark_by_id_result.py +96 -0
- rapidata/api_client/models/get_boost_result.py +97 -0
- rapidata/api_client/models/get_boost_result_boost_mode.py +37 -0
- rapidata/api_client/models/get_boost_result_boost_status.py +39 -0
- rapidata/api_client/models/get_compare_ab_summary_result.py +5 -5
- rapidata/api_client/models/get_compare_workflow_results_model.py +7 -7
- rapidata/api_client/models/get_compare_workflow_results_result.py +5 -5
- rapidata/api_client/models/get_datapoint_by_id_result.py +10 -21
- rapidata/api_client/models/get_datapoint_by_id_result_asset.py +170 -0
- rapidata/api_client/models/get_dataset_by_id_result.py +2 -2
- rapidata/api_client/models/get_dataset_progress_result.py +2 -2
- rapidata/api_client/models/get_evaluation_workflow_results_model.py +119 -0
- rapidata/api_client/models/get_failed_datapoints_result.py +5 -5
- rapidata/api_client/models/get_failed_datapoints_result_datapoint.py +100 -0
- rapidata/api_client/models/get_file_metadata_result.py +100 -0
- rapidata/api_client/models/get_grouped_ranking_workflow_results_model.py +106 -0
- rapidata/api_client/models/get_grouped_ranking_workflow_results_result.py +97 -0
- rapidata/api_client/models/get_grouped_ranking_workflow_results_result_paged_result.py +105 -0
- rapidata/api_client/models/get_leaderboard_by_id_result.py +50 -6
- rapidata/api_client/models/get_order_by_id_result.py +12 -5
- rapidata/api_client/models/get_participant_by_id_result.py +9 -20
- rapidata/api_client/models/get_pipeline_by_id_result.py +5 -5
- rapidata/api_client/models/get_public_orders_result.py +2 -2
- rapidata/api_client/models/get_public_responses_result.py +95 -0
- rapidata/api_client/models/get_public_responses_result_response.py +112 -0
- rapidata/api_client/models/get_rapid_responses_result.py +6 -12
- rapidata/api_client/models/get_recommended_validation_set_result.py +95 -0
- rapidata/api_client/models/get_responses_for_rapid_result.py +106 -0
- rapidata/api_client/models/get_responses_for_rapid_result_response.py +103 -0
- rapidata/api_client/models/get_responses_for_rapid_result_response_result.py +266 -0
- rapidata/api_client/models/get_responses_result.py +5 -5
- rapidata/api_client/models/get_responses_result_response.py +103 -0
- rapidata/api_client/models/get_sample_by_id_result.py +125 -0
- rapidata/api_client/models/get_simple_workflow_results_model.py +20 -15
- rapidata/api_client/models/get_standing_by_id_result.py +96 -0
- rapidata/api_client/models/get_validation_rapids_result.py +32 -41
- rapidata/api_client/models/get_validation_set_by_id_result.py +10 -4
- rapidata/api_client/models/get_workflow_by_id_result.py +5 -5
- rapidata/api_client/models/get_workflow_by_id_result_workflow.py +23 -9
- rapidata/api_client/models/get_workflow_progress_result.py +5 -11
- rapidata/api_client/models/get_workflow_results_result.py +34 -23
- rapidata/api_client/models/get_workflow_results_result_response.py +103 -0
- rapidata/api_client/models/google_one_tap_login_model.py +4 -4
- rapidata/api_client/models/grouped_ranking_workflow_config.py +155 -0
- rapidata/api_client/models/grouped_ranking_workflow_config_context_assets_value.py +170 -0
- rapidata/api_client/models/grouped_ranking_workflow_model.py +147 -0
- rapidata/api_client/models/grouped_ranking_workflow_model1.py +121 -0
- rapidata/api_client/models/i_artifact_model.py +182 -0
- rapidata/api_client/models/i_artifact_model_campaign_artifact_model.py +98 -0
- rapidata/api_client/models/i_artifact_model_dataset_artifact_model.py +98 -0
- rapidata/api_client/models/i_artifact_model_file_artifact_model.py +98 -0
- rapidata/api_client/models/i_artifact_model_workflow_artifact_model.py +98 -0
- rapidata/api_client/models/i_artifact_model_workflow_config_artifact_model.py +102 -0
- rapidata/api_client/models/i_asset.py +170 -0
- rapidata/api_client/models/i_asset_file_asset.py +111 -0
- rapidata/api_client/models/i_asset_input.py +156 -0
- rapidata/api_client/models/i_asset_input_existing_asset_input.py +118 -0
- rapidata/api_client/models/i_asset_input_multi_asset_input.py +128 -0
- rapidata/api_client/models/i_asset_input_text_asset_input.py +118 -0
- rapidata/api_client/models/i_asset_model.py +170 -0
- rapidata/api_client/models/i_asset_model_file_asset_model.py +113 -0
- rapidata/api_client/models/i_asset_model_multi_asset_model.py +123 -0
- rapidata/api_client/models/i_asset_model_null_asset_model.py +111 -0
- rapidata/api_client/models/i_asset_model_text_asset_model.py +113 -0
- rapidata/api_client/models/i_asset_multi_asset.py +121 -0
- rapidata/api_client/models/i_asset_null_asset.py +109 -0
- rapidata/api_client/models/i_asset_text_asset.py +111 -0
- rapidata/api_client/models/i_campaign_filter.py +282 -0
- rapidata/api_client/models/i_campaign_filter_and_filter.py +117 -0
- rapidata/api_client/models/i_campaign_filter_campaign_filter.py +98 -0
- rapidata/api_client/models/i_campaign_filter_country_filter.py +98 -0
- rapidata/api_client/models/i_campaign_filter_demographic_filter.py +100 -0
- rapidata/api_client/models/i_campaign_filter_language_filter.py +98 -0
- rapidata/api_client/models/i_campaign_filter_new_user_filter.py +96 -0
- rapidata/api_client/models/i_campaign_filter_not_filter.py +113 -0
- rapidata/api_client/models/i_campaign_filter_or_filter.py +117 -0
- rapidata/api_client/models/i_campaign_filter_response_count_filter.py +103 -0
- rapidata/api_client/models/i_campaign_filter_user_action_restriction_filter.py +106 -0
- rapidata/api_client/models/i_campaign_filter_user_score_filter.py +102 -0
- rapidata/api_client/models/i_campaign_filter_user_state_filter.py +106 -0
- rapidata/api_client/models/i_dataset_metadata_input.py +154 -0
- rapidata/api_client/models/i_dataset_metadata_input_prompt_asset_metadata_input.py +100 -0
- rapidata/api_client/models/i_dataset_metadata_input_prompt_metadata_input.py +96 -0
- rapidata/api_client/models/i_dataset_metadata_input_transcription_metadata_input.py +96 -0
- rapidata/api_client/models/i_dataset_model.py +126 -0
- rapidata/api_client/models/i_dataset_model_clone_dataset_model.py +98 -0
- rapidata/api_client/models/i_metadata.py +252 -0
- rapidata/api_client/models/i_metadata_classification_metadata.py +109 -0
- rapidata/api_client/models/i_metadata_count_metadata.py +109 -0
- rapidata/api_client/models/i_metadata_file_type_metadata.py +110 -0
- rapidata/api_client/models/i_metadata_image_dimension_metadata.py +111 -0
- rapidata/api_client/models/i_metadata_input.py +126 -0
- rapidata/api_client/models/i_metadata_input_text_metadata_input.py +111 -0
- rapidata/api_client/models/i_metadata_location_metadata.py +111 -0
- rapidata/api_client/models/i_metadata_model.py +252 -0
- rapidata/api_client/models/i_metadata_model_classification_metadata_model.py +96 -0
- rapidata/api_client/models/i_metadata_model_count_metadata_model.py +96 -0
- rapidata/api_client/models/i_metadata_model_file_type_metadata_model.py +97 -0
- rapidata/api_client/models/i_metadata_model_image_dimension_metadata_model.py +98 -0
- rapidata/api_client/models/i_metadata_model_location_metadata_model.py +98 -0
- rapidata/api_client/models/i_metadata_model_original_filename_metadata_model.py +96 -0
- rapidata/api_client/models/i_metadata_model_source_url_metadata_model.py +96 -0
- rapidata/api_client/models/i_metadata_model_streams_metadata_model.py +100 -0
- rapidata/api_client/models/i_metadata_model_text_metadata_model.py +101 -0
- rapidata/api_client/models/i_metadata_model_video_duration_metadata_model.py +97 -0
- rapidata/api_client/models/i_metadata_original_filename_metadata.py +109 -0
- rapidata/api_client/models/i_metadata_source_url_metadata.py +109 -0
- rapidata/api_client/models/i_metadata_streams_metadata.py +113 -0
- rapidata/api_client/models/i_metadata_text_metadata.py +114 -0
- rapidata/api_client/models/i_metadata_video_duration_metadata.py +110 -0
- rapidata/api_client/models/i_order_workflow_model.py +168 -0
- rapidata/api_client/models/i_order_workflow_model_compare_workflow_model.py +146 -0
- rapidata/api_client/models/i_order_workflow_model_evaluation_workflow_model.py +108 -0
- rapidata/api_client/models/i_order_workflow_model_grouped_ranking_workflow_model.py +147 -0
- rapidata/api_client/models/i_order_workflow_model_simple_workflow_model.py +110 -0
- rapidata/api_client/models/i_pair_maker_config.py +126 -0
- rapidata/api_client/models/i_pair_maker_config_model.py +126 -0
- rapidata/api_client/models/i_pair_maker_config_model_online_pair_maker_config_model.py +98 -0
- rapidata/api_client/models/i_pair_maker_config_online_pair_maker_config.py +98 -0
- rapidata/api_client/models/i_pair_maker_information.py +126 -0
- rapidata/api_client/models/i_pair_maker_information_online_pair_maker_information.py +100 -0
- rapidata/api_client/models/i_pipeline_artifact_model.py +126 -0
- rapidata/api_client/models/i_pipeline_artifact_model_create_dataset_artifact_model.py +102 -0
- rapidata/api_client/models/i_pipeline_model.py +126 -0
- rapidata/api_client/models/i_pipeline_model_create_simple_pipeline_model.py +116 -0
- rapidata/api_client/models/i_pipeline_step_model.py +168 -0
- rapidata/api_client/models/i_pipeline_step_model_dataset_evaluation_step_model.py +102 -0
- rapidata/api_client/models/i_pipeline_step_model_send_completion_mail_step_model.py +98 -0
- rapidata/api_client/models/i_pipeline_step_model_workflow_aggregation_step_model.py +103 -0
- rapidata/api_client/models/i_pipeline_step_model_workflow_labeling_step_model.py +96 -0
- rapidata/api_client/models/i_rapid_blueprint.py +252 -0
- rapidata/api_client/models/i_rapid_blueprint_attach_category_rapid_blueprint.py +108 -0
- rapidata/api_client/models/i_rapid_blueprint_bounding_box_rapid_blueprint.py +96 -0
- rapidata/api_client/models/i_rapid_blueprint_compare_rapid_blueprint.py +98 -0
- rapidata/api_client/models/i_rapid_blueprint_free_text_rapid_blueprint.py +103 -0
- rapidata/api_client/models/i_rapid_blueprint_line_rapid_blueprint.py +96 -0
- rapidata/api_client/models/i_rapid_blueprint_locate_rapid_blueprint.py +96 -0
- rapidata/api_client/models/i_rapid_blueprint_named_entity_rapid_blueprint.py +98 -0
- rapidata/api_client/models/i_rapid_blueprint_polygon_rapid_blueprint.py +96 -0
- rapidata/api_client/models/i_rapid_blueprint_scrub_rapid_blueprint.py +96 -0
- rapidata/api_client/models/i_rapid_blueprint_transcription_rapid_blueprint.py +96 -0
- rapidata/api_client/models/i_rapid_payload.py +252 -0
- rapidata/api_client/models/i_rapid_payload_bounding_box_payload.py +96 -0
- rapidata/api_client/models/i_rapid_payload_classify_payload.py +106 -0
- rapidata/api_client/models/i_rapid_payload_compare_payload.py +96 -0
- rapidata/api_client/models/i_rapid_payload_free_text_payload.py +103 -0
- rapidata/api_client/models/i_rapid_payload_line_payload.py +96 -0
- rapidata/api_client/models/i_rapid_payload_locate_payload.py +96 -0
- rapidata/api_client/models/i_rapid_payload_named_entity_payload.py +98 -0
- rapidata/api_client/models/i_rapid_payload_polygon_payload.py +96 -0
- rapidata/api_client/models/i_rapid_payload_scrub_payload.py +96 -0
- rapidata/api_client/models/i_rapid_payload_transcription_payload.py +106 -0
- rapidata/api_client/models/i_rapid_result.py +266 -0
- rapidata/api_client/models/i_rapid_result_attach_category_result.py +98 -0
- rapidata/api_client/models/i_rapid_result_bounding_box_result.py +106 -0
- rapidata/api_client/models/i_rapid_result_compare_result.py +98 -0
- rapidata/api_client/models/i_rapid_result_free_text_result.py +98 -0
- rapidata/api_client/models/i_rapid_result_line_result.py +106 -0
- rapidata/api_client/models/i_rapid_result_locate_result.py +106 -0
- rapidata/api_client/models/i_rapid_result_named_entity_result.py +106 -0
- rapidata/api_client/models/i_rapid_result_polygon_result.py +106 -0
- rapidata/api_client/models/i_rapid_result_scrub_result.py +98 -0
- rapidata/api_client/models/i_rapid_result_skip_result.py +96 -0
- rapidata/api_client/models/i_rapid_result_transcription_result.py +106 -0
- rapidata/api_client/models/i_referee_config.py +154 -0
- rapidata/api_client/models/i_referee_config_naive_referee_config.py +96 -0
- rapidata/api_client/models/i_referee_config_never_ending_referee_config.py +94 -0
- rapidata/api_client/models/i_referee_config_probabilistic_attach_category_referee_config.py +98 -0
- rapidata/api_client/models/i_referee_info.py +154 -0
- rapidata/api_client/models/i_referee_info_naive_referee_info.py +96 -0
- rapidata/api_client/models/i_referee_info_never_ending_referee_info.py +94 -0
- rapidata/api_client/models/i_referee_info_probabilistic_attach_category_referee_info.py +98 -0
- rapidata/api_client/models/i_referee_model.py +140 -0
- rapidata/api_client/models/i_referee_model_early_stopping_referee_model.py +98 -0
- rapidata/api_client/models/i_referee_model_naive_referee_model.py +96 -0
- rapidata/api_client/models/i_selection.py +240 -0
- rapidata/api_client/models/i_selection_ab_test_selection.py +122 -0
- rapidata/api_client/models/i_selection_capped_selection.py +108 -0
- rapidata/api_client/models/i_selection_conditional_validation_selection.py +110 -0
- rapidata/api_client/models/i_selection_demographic_selection.py +98 -0
- rapidata/api_client/models/i_selection_effort_capped_selection.py +101 -0
- rapidata/api_client/models/i_selection_labeling_selection.py +103 -0
- rapidata/api_client/models/i_selection_shuffling_selection.py +106 -0
- rapidata/api_client/models/i_selection_static_selection.py +96 -0
- rapidata/api_client/models/i_selection_validation_selection.py +98 -0
- rapidata/api_client/models/i_user_filter_model.py +282 -0
- rapidata/api_client/models/i_user_filter_model_age_user_filter_model.py +104 -0
- rapidata/api_client/models/i_user_filter_model_and_user_filter_model.py +106 -0
- rapidata/api_client/models/i_user_filter_model_campaign_user_filter_model.py +96 -0
- rapidata/api_client/models/i_user_filter_model_country_user_filter_model.py +96 -0
- rapidata/api_client/models/i_user_filter_model_custom_user_filter_model.py +98 -0
- rapidata/api_client/models/i_user_filter_model_gender_user_filter_model.py +104 -0
- rapidata/api_client/models/i_user_filter_model_language_user_filter_model.py +96 -0
- rapidata/api_client/models/i_user_filter_model_new_user_filter_model.py +94 -0
- rapidata/api_client/models/i_user_filter_model_not_user_filter_model.py +102 -0
- rapidata/api_client/models/i_user_filter_model_or_user_filter_model.py +106 -0
- rapidata/api_client/models/i_user_filter_model_response_count_user_filter_model.py +101 -0
- rapidata/api_client/models/i_user_filter_model_user_score_user_filter_model.py +105 -0
- rapidata/api_client/models/i_validation_metadata_input.py +140 -0
- rapidata/api_client/models/i_validation_metadata_input_prompt_asset_metadata_input.py +100 -0
- rapidata/api_client/models/i_validation_metadata_input_prompt_metadata_input.py +96 -0
- rapidata/api_client/models/i_validation_truth.py +280 -0
- rapidata/api_client/models/i_validation_truth_attach_category_truth.py +96 -0
- rapidata/api_client/models/i_validation_truth_bounding_box_truth.py +102 -0
- rapidata/api_client/models/i_validation_truth_compare_truth.py +96 -0
- rapidata/api_client/models/i_validation_truth_empty_validation_truth.py +94 -0
- rapidata/api_client/models/i_validation_truth_line_truth.py +94 -0
- rapidata/api_client/models/i_validation_truth_locate_box_truth.py +104 -0
- rapidata/api_client/models/i_validation_truth_multi_compare_truth.py +96 -0
- rapidata/api_client/models/i_validation_truth_named_entity_truth.py +104 -0
- rapidata/api_client/models/i_validation_truth_polygon_truth.py +94 -0
- rapidata/api_client/models/i_validation_truth_scrub_truth.py +104 -0
- rapidata/api_client/models/i_validation_truth_skip_truth.py +94 -0
- rapidata/api_client/models/i_validation_truth_transcription_truth.py +115 -0
- rapidata/api_client/models/i_workflow_config.py +168 -0
- rapidata/api_client/models/i_workflow_config_compare_workflow_config.py +142 -0
- rapidata/api_client/models/i_workflow_config_evaluation_workflow_config.py +114 -0
- rapidata/api_client/models/i_workflow_config_grouped_ranking_workflow_config.py +155 -0
- rapidata/api_client/models/i_workflow_config_simple_workflow_config.py +116 -0
- rapidata/api_client/models/i_workflow_model.py +168 -0
- rapidata/api_client/models/i_workflow_model_compare_workflow_model.py +145 -0
- rapidata/api_client/models/i_workflow_model_evaluation_workflow_model.py +115 -0
- rapidata/api_client/models/i_workflow_model_grouped_ranking_workflow_model.py +121 -0
- rapidata/api_client/models/i_workflow_model_simple_workflow_model.py +119 -0
- rapidata/api_client/models/image_dimension_metadata.py +12 -1
- rapidata/api_client/models/inquire_file_metadata_result.py +100 -0
- rapidata/api_client/models/inspect_report_result.py +2 -2
- rapidata/api_client/models/json_web_key.py +2 -36
- rapidata/api_client/models/json_web_key_set.py +2 -22
- rapidata/api_client/models/labeling_selection.py +11 -13
- rapidata/api_client/models/language_filter.py +98 -0
- rapidata/api_client/models/leaderboard_query_result.py +46 -4
- rapidata/api_client/models/leaderboards_query_result.py +135 -0
- rapidata/api_client/models/line_result.py +3 -3
- rapidata/api_client/models/line_result_line.py +97 -0
- rapidata/api_client/models/line_result_line_point.py +89 -0
- rapidata/api_client/models/local_file_wrapper.py +120 -0
- rapidata/api_client/models/locate_coordinate.py +4 -13
- rapidata/api_client/models/location_metadata.py +12 -1
- rapidata/api_client/models/logic_operator.py +2 -2
- rapidata/api_client/models/metadata_i_order_metadata_input.py +154 -0
- rapidata/api_client/models/metadata_i_order_metadata_input_metadata_prompt_asset_metadata_input.py +100 -0
- rapidata/api_client/models/metadata_i_order_metadata_input_metadata_prompt_metadata_input.py +96 -0
- rapidata/api_client/models/metadata_i_order_metadata_input_metadata_transcription_metadata_input.py +96 -0
- rapidata/api_client/models/metadata_prompt_asset_metadata_input.py +100 -0
- rapidata/api_client/models/metadata_prompt_metadata_input.py +96 -0
- rapidata/api_client/models/metadata_transcription_metadata_input.py +96 -0
- rapidata/api_client/models/multi_asset.py +6 -6
- rapidata/api_client/models/multi_asset_assets_inner.py +170 -0
- rapidata/api_client/models/multi_asset_input.py +130 -0
- rapidata/api_client/models/multi_asset_input1.py +110 -0
- rapidata/api_client/models/multi_asset_input1_assets_inner.py +198 -0
- rapidata/api_client/models/multi_asset_input2.py +110 -0
- rapidata/api_client/models/multi_asset_input3.py +110 -0
- rapidata/api_client/models/multi_asset_input3_assets_inner.py +198 -0
- rapidata/api_client/models/multi_asset_input_assets_inner.py +156 -0
- rapidata/api_client/models/multi_asset_model.py +3 -3
- rapidata/api_client/models/naive_referee_model.py +2 -2
- rapidata/api_client/models/named_classification.py +4 -13
- rapidata/api_client/models/new_user_filter.py +96 -0
- rapidata/api_client/models/newsletter_model.py +6 -6
- rapidata/api_client/models/not_available_yet_result.py +4 -13
- rapidata/api_client/models/not_filter.py +117 -0
- rapidata/api_client/models/not_user_filter_model.py +3 -3
- rapidata/api_client/models/null_asset.py +3 -5
- rapidata/api_client/models/online_pair_maker_config_model.py +3 -3
- rapidata/api_client/models/or_filter.py +121 -0
- rapidata/api_client/models/or_user_filter_model.py +3 -3
- rapidata/api_client/models/order_model.py +15 -14
- rapidata/api_client/models/order_state.py +2 -2
- rapidata/api_client/models/original_filename_metadata.py +12 -1
- rapidata/api_client/models/page_info.py +2 -7
- rapidata/api_client/models/paged_result_aggregated_orders_model.py +105 -0
- rapidata/api_client/models/paged_result_benchmark_query_result.py +105 -0
- rapidata/api_client/models/paged_result_campaign_query_result.py +105 -0
- rapidata/api_client/models/paged_result_clients_query_result.py +105 -0
- rapidata/api_client/models/paged_result_datapoint_model.py +105 -0
- rapidata/api_client/models/paged_result_get_compare_workflow_results_result.py +105 -0
- rapidata/api_client/models/paged_result_get_grouped_ranking_workflow_results_result.py +105 -0
- rapidata/api_client/models/paged_result_get_validation_rapids_result.py +105 -0
- rapidata/api_client/models/paged_result_get_workflow_results_result.py +105 -0
- rapidata/api_client/models/paged_result_i_workflow_model.py +105 -0
- rapidata/api_client/models/paged_result_leaderboard_query_result.py +105 -0
- rapidata/api_client/models/paged_result_leaderboards_query_result.py +105 -0
- rapidata/api_client/models/paged_result_of_aggregated_orders_model.py +103 -0
- rapidata/api_client/models/paged_result_of_benchmark_query_result.py +103 -0
- rapidata/api_client/models/paged_result_of_campaign_query_result.py +103 -0
- rapidata/api_client/models/paged_result_of_clients_query_result.py +103 -0
- rapidata/api_client/models/paged_result_of_get_compare_workflow_results_result.py +103 -0
- rapidata/api_client/models/paged_result_of_get_grouped_ranking_workflow_results_result.py +103 -0
- rapidata/api_client/models/paged_result_of_get_validation_rapids_result.py +103 -0
- rapidata/api_client/models/paged_result_of_get_workflow_results_result.py +103 -0
- rapidata/api_client/models/paged_result_of_i_workflow_model.py +103 -0
- rapidata/api_client/models/paged_result_of_leaderboards_query_result.py +103 -0
- rapidata/api_client/models/paged_result_of_order_model.py +103 -0
- rapidata/api_client/models/paged_result_of_participant_by_benchmark.py +103 -0
- rapidata/api_client/models/paged_result_of_prompt_by_benchmark_result.py +103 -0
- rapidata/api_client/models/paged_result_of_query_audiences_result.py +103 -0
- rapidata/api_client/models/paged_result_of_query_datapoints_by_dataset_id_result.py +103 -0
- rapidata/api_client/models/paged_result_of_query_validation_rapid_eligibility_result.py +103 -0
- rapidata/api_client/models/paged_result_of_rapid_model.py +103 -0
- rapidata/api_client/models/paged_result_of_runs_by_leaderboard_result.py +103 -0
- rapidata/api_client/models/paged_result_of_sample_by_identifier.py +103 -0
- rapidata/api_client/models/paged_result_of_sample_by_participant.py +103 -0
- rapidata/api_client/models/paged_result_of_standing_by_leaderboard.py +103 -0
- rapidata/api_client/models/paged_result_of_validation_set_model.py +103 -0
- rapidata/api_client/models/paged_result_order_model.py +105 -0
- rapidata/api_client/models/paged_result_participant_by_benchmark.py +105 -0
- rapidata/api_client/models/paged_result_potential_validation_rapid.py +105 -0
- rapidata/api_client/models/paged_result_prompt_by_benchmark_result.py +105 -0
- rapidata/api_client/models/paged_result_query_audiences_result.py +105 -0
- rapidata/api_client/models/paged_result_query_datapoints_by_dataset_id_result.py +105 -0
- rapidata/api_client/models/paged_result_query_validation_rapid_eligibility_result.py +105 -0
- rapidata/api_client/models/paged_result_rapid_model.py +105 -0
- rapidata/api_client/models/paged_result_runs_by_leaderboard_result.py +105 -0
- rapidata/api_client/models/paged_result_sample_by_identifier.py +105 -0
- rapidata/api_client/models/paged_result_sample_by_participant.py +105 -0
- rapidata/api_client/models/paged_result_standing_by_leaderboard.py +105 -0
- rapidata/api_client/models/paged_result_validation_set_model.py +105 -0
- rapidata/api_client/models/participant_by_benchmark.py +94 -0
- rapidata/api_client/models/participant_by_benchmark_paged_result.py +105 -0
- rapidata/api_client/models/participant_by_leaderboard.py +19 -8
- rapidata/api_client/models/participant_status.py +4 -5
- rapidata/api_client/models/pipeline_id_workflow_config_put_request.py +140 -0
- rapidata/api_client/models/polygon_result.py +3 -3
- rapidata/api_client/models/polygon_result_coordinate.py +89 -0
- rapidata/api_client/models/polygon_result_shape.py +95 -0
- rapidata/api_client/models/potential_validation_rapid.py +103 -0
- rapidata/api_client/models/potential_validation_rapid_paged_result.py +105 -0
- rapidata/api_client/models/potential_validation_rapid_truth.py +280 -0
- rapidata/api_client/models/preliminary_download_model.py +5 -5
- rapidata/api_client/models/preview_order_model.py +87 -0
- rapidata/api_client/models/problem_details.py +2 -20
- rapidata/api_client/models/prompt_asset_metadata_input.py +6 -8
- rapidata/api_client/models/prompt_asset_metadata_input_asset.py +154 -0
- rapidata/api_client/models/prompt_by_benchmark_result.py +112 -0
- rapidata/api_client/models/prompt_by_benchmark_result_paged_result.py +105 -0
- rapidata/api_client/models/prompt_metadata.py +12 -1
- rapidata/api_client/models/prompt_metadata_input.py +2 -2
- rapidata/api_client/models/prompt_type.py +38 -0
- rapidata/api_client/models/proxy_file_wrapper.py +129 -0
- rapidata/api_client/models/public_order_model.py +2 -2
- rapidata/api_client/models/public_rapid_response.py +112 -0
- rapidata/api_client/models/query_audiences_result.py +111 -0
- rapidata/api_client/models/query_datapoints_by_dataset_id_result.py +95 -0
- rapidata/api_client/models/query_model.py +10 -5
- rapidata/api_client/models/query_validation_model.py +97 -0
- rapidata/api_client/models/query_validation_rapid_eligibility_model_query_validation_model.py +107 -0
- rapidata/api_client/models/query_validation_rapid_eligibility_result.py +103 -0
- rapidata/api_client/models/query_validation_rapid_eligibility_result_truth.py +280 -0
- rapidata/api_client/models/rapid_issue.py +2 -2
- rapidata/api_client/models/rapid_modality.py +46 -0
- rapidata/api_client/models/rapid_model.py +33 -49
- rapidata/api_client/models/rapid_result_model.py +7 -7
- rapidata/api_client/models/rapid_skipped_model.py +5 -5
- rapidata/api_client/models/rapid_state.py +2 -2
- rapidata/api_client/models/read_bridge_token_keys_result.py +10 -24
- rapidata/api_client/models/reference_asset_input.py +100 -0
- rapidata/api_client/models/report_model.py +9 -15
- rapidata/api_client/models/response_count_filter.py +103 -0
- rapidata/api_client/models/response_count_user_filter_model.py +2 -8
- rapidata/api_client/models/retrieval_mode.py +2 -2
- rapidata/api_client/models/root_filter.py +5 -14
- rapidata/api_client/models/run_status.py +39 -0
- rapidata/api_client/models/runs_by_leaderboard_result.py +104 -0
- rapidata/api_client/models/runs_by_leaderboard_result_paged_result.py +105 -0
- rapidata/api_client/models/sample_by_identifier.py +125 -0
- rapidata/api_client/models/sample_by_identifier_paged_result.py +105 -0
- rapidata/api_client/models/sample_by_participant.py +121 -0
- rapidata/api_client/models/sample_by_participant_paged_result.py +105 -0
- rapidata/api_client/models/scrub_range.py +2 -2
- rapidata/api_client/models/send_survey_model.py +87 -0
- rapidata/api_client/models/simple_workflow_config.py +15 -7
- rapidata/api_client/models/simple_workflow_config_blueprint.py +37 -23
- rapidata/api_client/models/simple_workflow_config_model.py +11 -3
- rapidata/api_client/models/simple_workflow_model.py +14 -4
- rapidata/api_client/models/simple_workflow_model1.py +4 -11
- rapidata/api_client/models/simple_workflow_model_blueprint.py +1 -1
- rapidata/api_client/models/sort_criterion.py +5 -11
- rapidata/api_client/models/sort_direction.py +2 -2
- rapidata/api_client/models/source_url_metadata.py +12 -1
- rapidata/api_client/models/standing_by_benchmark.py +113 -0
- rapidata/api_client/models/standing_by_leaderboard.py +113 -0
- rapidata/api_client/models/standing_by_leaderboard_paged_result.py +105 -0
- rapidata/api_client/models/standing_status.py +38 -0
- rapidata/api_client/models/standings_by_benchmark_result.py +95 -0
- rapidata/api_client/models/standings_by_leaderboard_result.py +95 -0
- rapidata/api_client/models/start_preliminary_download_result.py +87 -0
- rapidata/api_client/models/sticky_state.py +3 -2
- rapidata/api_client/models/stream_file_wrapper.py +138 -0
- rapidata/api_client/models/streams_metadata.py +12 -1
- rapidata/api_client/models/string_segment.py +105 -0
- rapidata/api_client/models/submit_coco_model.py +1 -3
- rapidata/api_client/models/submit_order_model.py +87 -0
- rapidata/api_client/models/submit_participant_result.py +89 -0
- rapidata/api_client/models/submit_prompt_model.py +107 -0
- rapidata/api_client/models/submit_prompt_model_prompt_asset.py +202 -0
- rapidata/api_client/models/tags_by_benchmark_result.py +87 -0
- rapidata/api_client/models/text_asset.py +3 -5
- rapidata/api_client/models/text_asset_input.py +120 -0
- rapidata/api_client/models/text_metadata.py +18 -2
- rapidata/api_client/models/text_metadata_input.py +111 -0
- rapidata/api_client/models/text_metadata_model.py +7 -2
- rapidata/api_client/models/transcription_metadata.py +9 -1
- rapidata/api_client/models/transcription_metadata_input.py +2 -2
- rapidata/api_client/models/transcription_word.py +2 -2
- rapidata/api_client/models/translated_string.py +2 -2
- rapidata/api_client/models/unlock_order_result.py +2 -2
- rapidata/api_client/models/update_audience_request.py +102 -0
- rapidata/api_client/models/update_benchmark_model.py +99 -0
- rapidata/api_client/models/update_benchmark_name_model.py +87 -0
- rapidata/api_client/models/update_campaign_model.py +11 -11
- rapidata/api_client/models/update_dataset_name_model.py +5 -5
- rapidata/api_client/models/update_dimensions_model.py +3 -3
- rapidata/api_client/models/update_leaderboard_model.py +106 -0
- rapidata/api_client/models/update_leaderboard_name_model.py +87 -0
- rapidata/api_client/models/update_leaderboard_response_config_model.py +89 -0
- rapidata/api_client/models/update_order_name_model.py +5 -5
- rapidata/api_client/models/update_participant_model.py +92 -0
- rapidata/api_client/models/update_participant_name_model.py +87 -0
- rapidata/api_client/models/update_priority_model.py +87 -0
- rapidata/api_client/models/update_prompt_tags_model.py +87 -0
- rapidata/api_client/models/update_should_alert_model.py +87 -0
- rapidata/api_client/models/update_validation_rapid_model.py +28 -10
- rapidata/api_client/models/update_validation_rapid_model_context_asset.py +160 -0
- rapidata/api_client/models/update_validation_set_model.py +120 -0
- rapidata/api_client/models/upload_asset_result.py +102 -0
- rapidata/api_client/models/upload_file_from_url_result.py +87 -0
- rapidata/api_client/models/upload_file_result.py +87 -0
- rapidata/api_client/models/user_action_restriction.py +37 -0
- rapidata/api_client/models/user_action_restriction_filter.py +101 -0
- rapidata/api_client/models/user_score_filter.py +102 -0
- rapidata/api_client/models/user_state.py +38 -0
- rapidata/api_client/models/user_state_filter.py +101 -0
- rapidata/api_client/models/validation_chance.py +20 -3
- rapidata/api_client/models/validation_set_model.py +39 -5
- rapidata/api_client/models/validation_set_overview_model.py +2 -2
- rapidata/api_client/models/validation_set_zip_post_request_blueprint.py +252 -0
- rapidata/api_client/models/video_duration_metadata.py +12 -1
- rapidata/api_client/models/workflow_aggregation_step_model.py +3 -12
- rapidata/api_client/models/workflow_config_artifact_model_workflow_config.py +23 -9
- rapidata/api_client/models/workflow_state.py +2 -2
- rapidata/api_client/models/zip_entry_file_wrapper.py +151 -0
- rapidata/api_client/rest.py +16 -9
- rapidata/api_client_README.md +373 -336
- rapidata/rapidata_client/__init__.py +9 -18
- rapidata/rapidata_client/api/rapidata_api_client.py +253 -0
- rapidata/rapidata_client/benchmark/_detail_mapper.py +32 -0
- rapidata/rapidata_client/benchmark/leaderboard/__init__.py +0 -0
- rapidata/rapidata_client/benchmark/leaderboard/rapidata_leaderboard.py +221 -0
- rapidata/rapidata_client/benchmark/participant/__init__.py +0 -0
- rapidata/rapidata_client/benchmark/participant/_participant.py +147 -0
- rapidata/rapidata_client/benchmark/rapidata_benchmark.py +546 -0
- rapidata/rapidata_client/benchmark/rapidata_benchmark_manager.py +219 -0
- rapidata/rapidata_client/config/__init__.py +4 -0
- rapidata/rapidata_client/config/logger.py +135 -0
- rapidata/rapidata_client/config/logging_config.py +55 -0
- rapidata/rapidata_client/config/managed_print.py +6 -0
- rapidata/rapidata_client/config/order_config.py +14 -0
- rapidata/rapidata_client/config/rapidata_config.py +36 -0
- rapidata/rapidata_client/config/tracer.py +184 -0
- rapidata/rapidata_client/config/upload_config.py +64 -0
- rapidata/rapidata_client/datapoints/__init__.py +10 -0
- rapidata/rapidata_client/datapoints/_asset_uploader.py +169 -0
- rapidata/rapidata_client/datapoints/_datapoint.py +92 -0
- rapidata/rapidata_client/datapoints/_datapoint_uploader.py +47 -0
- rapidata/rapidata_client/datapoints/_datapoints_validator.py +70 -0
- rapidata/rapidata_client/datapoints/assets/__init__.py +0 -0
- rapidata/rapidata_client/datapoints/assets/constants.py +7 -0
- rapidata/rapidata_client/{metadata → datapoints/metadata}/__init__.py +1 -0
- rapidata/rapidata_client/datapoints/metadata/_media_asset_metadata.py +26 -0
- rapidata/rapidata_client/datapoints/metadata/_private_text_metadata.py +16 -0
- rapidata/rapidata_client/datapoints/metadata/_prompt_identifier_metadata.py +14 -0
- rapidata/rapidata_client/datapoints/metadata/_prompt_metadata.py +12 -0
- rapidata/rapidata_client/datapoints/metadata/_public_text_metadata.py +16 -0
- rapidata/rapidata_client/{metadata → datapoints/metadata}/_select_words_metadata.py +4 -5
- rapidata/rapidata_client/demographic/demographic_manager.py +44 -19
- rapidata/rapidata_client/exceptions/__init__.py +1 -0
- rapidata/rapidata_client/exceptions/failed_upload_exception.py +20 -0
- rapidata/rapidata_client/filter/__init__.py +1 -0
- rapidata/rapidata_client/filter/_base_filter.py +27 -6
- rapidata/rapidata_client/filter/age_filter.py +21 -10
- rapidata/rapidata_client/filter/and_filter.py +42 -0
- rapidata/rapidata_client/filter/campaign_filter.py +18 -10
- rapidata/rapidata_client/filter/country_filter.py +34 -12
- rapidata/rapidata_client/filter/custom_filter.py +22 -12
- rapidata/rapidata_client/filter/gender_filter.py +22 -10
- rapidata/rapidata_client/filter/language_filter.py +39 -21
- rapidata/rapidata_client/filter/models/age_group.py +14 -12
- rapidata/rapidata_client/filter/models/gender.py +12 -8
- rapidata/rapidata_client/filter/new_user_filter.py +11 -4
- rapidata/rapidata_client/filter/not_filter.py +23 -11
- rapidata/rapidata_client/filter/or_filter.py +23 -11
- rapidata/rapidata_client/filter/rapidata_filters.py +19 -13
- rapidata/rapidata_client/filter/response_count_filter.py +36 -20
- rapidata/rapidata_client/filter/user_score_filter.py +47 -24
- rapidata/rapidata_client/order/_rapidata_order_builder.py +289 -154
- rapidata/rapidata_client/order/dataset/_rapidata_dataset.py +153 -0
- rapidata/rapidata_client/order/rapidata_order.py +316 -163
- rapidata/rapidata_client/order/rapidata_order_manager.py +688 -430
- rapidata/rapidata_client/order/rapidata_results.py +86 -63
- rapidata/rapidata_client/rapidata_client.py +98 -36
- rapidata/rapidata_client/referee/__init__.py +1 -1
- rapidata/rapidata_client/referee/_base_referee.py +7 -3
- rapidata/rapidata_client/referee/_early_stopping_referee.py +20 -11
- rapidata/rapidata_client/referee/_naive_referee.py +18 -3
- rapidata/rapidata_client/selection/__init__.py +2 -2
- rapidata/rapidata_client/selection/_base_selection.py +9 -2
- rapidata/rapidata_client/selection/ab_test_selection.py +28 -20
- rapidata/rapidata_client/selection/capped_selection.py +23 -16
- rapidata/rapidata_client/selection/conditional_validation_selection.py +43 -24
- rapidata/rapidata_client/selection/demographic_selection.py +21 -6
- rapidata/rapidata_client/selection/effort_selection.py +40 -10
- rapidata/rapidata_client/selection/labeling_selection.py +34 -11
- rapidata/rapidata_client/selection/{retrieval_modes.py → rapidata_retrieval_modes.py} +7 -4
- rapidata/rapidata_client/selection/rapidata_selections.py +17 -8
- rapidata/rapidata_client/selection/shuffling_selection.py +21 -13
- rapidata/rapidata_client/selection/static_selection.py +19 -8
- rapidata/rapidata_client/selection/validation_selection.py +20 -4
- rapidata/rapidata_client/settings/__init__.py +2 -0
- rapidata/rapidata_client/settings/_rapidata_setting.py +15 -2
- rapidata/rapidata_client/settings/alert_on_fast_response.py +8 -5
- rapidata/rapidata_client/settings/allow_neither_both.py +3 -0
- rapidata/rapidata_client/settings/custom_setting.py +3 -2
- rapidata/rapidata_client/settings/free_text_minimum_characters.py +9 -4
- rapidata/rapidata_client/settings/models/translation_behaviour_options.py +3 -2
- rapidata/rapidata_client/settings/mute_video.py +15 -0
- rapidata/rapidata_client/settings/no_shuffle.py +4 -2
- rapidata/rapidata_client/settings/play_video_until_the_end.py +7 -4
- rapidata/rapidata_client/settings/rapidata_settings.py +16 -3
- rapidata/rapidata_client/settings/swap_context_instruction.py +20 -0
- rapidata/rapidata_client/settings/translation_behaviour.py +7 -5
- rapidata/rapidata_client/validation/rapidata_validation_set.py +106 -12
- rapidata/rapidata_client/validation/rapids/_validation_rapid_uploader.py +62 -0
- rapidata/rapidata_client/validation/rapids/box.py +37 -12
- rapidata/rapidata_client/validation/rapids/rapids.py +28 -103
- rapidata/rapidata_client/validation/rapids/rapids_manager.py +315 -208
- rapidata/rapidata_client/validation/validation_set_manager.py +511 -274
- rapidata/rapidata_client/workflow/__init__.py +2 -1
- rapidata/rapidata_client/workflow/_base_workflow.py +25 -7
- rapidata/rapidata_client/workflow/_classify_workflow.py +58 -15
- rapidata/rapidata_client/workflow/_compare_workflow.py +44 -9
- rapidata/rapidata_client/workflow/_draw_workflow.py +40 -10
- rapidata/rapidata_client/workflow/_evaluation_workflow.py +28 -7
- rapidata/rapidata_client/workflow/_free_text_workflow.py +46 -9
- rapidata/rapidata_client/workflow/_locate_workflow.py +40 -10
- rapidata/rapidata_client/workflow/_multi_ranking_workflow.py +87 -0
- rapidata/rapidata_client/workflow/_ranking_workflow.py +109 -25
- rapidata/rapidata_client/workflow/_select_words_workflow.py +51 -11
- rapidata/rapidata_client/workflow/_timestamp_workflow.py +42 -11
- rapidata/service/__init__.py +0 -1
- rapidata/service/credential_manager.py +14 -14
- rapidata/service/openapi_service.py +79 -24
- rapidata/types/__init__.py +166 -0
- rapidata-2.44.3.dist-info/METADATA +32 -0
- rapidata-2.44.3.dist-info/RECORD +1014 -0
- {rapidata-2.28.2.dist-info → rapidata-2.44.3.dist-info}/WHEEL +1 -1
- rapidata/rapidata_client/api/rapidata_exception.py +0 -107
- rapidata/rapidata_client/assets/__init__.py +0 -10
- rapidata/rapidata_client/assets/_base_asset.py +0 -11
- rapidata/rapidata_client/assets/_media_asset.py +0 -306
- rapidata/rapidata_client/assets/_multi_asset.py +0 -61
- rapidata/rapidata_client/assets/_sessions.py +0 -35
- rapidata/rapidata_client/assets/_text_asset.py +0 -34
- rapidata/rapidata_client/assets/data_type_enum.py +0 -7
- rapidata/rapidata_client/country_codes/__init__.py +0 -1
- rapidata/rapidata_client/country_codes/country_codes.py +0 -19
- rapidata/rapidata_client/leaderboard/rapidata_leaderboard.py +0 -127
- rapidata/rapidata_client/leaderboard/rapidata_leaderboard_manager.py +0 -92
- rapidata/rapidata_client/logging/__init__.py +0 -2
- rapidata/rapidata_client/logging/logger.py +0 -122
- rapidata/rapidata_client/logging/output_manager.py +0 -20
- rapidata/rapidata_client/metadata/_media_asset_metadata.py +0 -15
- rapidata/rapidata_client/metadata/_private_text_metadata.py +0 -17
- rapidata/rapidata_client/metadata/_prompt_metadata.py +0 -18
- rapidata/rapidata_client/metadata/_public_text_metadata.py +0 -17
- rapidata/rapidata_client/order/_rapidata_dataset.py +0 -461
- rapidata/service/local_file_service.py +0 -25
- rapidata-2.28.2.dist-info/METADATA +0 -35
- rapidata-2.28.2.dist-info/RECORD +0 -574
- /rapidata/rapidata_client/{leaderboard → benchmark}/__init__.py +0 -0
- /rapidata/rapidata_client/{metadata → datapoints/metadata}/_base_metadata.py +0 -0
- {rapidata-2.28.2.dist-info → rapidata-2.44.3.dist-info/licenses}/LICENSE +0 -0
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
# coding: utf-8
|
|
2
2
|
|
|
3
3
|
"""
|
|
4
|
-
Rapidata
|
|
4
|
+
Rapidata Asset API
|
|
5
5
|
|
|
6
|
-
|
|
6
|
+
The API for the Rapidata Asset service
|
|
7
7
|
|
|
8
8
|
The version of the OpenAPI document: v1
|
|
9
9
|
Generated by OpenAPI Generator (https://openapi-generator.tech)
|
|
@@ -19,9 +19,11 @@ from typing_extensions import Annotated
|
|
|
19
19
|
from pydantic import Field, StrictStr
|
|
20
20
|
from typing import Optional
|
|
21
21
|
from typing_extensions import Annotated
|
|
22
|
-
from rapidata.api_client.models.
|
|
23
|
-
from rapidata.api_client.models.
|
|
22
|
+
from rapidata.api_client.models.change_boost_model import ChangeBoostModel
|
|
23
|
+
from rapidata.api_client.models.get_boost_result import GetBoostResult
|
|
24
|
+
from rapidata.api_client.models.paged_result_of_campaign_query_result import PagedResultOfCampaignQueryResult
|
|
24
25
|
from rapidata.api_client.models.query_model import QueryModel
|
|
26
|
+
from rapidata.api_client.models.update_campaign_model import UpdateCampaignModel
|
|
25
27
|
|
|
26
28
|
from rapidata.api_client.api_client import ApiClient, RequestSerialized
|
|
27
29
|
from rapidata.api_client.api_response import ApiResponse
|
|
@@ -42,8 +44,9 @@ class CampaignApi:
|
|
|
42
44
|
|
|
43
45
|
|
|
44
46
|
@validate_call
|
|
45
|
-
def
|
|
47
|
+
def campaign_boost_put(
|
|
46
48
|
self,
|
|
49
|
+
change_boost_model: ChangeBoostModel,
|
|
47
50
|
_request_timeout: Union[
|
|
48
51
|
None,
|
|
49
52
|
Annotated[StrictFloat, Field(gt=0)],
|
|
@@ -56,10 +59,12 @@ class CampaignApi:
|
|
|
56
59
|
_content_type: Optional[StrictStr] = None,
|
|
57
60
|
_headers: Optional[Dict[StrictStr, Any]] = None,
|
|
58
61
|
_host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
|
|
59
|
-
) ->
|
|
60
|
-
"""
|
|
62
|
+
) -> None:
|
|
63
|
+
"""Updates the boost with manual boosts.
|
|
61
64
|
|
|
62
65
|
|
|
66
|
+
:param change_boost_model: (required)
|
|
67
|
+
:type change_boost_model: ChangeBoostModel
|
|
63
68
|
:param _request_timeout: timeout setting for this request. If one
|
|
64
69
|
number provided, it will be total request
|
|
65
70
|
timeout. It can also be a pair (tuple) of
|
|
@@ -82,7 +87,8 @@ class CampaignApi:
|
|
|
82
87
|
:return: Returns the result object.
|
|
83
88
|
""" # noqa: E501
|
|
84
89
|
|
|
85
|
-
_param = self.
|
|
90
|
+
_param = self._campaign_boost_put_serialize(
|
|
91
|
+
change_boost_model=change_boost_model,
|
|
86
92
|
_request_auth=_request_auth,
|
|
87
93
|
_content_type=_content_type,
|
|
88
94
|
_headers=_headers,
|
|
@@ -90,7 +96,7 @@ class CampaignApi:
|
|
|
90
96
|
)
|
|
91
97
|
|
|
92
98
|
_response_types_map: Dict[str, Optional[str]] = {
|
|
93
|
-
'
|
|
99
|
+
'204': None,
|
|
94
100
|
}
|
|
95
101
|
response_data = self.api_client.call_api(
|
|
96
102
|
*_param,
|
|
@@ -104,8 +110,9 @@ class CampaignApi:
|
|
|
104
110
|
|
|
105
111
|
|
|
106
112
|
@validate_call
|
|
107
|
-
def
|
|
113
|
+
def campaign_boost_put_with_http_info(
|
|
108
114
|
self,
|
|
115
|
+
change_boost_model: ChangeBoostModel,
|
|
109
116
|
_request_timeout: Union[
|
|
110
117
|
None,
|
|
111
118
|
Annotated[StrictFloat, Field(gt=0)],
|
|
@@ -118,10 +125,12 @@ class CampaignApi:
|
|
|
118
125
|
_content_type: Optional[StrictStr] = None,
|
|
119
126
|
_headers: Optional[Dict[StrictStr, Any]] = None,
|
|
120
127
|
_host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
|
|
121
|
-
) -> ApiResponse[
|
|
122
|
-
"""
|
|
128
|
+
) -> ApiResponse[None]:
|
|
129
|
+
"""Updates the boost with manual boosts.
|
|
123
130
|
|
|
124
131
|
|
|
132
|
+
:param change_boost_model: (required)
|
|
133
|
+
:type change_boost_model: ChangeBoostModel
|
|
125
134
|
:param _request_timeout: timeout setting for this request. If one
|
|
126
135
|
number provided, it will be total request
|
|
127
136
|
timeout. It can also be a pair (tuple) of
|
|
@@ -144,7 +153,8 @@ class CampaignApi:
|
|
|
144
153
|
:return: Returns the result object.
|
|
145
154
|
""" # noqa: E501
|
|
146
155
|
|
|
147
|
-
_param = self.
|
|
156
|
+
_param = self._campaign_boost_put_serialize(
|
|
157
|
+
change_boost_model=change_boost_model,
|
|
148
158
|
_request_auth=_request_auth,
|
|
149
159
|
_content_type=_content_type,
|
|
150
160
|
_headers=_headers,
|
|
@@ -152,7 +162,7 @@ class CampaignApi:
|
|
|
152
162
|
)
|
|
153
163
|
|
|
154
164
|
_response_types_map: Dict[str, Optional[str]] = {
|
|
155
|
-
'
|
|
165
|
+
'204': None,
|
|
156
166
|
}
|
|
157
167
|
response_data = self.api_client.call_api(
|
|
158
168
|
*_param,
|
|
@@ -166,8 +176,9 @@ class CampaignApi:
|
|
|
166
176
|
|
|
167
177
|
|
|
168
178
|
@validate_call
|
|
169
|
-
def
|
|
179
|
+
def campaign_boost_put_without_preload_content(
|
|
170
180
|
self,
|
|
181
|
+
change_boost_model: ChangeBoostModel,
|
|
171
182
|
_request_timeout: Union[
|
|
172
183
|
None,
|
|
173
184
|
Annotated[StrictFloat, Field(gt=0)],
|
|
@@ -181,9 +192,11 @@ class CampaignApi:
|
|
|
181
192
|
_headers: Optional[Dict[StrictStr, Any]] = None,
|
|
182
193
|
_host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
|
|
183
194
|
) -> RESTResponseType:
|
|
184
|
-
"""
|
|
195
|
+
"""Updates the boost with manual boosts.
|
|
185
196
|
|
|
186
197
|
|
|
198
|
+
:param change_boost_model: (required)
|
|
199
|
+
:type change_boost_model: ChangeBoostModel
|
|
187
200
|
:param _request_timeout: timeout setting for this request. If one
|
|
188
201
|
number provided, it will be total request
|
|
189
202
|
timeout. It can also be a pair (tuple) of
|
|
@@ -206,7 +219,8 @@ class CampaignApi:
|
|
|
206
219
|
:return: Returns the result object.
|
|
207
220
|
""" # noqa: E501
|
|
208
221
|
|
|
209
|
-
_param = self.
|
|
222
|
+
_param = self._campaign_boost_put_serialize(
|
|
223
|
+
change_boost_model=change_boost_model,
|
|
210
224
|
_request_auth=_request_auth,
|
|
211
225
|
_content_type=_content_type,
|
|
212
226
|
_headers=_headers,
|
|
@@ -214,7 +228,7 @@ class CampaignApi:
|
|
|
214
228
|
)
|
|
215
229
|
|
|
216
230
|
_response_types_map: Dict[str, Optional[str]] = {
|
|
217
|
-
'
|
|
231
|
+
'204': None,
|
|
218
232
|
}
|
|
219
233
|
response_data = self.api_client.call_api(
|
|
220
234
|
*_param,
|
|
@@ -223,8 +237,9 @@ class CampaignApi:
|
|
|
223
237
|
return response_data.response
|
|
224
238
|
|
|
225
239
|
|
|
226
|
-
def
|
|
240
|
+
def _campaign_boost_put_serialize(
|
|
227
241
|
self,
|
|
242
|
+
change_boost_model,
|
|
228
243
|
_request_auth,
|
|
229
244
|
_content_type,
|
|
230
245
|
_headers,
|
|
@@ -250,28 +265,37 @@ class CampaignApi:
|
|
|
250
265
|
# process the header parameters
|
|
251
266
|
# process the form parameters
|
|
252
267
|
# process the body parameter
|
|
253
|
-
|
|
254
|
-
|
|
255
|
-
|
|
256
|
-
|
|
257
|
-
|
|
258
|
-
|
|
259
|
-
|
|
260
|
-
|
|
261
|
-
|
|
262
|
-
|
|
268
|
+
if change_boost_model is not None:
|
|
269
|
+
_body_params = change_boost_model
|
|
270
|
+
|
|
271
|
+
|
|
272
|
+
|
|
273
|
+
# set the HTTP header `Content-Type`
|
|
274
|
+
if _content_type:
|
|
275
|
+
_header_params['Content-Type'] = _content_type
|
|
276
|
+
else:
|
|
277
|
+
_default_content_type = (
|
|
278
|
+
self.api_client.select_header_content_type(
|
|
279
|
+
[
|
|
280
|
+
'application/json',
|
|
281
|
+
'text/json',
|
|
282
|
+
'application/*+json'
|
|
283
|
+
]
|
|
284
|
+
)
|
|
263
285
|
)
|
|
264
|
-
|
|
286
|
+
if _default_content_type is not None:
|
|
287
|
+
_header_params['Content-Type'] = _default_content_type
|
|
265
288
|
|
|
266
289
|
# authentication setting
|
|
267
290
|
_auth_settings: List[str] = [
|
|
268
|
-
'
|
|
269
|
-
'
|
|
291
|
+
'OAuth2',
|
|
292
|
+
'OpenIdConnect',
|
|
293
|
+
'Bearer'
|
|
270
294
|
]
|
|
271
295
|
|
|
272
296
|
return self.api_client.param_serialize(
|
|
273
|
-
method='
|
|
274
|
-
resource_path='/campaign/boost
|
|
297
|
+
method='PUT',
|
|
298
|
+
resource_path='/campaign/boost',
|
|
275
299
|
path_params=_path_params,
|
|
276
300
|
query_params=_query_params,
|
|
277
301
|
header_params=_header_params,
|
|
@@ -288,9 +312,8 @@ class CampaignApi:
|
|
|
288
312
|
|
|
289
313
|
|
|
290
314
|
@validate_call
|
|
291
|
-
def
|
|
315
|
+
def campaign_boost_status_get(
|
|
292
316
|
self,
|
|
293
|
-
campaign_id: Annotated[StrictStr, Field(description="id of the campaign that should be paused")],
|
|
294
317
|
_request_timeout: Union[
|
|
295
318
|
None,
|
|
296
319
|
Annotated[StrictFloat, Field(gt=0)],
|
|
@@ -303,12 +326,10 @@ class CampaignApi:
|
|
|
303
326
|
_content_type: Optional[StrictStr] = None,
|
|
304
327
|
_headers: Optional[Dict[StrictStr, Any]] = None,
|
|
305
328
|
_host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
|
|
306
|
-
) ->
|
|
307
|
-
"""
|
|
329
|
+
) -> GetBoostResult:
|
|
330
|
+
"""Gets the status of the boost.
|
|
308
331
|
|
|
309
332
|
|
|
310
|
-
:param campaign_id: id of the campaign that should be paused (required)
|
|
311
|
-
:type campaign_id: str
|
|
312
333
|
:param _request_timeout: timeout setting for this request. If one
|
|
313
334
|
number provided, it will be total request
|
|
314
335
|
timeout. It can also be a pair (tuple) of
|
|
@@ -331,8 +352,7 @@ class CampaignApi:
|
|
|
331
352
|
:return: Returns the result object.
|
|
332
353
|
""" # noqa: E501
|
|
333
354
|
|
|
334
|
-
_param = self.
|
|
335
|
-
campaign_id=campaign_id,
|
|
355
|
+
_param = self._campaign_boost_status_get_serialize(
|
|
336
356
|
_request_auth=_request_auth,
|
|
337
357
|
_content_type=_content_type,
|
|
338
358
|
_headers=_headers,
|
|
@@ -340,7 +360,7 @@ class CampaignApi:
|
|
|
340
360
|
)
|
|
341
361
|
|
|
342
362
|
_response_types_map: Dict[str, Optional[str]] = {
|
|
343
|
-
'
|
|
363
|
+
'200': "GetBoostResult",
|
|
344
364
|
}
|
|
345
365
|
response_data = self.api_client.call_api(
|
|
346
366
|
*_param,
|
|
@@ -354,9 +374,8 @@ class CampaignApi:
|
|
|
354
374
|
|
|
355
375
|
|
|
356
376
|
@validate_call
|
|
357
|
-
def
|
|
377
|
+
def campaign_boost_status_get_with_http_info(
|
|
358
378
|
self,
|
|
359
|
-
campaign_id: Annotated[StrictStr, Field(description="id of the campaign that should be paused")],
|
|
360
379
|
_request_timeout: Union[
|
|
361
380
|
None,
|
|
362
381
|
Annotated[StrictFloat, Field(gt=0)],
|
|
@@ -369,12 +388,10 @@ class CampaignApi:
|
|
|
369
388
|
_content_type: Optional[StrictStr] = None,
|
|
370
389
|
_headers: Optional[Dict[StrictStr, Any]] = None,
|
|
371
390
|
_host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
|
|
372
|
-
) -> ApiResponse[
|
|
373
|
-
"""
|
|
391
|
+
) -> ApiResponse[GetBoostResult]:
|
|
392
|
+
"""Gets the status of the boost.
|
|
374
393
|
|
|
375
394
|
|
|
376
|
-
:param campaign_id: id of the campaign that should be paused (required)
|
|
377
|
-
:type campaign_id: str
|
|
378
395
|
:param _request_timeout: timeout setting for this request. If one
|
|
379
396
|
number provided, it will be total request
|
|
380
397
|
timeout. It can also be a pair (tuple) of
|
|
@@ -397,8 +414,7 @@ class CampaignApi:
|
|
|
397
414
|
:return: Returns the result object.
|
|
398
415
|
""" # noqa: E501
|
|
399
416
|
|
|
400
|
-
_param = self.
|
|
401
|
-
campaign_id=campaign_id,
|
|
417
|
+
_param = self._campaign_boost_status_get_serialize(
|
|
402
418
|
_request_auth=_request_auth,
|
|
403
419
|
_content_type=_content_type,
|
|
404
420
|
_headers=_headers,
|
|
@@ -406,7 +422,7 @@ class CampaignApi:
|
|
|
406
422
|
)
|
|
407
423
|
|
|
408
424
|
_response_types_map: Dict[str, Optional[str]] = {
|
|
409
|
-
'
|
|
425
|
+
'200': "GetBoostResult",
|
|
410
426
|
}
|
|
411
427
|
response_data = self.api_client.call_api(
|
|
412
428
|
*_param,
|
|
@@ -420,9 +436,8 @@ class CampaignApi:
|
|
|
420
436
|
|
|
421
437
|
|
|
422
438
|
@validate_call
|
|
423
|
-
def
|
|
439
|
+
def campaign_boost_status_get_without_preload_content(
|
|
424
440
|
self,
|
|
425
|
-
campaign_id: Annotated[StrictStr, Field(description="id of the campaign that should be paused")],
|
|
426
441
|
_request_timeout: Union[
|
|
427
442
|
None,
|
|
428
443
|
Annotated[StrictFloat, Field(gt=0)],
|
|
@@ -436,11 +451,9 @@ class CampaignApi:
|
|
|
436
451
|
_headers: Optional[Dict[StrictStr, Any]] = None,
|
|
437
452
|
_host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
|
|
438
453
|
) -> RESTResponseType:
|
|
439
|
-
"""
|
|
454
|
+
"""Gets the status of the boost.
|
|
440
455
|
|
|
441
456
|
|
|
442
|
-
:param campaign_id: id of the campaign that should be paused (required)
|
|
443
|
-
:type campaign_id: str
|
|
444
457
|
:param _request_timeout: timeout setting for this request. If one
|
|
445
458
|
number provided, it will be total request
|
|
446
459
|
timeout. It can also be a pair (tuple) of
|
|
@@ -463,8 +476,7 @@ class CampaignApi:
|
|
|
463
476
|
:return: Returns the result object.
|
|
464
477
|
""" # noqa: E501
|
|
465
478
|
|
|
466
|
-
_param = self.
|
|
467
|
-
campaign_id=campaign_id,
|
|
479
|
+
_param = self._campaign_boost_status_get_serialize(
|
|
468
480
|
_request_auth=_request_auth,
|
|
469
481
|
_content_type=_content_type,
|
|
470
482
|
_headers=_headers,
|
|
@@ -472,7 +484,7 @@ class CampaignApi:
|
|
|
472
484
|
)
|
|
473
485
|
|
|
474
486
|
_response_types_map: Dict[str, Optional[str]] = {
|
|
475
|
-
'
|
|
487
|
+
'200': "GetBoostResult",
|
|
476
488
|
}
|
|
477
489
|
response_data = self.api_client.call_api(
|
|
478
490
|
*_param,
|
|
@@ -481,9 +493,8 @@ class CampaignApi:
|
|
|
481
493
|
return response_data.response
|
|
482
494
|
|
|
483
495
|
|
|
484
|
-
def
|
|
496
|
+
def _campaign_boost_status_get_serialize(
|
|
485
497
|
self,
|
|
486
|
-
campaign_id,
|
|
487
498
|
_request_auth,
|
|
488
499
|
_content_type,
|
|
489
500
|
_headers,
|
|
@@ -505,25 +516,33 @@ class CampaignApi:
|
|
|
505
516
|
_body_params: Optional[bytes] = None
|
|
506
517
|
|
|
507
518
|
# process the path parameters
|
|
508
|
-
if campaign_id is not None:
|
|
509
|
-
_path_params['campaignId'] = campaign_id
|
|
510
519
|
# process the query parameters
|
|
511
520
|
# process the header parameters
|
|
512
521
|
# process the form parameters
|
|
513
522
|
# process the body parameter
|
|
514
523
|
|
|
515
524
|
|
|
525
|
+
# set the HTTP header `Accept`
|
|
526
|
+
if 'Accept' not in _header_params:
|
|
527
|
+
_header_params['Accept'] = self.api_client.select_header_accept(
|
|
528
|
+
[
|
|
529
|
+
'text/plain',
|
|
530
|
+
'application/json',
|
|
531
|
+
'text/json'
|
|
532
|
+
]
|
|
533
|
+
)
|
|
516
534
|
|
|
517
535
|
|
|
518
536
|
# authentication setting
|
|
519
537
|
_auth_settings: List[str] = [
|
|
520
|
-
'
|
|
521
|
-
'
|
|
538
|
+
'OAuth2',
|
|
539
|
+
'OpenIdConnect',
|
|
540
|
+
'Bearer'
|
|
522
541
|
]
|
|
523
542
|
|
|
524
543
|
return self.api_client.param_serialize(
|
|
525
|
-
method='
|
|
526
|
-
resource_path='/campaign/
|
|
544
|
+
method='GET',
|
|
545
|
+
resource_path='/campaign/boost/status',
|
|
527
546
|
path_params=_path_params,
|
|
528
547
|
query_params=_query_params,
|
|
529
548
|
header_params=_header_params,
|
|
@@ -540,9 +559,10 @@ class CampaignApi:
|
|
|
540
559
|
|
|
541
560
|
|
|
542
561
|
@validate_call
|
|
543
|
-
def
|
|
562
|
+
def campaign_campaign_id_patch(
|
|
544
563
|
self,
|
|
545
|
-
campaign_id: Annotated[StrictStr, Field(description="id of the campaign
|
|
564
|
+
campaign_id: Annotated[StrictStr, Field(description="id of the campaign to update")],
|
|
565
|
+
update_campaign_model: Annotated[UpdateCampaignModel, Field(description="model containing the updates")],
|
|
546
566
|
_request_timeout: Union[
|
|
547
567
|
None,
|
|
548
568
|
Annotated[StrictFloat, Field(gt=0)],
|
|
@@ -556,11 +576,13 @@ class CampaignApi:
|
|
|
556
576
|
_headers: Optional[Dict[StrictStr, Any]] = None,
|
|
557
577
|
_host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
|
|
558
578
|
) -> None:
|
|
559
|
-
"""
|
|
579
|
+
"""Updates a campaign.
|
|
560
580
|
|
|
561
581
|
|
|
562
|
-
:param campaign_id: id of the campaign
|
|
582
|
+
:param campaign_id: id of the campaign to update (required)
|
|
563
583
|
:type campaign_id: str
|
|
584
|
+
:param update_campaign_model: model containing the updates (required)
|
|
585
|
+
:type update_campaign_model: UpdateCampaignModel
|
|
564
586
|
:param _request_timeout: timeout setting for this request. If one
|
|
565
587
|
number provided, it will be total request
|
|
566
588
|
timeout. It can also be a pair (tuple) of
|
|
@@ -583,8 +605,9 @@ class CampaignApi:
|
|
|
583
605
|
:return: Returns the result object.
|
|
584
606
|
""" # noqa: E501
|
|
585
607
|
|
|
586
|
-
_param = self.
|
|
608
|
+
_param = self._campaign_campaign_id_patch_serialize(
|
|
587
609
|
campaign_id=campaign_id,
|
|
610
|
+
update_campaign_model=update_campaign_model,
|
|
588
611
|
_request_auth=_request_auth,
|
|
589
612
|
_content_type=_content_type,
|
|
590
613
|
_headers=_headers,
|
|
@@ -606,9 +629,10 @@ class CampaignApi:
|
|
|
606
629
|
|
|
607
630
|
|
|
608
631
|
@validate_call
|
|
609
|
-
def
|
|
632
|
+
def campaign_campaign_id_patch_with_http_info(
|
|
610
633
|
self,
|
|
611
|
-
campaign_id: Annotated[StrictStr, Field(description="id of the campaign
|
|
634
|
+
campaign_id: Annotated[StrictStr, Field(description="id of the campaign to update")],
|
|
635
|
+
update_campaign_model: Annotated[UpdateCampaignModel, Field(description="model containing the updates")],
|
|
612
636
|
_request_timeout: Union[
|
|
613
637
|
None,
|
|
614
638
|
Annotated[StrictFloat, Field(gt=0)],
|
|
@@ -622,11 +646,13 @@ class CampaignApi:
|
|
|
622
646
|
_headers: Optional[Dict[StrictStr, Any]] = None,
|
|
623
647
|
_host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
|
|
624
648
|
) -> ApiResponse[None]:
|
|
625
|
-
"""
|
|
649
|
+
"""Updates a campaign.
|
|
626
650
|
|
|
627
651
|
|
|
628
|
-
:param campaign_id: id of the campaign
|
|
652
|
+
:param campaign_id: id of the campaign to update (required)
|
|
629
653
|
:type campaign_id: str
|
|
654
|
+
:param update_campaign_model: model containing the updates (required)
|
|
655
|
+
:type update_campaign_model: UpdateCampaignModel
|
|
630
656
|
:param _request_timeout: timeout setting for this request. If one
|
|
631
657
|
number provided, it will be total request
|
|
632
658
|
timeout. It can also be a pair (tuple) of
|
|
@@ -649,8 +675,9 @@ class CampaignApi:
|
|
|
649
675
|
:return: Returns the result object.
|
|
650
676
|
""" # noqa: E501
|
|
651
677
|
|
|
652
|
-
_param = self.
|
|
678
|
+
_param = self._campaign_campaign_id_patch_serialize(
|
|
653
679
|
campaign_id=campaign_id,
|
|
680
|
+
update_campaign_model=update_campaign_model,
|
|
654
681
|
_request_auth=_request_auth,
|
|
655
682
|
_content_type=_content_type,
|
|
656
683
|
_headers=_headers,
|
|
@@ -672,9 +699,10 @@ class CampaignApi:
|
|
|
672
699
|
|
|
673
700
|
|
|
674
701
|
@validate_call
|
|
675
|
-
def
|
|
702
|
+
def campaign_campaign_id_patch_without_preload_content(
|
|
676
703
|
self,
|
|
677
|
-
campaign_id: Annotated[StrictStr, Field(description="id of the campaign
|
|
704
|
+
campaign_id: Annotated[StrictStr, Field(description="id of the campaign to update")],
|
|
705
|
+
update_campaign_model: Annotated[UpdateCampaignModel, Field(description="model containing the updates")],
|
|
678
706
|
_request_timeout: Union[
|
|
679
707
|
None,
|
|
680
708
|
Annotated[StrictFloat, Field(gt=0)],
|
|
@@ -688,11 +716,13 @@ class CampaignApi:
|
|
|
688
716
|
_headers: Optional[Dict[StrictStr, Any]] = None,
|
|
689
717
|
_host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
|
|
690
718
|
) -> RESTResponseType:
|
|
691
|
-
"""
|
|
719
|
+
"""Updates a campaign.
|
|
692
720
|
|
|
693
721
|
|
|
694
|
-
:param campaign_id: id of the campaign
|
|
722
|
+
:param campaign_id: id of the campaign to update (required)
|
|
695
723
|
:type campaign_id: str
|
|
724
|
+
:param update_campaign_model: model containing the updates (required)
|
|
725
|
+
:type update_campaign_model: UpdateCampaignModel
|
|
696
726
|
:param _request_timeout: timeout setting for this request. If one
|
|
697
727
|
number provided, it will be total request
|
|
698
728
|
timeout. It can also be a pair (tuple) of
|
|
@@ -715,8 +745,9 @@ class CampaignApi:
|
|
|
715
745
|
:return: Returns the result object.
|
|
716
746
|
""" # noqa: E501
|
|
717
747
|
|
|
718
|
-
_param = self.
|
|
748
|
+
_param = self._campaign_campaign_id_patch_serialize(
|
|
719
749
|
campaign_id=campaign_id,
|
|
750
|
+
update_campaign_model=update_campaign_model,
|
|
720
751
|
_request_auth=_request_auth,
|
|
721
752
|
_content_type=_content_type,
|
|
722
753
|
_headers=_headers,
|
|
@@ -733,9 +764,10 @@ class CampaignApi:
|
|
|
733
764
|
return response_data.response
|
|
734
765
|
|
|
735
766
|
|
|
736
|
-
def
|
|
767
|
+
def _campaign_campaign_id_patch_serialize(
|
|
737
768
|
self,
|
|
738
769
|
campaign_id,
|
|
770
|
+
update_campaign_model,
|
|
739
771
|
_request_auth,
|
|
740
772
|
_content_type,
|
|
741
773
|
_headers,
|
|
@@ -763,19 +795,37 @@ class CampaignApi:
|
|
|
763
795
|
# process the header parameters
|
|
764
796
|
# process the form parameters
|
|
765
797
|
# process the body parameter
|
|
766
|
-
|
|
767
|
-
|
|
768
|
-
|
|
798
|
+
if update_campaign_model is not None:
|
|
799
|
+
_body_params = update_campaign_model
|
|
800
|
+
|
|
801
|
+
|
|
802
|
+
|
|
803
|
+
# set the HTTP header `Content-Type`
|
|
804
|
+
if _content_type:
|
|
805
|
+
_header_params['Content-Type'] = _content_type
|
|
806
|
+
else:
|
|
807
|
+
_default_content_type = (
|
|
808
|
+
self.api_client.select_header_content_type(
|
|
809
|
+
[
|
|
810
|
+
'application/json',
|
|
811
|
+
'text/json',
|
|
812
|
+
'application/*+json'
|
|
813
|
+
]
|
|
814
|
+
)
|
|
815
|
+
)
|
|
816
|
+
if _default_content_type is not None:
|
|
817
|
+
_header_params['Content-Type'] = _default_content_type
|
|
769
818
|
|
|
770
819
|
# authentication setting
|
|
771
820
|
_auth_settings: List[str] = [
|
|
772
|
-
'
|
|
773
|
-
'
|
|
821
|
+
'OAuth2',
|
|
822
|
+
'OpenIdConnect',
|
|
823
|
+
'Bearer'
|
|
774
824
|
]
|
|
775
825
|
|
|
776
826
|
return self.api_client.param_serialize(
|
|
777
|
-
method='
|
|
778
|
-
resource_path='/campaign/{campaignId}
|
|
827
|
+
method='PATCH',
|
|
828
|
+
resource_path='/campaign/{campaignId}',
|
|
779
829
|
path_params=_path_params,
|
|
780
830
|
query_params=_query_params,
|
|
781
831
|
header_params=_header_params,
|
|
@@ -792,8 +842,9 @@ class CampaignApi:
|
|
|
792
842
|
|
|
793
843
|
|
|
794
844
|
@validate_call
|
|
795
|
-
def
|
|
845
|
+
def campaign_campaign_id_pause_post(
|
|
796
846
|
self,
|
|
847
|
+
campaign_id: Annotated[StrictStr, Field(description="id of the campaign that should be paused")],
|
|
797
848
|
_request_timeout: Union[
|
|
798
849
|
None,
|
|
799
850
|
Annotated[StrictFloat, Field(gt=0)],
|
|
@@ -807,9 +858,11 @@ class CampaignApi:
|
|
|
807
858
|
_headers: Optional[Dict[StrictStr, Any]] = None,
|
|
808
859
|
_host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
|
|
809
860
|
) -> None:
|
|
810
|
-
"""
|
|
861
|
+
"""Pauses a campaign.
|
|
811
862
|
|
|
812
863
|
|
|
864
|
+
:param campaign_id: id of the campaign that should be paused (required)
|
|
865
|
+
:type campaign_id: str
|
|
813
866
|
:param _request_timeout: timeout setting for this request. If one
|
|
814
867
|
number provided, it will be total request
|
|
815
868
|
timeout. It can also be a pair (tuple) of
|
|
@@ -832,7 +885,8 @@ class CampaignApi:
|
|
|
832
885
|
:return: Returns the result object.
|
|
833
886
|
""" # noqa: E501
|
|
834
887
|
|
|
835
|
-
_param = self.
|
|
888
|
+
_param = self._campaign_campaign_id_pause_post_serialize(
|
|
889
|
+
campaign_id=campaign_id,
|
|
836
890
|
_request_auth=_request_auth,
|
|
837
891
|
_content_type=_content_type,
|
|
838
892
|
_headers=_headers,
|
|
@@ -840,7 +894,7 @@ class CampaignApi:
|
|
|
840
894
|
)
|
|
841
895
|
|
|
842
896
|
_response_types_map: Dict[str, Optional[str]] = {
|
|
843
|
-
'
|
|
897
|
+
'204': None,
|
|
844
898
|
}
|
|
845
899
|
response_data = self.api_client.call_api(
|
|
846
900
|
*_param,
|
|
@@ -854,8 +908,9 @@ class CampaignApi:
|
|
|
854
908
|
|
|
855
909
|
|
|
856
910
|
@validate_call
|
|
857
|
-
def
|
|
911
|
+
def campaign_campaign_id_pause_post_with_http_info(
|
|
858
912
|
self,
|
|
913
|
+
campaign_id: Annotated[StrictStr, Field(description="id of the campaign that should be paused")],
|
|
859
914
|
_request_timeout: Union[
|
|
860
915
|
None,
|
|
861
916
|
Annotated[StrictFloat, Field(gt=0)],
|
|
@@ -869,9 +924,11 @@ class CampaignApi:
|
|
|
869
924
|
_headers: Optional[Dict[StrictStr, Any]] = None,
|
|
870
925
|
_host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
|
|
871
926
|
) -> ApiResponse[None]:
|
|
872
|
-
"""
|
|
927
|
+
"""Pauses a campaign.
|
|
873
928
|
|
|
874
929
|
|
|
930
|
+
:param campaign_id: id of the campaign that should be paused (required)
|
|
931
|
+
:type campaign_id: str
|
|
875
932
|
:param _request_timeout: timeout setting for this request. If one
|
|
876
933
|
number provided, it will be total request
|
|
877
934
|
timeout. It can also be a pair (tuple) of
|
|
@@ -894,7 +951,8 @@ class CampaignApi:
|
|
|
894
951
|
:return: Returns the result object.
|
|
895
952
|
""" # noqa: E501
|
|
896
953
|
|
|
897
|
-
_param = self.
|
|
954
|
+
_param = self._campaign_campaign_id_pause_post_serialize(
|
|
955
|
+
campaign_id=campaign_id,
|
|
898
956
|
_request_auth=_request_auth,
|
|
899
957
|
_content_type=_content_type,
|
|
900
958
|
_headers=_headers,
|
|
@@ -902,7 +960,7 @@ class CampaignApi:
|
|
|
902
960
|
)
|
|
903
961
|
|
|
904
962
|
_response_types_map: Dict[str, Optional[str]] = {
|
|
905
|
-
'
|
|
963
|
+
'204': None,
|
|
906
964
|
}
|
|
907
965
|
response_data = self.api_client.call_api(
|
|
908
966
|
*_param,
|
|
@@ -916,8 +974,9 @@ class CampaignApi:
|
|
|
916
974
|
|
|
917
975
|
|
|
918
976
|
@validate_call
|
|
919
|
-
def
|
|
977
|
+
def campaign_campaign_id_pause_post_without_preload_content(
|
|
920
978
|
self,
|
|
979
|
+
campaign_id: Annotated[StrictStr, Field(description="id of the campaign that should be paused")],
|
|
921
980
|
_request_timeout: Union[
|
|
922
981
|
None,
|
|
923
982
|
Annotated[StrictFloat, Field(gt=0)],
|
|
@@ -931,9 +990,11 @@ class CampaignApi:
|
|
|
931
990
|
_headers: Optional[Dict[StrictStr, Any]] = None,
|
|
932
991
|
_host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
|
|
933
992
|
) -> RESTResponseType:
|
|
934
|
-
"""
|
|
993
|
+
"""Pauses a campaign.
|
|
935
994
|
|
|
936
995
|
|
|
996
|
+
:param campaign_id: id of the campaign that should be paused (required)
|
|
997
|
+
:type campaign_id: str
|
|
937
998
|
:param _request_timeout: timeout setting for this request. If one
|
|
938
999
|
number provided, it will be total request
|
|
939
1000
|
timeout. It can also be a pair (tuple) of
|
|
@@ -956,7 +1017,8 @@ class CampaignApi:
|
|
|
956
1017
|
:return: Returns the result object.
|
|
957
1018
|
""" # noqa: E501
|
|
958
1019
|
|
|
959
|
-
_param = self.
|
|
1020
|
+
_param = self._campaign_campaign_id_pause_post_serialize(
|
|
1021
|
+
campaign_id=campaign_id,
|
|
960
1022
|
_request_auth=_request_auth,
|
|
961
1023
|
_content_type=_content_type,
|
|
962
1024
|
_headers=_headers,
|
|
@@ -964,7 +1026,7 @@ class CampaignApi:
|
|
|
964
1026
|
)
|
|
965
1027
|
|
|
966
1028
|
_response_types_map: Dict[str, Optional[str]] = {
|
|
967
|
-
'
|
|
1029
|
+
'204': None,
|
|
968
1030
|
}
|
|
969
1031
|
response_data = self.api_client.call_api(
|
|
970
1032
|
*_param,
|
|
@@ -973,8 +1035,9 @@ class CampaignApi:
|
|
|
973
1035
|
return response_data.response
|
|
974
1036
|
|
|
975
1037
|
|
|
976
|
-
def
|
|
1038
|
+
def _campaign_campaign_id_pause_post_serialize(
|
|
977
1039
|
self,
|
|
1040
|
+
campaign_id,
|
|
978
1041
|
_request_auth,
|
|
979
1042
|
_content_type,
|
|
980
1043
|
_headers,
|
|
@@ -996,6 +1059,8 @@ class CampaignApi:
|
|
|
996
1059
|
_body_params: Optional[bytes] = None
|
|
997
1060
|
|
|
998
1061
|
# process the path parameters
|
|
1062
|
+
if campaign_id is not None:
|
|
1063
|
+
_path_params['campaignId'] = campaign_id
|
|
999
1064
|
# process the query parameters
|
|
1000
1065
|
# process the header parameters
|
|
1001
1066
|
# process the form parameters
|
|
@@ -1006,13 +1071,14 @@ class CampaignApi:
|
|
|
1006
1071
|
|
|
1007
1072
|
# authentication setting
|
|
1008
1073
|
_auth_settings: List[str] = [
|
|
1009
|
-
'
|
|
1010
|
-
'
|
|
1074
|
+
'OAuth2',
|
|
1075
|
+
'OpenIdConnect',
|
|
1076
|
+
'Bearer'
|
|
1011
1077
|
]
|
|
1012
1078
|
|
|
1013
1079
|
return self.api_client.param_serialize(
|
|
1014
|
-
method='
|
|
1015
|
-
resource_path='/campaign/
|
|
1080
|
+
method='POST',
|
|
1081
|
+
resource_path='/campaign/{campaignId}/pause',
|
|
1016
1082
|
path_params=_path_params,
|
|
1017
1083
|
query_params=_query_params,
|
|
1018
1084
|
header_params=_header_params,
|
|
@@ -1029,9 +1095,9 @@ class CampaignApi:
|
|
|
1029
1095
|
|
|
1030
1096
|
|
|
1031
1097
|
@validate_call
|
|
1032
|
-
def
|
|
1098
|
+
def campaign_campaign_id_resume_post(
|
|
1033
1099
|
self,
|
|
1034
|
-
campaign_id: Annotated[
|
|
1100
|
+
campaign_id: Annotated[StrictStr, Field(description="id of the campaign that should be paused")],
|
|
1035
1101
|
_request_timeout: Union[
|
|
1036
1102
|
None,
|
|
1037
1103
|
Annotated[StrictFloat, Field(gt=0)],
|
|
@@ -1045,10 +1111,10 @@ class CampaignApi:
|
|
|
1045
1111
|
_headers: Optional[Dict[StrictStr, Any]] = None,
|
|
1046
1112
|
_host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
|
|
1047
1113
|
) -> None:
|
|
1048
|
-
"""
|
|
1114
|
+
"""Resumes a campaign.
|
|
1049
1115
|
|
|
1050
1116
|
|
|
1051
|
-
:param campaign_id: id of the campaign that should be paused
|
|
1117
|
+
:param campaign_id: id of the campaign that should be paused (required)
|
|
1052
1118
|
:type campaign_id: str
|
|
1053
1119
|
:param _request_timeout: timeout setting for this request. If one
|
|
1054
1120
|
number provided, it will be total request
|
|
@@ -1071,9 +1137,8 @@ class CampaignApi:
|
|
|
1071
1137
|
:type _host_index: int, optional
|
|
1072
1138
|
:return: Returns the result object.
|
|
1073
1139
|
""" # noqa: E501
|
|
1074
|
-
warnings.warn("POST /campaign/pause is deprecated.", DeprecationWarning)
|
|
1075
1140
|
|
|
1076
|
-
_param = self.
|
|
1141
|
+
_param = self._campaign_campaign_id_resume_post_serialize(
|
|
1077
1142
|
campaign_id=campaign_id,
|
|
1078
1143
|
_request_auth=_request_auth,
|
|
1079
1144
|
_content_type=_content_type,
|
|
@@ -1082,7 +1147,7 @@ class CampaignApi:
|
|
|
1082
1147
|
)
|
|
1083
1148
|
|
|
1084
1149
|
_response_types_map: Dict[str, Optional[str]] = {
|
|
1085
|
-
'
|
|
1150
|
+
'204': None,
|
|
1086
1151
|
}
|
|
1087
1152
|
response_data = self.api_client.call_api(
|
|
1088
1153
|
*_param,
|
|
@@ -1096,9 +1161,9 @@ class CampaignApi:
|
|
|
1096
1161
|
|
|
1097
1162
|
|
|
1098
1163
|
@validate_call
|
|
1099
|
-
def
|
|
1164
|
+
def campaign_campaign_id_resume_post_with_http_info(
|
|
1100
1165
|
self,
|
|
1101
|
-
campaign_id: Annotated[
|
|
1166
|
+
campaign_id: Annotated[StrictStr, Field(description="id of the campaign that should be paused")],
|
|
1102
1167
|
_request_timeout: Union[
|
|
1103
1168
|
None,
|
|
1104
1169
|
Annotated[StrictFloat, Field(gt=0)],
|
|
@@ -1112,10 +1177,10 @@ class CampaignApi:
|
|
|
1112
1177
|
_headers: Optional[Dict[StrictStr, Any]] = None,
|
|
1113
1178
|
_host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
|
|
1114
1179
|
) -> ApiResponse[None]:
|
|
1115
|
-
"""
|
|
1180
|
+
"""Resumes a campaign.
|
|
1116
1181
|
|
|
1117
1182
|
|
|
1118
|
-
:param campaign_id: id of the campaign that should be paused
|
|
1183
|
+
:param campaign_id: id of the campaign that should be paused (required)
|
|
1119
1184
|
:type campaign_id: str
|
|
1120
1185
|
:param _request_timeout: timeout setting for this request. If one
|
|
1121
1186
|
number provided, it will be total request
|
|
@@ -1138,9 +1203,8 @@ class CampaignApi:
|
|
|
1138
1203
|
:type _host_index: int, optional
|
|
1139
1204
|
:return: Returns the result object.
|
|
1140
1205
|
""" # noqa: E501
|
|
1141
|
-
warnings.warn("POST /campaign/pause is deprecated.", DeprecationWarning)
|
|
1142
1206
|
|
|
1143
|
-
_param = self.
|
|
1207
|
+
_param = self._campaign_campaign_id_resume_post_serialize(
|
|
1144
1208
|
campaign_id=campaign_id,
|
|
1145
1209
|
_request_auth=_request_auth,
|
|
1146
1210
|
_content_type=_content_type,
|
|
@@ -1149,7 +1213,7 @@ class CampaignApi:
|
|
|
1149
1213
|
)
|
|
1150
1214
|
|
|
1151
1215
|
_response_types_map: Dict[str, Optional[str]] = {
|
|
1152
|
-
'
|
|
1216
|
+
'204': None,
|
|
1153
1217
|
}
|
|
1154
1218
|
response_data = self.api_client.call_api(
|
|
1155
1219
|
*_param,
|
|
@@ -1163,9 +1227,9 @@ class CampaignApi:
|
|
|
1163
1227
|
|
|
1164
1228
|
|
|
1165
1229
|
@validate_call
|
|
1166
|
-
def
|
|
1230
|
+
def campaign_campaign_id_resume_post_without_preload_content(
|
|
1167
1231
|
self,
|
|
1168
|
-
campaign_id: Annotated[
|
|
1232
|
+
campaign_id: Annotated[StrictStr, Field(description="id of the campaign that should be paused")],
|
|
1169
1233
|
_request_timeout: Union[
|
|
1170
1234
|
None,
|
|
1171
1235
|
Annotated[StrictFloat, Field(gt=0)],
|
|
@@ -1179,10 +1243,10 @@ class CampaignApi:
|
|
|
1179
1243
|
_headers: Optional[Dict[StrictStr, Any]] = None,
|
|
1180
1244
|
_host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
|
|
1181
1245
|
) -> RESTResponseType:
|
|
1182
|
-
"""
|
|
1246
|
+
"""Resumes a campaign.
|
|
1183
1247
|
|
|
1184
1248
|
|
|
1185
|
-
:param campaign_id: id of the campaign that should be paused
|
|
1249
|
+
:param campaign_id: id of the campaign that should be paused (required)
|
|
1186
1250
|
:type campaign_id: str
|
|
1187
1251
|
:param _request_timeout: timeout setting for this request. If one
|
|
1188
1252
|
number provided, it will be total request
|
|
@@ -1205,9 +1269,8 @@ class CampaignApi:
|
|
|
1205
1269
|
:type _host_index: int, optional
|
|
1206
1270
|
:return: Returns the result object.
|
|
1207
1271
|
""" # noqa: E501
|
|
1208
|
-
warnings.warn("POST /campaign/pause is deprecated.", DeprecationWarning)
|
|
1209
1272
|
|
|
1210
|
-
_param = self.
|
|
1273
|
+
_param = self._campaign_campaign_id_resume_post_serialize(
|
|
1211
1274
|
campaign_id=campaign_id,
|
|
1212
1275
|
_request_auth=_request_auth,
|
|
1213
1276
|
_content_type=_content_type,
|
|
@@ -1216,7 +1279,7 @@ class CampaignApi:
|
|
|
1216
1279
|
)
|
|
1217
1280
|
|
|
1218
1281
|
_response_types_map: Dict[str, Optional[str]] = {
|
|
1219
|
-
'
|
|
1282
|
+
'204': None,
|
|
1220
1283
|
}
|
|
1221
1284
|
response_data = self.api_client.call_api(
|
|
1222
1285
|
*_param,
|
|
@@ -1225,7 +1288,7 @@ class CampaignApi:
|
|
|
1225
1288
|
return response_data.response
|
|
1226
1289
|
|
|
1227
1290
|
|
|
1228
|
-
def
|
|
1291
|
+
def _campaign_campaign_id_resume_post_serialize(
|
|
1229
1292
|
self,
|
|
1230
1293
|
campaign_id,
|
|
1231
1294
|
_request_auth,
|
|
@@ -1249,293 +1312,26 @@ class CampaignApi:
|
|
|
1249
1312
|
_body_params: Optional[bytes] = None
|
|
1250
1313
|
|
|
1251
1314
|
# process the path parameters
|
|
1252
|
-
# process the query parameters
|
|
1253
1315
|
if campaign_id is not None:
|
|
1254
|
-
|
|
1255
|
-
_query_params.append(('campaignId', campaign_id))
|
|
1256
|
-
|
|
1257
|
-
# process the header parameters
|
|
1258
|
-
# process the form parameters
|
|
1259
|
-
# process the body parameter
|
|
1260
|
-
|
|
1261
|
-
|
|
1262
|
-
|
|
1263
|
-
|
|
1264
|
-
# authentication setting
|
|
1265
|
-
_auth_settings: List[str] = [
|
|
1266
|
-
'bearer',
|
|
1267
|
-
'oauth2'
|
|
1268
|
-
]
|
|
1269
|
-
|
|
1270
|
-
return self.api_client.param_serialize(
|
|
1271
|
-
method='POST',
|
|
1272
|
-
resource_path='/campaign/pause',
|
|
1273
|
-
path_params=_path_params,
|
|
1274
|
-
query_params=_query_params,
|
|
1275
|
-
header_params=_header_params,
|
|
1276
|
-
body=_body_params,
|
|
1277
|
-
post_params=_form_params,
|
|
1278
|
-
files=_files,
|
|
1279
|
-
auth_settings=_auth_settings,
|
|
1280
|
-
collection_formats=_collection_formats,
|
|
1281
|
-
_host=_host,
|
|
1282
|
-
_request_auth=_request_auth
|
|
1283
|
-
)
|
|
1284
|
-
|
|
1285
|
-
|
|
1286
|
-
|
|
1287
|
-
|
|
1288
|
-
@validate_call
|
|
1289
|
-
def campaign_query_get(
|
|
1290
|
-
self,
|
|
1291
|
-
request: Annotated[Optional[QueryModel], Field(description="The parameters for filtering, paging, and sorting")] = None,
|
|
1292
|
-
_request_timeout: Union[
|
|
1293
|
-
None,
|
|
1294
|
-
Annotated[StrictFloat, Field(gt=0)],
|
|
1295
|
-
Tuple[
|
|
1296
|
-
Annotated[StrictFloat, Field(gt=0)],
|
|
1297
|
-
Annotated[StrictFloat, Field(gt=0)]
|
|
1298
|
-
]
|
|
1299
|
-
] = None,
|
|
1300
|
-
_request_auth: Optional[Dict[StrictStr, Any]] = None,
|
|
1301
|
-
_content_type: Optional[StrictStr] = None,
|
|
1302
|
-
_headers: Optional[Dict[StrictStr, Any]] = None,
|
|
1303
|
-
_host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
|
|
1304
|
-
) -> CampaignQueryResultPagedResult:
|
|
1305
|
-
"""(Deprecated) Queries orders based on a filter, page, and sort criteria.
|
|
1306
|
-
|
|
1307
|
-
|
|
1308
|
-
:param request: The parameters for filtering, paging, and sorting
|
|
1309
|
-
:type request: QueryModel
|
|
1310
|
-
:param _request_timeout: timeout setting for this request. If one
|
|
1311
|
-
number provided, it will be total request
|
|
1312
|
-
timeout. It can also be a pair (tuple) of
|
|
1313
|
-
(connection, read) timeouts.
|
|
1314
|
-
:type _request_timeout: int, tuple(int, int), optional
|
|
1315
|
-
:param _request_auth: set to override the auth_settings for an a single
|
|
1316
|
-
request; this effectively ignores the
|
|
1317
|
-
authentication in the spec for a single request.
|
|
1318
|
-
:type _request_auth: dict, optional
|
|
1319
|
-
:param _content_type: force content-type for the request.
|
|
1320
|
-
:type _content_type: str, Optional
|
|
1321
|
-
:param _headers: set to override the headers for a single
|
|
1322
|
-
request; this effectively ignores the headers
|
|
1323
|
-
in the spec for a single request.
|
|
1324
|
-
:type _headers: dict, optional
|
|
1325
|
-
:param _host_index: set to override the host_index for a single
|
|
1326
|
-
request; this effectively ignores the host_index
|
|
1327
|
-
in the spec for a single request.
|
|
1328
|
-
:type _host_index: int, optional
|
|
1329
|
-
:return: Returns the result object.
|
|
1330
|
-
""" # noqa: E501
|
|
1331
|
-
warnings.warn("GET /campaign/query is deprecated.", DeprecationWarning)
|
|
1332
|
-
|
|
1333
|
-
_param = self._campaign_query_get_serialize(
|
|
1334
|
-
request=request,
|
|
1335
|
-
_request_auth=_request_auth,
|
|
1336
|
-
_content_type=_content_type,
|
|
1337
|
-
_headers=_headers,
|
|
1338
|
-
_host_index=_host_index
|
|
1339
|
-
)
|
|
1340
|
-
|
|
1341
|
-
_response_types_map: Dict[str, Optional[str]] = {
|
|
1342
|
-
'200': "CampaignQueryResultPagedResult",
|
|
1343
|
-
}
|
|
1344
|
-
response_data = self.api_client.call_api(
|
|
1345
|
-
*_param,
|
|
1346
|
-
_request_timeout=_request_timeout
|
|
1347
|
-
)
|
|
1348
|
-
response_data.read()
|
|
1349
|
-
return self.api_client.response_deserialize(
|
|
1350
|
-
response_data=response_data,
|
|
1351
|
-
response_types_map=_response_types_map,
|
|
1352
|
-
).data
|
|
1353
|
-
|
|
1354
|
-
|
|
1355
|
-
@validate_call
|
|
1356
|
-
def campaign_query_get_with_http_info(
|
|
1357
|
-
self,
|
|
1358
|
-
request: Annotated[Optional[QueryModel], Field(description="The parameters for filtering, paging, and sorting")] = None,
|
|
1359
|
-
_request_timeout: Union[
|
|
1360
|
-
None,
|
|
1361
|
-
Annotated[StrictFloat, Field(gt=0)],
|
|
1362
|
-
Tuple[
|
|
1363
|
-
Annotated[StrictFloat, Field(gt=0)],
|
|
1364
|
-
Annotated[StrictFloat, Field(gt=0)]
|
|
1365
|
-
]
|
|
1366
|
-
] = None,
|
|
1367
|
-
_request_auth: Optional[Dict[StrictStr, Any]] = None,
|
|
1368
|
-
_content_type: Optional[StrictStr] = None,
|
|
1369
|
-
_headers: Optional[Dict[StrictStr, Any]] = None,
|
|
1370
|
-
_host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
|
|
1371
|
-
) -> ApiResponse[CampaignQueryResultPagedResult]:
|
|
1372
|
-
"""(Deprecated) Queries orders based on a filter, page, and sort criteria.
|
|
1373
|
-
|
|
1374
|
-
|
|
1375
|
-
:param request: The parameters for filtering, paging, and sorting
|
|
1376
|
-
:type request: QueryModel
|
|
1377
|
-
:param _request_timeout: timeout setting for this request. If one
|
|
1378
|
-
number provided, it will be total request
|
|
1379
|
-
timeout. It can also be a pair (tuple) of
|
|
1380
|
-
(connection, read) timeouts.
|
|
1381
|
-
:type _request_timeout: int, tuple(int, int), optional
|
|
1382
|
-
:param _request_auth: set to override the auth_settings for an a single
|
|
1383
|
-
request; this effectively ignores the
|
|
1384
|
-
authentication in the spec for a single request.
|
|
1385
|
-
:type _request_auth: dict, optional
|
|
1386
|
-
:param _content_type: force content-type for the request.
|
|
1387
|
-
:type _content_type: str, Optional
|
|
1388
|
-
:param _headers: set to override the headers for a single
|
|
1389
|
-
request; this effectively ignores the headers
|
|
1390
|
-
in the spec for a single request.
|
|
1391
|
-
:type _headers: dict, optional
|
|
1392
|
-
:param _host_index: set to override the host_index for a single
|
|
1393
|
-
request; this effectively ignores the host_index
|
|
1394
|
-
in the spec for a single request.
|
|
1395
|
-
:type _host_index: int, optional
|
|
1396
|
-
:return: Returns the result object.
|
|
1397
|
-
""" # noqa: E501
|
|
1398
|
-
warnings.warn("GET /campaign/query is deprecated.", DeprecationWarning)
|
|
1399
|
-
|
|
1400
|
-
_param = self._campaign_query_get_serialize(
|
|
1401
|
-
request=request,
|
|
1402
|
-
_request_auth=_request_auth,
|
|
1403
|
-
_content_type=_content_type,
|
|
1404
|
-
_headers=_headers,
|
|
1405
|
-
_host_index=_host_index
|
|
1406
|
-
)
|
|
1407
|
-
|
|
1408
|
-
_response_types_map: Dict[str, Optional[str]] = {
|
|
1409
|
-
'200': "CampaignQueryResultPagedResult",
|
|
1410
|
-
}
|
|
1411
|
-
response_data = self.api_client.call_api(
|
|
1412
|
-
*_param,
|
|
1413
|
-
_request_timeout=_request_timeout
|
|
1414
|
-
)
|
|
1415
|
-
response_data.read()
|
|
1416
|
-
return self.api_client.response_deserialize(
|
|
1417
|
-
response_data=response_data,
|
|
1418
|
-
response_types_map=_response_types_map,
|
|
1419
|
-
)
|
|
1420
|
-
|
|
1421
|
-
|
|
1422
|
-
@validate_call
|
|
1423
|
-
def campaign_query_get_without_preload_content(
|
|
1424
|
-
self,
|
|
1425
|
-
request: Annotated[Optional[QueryModel], Field(description="The parameters for filtering, paging, and sorting")] = None,
|
|
1426
|
-
_request_timeout: Union[
|
|
1427
|
-
None,
|
|
1428
|
-
Annotated[StrictFloat, Field(gt=0)],
|
|
1429
|
-
Tuple[
|
|
1430
|
-
Annotated[StrictFloat, Field(gt=0)],
|
|
1431
|
-
Annotated[StrictFloat, Field(gt=0)]
|
|
1432
|
-
]
|
|
1433
|
-
] = None,
|
|
1434
|
-
_request_auth: Optional[Dict[StrictStr, Any]] = None,
|
|
1435
|
-
_content_type: Optional[StrictStr] = None,
|
|
1436
|
-
_headers: Optional[Dict[StrictStr, Any]] = None,
|
|
1437
|
-
_host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
|
|
1438
|
-
) -> RESTResponseType:
|
|
1439
|
-
"""(Deprecated) Queries orders based on a filter, page, and sort criteria.
|
|
1440
|
-
|
|
1441
|
-
|
|
1442
|
-
:param request: The parameters for filtering, paging, and sorting
|
|
1443
|
-
:type request: QueryModel
|
|
1444
|
-
:param _request_timeout: timeout setting for this request. If one
|
|
1445
|
-
number provided, it will be total request
|
|
1446
|
-
timeout. It can also be a pair (tuple) of
|
|
1447
|
-
(connection, read) timeouts.
|
|
1448
|
-
:type _request_timeout: int, tuple(int, int), optional
|
|
1449
|
-
:param _request_auth: set to override the auth_settings for an a single
|
|
1450
|
-
request; this effectively ignores the
|
|
1451
|
-
authentication in the spec for a single request.
|
|
1452
|
-
:type _request_auth: dict, optional
|
|
1453
|
-
:param _content_type: force content-type for the request.
|
|
1454
|
-
:type _content_type: str, Optional
|
|
1455
|
-
:param _headers: set to override the headers for a single
|
|
1456
|
-
request; this effectively ignores the headers
|
|
1457
|
-
in the spec for a single request.
|
|
1458
|
-
:type _headers: dict, optional
|
|
1459
|
-
:param _host_index: set to override the host_index for a single
|
|
1460
|
-
request; this effectively ignores the host_index
|
|
1461
|
-
in the spec for a single request.
|
|
1462
|
-
:type _host_index: int, optional
|
|
1463
|
-
:return: Returns the result object.
|
|
1464
|
-
""" # noqa: E501
|
|
1465
|
-
warnings.warn("GET /campaign/query is deprecated.", DeprecationWarning)
|
|
1466
|
-
|
|
1467
|
-
_param = self._campaign_query_get_serialize(
|
|
1468
|
-
request=request,
|
|
1469
|
-
_request_auth=_request_auth,
|
|
1470
|
-
_content_type=_content_type,
|
|
1471
|
-
_headers=_headers,
|
|
1472
|
-
_host_index=_host_index
|
|
1473
|
-
)
|
|
1474
|
-
|
|
1475
|
-
_response_types_map: Dict[str, Optional[str]] = {
|
|
1476
|
-
'200': "CampaignQueryResultPagedResult",
|
|
1477
|
-
}
|
|
1478
|
-
response_data = self.api_client.call_api(
|
|
1479
|
-
*_param,
|
|
1480
|
-
_request_timeout=_request_timeout
|
|
1481
|
-
)
|
|
1482
|
-
return response_data.response
|
|
1483
|
-
|
|
1484
|
-
|
|
1485
|
-
def _campaign_query_get_serialize(
|
|
1486
|
-
self,
|
|
1487
|
-
request,
|
|
1488
|
-
_request_auth,
|
|
1489
|
-
_content_type,
|
|
1490
|
-
_headers,
|
|
1491
|
-
_host_index,
|
|
1492
|
-
) -> RequestSerialized:
|
|
1493
|
-
|
|
1494
|
-
_host = None
|
|
1495
|
-
|
|
1496
|
-
_collection_formats: Dict[str, str] = {
|
|
1497
|
-
}
|
|
1498
|
-
|
|
1499
|
-
_path_params: Dict[str, str] = {}
|
|
1500
|
-
_query_params: List[Tuple[str, str]] = []
|
|
1501
|
-
_header_params: Dict[str, Optional[str]] = _headers or {}
|
|
1502
|
-
_form_params: List[Tuple[str, str]] = []
|
|
1503
|
-
_files: Dict[
|
|
1504
|
-
str, Union[str, bytes, List[str], List[bytes], List[Tuple[str, bytes]]]
|
|
1505
|
-
] = {}
|
|
1506
|
-
_body_params: Optional[bytes] = None
|
|
1507
|
-
|
|
1508
|
-
# process the path parameters
|
|
1316
|
+
_path_params['campaignId'] = campaign_id
|
|
1509
1317
|
# process the query parameters
|
|
1510
|
-
if request is not None:
|
|
1511
|
-
|
|
1512
|
-
_query_params.append(('request', request))
|
|
1513
|
-
|
|
1514
1318
|
# process the header parameters
|
|
1515
1319
|
# process the form parameters
|
|
1516
1320
|
# process the body parameter
|
|
1517
1321
|
|
|
1518
1322
|
|
|
1519
|
-
# set the HTTP header `Accept`
|
|
1520
|
-
if 'Accept' not in _header_params:
|
|
1521
|
-
_header_params['Accept'] = self.api_client.select_header_accept(
|
|
1522
|
-
[
|
|
1523
|
-
'text/plain',
|
|
1524
|
-
'application/json',
|
|
1525
|
-
'text/json'
|
|
1526
|
-
]
|
|
1527
|
-
)
|
|
1528
1323
|
|
|
1529
1324
|
|
|
1530
1325
|
# authentication setting
|
|
1531
1326
|
_auth_settings: List[str] = [
|
|
1532
|
-
'
|
|
1533
|
-
'
|
|
1327
|
+
'OAuth2',
|
|
1328
|
+
'OpenIdConnect',
|
|
1329
|
+
'Bearer'
|
|
1534
1330
|
]
|
|
1535
1331
|
|
|
1536
1332
|
return self.api_client.param_serialize(
|
|
1537
|
-
method='
|
|
1538
|
-
resource_path='/campaign/
|
|
1333
|
+
method='POST',
|
|
1334
|
+
resource_path='/campaign/{campaignId}/resume',
|
|
1539
1335
|
path_params=_path_params,
|
|
1540
1336
|
query_params=_query_params,
|
|
1541
1337
|
header_params=_header_params,
|
|
@@ -1552,9 +1348,8 @@ class CampaignApi:
|
|
|
1552
1348
|
|
|
1553
1349
|
|
|
1554
1350
|
@validate_call
|
|
1555
|
-
def
|
|
1351
|
+
def campaign_monitor_get(
|
|
1556
1352
|
self,
|
|
1557
|
-
campaign_id: Annotated[Optional[StrictStr], Field(description="id of the campaign that should be paused")] = None,
|
|
1558
1353
|
_request_timeout: Union[
|
|
1559
1354
|
None,
|
|
1560
1355
|
Annotated[StrictFloat, Field(gt=0)],
|
|
@@ -1568,11 +1363,9 @@ class CampaignApi:
|
|
|
1568
1363
|
_headers: Optional[Dict[StrictStr, Any]] = None,
|
|
1569
1364
|
_host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
|
|
1570
1365
|
) -> None:
|
|
1571
|
-
"""
|
|
1366
|
+
"""The monitor endpoint is used to monitor the health of the service
|
|
1572
1367
|
|
|
1573
1368
|
|
|
1574
|
-
:param campaign_id: id of the campaign that should be paused
|
|
1575
|
-
:type campaign_id: str
|
|
1576
1369
|
:param _request_timeout: timeout setting for this request. If one
|
|
1577
1370
|
number provided, it will be total request
|
|
1578
1371
|
timeout. It can also be a pair (tuple) of
|
|
@@ -1594,10 +1387,8 @@ class CampaignApi:
|
|
|
1594
1387
|
:type _host_index: int, optional
|
|
1595
1388
|
:return: Returns the result object.
|
|
1596
1389
|
""" # noqa: E501
|
|
1597
|
-
warnings.warn("POST /campaign/resume is deprecated.", DeprecationWarning)
|
|
1598
1390
|
|
|
1599
|
-
_param = self.
|
|
1600
|
-
campaign_id=campaign_id,
|
|
1391
|
+
_param = self._campaign_monitor_get_serialize(
|
|
1601
1392
|
_request_auth=_request_auth,
|
|
1602
1393
|
_content_type=_content_type,
|
|
1603
1394
|
_headers=_headers,
|
|
@@ -1619,9 +1410,8 @@ class CampaignApi:
|
|
|
1619
1410
|
|
|
1620
1411
|
|
|
1621
1412
|
@validate_call
|
|
1622
|
-
def
|
|
1413
|
+
def campaign_monitor_get_with_http_info(
|
|
1623
1414
|
self,
|
|
1624
|
-
campaign_id: Annotated[Optional[StrictStr], Field(description="id of the campaign that should be paused")] = None,
|
|
1625
1415
|
_request_timeout: Union[
|
|
1626
1416
|
None,
|
|
1627
1417
|
Annotated[StrictFloat, Field(gt=0)],
|
|
@@ -1635,11 +1425,9 @@ class CampaignApi:
|
|
|
1635
1425
|
_headers: Optional[Dict[StrictStr, Any]] = None,
|
|
1636
1426
|
_host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
|
|
1637
1427
|
) -> ApiResponse[None]:
|
|
1638
|
-
"""
|
|
1428
|
+
"""The monitor endpoint is used to monitor the health of the service
|
|
1639
1429
|
|
|
1640
1430
|
|
|
1641
|
-
:param campaign_id: id of the campaign that should be paused
|
|
1642
|
-
:type campaign_id: str
|
|
1643
1431
|
:param _request_timeout: timeout setting for this request. If one
|
|
1644
1432
|
number provided, it will be total request
|
|
1645
1433
|
timeout. It can also be a pair (tuple) of
|
|
@@ -1661,10 +1449,8 @@ class CampaignApi:
|
|
|
1661
1449
|
:type _host_index: int, optional
|
|
1662
1450
|
:return: Returns the result object.
|
|
1663
1451
|
""" # noqa: E501
|
|
1664
|
-
warnings.warn("POST /campaign/resume is deprecated.", DeprecationWarning)
|
|
1665
1452
|
|
|
1666
|
-
_param = self.
|
|
1667
|
-
campaign_id=campaign_id,
|
|
1453
|
+
_param = self._campaign_monitor_get_serialize(
|
|
1668
1454
|
_request_auth=_request_auth,
|
|
1669
1455
|
_content_type=_content_type,
|
|
1670
1456
|
_headers=_headers,
|
|
@@ -1686,9 +1472,8 @@ class CampaignApi:
|
|
|
1686
1472
|
|
|
1687
1473
|
|
|
1688
1474
|
@validate_call
|
|
1689
|
-
def
|
|
1475
|
+
def campaign_monitor_get_without_preload_content(
|
|
1690
1476
|
self,
|
|
1691
|
-
campaign_id: Annotated[Optional[StrictStr], Field(description="id of the campaign that should be paused")] = None,
|
|
1692
1477
|
_request_timeout: Union[
|
|
1693
1478
|
None,
|
|
1694
1479
|
Annotated[StrictFloat, Field(gt=0)],
|
|
@@ -1702,11 +1487,9 @@ class CampaignApi:
|
|
|
1702
1487
|
_headers: Optional[Dict[StrictStr, Any]] = None,
|
|
1703
1488
|
_host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
|
|
1704
1489
|
) -> RESTResponseType:
|
|
1705
|
-
"""
|
|
1490
|
+
"""The monitor endpoint is used to monitor the health of the service
|
|
1706
1491
|
|
|
1707
1492
|
|
|
1708
|
-
:param campaign_id: id of the campaign that should be paused
|
|
1709
|
-
:type campaign_id: str
|
|
1710
1493
|
:param _request_timeout: timeout setting for this request. If one
|
|
1711
1494
|
number provided, it will be total request
|
|
1712
1495
|
timeout. It can also be a pair (tuple) of
|
|
@@ -1728,10 +1511,8 @@ class CampaignApi:
|
|
|
1728
1511
|
:type _host_index: int, optional
|
|
1729
1512
|
:return: Returns the result object.
|
|
1730
1513
|
""" # noqa: E501
|
|
1731
|
-
warnings.warn("POST /campaign/resume is deprecated.", DeprecationWarning)
|
|
1732
1514
|
|
|
1733
|
-
_param = self.
|
|
1734
|
-
campaign_id=campaign_id,
|
|
1515
|
+
_param = self._campaign_monitor_get_serialize(
|
|
1735
1516
|
_request_auth=_request_auth,
|
|
1736
1517
|
_content_type=_content_type,
|
|
1737
1518
|
_headers=_headers,
|
|
@@ -1748,9 +1529,8 @@ class CampaignApi:
|
|
|
1748
1529
|
return response_data.response
|
|
1749
1530
|
|
|
1750
1531
|
|
|
1751
|
-
def
|
|
1532
|
+
def _campaign_monitor_get_serialize(
|
|
1752
1533
|
self,
|
|
1753
|
-
campaign_id,
|
|
1754
1534
|
_request_auth,
|
|
1755
1535
|
_content_type,
|
|
1756
1536
|
_headers,
|
|
@@ -1773,10 +1553,6 @@ class CampaignApi:
|
|
|
1773
1553
|
|
|
1774
1554
|
# process the path parameters
|
|
1775
1555
|
# process the query parameters
|
|
1776
|
-
if campaign_id is not None:
|
|
1777
|
-
|
|
1778
|
-
_query_params.append(('campaignId', campaign_id))
|
|
1779
|
-
|
|
1780
1556
|
# process the header parameters
|
|
1781
1557
|
# process the form parameters
|
|
1782
1558
|
# process the body parameter
|
|
@@ -1786,13 +1562,14 @@ class CampaignApi:
|
|
|
1786
1562
|
|
|
1787
1563
|
# authentication setting
|
|
1788
1564
|
_auth_settings: List[str] = [
|
|
1789
|
-
'
|
|
1790
|
-
'
|
|
1565
|
+
'OAuth2',
|
|
1566
|
+
'OpenIdConnect',
|
|
1567
|
+
'Bearer'
|
|
1791
1568
|
]
|
|
1792
1569
|
|
|
1793
1570
|
return self.api_client.param_serialize(
|
|
1794
|
-
method='
|
|
1795
|
-
resource_path='/campaign/
|
|
1571
|
+
method='GET',
|
|
1572
|
+
resource_path='/campaign/monitor',
|
|
1796
1573
|
path_params=_path_params,
|
|
1797
1574
|
query_params=_query_params,
|
|
1798
1575
|
header_params=_header_params,
|
|
@@ -1824,7 +1601,7 @@ class CampaignApi:
|
|
|
1824
1601
|
_content_type: Optional[StrictStr] = None,
|
|
1825
1602
|
_headers: Optional[Dict[StrictStr, Any]] = None,
|
|
1826
1603
|
_host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
|
|
1827
|
-
) ->
|
|
1604
|
+
) -> PagedResultOfCampaignQueryResult:
|
|
1828
1605
|
"""Queries orders based on a filter, page, and sort criteria.
|
|
1829
1606
|
|
|
1830
1607
|
|
|
@@ -1861,7 +1638,7 @@ class CampaignApi:
|
|
|
1861
1638
|
)
|
|
1862
1639
|
|
|
1863
1640
|
_response_types_map: Dict[str, Optional[str]] = {
|
|
1864
|
-
'200': "
|
|
1641
|
+
'200': "PagedResultOfCampaignQueryResult",
|
|
1865
1642
|
}
|
|
1866
1643
|
response_data = self.api_client.call_api(
|
|
1867
1644
|
*_param,
|
|
@@ -1890,7 +1667,7 @@ class CampaignApi:
|
|
|
1890
1667
|
_content_type: Optional[StrictStr] = None,
|
|
1891
1668
|
_headers: Optional[Dict[StrictStr, Any]] = None,
|
|
1892
1669
|
_host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
|
|
1893
|
-
) -> ApiResponse[
|
|
1670
|
+
) -> ApiResponse[PagedResultOfCampaignQueryResult]:
|
|
1894
1671
|
"""Queries orders based on a filter, page, and sort criteria.
|
|
1895
1672
|
|
|
1896
1673
|
|
|
@@ -1927,7 +1704,7 @@ class CampaignApi:
|
|
|
1927
1704
|
)
|
|
1928
1705
|
|
|
1929
1706
|
_response_types_map: Dict[str, Optional[str]] = {
|
|
1930
|
-
'200': "
|
|
1707
|
+
'200': "PagedResultOfCampaignQueryResult",
|
|
1931
1708
|
}
|
|
1932
1709
|
response_data = self.api_client.call_api(
|
|
1933
1710
|
*_param,
|
|
@@ -1993,7 +1770,7 @@ class CampaignApi:
|
|
|
1993
1770
|
)
|
|
1994
1771
|
|
|
1995
1772
|
_response_types_map: Dict[str, Optional[str]] = {
|
|
1996
|
-
'200': "
|
|
1773
|
+
'200': "PagedResultOfCampaignQueryResult",
|
|
1997
1774
|
}
|
|
1998
1775
|
response_data = self.api_client.call_api(
|
|
1999
1776
|
*_param,
|
|
@@ -2049,8 +1826,9 @@ class CampaignApi:
|
|
|
2049
1826
|
|
|
2050
1827
|
# authentication setting
|
|
2051
1828
|
_auth_settings: List[str] = [
|
|
2052
|
-
'
|
|
2053
|
-
'
|
|
1829
|
+
'OAuth2',
|
|
1830
|
+
'OpenIdConnect',
|
|
1831
|
+
'Bearer'
|
|
2054
1832
|
]
|
|
2055
1833
|
|
|
2056
1834
|
return self.api_client.param_serialize(
|