algolia 3.0.0.beta.7 → 3.0.0.beta.9
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/.github/workflows/release.yml +2 -0
- data/CHANGELOG.md +12 -0
- data/Gemfile.lock +3 -30
- data/Rakefile +0 -2
- data/algolia.gemspec +1 -1
- data/lib/algolia/api/abtesting_client.rb +52 -37
- data/lib/algolia/api/analytics_client.rb +415 -116
- data/lib/algolia/api/ingestion_client.rb +462 -182
- data/lib/algolia/api/insights_client.rb +45 -28
- data/lib/algolia/api/monitoring_client.rb +50 -44
- data/lib/algolia/api/personalization_client.rb +57 -32
- data/lib/algolia/api/query_suggestions_client.rb +59 -40
- data/lib/algolia/api/recommend_client.rb +70 -43
- data/lib/algolia/api/search_client.rb +461 -264
- data/lib/algolia/api/usage_client.rb +48 -28
- data/lib/algolia/api_client.rb +25 -24
- data/lib/algolia/api_error.rb +8 -8
- data/lib/algolia/configuration.rb +17 -6
- data/lib/algolia/error.rb +2 -2
- data/lib/algolia/logger_helper.rb +4 -4
- data/lib/algolia/models/abtesting/ab_test.rb +62 -37
- data/lib/algolia/models/abtesting/ab_test_configuration.rb +35 -20
- data/lib/algolia/models/abtesting/ab_test_response.rb +35 -20
- data/lib/algolia/models/abtesting/ab_tests_variant.rb +38 -23
- data/lib/algolia/models/abtesting/ab_tests_variant_search_params.rb +41 -26
- data/lib/algolia/models/abtesting/add_ab_tests_request.rb +38 -23
- data/lib/algolia/models/abtesting/add_ab_tests_variant.rb +33 -24
- data/lib/algolia/models/abtesting/currency.rb +32 -20
- data/lib/algolia/models/abtesting/custom_search_params.rb +33 -18
- data/lib/algolia/models/abtesting/effect.rb +2 -3
- data/lib/algolia/models/abtesting/empty_search.rb +33 -18
- data/lib/algolia/models/abtesting/error_base.rb +24 -13
- data/lib/algolia/models/abtesting/filter_effects.rb +34 -19
- data/lib/algolia/models/abtesting/filter_effects_empty_search.rb +34 -19
- data/lib/algolia/models/abtesting/filter_effects_outliers.rb +34 -19
- data/lib/algolia/models/abtesting/list_ab_tests_response.rb +37 -22
- data/lib/algolia/models/abtesting/minimum_detectable_effect.rb +37 -22
- data/lib/algolia/models/abtesting/outliers.rb +29 -17
- data/lib/algolia/models/abtesting/status.rb +2 -3
- data/lib/algolia/models/abtesting/variant.rb +83 -51
- data/lib/algolia/models/analytics/click_positions_inner.rb +39 -24
- data/lib/algolia/models/analytics/currencies_value.rb +34 -19
- data/lib/algolia/models/analytics/daily_add_to_cart_rates.rb +42 -27
- data/lib/algolia/models/analytics/daily_average_clicks.rb +40 -25
- data/lib/algolia/models/analytics/daily_click_through_rates.rb +42 -27
- data/lib/algolia/models/analytics/daily_conversion_rates.rb +42 -27
- data/lib/algolia/models/analytics/daily_no_click_rates.rb +41 -26
- data/lib/algolia/models/analytics/daily_no_results_rates.rb +39 -24
- data/lib/algolia/models/analytics/daily_purchase_rates.rb +40 -25
- data/lib/algolia/models/analytics/daily_revenue.rb +34 -19
- data/lib/algolia/models/analytics/daily_searches.rb +34 -19
- data/lib/algolia/models/analytics/daily_searches_no_clicks.rb +37 -22
- data/lib/algolia/models/analytics/daily_searches_no_results.rb +37 -22
- data/lib/algolia/models/analytics/daily_users.rb +34 -19
- data/lib/algolia/models/analytics/direction.rb +2 -3
- data/lib/algolia/models/analytics/error_base.rb +24 -13
- data/lib/algolia/models/analytics/get_add_to_cart_rate_response.rb +42 -27
- data/lib/algolia/models/analytics/get_average_click_position_response.rb +40 -25
- data/lib/algolia/models/analytics/get_click_positions_response.rb +36 -21
- data/lib/algolia/models/analytics/get_click_through_rate_response.rb +42 -27
- data/lib/algolia/models/analytics/get_conversion_rate_response.rb +42 -27
- data/lib/algolia/models/analytics/get_no_click_rate_response.rb +41 -26
- data/lib/algolia/models/analytics/get_no_results_rate_response.rb +39 -24
- data/lib/algolia/models/analytics/get_purchase_rate_response.rb +40 -25
- data/lib/algolia/models/analytics/get_revenue.rb +34 -19
- data/lib/algolia/models/analytics/get_searches_count_response.rb +34 -19
- data/lib/algolia/models/analytics/get_searches_no_clicks_response.rb +33 -18
- data/lib/algolia/models/analytics/get_searches_no_results_response.rb +33 -18
- data/lib/algolia/models/analytics/get_status_response.rb +35 -20
- data/lib/algolia/models/analytics/get_top_countries_response.rb +33 -18
- data/lib/algolia/models/analytics/get_top_filter_attribute.rb +34 -19
- data/lib/algolia/models/analytics/get_top_filter_attributes_response.rb +33 -18
- data/lib/algolia/models/analytics/get_top_filter_for_attribute.rb +36 -21
- data/lib/algolia/models/analytics/get_top_filter_for_attribute_response.rb +33 -18
- data/lib/algolia/models/analytics/get_top_filters_no_results_response.rb +35 -20
- data/lib/algolia/models/analytics/get_top_filters_no_results_value.rb +35 -20
- data/lib/algolia/models/analytics/get_top_filters_no_results_values.rb +34 -19
- data/lib/algolia/models/analytics/get_top_hits_response.rb +34 -25
- data/lib/algolia/models/analytics/get_top_searches_response.rb +34 -25
- data/lib/algolia/models/analytics/get_users_count_response.rb +34 -19
- data/lib/algolia/models/analytics/operator.rb +2 -3
- data/lib/algolia/models/analytics/order_by.rb +2 -3
- data/lib/algolia/models/analytics/top_country.rb +34 -19
- data/lib/algolia/models/analytics/top_hit.rb +30 -18
- data/lib/algolia/models/analytics/top_hit_with_analytics.rb +50 -35
- data/lib/algolia/models/analytics/top_hit_with_revenue_analytics.rb +77 -50
- data/lib/algolia/models/analytics/top_hits_response.rb +33 -18
- data/lib/algolia/models/analytics/top_hits_response_with_analytics.rb +33 -18
- data/lib/algolia/models/analytics/top_hits_response_with_revenue_analytics.rb +33 -18
- data/lib/algolia/models/analytics/top_search.rb +35 -20
- data/lib/algolia/models/analytics/top_search_with_analytics.rb +76 -44
- data/lib/algolia/models/analytics/top_search_with_revenue_analytics.rb +94 -58
- data/lib/algolia/models/analytics/top_searches_response.rb +33 -18
- data/lib/algolia/models/analytics/top_searches_response_with_analytics.rb +33 -18
- data/lib/algolia/models/analytics/top_searches_response_with_revenue_analytics.rb +33 -18
- data/lib/algolia/models/ingestion/action_type.rb +2 -3
- data/lib/algolia/models/ingestion/auth_algolia.rb +34 -19
- data/lib/algolia/models/ingestion/auth_algolia_insights.rb +34 -19
- data/lib/algolia/models/ingestion/auth_algolia_insights_partial.rb +34 -19
- data/lib/algolia/models/ingestion/auth_algolia_partial.rb +34 -19
- data/lib/algolia/models/ingestion/auth_api_key.rb +33 -18
- data/lib/algolia/models/ingestion/auth_api_key_partial.rb +33 -18
- data/lib/algolia/models/ingestion/auth_basic.rb +34 -19
- data/lib/algolia/models/ingestion/auth_basic_partial.rb +34 -19
- data/lib/algolia/models/ingestion/auth_google_service_account.rb +34 -19
- data/lib/algolia/models/ingestion/auth_google_service_account_partial.rb +34 -19
- data/lib/algolia/models/ingestion/auth_input.rb +37 -28
- data/lib/algolia/models/ingestion/auth_input_partial.rb +37 -28
- data/lib/algolia/models/ingestion/auth_o_auth.rb +36 -21
- data/lib/algolia/models/ingestion/auth_o_auth_partial.rb +36 -21
- data/lib/algolia/models/ingestion/authentication.rb +41 -26
- data/lib/algolia/models/ingestion/authentication_create.rb +38 -23
- data/lib/algolia/models/ingestion/authentication_create_response.rb +35 -20
- data/lib/algolia/models/ingestion/authentication_search.rb +33 -18
- data/lib/algolia/models/ingestion/authentication_sort_keys.rb +2 -3
- data/lib/algolia/models/ingestion/authentication_type.rb +2 -3
- data/lib/algolia/models/ingestion/authentication_update.rb +38 -23
- data/lib/algolia/models/ingestion/authentication_update_response.rb +35 -20
- data/lib/algolia/models/ingestion/big_commerce_channel.rb +34 -19
- data/lib/algolia/models/ingestion/big_commerce_metafield.rb +34 -19
- data/lib/algolia/models/ingestion/big_query_data_type.rb +2 -3
- data/lib/algolia/models/ingestion/commercetools_custom_fields.rb +39 -24
- data/lib/algolia/models/ingestion/delete_response.rb +33 -18
- data/lib/algolia/models/ingestion/destination.rb +39 -24
- data/lib/algolia/models/ingestion/destination_create.rb +36 -21
- data/lib/algolia/models/ingestion/destination_create_response.rb +35 -20
- data/lib/algolia/models/ingestion/destination_index_name.rb +35 -20
- data/lib/algolia/models/ingestion/destination_index_prefix.rb +33 -18
- data/lib/algolia/models/ingestion/destination_input.rb +33 -24
- data/lib/algolia/models/ingestion/destination_search.rb +33 -18
- data/lib/algolia/models/ingestion/destination_sort_keys.rb +2 -3
- data/lib/algolia/models/ingestion/destination_type.rb +2 -3
- data/lib/algolia/models/ingestion/destination_update.rb +36 -21
- data/lib/algolia/models/ingestion/destination_update_response.rb +35 -20
- data/lib/algolia/models/ingestion/docker_image_type.rb +2 -3
- data/lib/algolia/models/ingestion/docker_registry.rb +2 -3
- data/lib/algolia/models/ingestion/{on_demand_date_utils_input.rb → docker_streams_input.rb} +41 -49
- data/lib/algolia/models/ingestion/error_base.rb +24 -13
- data/lib/algolia/models/ingestion/event.rb +38 -26
- data/lib/algolia/models/ingestion/event_sort_keys.rb +2 -3
- data/lib/algolia/models/ingestion/event_status.rb +2 -3
- data/lib/algolia/models/ingestion/event_type.rb +2 -3
- data/lib/algolia/models/ingestion/list_authentications_response.rb +34 -19
- data/lib/algolia/models/ingestion/list_destinations_response.rb +34 -19
- data/lib/algolia/models/ingestion/list_events_response.rb +35 -20
- data/lib/algolia/models/ingestion/list_sources_response.rb +34 -19
- data/lib/algolia/models/ingestion/list_tasks_response.rb +34 -19
- data/lib/algolia/models/ingestion/list_transformations_response.rb +34 -19
- data/lib/algolia/models/ingestion/mapping_field_directive.rb +34 -19
- data/lib/algolia/models/ingestion/mapping_format_schema.rb +2 -3
- data/lib/algolia/models/ingestion/mapping_input.rb +34 -19
- data/lib/algolia/models/ingestion/mapping_kit_action.rb +36 -21
- data/lib/algolia/models/ingestion/mapping_type_csv.rb +2 -3
- data/lib/algolia/models/ingestion/method_type.rb +2 -3
- data/lib/algolia/models/ingestion/on_demand_trigger.rb +34 -19
- data/lib/algolia/models/ingestion/on_demand_trigger_input.rb +33 -18
- data/lib/algolia/models/ingestion/on_demand_trigger_type.rb +2 -3
- data/lib/algolia/models/ingestion/order_keys.rb +2 -3
- data/lib/algolia/models/ingestion/pagination.rb +45 -30
- data/lib/algolia/models/ingestion/platform.rb +2 -3
- data/lib/algolia/models/ingestion/platform_none.rb +2 -3
- data/lib/algolia/models/ingestion/platform_with_none.rb +33 -24
- data/lib/algolia/models/ingestion/record_type.rb +2 -3
- data/lib/algolia/models/ingestion/run.rb +59 -33
- data/lib/algolia/models/ingestion/run_list_response.rb +35 -20
- data/lib/algolia/models/ingestion/run_outcome.rb +2 -3
- data/lib/algolia/models/ingestion/run_progress.rb +34 -19
- data/lib/algolia/models/ingestion/run_reason_code.rb +2 -3
- data/lib/algolia/models/ingestion/run_response.rb +34 -19
- data/lib/algolia/models/ingestion/run_sort_keys.rb +2 -3
- data/lib/algolia/models/ingestion/run_status.rb +2 -3
- data/lib/algolia/models/ingestion/run_type.rb +2 -3
- data/lib/algolia/models/ingestion/schedule_trigger.rb +36 -21
- data/lib/algolia/models/ingestion/schedule_trigger_input.rb +34 -19
- data/lib/algolia/models/ingestion/schedule_trigger_type.rb +2 -3
- data/lib/algolia/models/ingestion/shopify_input.rb +34 -19
- data/lib/algolia/models/ingestion/shopify_market.rb +35 -20
- data/lib/algolia/models/ingestion/shopify_metafield.rb +35 -20
- data/lib/algolia/models/ingestion/sort_keys.rb +2 -3
- data/lib/algolia/models/ingestion/source.rb +35 -23
- data/lib/algolia/models/ingestion/source_big_commerce.rb +37 -22
- data/lib/algolia/models/ingestion/source_big_query.rb +39 -24
- data/lib/algolia/models/ingestion/source_commercetools.rb +38 -23
- data/lib/algolia/models/ingestion/source_create.rb +36 -21
- data/lib/algolia/models/ingestion/source_create_response.rb +35 -20
- data/lib/algolia/models/ingestion/source_csv.rb +43 -25
- data/lib/algolia/models/ingestion/source_docker.rb +37 -22
- data/lib/algolia/models/ingestion/source_ga4_big_query_export.rb +35 -20
- data/lib/algolia/models/ingestion/source_input.rb +39 -30
- data/lib/algolia/models/ingestion/source_json.rb +35 -20
- data/lib/algolia/models/ingestion/source_search.rb +33 -18
- data/lib/algolia/models/ingestion/source_shopify.rb +52 -29
- data/lib/algolia/models/ingestion/source_shopify_base.rb +33 -18
- data/lib/algolia/models/ingestion/source_sort_keys.rb +2 -3
- data/lib/algolia/models/ingestion/source_type.rb +2 -3
- data/lib/algolia/models/ingestion/source_update.rb +35 -20
- data/lib/algolia/models/ingestion/source_update_commercetools.rb +37 -22
- data/lib/algolia/models/ingestion/source_update_docker.rb +36 -21
- data/lib/algolia/models/ingestion/source_update_input.rb +38 -29
- data/lib/algolia/models/ingestion/source_update_response.rb +35 -20
- data/lib/algolia/models/ingestion/source_update_shopify.rb +48 -26
- data/lib/algolia/models/ingestion/source_watch_response.rb +36 -21
- data/lib/algolia/models/ingestion/{streaming_utils_input.rb → streaming_input.rb} +34 -19
- data/lib/algolia/models/ingestion/streaming_trigger.rb +33 -18
- data/lib/algolia/models/ingestion/streaming_trigger_type.rb +2 -3
- data/lib/algolia/models/ingestion/subscription_trigger.rb +33 -18
- data/lib/algolia/models/ingestion/subscription_trigger_type.rb +2 -3
- data/lib/algolia/models/ingestion/task.rb +55 -31
- data/lib/algolia/models/ingestion/task_create.rb +43 -28
- data/lib/algolia/models/ingestion/task_create_response.rb +34 -19
- data/lib/algolia/models/ingestion/task_create_trigger.rb +35 -26
- data/lib/algolia/models/ingestion/task_input.rb +34 -26
- data/lib/algolia/models/ingestion/task_search.rb +33 -18
- data/lib/algolia/models/ingestion/task_sort_keys.rb +2 -3
- data/lib/algolia/models/ingestion/task_update.rb +40 -25
- data/lib/algolia/models/ingestion/task_update_response.rb +34 -19
- data/lib/algolia/models/ingestion/transformation.rb +38 -25
- data/lib/algolia/models/ingestion/transformation_create.rb +35 -22
- data/lib/algolia/models/ingestion/transformation_create_response.rb +34 -19
- data/lib/algolia/models/ingestion/transformation_search.rb +33 -18
- data/lib/algolia/models/ingestion/transformation_try.rb +34 -19
- data/lib/algolia/models/ingestion/transformation_try_response.rb +34 -19
- data/lib/algolia/models/ingestion/transformation_try_response_error.rb +34 -19
- data/lib/algolia/models/ingestion/transformation_update_response.rb +34 -19
- data/lib/algolia/models/ingestion/trigger.rb +35 -26
- data/lib/algolia/models/ingestion/trigger_type.rb +2 -3
- data/lib/algolia/models/ingestion/trigger_update_input.rb +33 -18
- data/lib/algolia/models/ingestion/window.rb +30 -18
- data/lib/algolia/models/insights/add_to_cart_event.rb +2 -3
- data/lib/algolia/models/insights/added_to_cart_object_ids.rb +91 -46
- data/lib/algolia/models/insights/added_to_cart_object_ids_after_search.rb +99 -50
- data/lib/algolia/models/insights/click_event.rb +2 -3
- data/lib/algolia/models/insights/clicked_filters.rb +71 -38
- data/lib/algolia/models/insights/clicked_object_ids.rb +71 -38
- data/lib/algolia/models/insights/clicked_object_ids_after_search.rb +93 -47
- data/lib/algolia/models/insights/conversion_event.rb +2 -3
- data/lib/algolia/models/insights/converted_filters.rb +71 -38
- data/lib/algolia/models/insights/converted_object_ids.rb +71 -38
- data/lib/algolia/models/insights/converted_object_ids_after_search.rb +78 -42
- data/lib/algolia/models/insights/discount.rb +33 -24
- data/lib/algolia/models/insights/error_base.rb +24 -13
- data/lib/algolia/models/insights/events_items.rb +43 -34
- data/lib/algolia/models/insights/events_response.rb +34 -19
- data/lib/algolia/models/insights/insights_events.rb +36 -21
- data/lib/algolia/models/insights/object_data.rb +35 -20
- data/lib/algolia/models/insights/object_data_after_search.rb +42 -24
- data/lib/algolia/models/insights/price.rb +33 -24
- data/lib/algolia/models/insights/purchase_event.rb +2 -3
- data/lib/algolia/models/insights/purchased_object_ids.rb +91 -46
- data/lib/algolia/models/insights/purchased_object_ids_after_search.rb +91 -46
- data/lib/algolia/models/insights/value.rb +33 -24
- data/lib/algolia/models/insights/view_event.rb +2 -3
- data/lib/algolia/models/insights/viewed_filters.rb +71 -38
- data/lib/algolia/models/insights/viewed_object_ids.rb +71 -38
- data/lib/algolia/models/monitoring/error_base.rb +24 -13
- data/lib/algolia/models/monitoring/get_servers403_response.rb +33 -18
- data/lib/algolia/models/monitoring/incident.rb +30 -18
- data/lib/algolia/models/monitoring/incidents_inner.rb +34 -19
- data/lib/algolia/models/monitoring/incidents_response.rb +33 -18
- data/lib/algolia/models/monitoring/indexing_time_response.rb +33 -18
- data/lib/algolia/models/monitoring/indexing_time_response_metrics.rb +33 -18
- data/lib/algolia/models/monitoring/infrastructure_response.rb +33 -18
- data/lib/algolia/models/monitoring/infrastructure_response_metrics.rb +37 -22
- data/lib/algolia/models/monitoring/inventory_response.rb +33 -18
- data/lib/algolia/models/monitoring/latency_response.rb +33 -18
- data/lib/algolia/models/monitoring/latency_response_metrics.rb +33 -18
- data/lib/algolia/models/monitoring/metric.rb +2 -3
- data/lib/algolia/models/monitoring/period.rb +2 -3
- data/lib/algolia/models/monitoring/probes_metric.rb +34 -19
- data/lib/algolia/models/monitoring/region.rb +2 -3
- data/lib/algolia/models/monitoring/server.rb +35 -23
- data/lib/algolia/models/monitoring/server_status.rb +2 -3
- data/lib/algolia/models/monitoring/status.rb +2 -3
- data/lib/algolia/models/monitoring/status_response.rb +33 -18
- data/lib/algolia/models/monitoring/time_inner.rb +34 -19
- data/lib/algolia/models/monitoring/type.rb +2 -3
- data/lib/algolia/models/personalization/delete_user_profile_response.rb +34 -19
- data/lib/algolia/models/personalization/error_base.rb +24 -13
- data/lib/algolia/models/personalization/event_scoring.rb +35 -20
- data/lib/algolia/models/personalization/event_type.rb +2 -3
- data/lib/algolia/models/personalization/facet_scoring.rb +34 -19
- data/lib/algolia/models/personalization/get_user_token_response.rb +35 -20
- data/lib/algolia/models/personalization/personalization_strategy_params.rb +38 -23
- data/lib/algolia/models/personalization/set_personalization_strategy_response.rb +33 -18
- data/lib/algolia/models/query-suggestions/app_id.rb +29 -17
- data/lib/algolia/models/query-suggestions/base_query_suggestions_configuration_response.rb +22 -9
- data/lib/algolia/models/query-suggestions/base_query_suggestions_configuration_with_index.rb +22 -9
- data/lib/algolia/models/query-suggestions/base_response.rb +34 -19
- data/lib/algolia/models/query-suggestions/configuration.rb +44 -26
- data/lib/algolia/models/query-suggestions/configuration_response.rb +48 -30
- data/lib/algolia/models/query-suggestions/configuration_with_index.rb +46 -28
- data/lib/algolia/models/query-suggestions/error_base.rb +24 -13
- data/lib/algolia/models/query-suggestions/facet.rb +30 -18
- data/lib/algolia/models/query-suggestions/get_config_status200_response.rb +37 -22
- data/lib/algolia/models/query-suggestions/get_log_file200_response.rb +36 -21
- data/lib/algolia/models/query-suggestions/languages.rb +33 -24
- data/lib/algolia/models/query-suggestions/log_level.rb +2 -3
- data/lib/algolia/models/query-suggestions/query_suggestions_configuration.rb +34 -16
- data/lib/algolia/models/query-suggestions/query_suggestions_configuration_response.rb +34 -16
- data/lib/algolia/models/query-suggestions/query_suggestions_configuration_with_index.rb +34 -16
- data/lib/algolia/models/query-suggestions/source_index.rb +49 -34
- data/lib/algolia/models/recommend/advanced_syntax_features.rb +2 -3
- data/lib/algolia/models/recommend/alternatives_as_exact.rb +2 -3
- data/lib/algolia/models/recommend/around_precision.rb +33 -24
- data/lib/algolia/models/recommend/around_precision_from_value_inner.rb +34 -19
- data/lib/algolia/models/recommend/around_radius.rb +33 -24
- data/lib/algolia/models/recommend/around_radius_all.rb +2 -3
- data/lib/algolia/models/recommend/auto_facet_filter.rb +34 -19
- data/lib/algolia/models/recommend/base_recommend_request.rb +42 -27
- data/lib/algolia/models/recommend/base_search_params.rb +110 -63
- data/lib/algolia/models/recommend/base_search_params_without_query.rb +106 -60
- data/lib/algolia/models/recommend/base_search_response.rb +76 -121
- data/lib/algolia/models/recommend/bought_together_query.rb +46 -31
- data/lib/algolia/models/recommend/condition.rb +35 -20
- data/lib/algolia/models/recommend/consequence.rb +39 -24
- data/lib/algolia/models/recommend/deleted_at_response.rb +34 -19
- data/lib/algolia/models/recommend/distinct.rb +33 -24
- data/lib/algolia/models/recommend/error_base.rb +24 -13
- data/lib/algolia/models/recommend/exact_on_single_word_query.rb +2 -3
- data/lib/algolia/models/recommend/exhaustive.rb +37 -22
- data/lib/algolia/models/recommend/facet_filters.rb +33 -24
- data/lib/algolia/models/recommend/facet_ordering.rb +34 -19
- data/lib/algolia/models/recommend/facets.rb +29 -17
- data/lib/algolia/models/recommend/facets_stats.rb +36 -21
- data/lib/algolia/models/recommend/fallback_params.rb +207 -118
- data/lib/algolia/models/recommend/fbt_model.rb +2 -3
- data/lib/algolia/models/recommend/frequently_bought_together.rb +34 -19
- data/lib/algolia/models/recommend/get_recommend_task_response.rb +33 -18
- data/lib/algolia/models/recommend/get_recommendations_params.rb +33 -18
- data/lib/algolia/models/recommend/get_recommendations_response.rb +33 -18
- data/lib/algolia/models/recommend/hide_consequence_object.rb +33 -18
- data/lib/algolia/models/recommend/highlight_result.rb +34 -25
- data/lib/algolia/models/recommend/highlight_result_option.rb +36 -21
- data/lib/algolia/models/recommend/ignore_plurals.rb +33 -24
- data/lib/algolia/models/recommend/index_settings_as_search_params.rb +134 -75
- data/lib/algolia/models/recommend/looking_similar.rb +35 -20
- data/lib/algolia/models/recommend/looking_similar_model.rb +2 -3
- data/lib/algolia/models/recommend/looking_similar_query.rb +47 -32
- data/lib/algolia/models/recommend/match_level.rb +2 -3
- data/lib/algolia/models/recommend/matched_geo_location.rb +35 -20
- data/lib/algolia/models/recommend/mode.rb +2 -3
- data/lib/algolia/models/recommend/numeric_filters.rb +33 -24
- data/lib/algolia/models/recommend/optional_filters.rb +33 -24
- data/lib/algolia/models/recommend/params_consequence.rb +35 -20
- data/lib/algolia/models/recommend/personalization.rb +35 -20
- data/lib/algolia/models/recommend/promote_consequence_object.rb +36 -21
- data/lib/algolia/models/recommend/query_type.rb +2 -3
- data/lib/algolia/models/recommend/ranking_info.rb +76 -48
- data/lib/algolia/models/recommend/re_ranking_apply_filter.rb +33 -24
- data/lib/algolia/models/recommend/recommend_hit.rb +32 -21
- data/lib/algolia/models/recommend/recommend_models.rb +2 -3
- data/lib/algolia/models/recommend/recommend_rule.rb +38 -23
- data/lib/algolia/models/recommend/recommend_rule_metadata.rb +33 -18
- data/lib/algolia/models/recommend/recommendations_hit.rb +33 -24
- data/lib/algolia/models/recommend/recommendations_hits.rb +33 -18
- data/lib/algolia/models/recommend/recommendations_request.rb +37 -28
- data/lib/algolia/models/recommend/recommendations_results.rb +159 -114
- data/lib/algolia/models/recommend/recommended_for_you.rb +34 -19
- data/lib/algolia/models/recommend/recommended_for_you_model.rb +2 -3
- data/lib/algolia/models/recommend/recommended_for_you_query.rb +46 -31
- data/lib/algolia/models/recommend/redirect.rb +30 -18
- data/lib/algolia/models/recommend/redirect_rule_index_metadata.rb +37 -22
- data/lib/algolia/models/recommend/redirect_rule_index_metadata_data.rb +33 -18
- data/lib/algolia/models/{ingestion/schedule_date_utils_input.rb → recommend/redirect_url.rb} +43 -58
- data/lib/algolia/models/recommend/related_model.rb +2 -3
- data/lib/algolia/models/recommend/related_products.rb +35 -20
- data/lib/algolia/models/recommend/related_query.rb +47 -32
- data/lib/algolia/models/recommend/remove_stop_words.rb +33 -24
- data/lib/algolia/models/recommend/remove_words_if_no_results.rb +2 -3
- data/lib/algolia/models/recommend/rendering_content.rb +45 -21
- data/lib/algolia/models/recommend/search_pagination.rb +282 -0
- data/lib/algolia/models/recommend/search_params.rb +207 -118
- data/lib/algolia/models/recommend/search_params_object.rb +208 -119
- data/lib/algolia/models/recommend/search_params_query.rb +33 -18
- data/lib/algolia/models/recommend/search_recommend_rules_params.rb +48 -33
- data/lib/algolia/models/recommend/search_recommend_rules_response.rb +38 -23
- data/lib/algolia/models/recommend/semantic_search.rb +35 -20
- data/lib/algolia/models/recommend/snippet_result.rb +34 -25
- data/lib/algolia/models/recommend/snippet_result_option.rb +34 -19
- data/lib/algolia/models/recommend/sort_remaining_by.rb +2 -3
- data/lib/algolia/models/recommend/supported_language.rb +72 -5
- data/lib/algolia/models/recommend/tag_filters.rb +33 -24
- data/lib/algolia/models/recommend/task_status.rb +2 -3
- data/lib/algolia/models/recommend/trending_facet_hit.rb +38 -23
- data/lib/algolia/models/recommend/trending_facets.rb +37 -22
- data/lib/algolia/models/recommend/trending_facets_model.rb +2 -3
- data/lib/algolia/models/recommend/trending_facets_query.rb +49 -34
- data/lib/algolia/models/recommend/trending_items.rb +36 -21
- data/lib/algolia/models/recommend/trending_items_model.rb +2 -3
- data/lib/algolia/models/recommend/trending_items_query.rb +58 -34
- data/lib/algolia/models/recommend/typo_tolerance.rb +33 -24
- data/lib/algolia/models/recommend/typo_tolerance_enum.rb +2 -3
- data/lib/algolia/models/recommend/value.rb +31 -19
- data/lib/algolia/models/search/acl.rb +19 -5
- data/lib/algolia/models/search/action.rb +11 -4
- data/lib/algolia/models/search/add_api_key_response.rb +34 -19
- data/lib/algolia/models/search/advanced_syntax_features.rb +2 -3
- data/lib/algolia/models/search/alternatives_as_exact.rb +2 -3
- data/lib/algolia/models/search/anchoring.rb +2 -3
- data/lib/algolia/models/search/api_key.rb +46 -25
- data/lib/algolia/models/search/api_key_operation.rb +2 -3
- data/lib/algolia/models/search/around_precision.rb +33 -24
- data/lib/algolia/models/search/around_precision_from_value_inner.rb +34 -19
- data/lib/algolia/models/search/around_radius.rb +33 -24
- data/lib/algolia/models/search/around_radius_all.rb +2 -3
- data/lib/algolia/models/search/assign_user_id_params.rb +33 -18
- data/lib/algolia/models/search/attribute_to_update.rb +33 -24
- data/lib/algolia/models/search/automatic_facet_filter.rb +35 -20
- data/lib/algolia/models/search/automatic_facet_filters.rb +33 -24
- data/lib/algolia/models/search/base_get_api_key_response.rb +34 -19
- data/lib/algolia/models/search/base_index_settings.rb +71 -39
- data/lib/algolia/models/search/base_search_params.rb +110 -63
- data/lib/algolia/models/search/base_search_params_without_query.rb +106 -60
- data/lib/algolia/models/search/base_search_response.rb +76 -121
- data/lib/algolia/models/search/batch_assign_user_ids_params.rb +34 -19
- data/lib/algolia/models/search/batch_dictionary_entries_params.rb +34 -19
- data/lib/algolia/models/search/batch_dictionary_entries_request.rb +34 -19
- data/lib/algolia/models/search/batch_params.rb +33 -18
- data/lib/algolia/models/search/batch_request.rb +34 -19
- data/lib/algolia/models/search/batch_response.rb +34 -19
- data/lib/algolia/models/search/batch_write_params.rb +33 -18
- data/lib/algolia/models/search/browse_pagination.rb +274 -0
- data/lib/algolia/models/search/browse_params.rb +33 -24
- data/lib/algolia/models/search/browse_params_object.rb +210 -120
- data/lib/algolia/models/search/browse_response.rb +158 -118
- data/lib/algolia/models/search/built_in_operation.rb +34 -19
- data/lib/algolia/models/search/built_in_operation_type.rb +2 -3
- data/lib/algolia/models/search/condition.rb +38 -23
- data/lib/algolia/models/search/consequence.rb +43 -28
- data/lib/algolia/models/search/consequence_hide.rb +33 -18
- data/lib/algolia/models/search/consequence_params.rb +213 -122
- data/lib/algolia/models/search/consequence_query.rb +33 -24
- data/lib/algolia/models/search/consequence_query_object.rb +34 -19
- data/lib/algolia/models/search/created_at_response.rb +33 -18
- data/lib/algolia/models/search/cursor.rb +29 -17
- data/lib/algolia/models/search/delete_api_key_response.rb +33 -18
- data/lib/algolia/models/search/delete_by_params.rb +50 -26
- data/lib/algolia/models/search/delete_source_response.rb +33 -18
- data/lib/algolia/models/search/deleted_at_response.rb +34 -19
- data/lib/algolia/models/search/dictionary_action.rb +2 -3
- data/lib/algolia/models/search/dictionary_entry.rb +29 -18
- data/lib/algolia/models/search/dictionary_entry_state.rb +2 -3
- data/lib/algolia/models/search/dictionary_language.rb +33 -18
- data/lib/algolia/models/search/dictionary_settings_params.rb +33 -18
- data/lib/algolia/models/search/dictionary_type.rb +2 -3
- data/lib/algolia/models/search/distinct.rb +33 -24
- data/lib/algolia/models/search/edit.rb +31 -19
- data/lib/algolia/models/search/edit_type.rb +2 -3
- data/lib/algolia/models/search/error_base.rb +24 -13
- data/lib/algolia/models/search/exact_on_single_word_query.rb +2 -3
- data/lib/algolia/models/search/exhaustive.rb +37 -22
- data/lib/algolia/models/search/facet_filters.rb +33 -24
- data/lib/algolia/models/search/facet_hits.rb +35 -20
- data/lib/algolia/models/search/facet_ordering.rb +34 -19
- data/lib/algolia/models/search/facets.rb +29 -17
- data/lib/algolia/models/search/facets_stats.rb +36 -21
- data/lib/algolia/models/search/fetched_index.rb +58 -30
- data/lib/algolia/models/search/get_api_key_response.rb +56 -30
- data/lib/algolia/models/search/get_dictionary_settings_response.rb +33 -18
- data/lib/algolia/models/search/get_logs_response.rb +33 -18
- data/lib/algolia/models/search/get_objects_params.rb +33 -18
- data/lib/algolia/models/search/get_objects_request.rb +35 -20
- data/lib/algolia/models/search/get_objects_response.rb +33 -18
- data/lib/algolia/models/search/get_task_response.rb +33 -18
- data/lib/algolia/models/search/get_top_user_ids_response.rb +33 -18
- data/lib/algolia/models/search/has_pending_mappings_response.rb +34 -19
- data/lib/algolia/models/search/highlight_result.rb +34 -25
- data/lib/algolia/models/search/highlight_result_option.rb +36 -21
- data/lib/algolia/models/search/hit.rb +24 -16
- data/lib/algolia/models/search/ignore_plurals.rb +33 -24
- data/lib/algolia/models/search/index_settings.rb +171 -97
- data/lib/algolia/models/search/index_settings_as_search_params.rb +134 -75
- data/lib/algolia/models/search/languages.rb +39 -24
- data/lib/algolia/models/search/list_api_keys_response.rb +33 -18
- data/lib/algolia/models/search/list_clusters_response.rb +33 -18
- data/lib/algolia/models/search/list_indices_response.rb +34 -19
- data/lib/algolia/models/search/list_user_ids_response.rb +33 -18
- data/lib/algolia/models/search/log.rb +70 -37
- data/lib/algolia/models/search/log_query.rb +31 -19
- data/lib/algolia/models/search/log_type.rb +2 -3
- data/lib/algolia/models/search/match_level.rb +2 -3
- data/lib/algolia/models/search/matched_geo_location.rb +35 -20
- data/lib/algolia/models/search/mode.rb +2 -3
- data/lib/algolia/models/search/multiple_batch_request.rb +35 -20
- data/lib/algolia/models/search/multiple_batch_response.rb +34 -19
- data/lib/algolia/models/search/numeric_filters.rb +33 -24
- data/lib/algolia/models/search/operation_index_params.rb +35 -20
- data/lib/algolia/models/search/operation_type.rb +2 -3
- data/lib/algolia/models/search/optional_filters.rb +33 -24
- data/lib/algolia/models/search/params.rb +32 -20
- data/lib/algolia/models/search/personalization.rb +35 -20
- data/lib/algolia/models/search/promote.rb +33 -24
- data/lib/algolia/models/search/promote_object_id.rb +34 -19
- data/lib/algolia/models/search/promote_object_ids.rb +36 -21
- data/lib/algolia/models/search/query_type.rb +2 -3
- data/lib/algolia/models/search/ranking_info.rb +76 -48
- data/lib/algolia/models/search/re_ranking_apply_filter.rb +33 -24
- data/lib/algolia/models/search/redirect.rb +30 -18
- data/lib/algolia/models/search/redirect_rule_index_metadata.rb +37 -22
- data/lib/algolia/models/search/redirect_rule_index_metadata_data.rb +33 -18
- data/lib/algolia/models/search/redirect_url.rb +212 -0
- data/lib/algolia/models/search/remove_stop_words.rb +33 -24
- data/lib/algolia/models/search/remove_user_id_response.rb +33 -18
- data/lib/algolia/models/search/remove_words_if_no_results.rb +2 -3
- data/lib/algolia/models/search/rendering_content.rb +45 -21
- data/lib/algolia/models/search/replace_all_objects_response.rb +35 -20
- data/lib/algolia/models/search/replace_source_response.rb +33 -18
- data/lib/algolia/models/search/rule.rb +37 -25
- data/lib/algolia/models/search/save_object_response.rb +35 -20
- data/lib/algolia/models/search/save_synonym_response.rb +35 -20
- data/lib/algolia/models/search/scope_type.rb +2 -3
- data/lib/algolia/models/search/search_dictionary_entries_params.rb +41 -26
- data/lib/algolia/models/search/search_dictionary_entries_response.rb +38 -23
- data/lib/algolia/models/search/search_for_facet_values_request.rb +37 -22
- data/lib/algolia/models/search/search_for_facet_values_response.rb +35 -20
- data/lib/algolia/models/search/search_for_facets.rb +218 -124
- data/lib/algolia/models/search/search_for_facets_options.rb +39 -24
- data/lib/algolia/models/search/search_for_hits.rb +214 -122
- data/lib/algolia/models/search/search_for_hits_options.rb +34 -19
- data/lib/algolia/models/search/search_hits.rb +26 -15
- data/lib/algolia/models/search/search_method_params.rb +34 -19
- data/lib/algolia/models/search/search_pagination.rb +282 -0
- data/lib/algolia/models/search/search_params.rb +33 -24
- data/lib/algolia/models/search/search_params_object.rb +208 -119
- data/lib/algolia/models/search/search_params_query.rb +33 -18
- data/lib/algolia/models/search/search_params_string.rb +33 -18
- data/lib/algolia/models/search/search_query.rb +33 -24
- data/lib/algolia/models/search/search_response.rb +154 -111
- data/lib/algolia/models/search/search_responses.rb +33 -18
- data/lib/algolia/models/search/search_result.rb +33 -24
- data/lib/algolia/models/search/search_rules_params.rb +45 -30
- data/lib/algolia/models/search/search_rules_response.rb +36 -21
- data/lib/algolia/models/search/search_strategy.rb +2 -3
- data/lib/algolia/models/search/search_synonyms_params.rb +41 -26
- data/lib/algolia/models/search/search_synonyms_response.rb +25 -14
- data/lib/algolia/models/search/search_type_default.rb +2 -3
- data/lib/algolia/models/search/search_type_facet.rb +2 -3
- data/lib/algolia/models/search/search_user_ids_params.rb +41 -26
- data/lib/algolia/models/search/search_user_ids_response.rb +42 -27
- data/lib/algolia/models/search/secured_api_key_restrictions.rb +38 -23
- data/lib/algolia/models/search/semantic_search.rb +35 -20
- data/lib/algolia/models/search/snippet_result.rb +34 -25
- data/lib/algolia/models/search/snippet_result_option.rb +34 -19
- data/lib/algolia/models/search/sort_remaining_by.rb +2 -3
- data/lib/algolia/models/search/source.rb +30 -18
- data/lib/algolia/models/search/standard_entries.rb +39 -24
- data/lib/algolia/models/search/supported_language.rb +72 -5
- data/lib/algolia/models/search/synonym_hit.rb +40 -25
- data/lib/algolia/models/search/synonym_type.rb +2 -3
- data/lib/algolia/models/search/tag_filters.rb +33 -24
- data/lib/algolia/models/search/task_status.rb +2 -3
- data/lib/algolia/models/search/time_range.rb +34 -19
- data/lib/algolia/models/search/typo_tolerance.rb +33 -24
- data/lib/algolia/models/search/typo_tolerance_enum.rb +2 -3
- data/lib/algolia/models/search/update_api_key_response.rb +34 -19
- data/lib/algolia/models/search/updated_at_response.rb +34 -19
- data/lib/algolia/models/search/updated_at_with_object_id_response.rb +35 -20
- data/lib/algolia/models/search/updated_rule_response.rb +35 -20
- data/lib/algolia/models/search/user_highlight_result.rb +34 -19
- data/lib/algolia/models/search/user_hit.rb +35 -23
- data/lib/algolia/models/search/user_id.rb +33 -21
- data/lib/algolia/models/search/value.rb +31 -19
- data/lib/algolia/models/usage/error_base.rb +24 -13
- data/lib/algolia/models/usage/get_usage200_response.rb +33 -18
- data/lib/algolia/models/usage/get_usage200_response_statistics_inner.rb +34 -19
- data/lib/algolia/models/usage/get_usage400_response.rb +33 -18
- data/lib/algolia/models/usage/get_usage400_response_error.rb +35 -20
- data/lib/algolia/models/usage/get_usage400_response_error_errors_inner.rb +36 -21
- data/lib/algolia/models/usage/granularity.rb +2 -3
- data/lib/algolia/models/usage/statistic.rb +88 -5
- data/lib/algolia/models/usage/statistic_value.rb +33 -24
- data/lib/algolia/transport/call_type.rb +1 -1
- data/lib/algolia/transport/echo_requester.rb +11 -2
- data/lib/algolia/transport/http/http_requester.rb +23 -15
- data/lib/algolia/transport/http/response.rb +8 -8
- data/lib/algolia/transport/request_options.rb +6 -4
- data/lib/algolia/transport/retry_outcome_type.rb +3 -3
- data/lib/algolia/transport/retry_strategy.rb +8 -7
- data/lib/algolia/transport/stateful_host.rb +6 -6
- data/lib/algolia/transport/transport.rb +27 -20
- data/lib/algolia/user_agent.rb +1 -1
- data/lib/algolia/version.rb +1 -1
- data/lib/algolia.rb +16 -16
- metadata +22 -13
- data/.rubocop.yml +0 -99
@@ -5,27 +5,33 @@ module Algolia
|
|
5
5
|
attr_accessor :api_client
|
6
6
|
|
7
7
|
def initialize(config = nil)
|
8
|
-
raise
|
9
|
-
raise
|
10
|
-
raise
|
8
|
+
raise "`config` is missing." if config.nil?
|
9
|
+
raise "`app_id` is missing." if config.app_id.nil? || config.app_id == ""
|
10
|
+
raise "`api_key` is missing." if config.api_key.nil? || config.api_key == ""
|
11
11
|
|
12
12
|
@api_client = Algolia::ApiClient.new(config)
|
13
13
|
end
|
14
14
|
|
15
15
|
def self.create(app_id, api_key, region = nil, opts = {})
|
16
16
|
hosts = []
|
17
|
-
regions = [
|
17
|
+
regions = ["eu", "us"]
|
18
18
|
|
19
19
|
if region.is_a?(Hash) && (opts.nil? || opts.empty?)
|
20
20
|
opts = region
|
21
21
|
region = nil
|
22
22
|
end
|
23
23
|
|
24
|
-
|
24
|
+
if region.nil? || !region.is_a?(String) || !regions.include?(region)
|
25
|
+
raise "`region` is required and must be one of the following: #{regions.join(", ")}"
|
26
|
+
end
|
25
27
|
|
26
|
-
hosts <<
|
28
|
+
hosts <<
|
29
|
+
Transport::StatefulHost.new(
|
30
|
+
"data.{region}.algolia.com".sub!("{region}", region),
|
31
|
+
accept: CallType::READ | CallType::WRITE
|
32
|
+
)
|
27
33
|
|
28
|
-
config = Algolia::Configuration.new(app_id, api_key, hosts,
|
34
|
+
config = Algolia::Configuration.new(app_id, api_key, hosts, "Ingestion", opts)
|
29
35
|
create_with_config(config)
|
30
36
|
end
|
31
37
|
|
@@ -48,7 +54,7 @@ module Algolia
|
|
48
54
|
raise ArgumentError, "Parameter `authentication_create` is required when calling `create_authentication`."
|
49
55
|
end
|
50
56
|
|
51
|
-
path =
|
57
|
+
path = "/1/authentications"
|
52
58
|
query_params = {}
|
53
59
|
query_params = query_params.merge(request_options[:query_params]) unless request_options[:query_params].nil?
|
54
60
|
header_params = {}
|
@@ -57,7 +63,7 @@ module Algolia
|
|
57
63
|
post_body = request_options[:debug_body] || @api_client.object_to_http_body(authentication_create)
|
58
64
|
|
59
65
|
new_options = request_options.merge(
|
60
|
-
:operation => :
|
66
|
+
:operation => :"IngestionClient.create_authentication",
|
61
67
|
:header_params => header_params,
|
62
68
|
:query_params => query_params,
|
63
69
|
:body => post_body,
|
@@ -78,7 +84,10 @@ module Algolia
|
|
78
84
|
# @return [AuthenticationCreateResponse]
|
79
85
|
def create_authentication(authentication_create, request_options = {})
|
80
86
|
response = create_authentication_with_http_info(authentication_create, request_options)
|
81
|
-
@api_client.deserialize(
|
87
|
+
@api_client.deserialize(
|
88
|
+
response.body,
|
89
|
+
request_options[:debug_return_type] || "Ingestion::AuthenticationCreateResponse"
|
90
|
+
)
|
82
91
|
end
|
83
92
|
|
84
93
|
# Creates a new destination.
|
@@ -96,7 +105,7 @@ module Algolia
|
|
96
105
|
raise ArgumentError, "Parameter `destination_create` is required when calling `create_destination`."
|
97
106
|
end
|
98
107
|
|
99
|
-
path =
|
108
|
+
path = "/1/destinations"
|
100
109
|
query_params = {}
|
101
110
|
query_params = query_params.merge(request_options[:query_params]) unless request_options[:query_params].nil?
|
102
111
|
header_params = {}
|
@@ -105,7 +114,7 @@ module Algolia
|
|
105
114
|
post_body = request_options[:debug_body] || @api_client.object_to_http_body(destination_create)
|
106
115
|
|
107
116
|
new_options = request_options.merge(
|
108
|
-
:operation => :
|
117
|
+
:operation => :"IngestionClient.create_destination",
|
109
118
|
:header_params => header_params,
|
110
119
|
:query_params => query_params,
|
111
120
|
:body => post_body,
|
@@ -126,7 +135,10 @@ module Algolia
|
|
126
135
|
# @return [DestinationCreateResponse]
|
127
136
|
def create_destination(destination_create, request_options = {})
|
128
137
|
response = create_destination_with_http_info(destination_create, request_options)
|
129
|
-
@api_client.deserialize(
|
138
|
+
@api_client.deserialize(
|
139
|
+
response.body,
|
140
|
+
request_options[:debug_return_type] || "Ingestion::DestinationCreateResponse"
|
141
|
+
)
|
130
142
|
end
|
131
143
|
|
132
144
|
# Creates a new source.
|
@@ -144,7 +156,7 @@ module Algolia
|
|
144
156
|
raise ArgumentError, "Parameter `source_create` is required when calling `create_source`."
|
145
157
|
end
|
146
158
|
|
147
|
-
path =
|
159
|
+
path = "/1/sources"
|
148
160
|
query_params = {}
|
149
161
|
query_params = query_params.merge(request_options[:query_params]) unless request_options[:query_params].nil?
|
150
162
|
header_params = {}
|
@@ -153,7 +165,7 @@ module Algolia
|
|
153
165
|
post_body = request_options[:debug_body] || @api_client.object_to_http_body(source_create)
|
154
166
|
|
155
167
|
new_options = request_options.merge(
|
156
|
-
:operation => :
|
168
|
+
:operation => :"IngestionClient.create_source",
|
157
169
|
:header_params => header_params,
|
158
170
|
:query_params => query_params,
|
159
171
|
:body => post_body,
|
@@ -174,7 +186,7 @@ module Algolia
|
|
174
186
|
# @return [SourceCreateResponse]
|
175
187
|
def create_source(source_create, request_options = {})
|
176
188
|
response = create_source_with_http_info(source_create, request_options)
|
177
|
-
@api_client.deserialize(response.body, request_options[:debug_return_type] ||
|
189
|
+
@api_client.deserialize(response.body, request_options[:debug_return_type] || "Ingestion::SourceCreateResponse")
|
178
190
|
end
|
179
191
|
|
180
192
|
# Creates a new task.
|
@@ -188,7 +200,7 @@ module Algolia
|
|
188
200
|
raise ArgumentError, "Parameter `task_create` is required when calling `create_task`."
|
189
201
|
end
|
190
202
|
|
191
|
-
path =
|
203
|
+
path = "/1/tasks"
|
192
204
|
query_params = {}
|
193
205
|
query_params = query_params.merge(request_options[:query_params]) unless request_options[:query_params].nil?
|
194
206
|
header_params = {}
|
@@ -197,7 +209,7 @@ module Algolia
|
|
197
209
|
post_body = request_options[:debug_body] || @api_client.object_to_http_body(task_create)
|
198
210
|
|
199
211
|
new_options = request_options.merge(
|
200
|
-
:operation => :
|
212
|
+
:operation => :"IngestionClient.create_task",
|
201
213
|
:header_params => header_params,
|
202
214
|
:query_params => query_params,
|
203
215
|
:body => post_body,
|
@@ -214,7 +226,7 @@ module Algolia
|
|
214
226
|
# @return [TaskCreateResponse]
|
215
227
|
def create_task(task_create, request_options = {})
|
216
228
|
response = create_task_with_http_info(task_create, request_options)
|
217
|
-
@api_client.deserialize(response.body, request_options[:debug_return_type] ||
|
229
|
+
@api_client.deserialize(response.body, request_options[:debug_return_type] || "Ingestion::TaskCreateResponse")
|
218
230
|
end
|
219
231
|
|
220
232
|
# Creates a new transformation.
|
@@ -228,7 +240,7 @@ module Algolia
|
|
228
240
|
raise ArgumentError, "Parameter `transformation_create` is required when calling `create_transformation`."
|
229
241
|
end
|
230
242
|
|
231
|
-
path =
|
243
|
+
path = "/1/transformations"
|
232
244
|
query_params = {}
|
233
245
|
query_params = query_params.merge(request_options[:query_params]) unless request_options[:query_params].nil?
|
234
246
|
header_params = {}
|
@@ -237,7 +249,7 @@ module Algolia
|
|
237
249
|
post_body = request_options[:debug_body] || @api_client.object_to_http_body(transformation_create)
|
238
250
|
|
239
251
|
new_options = request_options.merge(
|
240
|
-
:operation => :
|
252
|
+
:operation => :"IngestionClient.create_transformation",
|
241
253
|
:header_params => header_params,
|
242
254
|
:query_params => query_params,
|
243
255
|
:body => post_body,
|
@@ -254,7 +266,10 @@ module Algolia
|
|
254
266
|
# @return [TransformationCreateResponse]
|
255
267
|
def create_transformation(transformation_create, request_options = {})
|
256
268
|
response = create_transformation_with_http_info(transformation_create, request_options)
|
257
|
-
@api_client.deserialize(
|
269
|
+
@api_client.deserialize(
|
270
|
+
response.body,
|
271
|
+
request_options[:debug_return_type] || "Ingestion::TransformationCreateResponse"
|
272
|
+
)
|
258
273
|
end
|
259
274
|
|
260
275
|
# This method allow you to send requests to the Algolia REST API.
|
@@ -269,7 +284,7 @@ module Algolia
|
|
269
284
|
raise ArgumentError, "Parameter `path` is required when calling `custom_delete`."
|
270
285
|
end
|
271
286
|
|
272
|
-
path =
|
287
|
+
path = "/{path}".sub("{" + "path" + "}", path.to_s)
|
273
288
|
query_params = {}
|
274
289
|
query_params = query_params.merge(parameters) unless parameters.nil?
|
275
290
|
query_params = query_params.merge(request_options[:query_params]) unless request_options[:query_params].nil?
|
@@ -279,7 +294,7 @@ module Algolia
|
|
279
294
|
post_body = request_options[:debug_body]
|
280
295
|
|
281
296
|
new_options = request_options.merge(
|
282
|
-
:operation => :
|
297
|
+
:operation => :"IngestionClient.custom_delete",
|
283
298
|
:header_params => header_params,
|
284
299
|
:query_params => query_params,
|
285
300
|
:body => post_body,
|
@@ -297,7 +312,7 @@ module Algolia
|
|
297
312
|
# @return [Object]
|
298
313
|
def custom_delete(path, parameters = nil, request_options = {})
|
299
314
|
response = custom_delete_with_http_info(path, parameters, request_options)
|
300
|
-
@api_client.deserialize(response.body, request_options[:debug_return_type] ||
|
315
|
+
@api_client.deserialize(response.body, request_options[:debug_return_type] || "Object")
|
301
316
|
end
|
302
317
|
|
303
318
|
# This method allow you to send requests to the Algolia REST API.
|
@@ -312,7 +327,7 @@ module Algolia
|
|
312
327
|
raise ArgumentError, "Parameter `path` is required when calling `custom_get`."
|
313
328
|
end
|
314
329
|
|
315
|
-
path =
|
330
|
+
path = "/{path}".sub("{" + "path" + "}", path.to_s)
|
316
331
|
query_params = {}
|
317
332
|
query_params = query_params.merge(parameters) unless parameters.nil?
|
318
333
|
query_params = query_params.merge(request_options[:query_params]) unless request_options[:query_params].nil?
|
@@ -322,7 +337,7 @@ module Algolia
|
|
322
337
|
post_body = request_options[:debug_body]
|
323
338
|
|
324
339
|
new_options = request_options.merge(
|
325
|
-
:operation => :
|
340
|
+
:operation => :"IngestionClient.custom_get",
|
326
341
|
:header_params => header_params,
|
327
342
|
:query_params => query_params,
|
328
343
|
:body => post_body,
|
@@ -340,7 +355,7 @@ module Algolia
|
|
340
355
|
# @return [Object]
|
341
356
|
def custom_get(path, parameters = nil, request_options = {})
|
342
357
|
response = custom_get_with_http_info(path, parameters, request_options)
|
343
|
-
@api_client.deserialize(response.body, request_options[:debug_return_type] ||
|
358
|
+
@api_client.deserialize(response.body, request_options[:debug_return_type] || "Object")
|
344
359
|
end
|
345
360
|
|
346
361
|
# This method allow you to send requests to the Algolia REST API.
|
@@ -356,7 +371,7 @@ module Algolia
|
|
356
371
|
raise ArgumentError, "Parameter `path` is required when calling `custom_post`."
|
357
372
|
end
|
358
373
|
|
359
|
-
path =
|
374
|
+
path = "/{path}".sub("{" + "path" + "}", path.to_s)
|
360
375
|
query_params = {}
|
361
376
|
query_params = query_params.merge(parameters) unless parameters.nil?
|
362
377
|
query_params = query_params.merge(request_options[:query_params]) unless request_options[:query_params].nil?
|
@@ -366,7 +381,7 @@ module Algolia
|
|
366
381
|
post_body = request_options[:debug_body] || @api_client.object_to_http_body(body)
|
367
382
|
|
368
383
|
new_options = request_options.merge(
|
369
|
-
:operation => :
|
384
|
+
:operation => :"IngestionClient.custom_post",
|
370
385
|
:header_params => header_params,
|
371
386
|
:query_params => query_params,
|
372
387
|
:body => post_body,
|
@@ -385,7 +400,7 @@ module Algolia
|
|
385
400
|
# @return [Object]
|
386
401
|
def custom_post(path, parameters = nil, body = nil, request_options = {})
|
387
402
|
response = custom_post_with_http_info(path, parameters, body, request_options)
|
388
|
-
@api_client.deserialize(response.body, request_options[:debug_return_type] ||
|
403
|
+
@api_client.deserialize(response.body, request_options[:debug_return_type] || "Object")
|
389
404
|
end
|
390
405
|
|
391
406
|
# This method allow you to send requests to the Algolia REST API.
|
@@ -401,7 +416,7 @@ module Algolia
|
|
401
416
|
raise ArgumentError, "Parameter `path` is required when calling `custom_put`."
|
402
417
|
end
|
403
418
|
|
404
|
-
path =
|
419
|
+
path = "/{path}".sub("{" + "path" + "}", path.to_s)
|
405
420
|
query_params = {}
|
406
421
|
query_params = query_params.merge(parameters) unless parameters.nil?
|
407
422
|
query_params = query_params.merge(request_options[:query_params]) unless request_options[:query_params].nil?
|
@@ -411,7 +426,7 @@ module Algolia
|
|
411
426
|
post_body = request_options[:debug_body] || @api_client.object_to_http_body(body)
|
412
427
|
|
413
428
|
new_options = request_options.merge(
|
414
|
-
:operation => :
|
429
|
+
:operation => :"IngestionClient.custom_put",
|
415
430
|
:header_params => header_params,
|
416
431
|
:query_params => query_params,
|
417
432
|
:body => post_body,
|
@@ -430,7 +445,7 @@ module Algolia
|
|
430
445
|
# @return [Object]
|
431
446
|
def custom_put(path, parameters = nil, body = nil, request_options = {})
|
432
447
|
response = custom_put_with_http_info(path, parameters, body, request_options)
|
433
|
-
@api_client.deserialize(response.body, request_options[:debug_return_type] ||
|
448
|
+
@api_client.deserialize(response.body, request_options[:debug_return_type] || "Object")
|
434
449
|
end
|
435
450
|
|
436
451
|
# Deletes an authentication resource. You can't delete authentication resources that are used by a source or a destination.
|
@@ -448,7 +463,10 @@ module Algolia
|
|
448
463
|
raise ArgumentError, "Parameter `authentication_id` is required when calling `delete_authentication`."
|
449
464
|
end
|
450
465
|
|
451
|
-
path =
|
466
|
+
path = "/1/authentications/{authenticationID}".sub(
|
467
|
+
"{" + "authenticationID" + "}",
|
468
|
+
Transport.encode_uri(authentication_id.to_s)
|
469
|
+
)
|
452
470
|
query_params = {}
|
453
471
|
query_params = query_params.merge(request_options[:query_params]) unless request_options[:query_params].nil?
|
454
472
|
header_params = {}
|
@@ -457,7 +475,7 @@ module Algolia
|
|
457
475
|
post_body = request_options[:debug_body]
|
458
476
|
|
459
477
|
new_options = request_options.merge(
|
460
|
-
:operation => :
|
478
|
+
:operation => :"IngestionClient.delete_authentication",
|
461
479
|
:header_params => header_params,
|
462
480
|
:query_params => query_params,
|
463
481
|
:body => post_body,
|
@@ -478,7 +496,7 @@ module Algolia
|
|
478
496
|
# @return [DeleteResponse]
|
479
497
|
def delete_authentication(authentication_id, request_options = {})
|
480
498
|
response = delete_authentication_with_http_info(authentication_id, request_options)
|
481
|
-
@api_client.deserialize(response.body, request_options[:debug_return_type] ||
|
499
|
+
@api_client.deserialize(response.body, request_options[:debug_return_type] || "Ingestion::DeleteResponse")
|
482
500
|
end
|
483
501
|
|
484
502
|
# Deletes a destination by its ID. You can't delete destinations that are referenced in tasks.
|
@@ -496,7 +514,10 @@ module Algolia
|
|
496
514
|
raise ArgumentError, "Parameter `destination_id` is required when calling `delete_destination`."
|
497
515
|
end
|
498
516
|
|
499
|
-
path =
|
517
|
+
path = "/1/destinations/{destinationID}".sub(
|
518
|
+
"{" + "destinationID" + "}",
|
519
|
+
Transport.encode_uri(destination_id.to_s)
|
520
|
+
)
|
500
521
|
query_params = {}
|
501
522
|
query_params = query_params.merge(request_options[:query_params]) unless request_options[:query_params].nil?
|
502
523
|
header_params = {}
|
@@ -505,7 +526,7 @@ module Algolia
|
|
505
526
|
post_body = request_options[:debug_body]
|
506
527
|
|
507
528
|
new_options = request_options.merge(
|
508
|
-
:operation => :
|
529
|
+
:operation => :"IngestionClient.delete_destination",
|
509
530
|
:header_params => header_params,
|
510
531
|
:query_params => query_params,
|
511
532
|
:body => post_body,
|
@@ -526,7 +547,7 @@ module Algolia
|
|
526
547
|
# @return [DeleteResponse]
|
527
548
|
def delete_destination(destination_id, request_options = {})
|
528
549
|
response = delete_destination_with_http_info(destination_id, request_options)
|
529
|
-
@api_client.deserialize(response.body, request_options[:debug_return_type] ||
|
550
|
+
@api_client.deserialize(response.body, request_options[:debug_return_type] || "Ingestion::DeleteResponse")
|
530
551
|
end
|
531
552
|
|
532
553
|
# Deletes a source by its ID. You can't delete sources that are referenced in tasks.
|
@@ -544,7 +565,7 @@ module Algolia
|
|
544
565
|
raise ArgumentError, "Parameter `source_id` is required when calling `delete_source`."
|
545
566
|
end
|
546
567
|
|
547
|
-
path =
|
568
|
+
path = "/1/sources/{sourceID}".sub("{" + "sourceID" + "}", Transport.encode_uri(source_id.to_s))
|
548
569
|
query_params = {}
|
549
570
|
query_params = query_params.merge(request_options[:query_params]) unless request_options[:query_params].nil?
|
550
571
|
header_params = {}
|
@@ -553,7 +574,7 @@ module Algolia
|
|
553
574
|
post_body = request_options[:debug_body]
|
554
575
|
|
555
576
|
new_options = request_options.merge(
|
556
|
-
:operation => :
|
577
|
+
:operation => :"IngestionClient.delete_source",
|
557
578
|
:header_params => header_params,
|
558
579
|
:query_params => query_params,
|
559
580
|
:body => post_body,
|
@@ -574,7 +595,7 @@ module Algolia
|
|
574
595
|
# @return [DeleteResponse]
|
575
596
|
def delete_source(source_id, request_options = {})
|
576
597
|
response = delete_source_with_http_info(source_id, request_options)
|
577
|
-
@api_client.deserialize(response.body, request_options[:debug_return_type] ||
|
598
|
+
@api_client.deserialize(response.body, request_options[:debug_return_type] || "Ingestion::DeleteResponse")
|
578
599
|
end
|
579
600
|
|
580
601
|
# Deletes a task by its ID.
|
@@ -588,7 +609,7 @@ module Algolia
|
|
588
609
|
raise ArgumentError, "Parameter `task_id` is required when calling `delete_task`."
|
589
610
|
end
|
590
611
|
|
591
|
-
path =
|
612
|
+
path = "/1/tasks/{taskID}".sub("{" + "taskID" + "}", Transport.encode_uri(task_id.to_s))
|
592
613
|
query_params = {}
|
593
614
|
query_params = query_params.merge(request_options[:query_params]) unless request_options[:query_params].nil?
|
594
615
|
header_params = {}
|
@@ -597,7 +618,7 @@ module Algolia
|
|
597
618
|
post_body = request_options[:debug_body]
|
598
619
|
|
599
620
|
new_options = request_options.merge(
|
600
|
-
:operation => :
|
621
|
+
:operation => :"IngestionClient.delete_task",
|
601
622
|
:header_params => header_params,
|
602
623
|
:query_params => query_params,
|
603
624
|
:body => post_body,
|
@@ -614,7 +635,7 @@ module Algolia
|
|
614
635
|
# @return [DeleteResponse]
|
615
636
|
def delete_task(task_id, request_options = {})
|
616
637
|
response = delete_task_with_http_info(task_id, request_options)
|
617
|
-
@api_client.deserialize(response.body, request_options[:debug_return_type] ||
|
638
|
+
@api_client.deserialize(response.body, request_options[:debug_return_type] || "Ingestion::DeleteResponse")
|
618
639
|
end
|
619
640
|
|
620
641
|
# Deletes a transformation by its ID.
|
@@ -628,7 +649,10 @@ module Algolia
|
|
628
649
|
raise ArgumentError, "Parameter `transformation_id` is required when calling `delete_transformation`."
|
629
650
|
end
|
630
651
|
|
631
|
-
path =
|
652
|
+
path = "/1/transformations/{transformationID}".sub(
|
653
|
+
"{" + "transformationID" + "}",
|
654
|
+
Transport.encode_uri(transformation_id.to_s)
|
655
|
+
)
|
632
656
|
query_params = {}
|
633
657
|
query_params = query_params.merge(request_options[:query_params]) unless request_options[:query_params].nil?
|
634
658
|
header_params = {}
|
@@ -637,7 +661,7 @@ module Algolia
|
|
637
661
|
post_body = request_options[:debug_body]
|
638
662
|
|
639
663
|
new_options = request_options.merge(
|
640
|
-
:operation => :
|
664
|
+
:operation => :"IngestionClient.delete_transformation",
|
641
665
|
:header_params => header_params,
|
642
666
|
:query_params => query_params,
|
643
667
|
:body => post_body,
|
@@ -654,7 +678,7 @@ module Algolia
|
|
654
678
|
# @return [DeleteResponse]
|
655
679
|
def delete_transformation(transformation_id, request_options = {})
|
656
680
|
response = delete_transformation_with_http_info(transformation_id, request_options)
|
657
|
-
@api_client.deserialize(response.body, request_options[:debug_return_type] ||
|
681
|
+
@api_client.deserialize(response.body, request_options[:debug_return_type] || "Ingestion::DeleteResponse")
|
658
682
|
end
|
659
683
|
|
660
684
|
# Disables a task.
|
@@ -672,7 +696,7 @@ module Algolia
|
|
672
696
|
raise ArgumentError, "Parameter `task_id` is required when calling `disable_task`."
|
673
697
|
end
|
674
698
|
|
675
|
-
path =
|
699
|
+
path = "/1/tasks/{taskID}/disable".sub("{" + "taskID" + "}", Transport.encode_uri(task_id.to_s))
|
676
700
|
query_params = {}
|
677
701
|
query_params = query_params.merge(request_options[:query_params]) unless request_options[:query_params].nil?
|
678
702
|
header_params = {}
|
@@ -681,7 +705,7 @@ module Algolia
|
|
681
705
|
post_body = request_options[:debug_body]
|
682
706
|
|
683
707
|
new_options = request_options.merge(
|
684
|
-
:operation => :
|
708
|
+
:operation => :"IngestionClient.disable_task",
|
685
709
|
:header_params => header_params,
|
686
710
|
:query_params => query_params,
|
687
711
|
:body => post_body,
|
@@ -702,7 +726,7 @@ module Algolia
|
|
702
726
|
# @return [TaskUpdateResponse]
|
703
727
|
def disable_task(task_id, request_options = {})
|
704
728
|
response = disable_task_with_http_info(task_id, request_options)
|
705
|
-
@api_client.deserialize(response.body, request_options[:debug_return_type] ||
|
729
|
+
@api_client.deserialize(response.body, request_options[:debug_return_type] || "Ingestion::TaskUpdateResponse")
|
706
730
|
end
|
707
731
|
|
708
732
|
# Enables a task.
|
@@ -720,7 +744,7 @@ module Algolia
|
|
720
744
|
raise ArgumentError, "Parameter `task_id` is required when calling `enable_task`."
|
721
745
|
end
|
722
746
|
|
723
|
-
path =
|
747
|
+
path = "/1/tasks/{taskID}/enable".sub("{" + "taskID" + "}", Transport.encode_uri(task_id.to_s))
|
724
748
|
query_params = {}
|
725
749
|
query_params = query_params.merge(request_options[:query_params]) unless request_options[:query_params].nil?
|
726
750
|
header_params = {}
|
@@ -729,7 +753,7 @@ module Algolia
|
|
729
753
|
post_body = request_options[:debug_body]
|
730
754
|
|
731
755
|
new_options = request_options.merge(
|
732
|
-
:operation => :
|
756
|
+
:operation => :"IngestionClient.enable_task",
|
733
757
|
:header_params => header_params,
|
734
758
|
:query_params => query_params,
|
735
759
|
:body => post_body,
|
@@ -750,7 +774,7 @@ module Algolia
|
|
750
774
|
# @return [TaskUpdateResponse]
|
751
775
|
def enable_task(task_id, request_options = {})
|
752
776
|
response = enable_task_with_http_info(task_id, request_options)
|
753
|
-
@api_client.deserialize(response.body, request_options[:debug_return_type] ||
|
777
|
+
@api_client.deserialize(response.body, request_options[:debug_return_type] || "Ingestion::TaskUpdateResponse")
|
754
778
|
end
|
755
779
|
|
756
780
|
# Retrieves an authentication resource by its ID.
|
@@ -768,7 +792,10 @@ module Algolia
|
|
768
792
|
raise ArgumentError, "Parameter `authentication_id` is required when calling `get_authentication`."
|
769
793
|
end
|
770
794
|
|
771
|
-
path =
|
795
|
+
path = "/1/authentications/{authenticationID}".sub(
|
796
|
+
"{" + "authenticationID" + "}",
|
797
|
+
Transport.encode_uri(authentication_id.to_s)
|
798
|
+
)
|
772
799
|
query_params = {}
|
773
800
|
query_params = query_params.merge(request_options[:query_params]) unless request_options[:query_params].nil?
|
774
801
|
header_params = {}
|
@@ -777,7 +804,7 @@ module Algolia
|
|
777
804
|
post_body = request_options[:debug_body]
|
778
805
|
|
779
806
|
new_options = request_options.merge(
|
780
|
-
:operation => :
|
807
|
+
:operation => :"IngestionClient.get_authentication",
|
781
808
|
:header_params => header_params,
|
782
809
|
:query_params => query_params,
|
783
810
|
:body => post_body,
|
@@ -798,7 +825,7 @@ module Algolia
|
|
798
825
|
# @return [Authentication]
|
799
826
|
def get_authentication(authentication_id, request_options = {})
|
800
827
|
response = get_authentication_with_http_info(authentication_id, request_options)
|
801
|
-
@api_client.deserialize(response.body, request_options[:debug_return_type] ||
|
828
|
+
@api_client.deserialize(response.body, request_options[:debug_return_type] || "Ingestion::Authentication")
|
802
829
|
end
|
803
830
|
|
804
831
|
# Retrieves a list of all authentication resources.
|
@@ -815,20 +842,37 @@ module Algolia
|
|
815
842
|
# @param order [OrderKeys] Sort order of the response, ascending or descending. (default to 'desc')
|
816
843
|
# @param request_options: The request options to send along with the query, they will be merged with the transporter base parameters (headers, query params, timeouts, etc.). (optional)
|
817
844
|
# @return [Http::Response] the response
|
818
|
-
def get_authentications_with_http_info(
|
845
|
+
def get_authentications_with_http_info(
|
846
|
+
items_per_page = nil,
|
847
|
+
page = nil,
|
848
|
+
type = nil,
|
849
|
+
platform = nil,
|
850
|
+
sort = nil,
|
851
|
+
order = nil,
|
852
|
+
request_options = {}
|
853
|
+
)
|
819
854
|
if @api_client.config.client_side_validation && !items_per_page.nil? && items_per_page > 100
|
820
|
-
raise
|
855
|
+
raise(
|
856
|
+
ArgumentError,
|
857
|
+
"invalid value for \"\"items_per_page\"\" when calling IngestionClient.get_authentications, must be smaller than or equal to 100."
|
858
|
+
)
|
821
859
|
end
|
822
860
|
|
823
861
|
if @api_client.config.client_side_validation && !items_per_page.nil? && items_per_page < 1
|
824
|
-
raise
|
862
|
+
raise(
|
863
|
+
ArgumentError,
|
864
|
+
"invalid value for \"\"items_per_page\"\" when calling IngestionClient.get_authentications, must be greater than or equal to 1."
|
865
|
+
)
|
825
866
|
end
|
826
867
|
|
827
868
|
if @api_client.config.client_side_validation && !page.nil? && page < 1
|
828
|
-
raise
|
869
|
+
raise(
|
870
|
+
ArgumentError,
|
871
|
+
"invalid value for \"\"page\"\" when calling IngestionClient.get_authentications, must be greater than or equal to 1."
|
872
|
+
)
|
829
873
|
end
|
830
874
|
|
831
|
-
path =
|
875
|
+
path = "/1/authentications"
|
832
876
|
query_params = {}
|
833
877
|
query_params[:itemsPerPage] = items_per_page unless items_per_page.nil?
|
834
878
|
query_params[:page] = page unless page.nil?
|
@@ -843,7 +887,7 @@ module Algolia
|
|
843
887
|
post_body = request_options[:debug_body]
|
844
888
|
|
845
889
|
new_options = request_options.merge(
|
846
|
-
:operation => :
|
890
|
+
:operation => :"IngestionClient.get_authentications",
|
847
891
|
:header_params => header_params,
|
848
892
|
:query_params => query_params,
|
849
893
|
:body => post_body,
|
@@ -867,9 +911,20 @@ module Algolia
|
|
867
911
|
# @param order [OrderKeys] Sort order of the response, ascending or descending. (default to 'desc')
|
868
912
|
# @param request_options: The request options to send along with the query, they will be merged with the transporter base parameters (headers, query params, timeouts, etc.). (optional)
|
869
913
|
# @return [ListAuthenticationsResponse]
|
870
|
-
def get_authentications(
|
914
|
+
def get_authentications(
|
915
|
+
items_per_page = nil,
|
916
|
+
page = nil,
|
917
|
+
type = nil,
|
918
|
+
platform = nil,
|
919
|
+
sort = nil,
|
920
|
+
order = nil,
|
921
|
+
request_options = {}
|
922
|
+
)
|
871
923
|
response = get_authentications_with_http_info(items_per_page, page, type, platform, sort, order, request_options)
|
872
|
-
@api_client.deserialize(
|
924
|
+
@api_client.deserialize(
|
925
|
+
response.body,
|
926
|
+
request_options[:debug_return_type] || "Ingestion::ListAuthenticationsResponse"
|
927
|
+
)
|
873
928
|
end
|
874
929
|
|
875
930
|
# Retrieves a destination by its ID.
|
@@ -887,7 +942,10 @@ module Algolia
|
|
887
942
|
raise ArgumentError, "Parameter `destination_id` is required when calling `get_destination`."
|
888
943
|
end
|
889
944
|
|
890
|
-
path =
|
945
|
+
path = "/1/destinations/{destinationID}".sub(
|
946
|
+
"{" + "destinationID" + "}",
|
947
|
+
Transport.encode_uri(destination_id.to_s)
|
948
|
+
)
|
891
949
|
query_params = {}
|
892
950
|
query_params = query_params.merge(request_options[:query_params]) unless request_options[:query_params].nil?
|
893
951
|
header_params = {}
|
@@ -896,7 +954,7 @@ module Algolia
|
|
896
954
|
post_body = request_options[:debug_body]
|
897
955
|
|
898
956
|
new_options = request_options.merge(
|
899
|
-
:operation => :
|
957
|
+
:operation => :"IngestionClient.get_destination",
|
900
958
|
:header_params => header_params,
|
901
959
|
:query_params => query_params,
|
902
960
|
:body => post_body,
|
@@ -917,7 +975,7 @@ module Algolia
|
|
917
975
|
# @return [Destination]
|
918
976
|
def get_destination(destination_id, request_options = {})
|
919
977
|
response = get_destination_with_http_info(destination_id, request_options)
|
920
|
-
@api_client.deserialize(response.body, request_options[:debug_return_type] ||
|
978
|
+
@api_client.deserialize(response.body, request_options[:debug_return_type] || "Ingestion::Destination")
|
921
979
|
end
|
922
980
|
|
923
981
|
# Retrieves a list of destinations.
|
@@ -934,25 +992,45 @@ module Algolia
|
|
934
992
|
# @param order [OrderKeys] Sort order of the response, ascending or descending. (default to 'desc')
|
935
993
|
# @param request_options: The request options to send along with the query, they will be merged with the transporter base parameters (headers, query params, timeouts, etc.). (optional)
|
936
994
|
# @return [Http::Response] the response
|
937
|
-
def get_destinations_with_http_info(
|
995
|
+
def get_destinations_with_http_info(
|
996
|
+
items_per_page = nil,
|
997
|
+
page = nil,
|
998
|
+
type = nil,
|
999
|
+
authentication_id = nil,
|
1000
|
+
sort = nil,
|
1001
|
+
order = nil,
|
1002
|
+
request_options = {}
|
1003
|
+
)
|
938
1004
|
if @api_client.config.client_side_validation && !items_per_page.nil? && items_per_page > 100
|
939
|
-
raise
|
1005
|
+
raise(
|
1006
|
+
ArgumentError,
|
1007
|
+
"invalid value for \"\"items_per_page\"\" when calling IngestionClient.get_destinations, must be smaller than or equal to 100."
|
1008
|
+
)
|
940
1009
|
end
|
941
1010
|
|
942
1011
|
if @api_client.config.client_side_validation && !items_per_page.nil? && items_per_page < 1
|
943
|
-
raise
|
1012
|
+
raise(
|
1013
|
+
ArgumentError,
|
1014
|
+
"invalid value for \"\"items_per_page\"\" when calling IngestionClient.get_destinations, must be greater than or equal to 1."
|
1015
|
+
)
|
944
1016
|
end
|
945
1017
|
|
946
1018
|
if @api_client.config.client_side_validation && !page.nil? && page < 1
|
947
|
-
raise
|
1019
|
+
raise(
|
1020
|
+
ArgumentError,
|
1021
|
+
"invalid value for \"\"page\"\" when calling IngestionClient.get_destinations, must be greater than or equal to 1."
|
1022
|
+
)
|
948
1023
|
end
|
949
1024
|
|
950
|
-
path =
|
1025
|
+
path = "/1/destinations"
|
951
1026
|
query_params = {}
|
952
1027
|
query_params[:itemsPerPage] = items_per_page unless items_per_page.nil?
|
953
1028
|
query_params[:page] = page unless page.nil?
|
954
1029
|
query_params[:type] = @api_client.build_collection_param(type, :csv) unless type.nil?
|
955
|
-
|
1030
|
+
unless authentication_id.nil?
|
1031
|
+
query_params[:authenticationID] = @api_client.build_collection_param(authentication_id, :csv)
|
1032
|
+
end
|
1033
|
+
|
956
1034
|
query_params[:sort] = sort unless sort.nil?
|
957
1035
|
query_params[:order] = order unless order.nil?
|
958
1036
|
query_params = query_params.merge(request_options[:query_params]) unless request_options[:query_params].nil?
|
@@ -962,7 +1040,7 @@ module Algolia
|
|
962
1040
|
post_body = request_options[:debug_body]
|
963
1041
|
|
964
1042
|
new_options = request_options.merge(
|
965
|
-
:operation => :
|
1043
|
+
:operation => :"IngestionClient.get_destinations",
|
966
1044
|
:header_params => header_params,
|
967
1045
|
:query_params => query_params,
|
968
1046
|
:body => post_body,
|
@@ -986,9 +1064,28 @@ module Algolia
|
|
986
1064
|
# @param order [OrderKeys] Sort order of the response, ascending or descending. (default to 'desc')
|
987
1065
|
# @param request_options: The request options to send along with the query, they will be merged with the transporter base parameters (headers, query params, timeouts, etc.). (optional)
|
988
1066
|
# @return [ListDestinationsResponse]
|
989
|
-
def get_destinations(
|
990
|
-
|
991
|
-
|
1067
|
+
def get_destinations(
|
1068
|
+
items_per_page = nil,
|
1069
|
+
page = nil,
|
1070
|
+
type = nil,
|
1071
|
+
authentication_id = nil,
|
1072
|
+
sort = nil,
|
1073
|
+
order = nil,
|
1074
|
+
request_options = {}
|
1075
|
+
)
|
1076
|
+
response = get_destinations_with_http_info(
|
1077
|
+
items_per_page,
|
1078
|
+
page,
|
1079
|
+
type,
|
1080
|
+
authentication_id,
|
1081
|
+
sort,
|
1082
|
+
order,
|
1083
|
+
request_options
|
1084
|
+
)
|
1085
|
+
@api_client.deserialize(
|
1086
|
+
response.body,
|
1087
|
+
request_options[:debug_return_type] || "Ingestion::ListDestinationsResponse"
|
1088
|
+
)
|
992
1089
|
end
|
993
1090
|
|
994
1091
|
# Retrieves a single task run event by its ID.
|
@@ -1011,7 +1108,10 @@ module Algolia
|
|
1011
1108
|
raise ArgumentError, "Parameter `event_id` is required when calling `get_event`."
|
1012
1109
|
end
|
1013
1110
|
|
1014
|
-
path =
|
1111
|
+
path = "/1/runs/{runID}/events/{eventID}".sub("{" + "runID" + "}", Transport.encode_uri(run_id.to_s)).sub(
|
1112
|
+
"{" + "eventID" + "}",
|
1113
|
+
Transport.encode_uri(event_id.to_s)
|
1114
|
+
)
|
1015
1115
|
query_params = {}
|
1016
1116
|
query_params = query_params.merge(request_options[:query_params]) unless request_options[:query_params].nil?
|
1017
1117
|
header_params = {}
|
@@ -1020,7 +1120,7 @@ module Algolia
|
|
1020
1120
|
post_body = request_options[:debug_body]
|
1021
1121
|
|
1022
1122
|
new_options = request_options.merge(
|
1023
|
-
:operation => :
|
1123
|
+
:operation => :"IngestionClient.get_event",
|
1024
1124
|
:header_params => header_params,
|
1025
1125
|
:query_params => query_params,
|
1026
1126
|
:body => post_body,
|
@@ -1042,7 +1142,7 @@ module Algolia
|
|
1042
1142
|
# @return [Event]
|
1043
1143
|
def get_event(run_id, event_id, request_options = {})
|
1044
1144
|
response = get_event_with_http_info(run_id, event_id, request_options)
|
1045
|
-
@api_client.deserialize(response.body, request_options[:debug_return_type] ||
|
1145
|
+
@api_client.deserialize(response.body, request_options[:debug_return_type] || "Ingestion::Event")
|
1046
1146
|
end
|
1047
1147
|
|
1048
1148
|
# Retrieves a list of events for a task run, identified by it's ID.
|
@@ -1062,25 +1162,45 @@ module Algolia
|
|
1062
1162
|
# @param end_date [String] Date and time in RFC 3339 format for the latest events to retrieve. By default, the current time is used.
|
1063
1163
|
# @param request_options: The request options to send along with the query, they will be merged with the transporter base parameters (headers, query params, timeouts, etc.). (optional)
|
1064
1164
|
# @return [Http::Response] the response
|
1065
|
-
def get_events_with_http_info(
|
1066
|
-
|
1165
|
+
def get_events_with_http_info(
|
1166
|
+
run_id,
|
1167
|
+
items_per_page = nil,
|
1168
|
+
page = nil,
|
1169
|
+
status = nil,
|
1170
|
+
type = nil,
|
1171
|
+
sort = nil,
|
1172
|
+
order = nil,
|
1173
|
+
start_date = nil,
|
1174
|
+
end_date = nil,
|
1175
|
+
request_options = {}
|
1176
|
+
)
|
1067
1177
|
# verify the required parameter 'run_id' is set
|
1068
1178
|
if @api_client.config.client_side_validation && run_id.nil?
|
1069
1179
|
raise ArgumentError, "Parameter `run_id` is required when calling `get_events`."
|
1070
1180
|
end
|
1181
|
+
|
1071
1182
|
if @api_client.config.client_side_validation && !items_per_page.nil? && items_per_page > 100
|
1072
|
-
raise
|
1183
|
+
raise(
|
1184
|
+
ArgumentError,
|
1185
|
+
"invalid value for \"\"items_per_page\"\" when calling IngestionClient.get_events, must be smaller than or equal to 100."
|
1186
|
+
)
|
1073
1187
|
end
|
1074
1188
|
|
1075
1189
|
if @api_client.config.client_side_validation && !items_per_page.nil? && items_per_page < 1
|
1076
|
-
raise
|
1190
|
+
raise(
|
1191
|
+
ArgumentError,
|
1192
|
+
"invalid value for \"\"items_per_page\"\" when calling IngestionClient.get_events, must be greater than or equal to 1."
|
1193
|
+
)
|
1077
1194
|
end
|
1078
1195
|
|
1079
1196
|
if @api_client.config.client_side_validation && !page.nil? && page < 1
|
1080
|
-
raise
|
1197
|
+
raise(
|
1198
|
+
ArgumentError,
|
1199
|
+
"invalid value for \"\"page\"\" when calling IngestionClient.get_events, must be greater than or equal to 1."
|
1200
|
+
)
|
1081
1201
|
end
|
1082
1202
|
|
1083
|
-
path =
|
1203
|
+
path = "/1/runs/{runID}/events".sub("{" + "runID" + "}", Transport.encode_uri(run_id.to_s))
|
1084
1204
|
query_params = {}
|
1085
1205
|
query_params[:itemsPerPage] = items_per_page unless items_per_page.nil?
|
1086
1206
|
query_params[:page] = page unless page.nil?
|
@@ -1097,7 +1217,7 @@ module Algolia
|
|
1097
1217
|
post_body = request_options[:debug_body]
|
1098
1218
|
|
1099
1219
|
new_options = request_options.merge(
|
1100
|
-
:operation => :
|
1220
|
+
:operation => :"IngestionClient.get_events",
|
1101
1221
|
:header_params => header_params,
|
1102
1222
|
:query_params => query_params,
|
1103
1223
|
:body => post_body,
|
@@ -1124,9 +1244,31 @@ module Algolia
|
|
1124
1244
|
# @param end_date [String] Date and time in RFC 3339 format for the latest events to retrieve. By default, the current time is used.
|
1125
1245
|
# @param request_options: The request options to send along with the query, they will be merged with the transporter base parameters (headers, query params, timeouts, etc.). (optional)
|
1126
1246
|
# @return [ListEventsResponse]
|
1127
|
-
def get_events(
|
1128
|
-
|
1129
|
-
|
1247
|
+
def get_events(
|
1248
|
+
run_id,
|
1249
|
+
items_per_page = nil,
|
1250
|
+
page = nil,
|
1251
|
+
status = nil,
|
1252
|
+
type = nil,
|
1253
|
+
sort = nil,
|
1254
|
+
order = nil,
|
1255
|
+
start_date = nil,
|
1256
|
+
end_date = nil,
|
1257
|
+
request_options = {}
|
1258
|
+
)
|
1259
|
+
response = get_events_with_http_info(
|
1260
|
+
run_id,
|
1261
|
+
items_per_page,
|
1262
|
+
page,
|
1263
|
+
status,
|
1264
|
+
type,
|
1265
|
+
sort,
|
1266
|
+
order,
|
1267
|
+
start_date,
|
1268
|
+
end_date,
|
1269
|
+
request_options
|
1270
|
+
)
|
1271
|
+
@api_client.deserialize(response.body, request_options[:debug_return_type] || "Ingestion::ListEventsResponse")
|
1130
1272
|
end
|
1131
1273
|
|
1132
1274
|
# Retrieve a single task run by its ID.
|
@@ -1144,7 +1286,7 @@ module Algolia
|
|
1144
1286
|
raise ArgumentError, "Parameter `run_id` is required when calling `get_run`."
|
1145
1287
|
end
|
1146
1288
|
|
1147
|
-
path =
|
1289
|
+
path = "/1/runs/{runID}".sub("{" + "runID" + "}", Transport.encode_uri(run_id.to_s))
|
1148
1290
|
query_params = {}
|
1149
1291
|
query_params = query_params.merge(request_options[:query_params]) unless request_options[:query_params].nil?
|
1150
1292
|
header_params = {}
|
@@ -1153,7 +1295,7 @@ module Algolia
|
|
1153
1295
|
post_body = request_options[:debug_body]
|
1154
1296
|
|
1155
1297
|
new_options = request_options.merge(
|
1156
|
-
:operation => :
|
1298
|
+
:operation => :"IngestionClient.get_run",
|
1157
1299
|
:header_params => header_params,
|
1158
1300
|
:query_params => query_params,
|
1159
1301
|
:body => post_body,
|
@@ -1174,7 +1316,7 @@ module Algolia
|
|
1174
1316
|
# @return [Run]
|
1175
1317
|
def get_run(run_id, request_options = {})
|
1176
1318
|
response = get_run_with_http_info(run_id, request_options)
|
1177
|
-
@api_client.deserialize(response.body, request_options[:debug_return_type] ||
|
1319
|
+
@api_client.deserialize(response.body, request_options[:debug_return_type] || "Ingestion::Run")
|
1178
1320
|
end
|
1179
1321
|
|
1180
1322
|
# Retrieve a list of task runs.
|
@@ -1193,20 +1335,39 @@ module Algolia
|
|
1193
1335
|
# @param end_date [String] Date in RFC 3339 format for the latest run to retrieve. By default, the current day is used.
|
1194
1336
|
# @param request_options: The request options to send along with the query, they will be merged with the transporter base parameters (headers, query params, timeouts, etc.). (optional)
|
1195
1337
|
# @return [Http::Response] the response
|
1196
|
-
def get_runs_with_http_info(
|
1338
|
+
def get_runs_with_http_info(
|
1339
|
+
items_per_page = nil,
|
1340
|
+
page = nil,
|
1341
|
+
status = nil,
|
1342
|
+
task_id = nil,
|
1343
|
+
sort = nil,
|
1344
|
+
order = nil,
|
1345
|
+
start_date = nil,
|
1346
|
+
end_date = nil,
|
1347
|
+
request_options = {}
|
1348
|
+
)
|
1197
1349
|
if @api_client.config.client_side_validation && !items_per_page.nil? && items_per_page > 100
|
1198
|
-
raise
|
1350
|
+
raise(
|
1351
|
+
ArgumentError,
|
1352
|
+
"invalid value for \"\"items_per_page\"\" when calling IngestionClient.get_runs, must be smaller than or equal to 100."
|
1353
|
+
)
|
1199
1354
|
end
|
1200
1355
|
|
1201
1356
|
if @api_client.config.client_side_validation && !items_per_page.nil? && items_per_page < 1
|
1202
|
-
raise
|
1357
|
+
raise(
|
1358
|
+
ArgumentError,
|
1359
|
+
"invalid value for \"\"items_per_page\"\" when calling IngestionClient.get_runs, must be greater than or equal to 1."
|
1360
|
+
)
|
1203
1361
|
end
|
1204
1362
|
|
1205
1363
|
if @api_client.config.client_side_validation && !page.nil? && page < 1
|
1206
|
-
raise
|
1364
|
+
raise(
|
1365
|
+
ArgumentError,
|
1366
|
+
"invalid value for \"\"page\"\" when calling IngestionClient.get_runs, must be greater than or equal to 1."
|
1367
|
+
)
|
1207
1368
|
end
|
1208
1369
|
|
1209
|
-
path =
|
1370
|
+
path = "/1/runs"
|
1210
1371
|
query_params = {}
|
1211
1372
|
query_params[:itemsPerPage] = items_per_page unless items_per_page.nil?
|
1212
1373
|
query_params[:page] = page unless page.nil?
|
@@ -1223,7 +1384,7 @@ module Algolia
|
|
1223
1384
|
post_body = request_options[:debug_body]
|
1224
1385
|
|
1225
1386
|
new_options = request_options.merge(
|
1226
|
-
:operation => :
|
1387
|
+
:operation => :"IngestionClient.get_runs",
|
1227
1388
|
:header_params => header_params,
|
1228
1389
|
:query_params => query_params,
|
1229
1390
|
:body => post_body,
|
@@ -1249,9 +1410,29 @@ module Algolia
|
|
1249
1410
|
# @param end_date [String] Date in RFC 3339 format for the latest run to retrieve. By default, the current day is used.
|
1250
1411
|
# @param request_options: The request options to send along with the query, they will be merged with the transporter base parameters (headers, query params, timeouts, etc.). (optional)
|
1251
1412
|
# @return [RunListResponse]
|
1252
|
-
def get_runs(
|
1253
|
-
|
1254
|
-
|
1413
|
+
def get_runs(
|
1414
|
+
items_per_page = nil,
|
1415
|
+
page = nil,
|
1416
|
+
status = nil,
|
1417
|
+
task_id = nil,
|
1418
|
+
sort = nil,
|
1419
|
+
order = nil,
|
1420
|
+
start_date = nil,
|
1421
|
+
end_date = nil,
|
1422
|
+
request_options = {}
|
1423
|
+
)
|
1424
|
+
response = get_runs_with_http_info(
|
1425
|
+
items_per_page,
|
1426
|
+
page,
|
1427
|
+
status,
|
1428
|
+
task_id,
|
1429
|
+
sort,
|
1430
|
+
order,
|
1431
|
+
start_date,
|
1432
|
+
end_date,
|
1433
|
+
request_options
|
1434
|
+
)
|
1435
|
+
@api_client.deserialize(response.body, request_options[:debug_return_type] || "Ingestion::RunListResponse")
|
1255
1436
|
end
|
1256
1437
|
|
1257
1438
|
# Retrieve a source by its ID.
|
@@ -1269,7 +1450,7 @@ module Algolia
|
|
1269
1450
|
raise ArgumentError, "Parameter `source_id` is required when calling `get_source`."
|
1270
1451
|
end
|
1271
1452
|
|
1272
|
-
path =
|
1453
|
+
path = "/1/sources/{sourceID}".sub("{" + "sourceID" + "}", Transport.encode_uri(source_id.to_s))
|
1273
1454
|
query_params = {}
|
1274
1455
|
query_params = query_params.merge(request_options[:query_params]) unless request_options[:query_params].nil?
|
1275
1456
|
header_params = {}
|
@@ -1278,7 +1459,7 @@ module Algolia
|
|
1278
1459
|
post_body = request_options[:debug_body]
|
1279
1460
|
|
1280
1461
|
new_options = request_options.merge(
|
1281
|
-
:operation => :
|
1462
|
+
:operation => :"IngestionClient.get_source",
|
1282
1463
|
:header_params => header_params,
|
1283
1464
|
:query_params => query_params,
|
1284
1465
|
:body => post_body,
|
@@ -1299,7 +1480,7 @@ module Algolia
|
|
1299
1480
|
# @return [Source]
|
1300
1481
|
def get_source(source_id, request_options = {})
|
1301
1482
|
response = get_source_with_http_info(source_id, request_options)
|
1302
|
-
@api_client.deserialize(response.body, request_options[:debug_return_type] ||
|
1483
|
+
@api_client.deserialize(response.body, request_options[:debug_return_type] || "Ingestion::Source")
|
1303
1484
|
end
|
1304
1485
|
|
1305
1486
|
# Retrieves a list of sources.
|
@@ -1316,25 +1497,45 @@ module Algolia
|
|
1316
1497
|
# @param order [OrderKeys] Sort order of the response, ascending or descending. (default to 'desc')
|
1317
1498
|
# @param request_options: The request options to send along with the query, they will be merged with the transporter base parameters (headers, query params, timeouts, etc.). (optional)
|
1318
1499
|
# @return [Http::Response] the response
|
1319
|
-
def get_sources_with_http_info(
|
1500
|
+
def get_sources_with_http_info(
|
1501
|
+
items_per_page = nil,
|
1502
|
+
page = nil,
|
1503
|
+
type = nil,
|
1504
|
+
authentication_id = nil,
|
1505
|
+
sort = nil,
|
1506
|
+
order = nil,
|
1507
|
+
request_options = {}
|
1508
|
+
)
|
1320
1509
|
if @api_client.config.client_side_validation && !items_per_page.nil? && items_per_page > 100
|
1321
|
-
raise
|
1510
|
+
raise(
|
1511
|
+
ArgumentError,
|
1512
|
+
"invalid value for \"\"items_per_page\"\" when calling IngestionClient.get_sources, must be smaller than or equal to 100."
|
1513
|
+
)
|
1322
1514
|
end
|
1323
1515
|
|
1324
1516
|
if @api_client.config.client_side_validation && !items_per_page.nil? && items_per_page < 1
|
1325
|
-
raise
|
1517
|
+
raise(
|
1518
|
+
ArgumentError,
|
1519
|
+
"invalid value for \"\"items_per_page\"\" when calling IngestionClient.get_sources, must be greater than or equal to 1."
|
1520
|
+
)
|
1326
1521
|
end
|
1327
1522
|
|
1328
1523
|
if @api_client.config.client_side_validation && !page.nil? && page < 1
|
1329
|
-
raise
|
1524
|
+
raise(
|
1525
|
+
ArgumentError,
|
1526
|
+
"invalid value for \"\"page\"\" when calling IngestionClient.get_sources, must be greater than or equal to 1."
|
1527
|
+
)
|
1330
1528
|
end
|
1331
1529
|
|
1332
|
-
path =
|
1530
|
+
path = "/1/sources"
|
1333
1531
|
query_params = {}
|
1334
1532
|
query_params[:itemsPerPage] = items_per_page unless items_per_page.nil?
|
1335
1533
|
query_params[:page] = page unless page.nil?
|
1336
1534
|
query_params[:type] = @api_client.build_collection_param(type, :csv) unless type.nil?
|
1337
|
-
|
1535
|
+
unless authentication_id.nil?
|
1536
|
+
query_params[:authenticationID] = @api_client.build_collection_param(authentication_id, :csv)
|
1537
|
+
end
|
1538
|
+
|
1338
1539
|
query_params[:sort] = sort unless sort.nil?
|
1339
1540
|
query_params[:order] = order unless order.nil?
|
1340
1541
|
query_params = query_params.merge(request_options[:query_params]) unless request_options[:query_params].nil?
|
@@ -1344,7 +1545,7 @@ module Algolia
|
|
1344
1545
|
post_body = request_options[:debug_body]
|
1345
1546
|
|
1346
1547
|
new_options = request_options.merge(
|
1347
|
-
:operation => :
|
1548
|
+
:operation => :"IngestionClient.get_sources",
|
1348
1549
|
:header_params => header_params,
|
1349
1550
|
:query_params => query_params,
|
1350
1551
|
:body => post_body,
|
@@ -1368,9 +1569,17 @@ module Algolia
|
|
1368
1569
|
# @param order [OrderKeys] Sort order of the response, ascending or descending. (default to 'desc')
|
1369
1570
|
# @param request_options: The request options to send along with the query, they will be merged with the transporter base parameters (headers, query params, timeouts, etc.). (optional)
|
1370
1571
|
# @return [ListSourcesResponse]
|
1371
|
-
def get_sources(
|
1572
|
+
def get_sources(
|
1573
|
+
items_per_page = nil,
|
1574
|
+
page = nil,
|
1575
|
+
type = nil,
|
1576
|
+
authentication_id = nil,
|
1577
|
+
sort = nil,
|
1578
|
+
order = nil,
|
1579
|
+
request_options = {}
|
1580
|
+
)
|
1372
1581
|
response = get_sources_with_http_info(items_per_page, page, type, authentication_id, sort, order, request_options)
|
1373
|
-
@api_client.deserialize(response.body, request_options[:debug_return_type] ||
|
1582
|
+
@api_client.deserialize(response.body, request_options[:debug_return_type] || "Ingestion::ListSourcesResponse")
|
1374
1583
|
end
|
1375
1584
|
|
1376
1585
|
# Retrieves a task by its ID.
|
@@ -1388,7 +1597,7 @@ module Algolia
|
|
1388
1597
|
raise ArgumentError, "Parameter `task_id` is required when calling `get_task`."
|
1389
1598
|
end
|
1390
1599
|
|
1391
|
-
path =
|
1600
|
+
path = "/1/tasks/{taskID}".sub("{" + "taskID" + "}", Transport.encode_uri(task_id.to_s))
|
1392
1601
|
query_params = {}
|
1393
1602
|
query_params = query_params.merge(request_options[:query_params]) unless request_options[:query_params].nil?
|
1394
1603
|
header_params = {}
|
@@ -1397,7 +1606,7 @@ module Algolia
|
|
1397
1606
|
post_body = request_options[:debug_body]
|
1398
1607
|
|
1399
1608
|
new_options = request_options.merge(
|
1400
|
-
:operation => :
|
1609
|
+
:operation => :"IngestionClient.get_task",
|
1401
1610
|
:header_params => header_params,
|
1402
1611
|
:query_params => query_params,
|
1403
1612
|
:body => post_body,
|
@@ -1418,7 +1627,7 @@ module Algolia
|
|
1418
1627
|
# @return [Task]
|
1419
1628
|
def get_task(task_id, request_options = {})
|
1420
1629
|
response = get_task_with_http_info(task_id, request_options)
|
1421
|
-
@api_client.deserialize(response.body, request_options[:debug_return_type] ||
|
1630
|
+
@api_client.deserialize(response.body, request_options[:debug_return_type] || "Ingestion::Task")
|
1422
1631
|
end
|
1423
1632
|
|
1424
1633
|
# Retrieves a list of tasks.
|
@@ -1438,28 +1647,50 @@ module Algolia
|
|
1438
1647
|
# @param order [OrderKeys] Sort order of the response, ascending or descending. (default to 'desc')
|
1439
1648
|
# @param request_options: The request options to send along with the query, they will be merged with the transporter base parameters (headers, query params, timeouts, etc.). (optional)
|
1440
1649
|
# @return [Http::Response] the response
|
1441
|
-
def get_tasks_with_http_info(
|
1442
|
-
|
1650
|
+
def get_tasks_with_http_info(
|
1651
|
+
items_per_page = nil,
|
1652
|
+
page = nil,
|
1653
|
+
action = nil,
|
1654
|
+
enabled = nil,
|
1655
|
+
source_id = nil,
|
1656
|
+
destination_id = nil,
|
1657
|
+
trigger_type = nil,
|
1658
|
+
sort = nil,
|
1659
|
+
order = nil,
|
1660
|
+
request_options = {}
|
1661
|
+
)
|
1443
1662
|
if @api_client.config.client_side_validation && !items_per_page.nil? && items_per_page > 100
|
1444
|
-
raise
|
1663
|
+
raise(
|
1664
|
+
ArgumentError,
|
1665
|
+
"invalid value for \"\"items_per_page\"\" when calling IngestionClient.get_tasks, must be smaller than or equal to 100."
|
1666
|
+
)
|
1445
1667
|
end
|
1446
1668
|
|
1447
1669
|
if @api_client.config.client_side_validation && !items_per_page.nil? && items_per_page < 1
|
1448
|
-
raise
|
1670
|
+
raise(
|
1671
|
+
ArgumentError,
|
1672
|
+
"invalid value for \"\"items_per_page\"\" when calling IngestionClient.get_tasks, must be greater than or equal to 1."
|
1673
|
+
)
|
1449
1674
|
end
|
1450
1675
|
|
1451
1676
|
if @api_client.config.client_side_validation && !page.nil? && page < 1
|
1452
|
-
raise
|
1677
|
+
raise(
|
1678
|
+
ArgumentError,
|
1679
|
+
"invalid value for \"\"page\"\" when calling IngestionClient.get_tasks, must be greater than or equal to 1."
|
1680
|
+
)
|
1453
1681
|
end
|
1454
1682
|
|
1455
|
-
path =
|
1683
|
+
path = "/1/tasks"
|
1456
1684
|
query_params = {}
|
1457
1685
|
query_params[:itemsPerPage] = items_per_page unless items_per_page.nil?
|
1458
1686
|
query_params[:page] = page unless page.nil?
|
1459
1687
|
query_params[:action] = @api_client.build_collection_param(action, :csv) unless action.nil?
|
1460
1688
|
query_params[:enabled] = enabled unless enabled.nil?
|
1461
1689
|
query_params[:sourceID] = @api_client.build_collection_param(source_id, :csv) unless source_id.nil?
|
1462
|
-
|
1690
|
+
unless destination_id.nil?
|
1691
|
+
query_params[:destinationID] = @api_client.build_collection_param(destination_id, :csv)
|
1692
|
+
end
|
1693
|
+
|
1463
1694
|
query_params[:triggerType] = @api_client.build_collection_param(trigger_type, :csv) unless trigger_type.nil?
|
1464
1695
|
query_params[:sort] = sort unless sort.nil?
|
1465
1696
|
query_params[:order] = order unless order.nil?
|
@@ -1470,7 +1701,7 @@ module Algolia
|
|
1470
1701
|
post_body = request_options[:debug_body]
|
1471
1702
|
|
1472
1703
|
new_options = request_options.merge(
|
1473
|
-
:operation => :
|
1704
|
+
:operation => :"IngestionClient.get_tasks",
|
1474
1705
|
:header_params => header_params,
|
1475
1706
|
:query_params => query_params,
|
1476
1707
|
:body => post_body,
|
@@ -1497,10 +1728,31 @@ module Algolia
|
|
1497
1728
|
# @param order [OrderKeys] Sort order of the response, ascending or descending. (default to 'desc')
|
1498
1729
|
# @param request_options: The request options to send along with the query, they will be merged with the transporter base parameters (headers, query params, timeouts, etc.). (optional)
|
1499
1730
|
# @return [ListTasksResponse]
|
1500
|
-
def get_tasks(
|
1501
|
-
|
1502
|
-
|
1503
|
-
|
1731
|
+
def get_tasks(
|
1732
|
+
items_per_page = nil,
|
1733
|
+
page = nil,
|
1734
|
+
action = nil,
|
1735
|
+
enabled = nil,
|
1736
|
+
source_id = nil,
|
1737
|
+
destination_id = nil,
|
1738
|
+
trigger_type = nil,
|
1739
|
+
sort = nil,
|
1740
|
+
order = nil,
|
1741
|
+
request_options = {}
|
1742
|
+
)
|
1743
|
+
response = get_tasks_with_http_info(
|
1744
|
+
items_per_page,
|
1745
|
+
page,
|
1746
|
+
action,
|
1747
|
+
enabled,
|
1748
|
+
source_id,
|
1749
|
+
destination_id,
|
1750
|
+
trigger_type,
|
1751
|
+
sort,
|
1752
|
+
order,
|
1753
|
+
request_options
|
1754
|
+
)
|
1755
|
+
@api_client.deserialize(response.body, request_options[:debug_return_type] || "Ingestion::ListTasksResponse")
|
1504
1756
|
end
|
1505
1757
|
|
1506
1758
|
# Retrieves a transformation by its ID.
|
@@ -1518,7 +1770,10 @@ module Algolia
|
|
1518
1770
|
raise ArgumentError, "Parameter `transformation_id` is required when calling `get_transformation`."
|
1519
1771
|
end
|
1520
1772
|
|
1521
|
-
path =
|
1773
|
+
path = "/1/transformations/{transformationID}".sub(
|
1774
|
+
"{" + "transformationID" + "}",
|
1775
|
+
Transport.encode_uri(transformation_id.to_s)
|
1776
|
+
)
|
1522
1777
|
query_params = {}
|
1523
1778
|
query_params = query_params.merge(request_options[:query_params]) unless request_options[:query_params].nil?
|
1524
1779
|
header_params = {}
|
@@ -1527,7 +1782,7 @@ module Algolia
|
|
1527
1782
|
post_body = request_options[:debug_body]
|
1528
1783
|
|
1529
1784
|
new_options = request_options.merge(
|
1530
|
-
:operation => :
|
1785
|
+
:operation => :"IngestionClient.get_transformation",
|
1531
1786
|
:header_params => header_params,
|
1532
1787
|
:query_params => query_params,
|
1533
1788
|
:body => post_body,
|
@@ -1548,7 +1803,7 @@ module Algolia
|
|
1548
1803
|
# @return [Transformation]
|
1549
1804
|
def get_transformation(transformation_id, request_options = {})
|
1550
1805
|
response = get_transformation_with_http_info(transformation_id, request_options)
|
1551
|
-
@api_client.deserialize(response.body, request_options[:debug_return_type] ||
|
1806
|
+
@api_client.deserialize(response.body, request_options[:debug_return_type] || "Ingestion::Transformation")
|
1552
1807
|
end
|
1553
1808
|
|
1554
1809
|
# Retrieves a list of transformations.
|
@@ -1562,7 +1817,7 @@ module Algolia
|
|
1562
1817
|
# @param request_options: The request options to send along with the query, they will be merged with the transporter base parameters (headers, query params, timeouts, etc.). (optional)
|
1563
1818
|
# @return [Http::Response] the response
|
1564
1819
|
def get_transformations_with_http_info(sort = nil, order = nil, request_options = {})
|
1565
|
-
path =
|
1820
|
+
path = "/1/transformations"
|
1566
1821
|
query_params = {}
|
1567
1822
|
query_params[:sort] = sort unless sort.nil?
|
1568
1823
|
query_params[:order] = order unless order.nil?
|
@@ -1573,7 +1828,7 @@ module Algolia
|
|
1573
1828
|
post_body = request_options[:debug_body]
|
1574
1829
|
|
1575
1830
|
new_options = request_options.merge(
|
1576
|
-
:operation => :
|
1831
|
+
:operation => :"IngestionClient.get_transformations",
|
1577
1832
|
:header_params => header_params,
|
1578
1833
|
:query_params => query_params,
|
1579
1834
|
:body => post_body,
|
@@ -1595,7 +1850,10 @@ module Algolia
|
|
1595
1850
|
# @return [ListTransformationsResponse]
|
1596
1851
|
def get_transformations(sort = nil, order = nil, request_options = {})
|
1597
1852
|
response = get_transformations_with_http_info(sort, order, request_options)
|
1598
|
-
@api_client.deserialize(
|
1853
|
+
@api_client.deserialize(
|
1854
|
+
response.body,
|
1855
|
+
request_options[:debug_return_type] || "Ingestion::ListTransformationsResponse"
|
1856
|
+
)
|
1599
1857
|
end
|
1600
1858
|
|
1601
1859
|
# Runs a task. You can check the status of task runs with the observability endpoints.
|
@@ -1613,7 +1871,7 @@ module Algolia
|
|
1613
1871
|
raise ArgumentError, "Parameter `task_id` is required when calling `run_task`."
|
1614
1872
|
end
|
1615
1873
|
|
1616
|
-
path =
|
1874
|
+
path = "/1/tasks/{taskID}/run".sub("{" + "taskID" + "}", Transport.encode_uri(task_id.to_s))
|
1617
1875
|
query_params = {}
|
1618
1876
|
query_params = query_params.merge(request_options[:query_params]) unless request_options[:query_params].nil?
|
1619
1877
|
header_params = {}
|
@@ -1622,7 +1880,7 @@ module Algolia
|
|
1622
1880
|
post_body = request_options[:debug_body]
|
1623
1881
|
|
1624
1882
|
new_options = request_options.merge(
|
1625
|
-
:operation => :
|
1883
|
+
:operation => :"IngestionClient.run_task",
|
1626
1884
|
:header_params => header_params,
|
1627
1885
|
:query_params => query_params,
|
1628
1886
|
:body => post_body,
|
@@ -1643,7 +1901,7 @@ module Algolia
|
|
1643
1901
|
# @return [RunResponse]
|
1644
1902
|
def run_task(task_id, request_options = {})
|
1645
1903
|
response = run_task_with_http_info(task_id, request_options)
|
1646
|
-
@api_client.deserialize(response.body, request_options[:debug_return_type] ||
|
1904
|
+
@api_client.deserialize(response.body, request_options[:debug_return_type] || "Ingestion::RunResponse")
|
1647
1905
|
end
|
1648
1906
|
|
1649
1907
|
# Searches for authentication resources.
|
@@ -1661,7 +1919,7 @@ module Algolia
|
|
1661
1919
|
raise ArgumentError, "Parameter `authentication_search` is required when calling `search_authentications`."
|
1662
1920
|
end
|
1663
1921
|
|
1664
|
-
path =
|
1922
|
+
path = "/1/authentications/search"
|
1665
1923
|
query_params = {}
|
1666
1924
|
query_params = query_params.merge(request_options[:query_params]) unless request_options[:query_params].nil?
|
1667
1925
|
header_params = {}
|
@@ -1670,7 +1928,7 @@ module Algolia
|
|
1670
1928
|
post_body = request_options[:debug_body] || @api_client.object_to_http_body(authentication_search)
|
1671
1929
|
|
1672
1930
|
new_options = request_options.merge(
|
1673
|
-
:operation => :
|
1931
|
+
:operation => :"IngestionClient.search_authentications",
|
1674
1932
|
:header_params => header_params,
|
1675
1933
|
:query_params => query_params,
|
1676
1934
|
:body => post_body,
|
@@ -1691,7 +1949,7 @@ module Algolia
|
|
1691
1949
|
# @return [Array<Authentication>]
|
1692
1950
|
def search_authentications(authentication_search, request_options = {})
|
1693
1951
|
response = search_authentications_with_http_info(authentication_search, request_options)
|
1694
|
-
@api_client.deserialize(response.body, request_options[:debug_return_type] ||
|
1952
|
+
@api_client.deserialize(response.body, request_options[:debug_return_type] || "Array<Ingestion::Authentication>")
|
1695
1953
|
end
|
1696
1954
|
|
1697
1955
|
# Searches for destinations.
|
@@ -1709,7 +1967,7 @@ module Algolia
|
|
1709
1967
|
raise ArgumentError, "Parameter `destination_search` is required when calling `search_destinations`."
|
1710
1968
|
end
|
1711
1969
|
|
1712
|
-
path =
|
1970
|
+
path = "/1/destinations/search"
|
1713
1971
|
query_params = {}
|
1714
1972
|
query_params = query_params.merge(request_options[:query_params]) unless request_options[:query_params].nil?
|
1715
1973
|
header_params = {}
|
@@ -1718,7 +1976,7 @@ module Algolia
|
|
1718
1976
|
post_body = request_options[:debug_body] || @api_client.object_to_http_body(destination_search)
|
1719
1977
|
|
1720
1978
|
new_options = request_options.merge(
|
1721
|
-
:operation => :
|
1979
|
+
:operation => :"IngestionClient.search_destinations",
|
1722
1980
|
:header_params => header_params,
|
1723
1981
|
:query_params => query_params,
|
1724
1982
|
:body => post_body,
|
@@ -1739,7 +1997,7 @@ module Algolia
|
|
1739
1997
|
# @return [Array<Destination>]
|
1740
1998
|
def search_destinations(destination_search, request_options = {})
|
1741
1999
|
response = search_destinations_with_http_info(destination_search, request_options)
|
1742
|
-
@api_client.deserialize(response.body, request_options[:debug_return_type] ||
|
2000
|
+
@api_client.deserialize(response.body, request_options[:debug_return_type] || "Array<Ingestion::Destination>")
|
1743
2001
|
end
|
1744
2002
|
|
1745
2003
|
# Searches for sources.
|
@@ -1757,7 +2015,7 @@ module Algolia
|
|
1757
2015
|
raise ArgumentError, "Parameter `source_search` is required when calling `search_sources`."
|
1758
2016
|
end
|
1759
2017
|
|
1760
|
-
path =
|
2018
|
+
path = "/1/sources/search"
|
1761
2019
|
query_params = {}
|
1762
2020
|
query_params = query_params.merge(request_options[:query_params]) unless request_options[:query_params].nil?
|
1763
2021
|
header_params = {}
|
@@ -1766,7 +2024,7 @@ module Algolia
|
|
1766
2024
|
post_body = request_options[:debug_body] || @api_client.object_to_http_body(source_search)
|
1767
2025
|
|
1768
2026
|
new_options = request_options.merge(
|
1769
|
-
:operation => :
|
2027
|
+
:operation => :"IngestionClient.search_sources",
|
1770
2028
|
:header_params => header_params,
|
1771
2029
|
:query_params => query_params,
|
1772
2030
|
:body => post_body,
|
@@ -1787,7 +2045,7 @@ module Algolia
|
|
1787
2045
|
# @return [Array<Source>]
|
1788
2046
|
def search_sources(source_search, request_options = {})
|
1789
2047
|
response = search_sources_with_http_info(source_search, request_options)
|
1790
|
-
@api_client.deserialize(response.body, request_options[:debug_return_type] ||
|
2048
|
+
@api_client.deserialize(response.body, request_options[:debug_return_type] || "Array<Ingestion::Source>")
|
1791
2049
|
end
|
1792
2050
|
|
1793
2051
|
# Searches for tasks.
|
@@ -1805,7 +2063,7 @@ module Algolia
|
|
1805
2063
|
raise ArgumentError, "Parameter `task_search` is required when calling `search_tasks`."
|
1806
2064
|
end
|
1807
2065
|
|
1808
|
-
path =
|
2066
|
+
path = "/1/tasks/search"
|
1809
2067
|
query_params = {}
|
1810
2068
|
query_params = query_params.merge(request_options[:query_params]) unless request_options[:query_params].nil?
|
1811
2069
|
header_params = {}
|
@@ -1814,7 +2072,7 @@ module Algolia
|
|
1814
2072
|
post_body = request_options[:debug_body] || @api_client.object_to_http_body(task_search)
|
1815
2073
|
|
1816
2074
|
new_options = request_options.merge(
|
1817
|
-
:operation => :
|
2075
|
+
:operation => :"IngestionClient.search_tasks",
|
1818
2076
|
:header_params => header_params,
|
1819
2077
|
:query_params => query_params,
|
1820
2078
|
:body => post_body,
|
@@ -1835,7 +2093,7 @@ module Algolia
|
|
1835
2093
|
# @return [Array<Task>]
|
1836
2094
|
def search_tasks(task_search, request_options = {})
|
1837
2095
|
response = search_tasks_with_http_info(task_search, request_options)
|
1838
|
-
@api_client.deserialize(response.body, request_options[:debug_return_type] ||
|
2096
|
+
@api_client.deserialize(response.body, request_options[:debug_return_type] || "Array<Ingestion::Task>")
|
1839
2097
|
end
|
1840
2098
|
|
1841
2099
|
# Searches for transformations.
|
@@ -1853,7 +2111,7 @@ module Algolia
|
|
1853
2111
|
raise ArgumentError, "Parameter `transformation_search` is required when calling `search_transformations`."
|
1854
2112
|
end
|
1855
2113
|
|
1856
|
-
path =
|
2114
|
+
path = "/1/transformations/search"
|
1857
2115
|
query_params = {}
|
1858
2116
|
query_params = query_params.merge(request_options[:query_params]) unless request_options[:query_params].nil?
|
1859
2117
|
header_params = {}
|
@@ -1862,7 +2120,7 @@ module Algolia
|
|
1862
2120
|
post_body = request_options[:debug_body] || @api_client.object_to_http_body(transformation_search)
|
1863
2121
|
|
1864
2122
|
new_options = request_options.merge(
|
1865
|
-
:operation => :
|
2123
|
+
:operation => :"IngestionClient.search_transformations",
|
1866
2124
|
:header_params => header_params,
|
1867
2125
|
:query_params => query_params,
|
1868
2126
|
:body => post_body,
|
@@ -1883,7 +2141,7 @@ module Algolia
|
|
1883
2141
|
# @return [Array<Transformation>]
|
1884
2142
|
def search_transformations(transformation_search, request_options = {})
|
1885
2143
|
response = search_transformations_with_http_info(transformation_search, request_options)
|
1886
|
-
@api_client.deserialize(response.body, request_options[:debug_return_type] ||
|
2144
|
+
@api_client.deserialize(response.body, request_options[:debug_return_type] || "Array<Ingestion::Transformation>")
|
1887
2145
|
end
|
1888
2146
|
|
1889
2147
|
# Triggers a stream-listing request for a source. Triggering stream-listing requests only works with sources with `type: docker` and `imageType: singer`.
|
@@ -1901,7 +2159,7 @@ module Algolia
|
|
1901
2159
|
raise ArgumentError, "Parameter `source_id` is required when calling `trigger_docker_source_discover`."
|
1902
2160
|
end
|
1903
2161
|
|
1904
|
-
path =
|
2162
|
+
path = "/1/sources/{sourceID}/discover".sub("{" + "sourceID" + "}", Transport.encode_uri(source_id.to_s))
|
1905
2163
|
query_params = {}
|
1906
2164
|
query_params = query_params.merge(request_options[:query_params]) unless request_options[:query_params].nil?
|
1907
2165
|
header_params = {}
|
@@ -1910,7 +2168,7 @@ module Algolia
|
|
1910
2168
|
post_body = request_options[:debug_body]
|
1911
2169
|
|
1912
2170
|
new_options = request_options.merge(
|
1913
|
-
:operation => :
|
2171
|
+
:operation => :"IngestionClient.trigger_docker_source_discover",
|
1914
2172
|
:header_params => header_params,
|
1915
2173
|
:query_params => query_params,
|
1916
2174
|
:body => post_body,
|
@@ -1931,7 +2189,7 @@ module Algolia
|
|
1931
2189
|
# @return [SourceWatchResponse]
|
1932
2190
|
def trigger_docker_source_discover(source_id, request_options = {})
|
1933
2191
|
response = trigger_docker_source_discover_with_http_info(source_id, request_options)
|
1934
|
-
@api_client.deserialize(response.body, request_options[:debug_return_type] ||
|
2192
|
+
@api_client.deserialize(response.body, request_options[:debug_return_type] || "Ingestion::SourceWatchResponse")
|
1935
2193
|
end
|
1936
2194
|
|
1937
2195
|
# Try a transformation.
|
@@ -1949,7 +2207,7 @@ module Algolia
|
|
1949
2207
|
raise ArgumentError, "Parameter `transformation_try` is required when calling `try_transformations`."
|
1950
2208
|
end
|
1951
2209
|
|
1952
|
-
path =
|
2210
|
+
path = "/1/transformations/try"
|
1953
2211
|
query_params = {}
|
1954
2212
|
query_params = query_params.merge(request_options[:query_params]) unless request_options[:query_params].nil?
|
1955
2213
|
header_params = {}
|
@@ -1958,7 +2216,7 @@ module Algolia
|
|
1958
2216
|
post_body = request_options[:debug_body] || @api_client.object_to_http_body(transformation_try)
|
1959
2217
|
|
1960
2218
|
new_options = request_options.merge(
|
1961
|
-
:operation => :
|
2219
|
+
:operation => :"IngestionClient.try_transformations",
|
1962
2220
|
:header_params => header_params,
|
1963
2221
|
:query_params => query_params,
|
1964
2222
|
:body => post_body,
|
@@ -1979,7 +2237,10 @@ module Algolia
|
|
1979
2237
|
# @return [TransformationTryResponse]
|
1980
2238
|
def try_transformations(transformation_try, request_options = {})
|
1981
2239
|
response = try_transformations_with_http_info(transformation_try, request_options)
|
1982
|
-
@api_client.deserialize(
|
2240
|
+
@api_client.deserialize(
|
2241
|
+
response.body,
|
2242
|
+
request_options[:debug_return_type] || "Ingestion::TransformationTryResponse"
|
2243
|
+
)
|
1983
2244
|
end
|
1984
2245
|
|
1985
2246
|
# Updates an authentication resource.
|
@@ -2002,7 +2263,10 @@ module Algolia
|
|
2002
2263
|
raise ArgumentError, "Parameter `authentication_update` is required when calling `update_authentication`."
|
2003
2264
|
end
|
2004
2265
|
|
2005
|
-
path =
|
2266
|
+
path = "/1/authentications/{authenticationID}".sub(
|
2267
|
+
"{" + "authenticationID" + "}",
|
2268
|
+
Transport.encode_uri(authentication_id.to_s)
|
2269
|
+
)
|
2006
2270
|
query_params = {}
|
2007
2271
|
query_params = query_params.merge(request_options[:query_params]) unless request_options[:query_params].nil?
|
2008
2272
|
header_params = {}
|
@@ -2011,7 +2275,7 @@ module Algolia
|
|
2011
2275
|
post_body = request_options[:debug_body] || @api_client.object_to_http_body(authentication_update)
|
2012
2276
|
|
2013
2277
|
new_options = request_options.merge(
|
2014
|
-
:operation => :
|
2278
|
+
:operation => :"IngestionClient.update_authentication",
|
2015
2279
|
:header_params => header_params,
|
2016
2280
|
:query_params => query_params,
|
2017
2281
|
:body => post_body,
|
@@ -2033,7 +2297,10 @@ module Algolia
|
|
2033
2297
|
# @return [AuthenticationUpdateResponse]
|
2034
2298
|
def update_authentication(authentication_id, authentication_update, request_options = {})
|
2035
2299
|
response = update_authentication_with_http_info(authentication_id, authentication_update, request_options)
|
2036
|
-
@api_client.deserialize(
|
2300
|
+
@api_client.deserialize(
|
2301
|
+
response.body,
|
2302
|
+
request_options[:debug_return_type] || "Ingestion::AuthenticationUpdateResponse"
|
2303
|
+
)
|
2037
2304
|
end
|
2038
2305
|
|
2039
2306
|
# Updates the destination by its ID.
|
@@ -2056,7 +2323,10 @@ module Algolia
|
|
2056
2323
|
raise ArgumentError, "Parameter `destination_update` is required when calling `update_destination`."
|
2057
2324
|
end
|
2058
2325
|
|
2059
|
-
path =
|
2326
|
+
path = "/1/destinations/{destinationID}".sub(
|
2327
|
+
"{" + "destinationID" + "}",
|
2328
|
+
Transport.encode_uri(destination_id.to_s)
|
2329
|
+
)
|
2060
2330
|
query_params = {}
|
2061
2331
|
query_params = query_params.merge(request_options[:query_params]) unless request_options[:query_params].nil?
|
2062
2332
|
header_params = {}
|
@@ -2065,7 +2335,7 @@ module Algolia
|
|
2065
2335
|
post_body = request_options[:debug_body] || @api_client.object_to_http_body(destination_update)
|
2066
2336
|
|
2067
2337
|
new_options = request_options.merge(
|
2068
|
-
:operation => :
|
2338
|
+
:operation => :"IngestionClient.update_destination",
|
2069
2339
|
:header_params => header_params,
|
2070
2340
|
:query_params => query_params,
|
2071
2341
|
:body => post_body,
|
@@ -2087,7 +2357,10 @@ module Algolia
|
|
2087
2357
|
# @return [DestinationUpdateResponse]
|
2088
2358
|
def update_destination(destination_id, destination_update, request_options = {})
|
2089
2359
|
response = update_destination_with_http_info(destination_id, destination_update, request_options)
|
2090
|
-
@api_client.deserialize(
|
2360
|
+
@api_client.deserialize(
|
2361
|
+
response.body,
|
2362
|
+
request_options[:debug_return_type] || "Ingestion::DestinationUpdateResponse"
|
2363
|
+
)
|
2091
2364
|
end
|
2092
2365
|
|
2093
2366
|
# Updates a source by its ID.
|
@@ -2110,7 +2383,7 @@ module Algolia
|
|
2110
2383
|
raise ArgumentError, "Parameter `source_update` is required when calling `update_source`."
|
2111
2384
|
end
|
2112
2385
|
|
2113
|
-
path =
|
2386
|
+
path = "/1/sources/{sourceID}".sub("{" + "sourceID" + "}", Transport.encode_uri(source_id.to_s))
|
2114
2387
|
query_params = {}
|
2115
2388
|
query_params = query_params.merge(request_options[:query_params]) unless request_options[:query_params].nil?
|
2116
2389
|
header_params = {}
|
@@ -2119,7 +2392,7 @@ module Algolia
|
|
2119
2392
|
post_body = request_options[:debug_body] || @api_client.object_to_http_body(source_update)
|
2120
2393
|
|
2121
2394
|
new_options = request_options.merge(
|
2122
|
-
:operation => :
|
2395
|
+
:operation => :"IngestionClient.update_source",
|
2123
2396
|
:header_params => header_params,
|
2124
2397
|
:query_params => query_params,
|
2125
2398
|
:body => post_body,
|
@@ -2141,7 +2414,7 @@ module Algolia
|
|
2141
2414
|
# @return [SourceUpdateResponse]
|
2142
2415
|
def update_source(source_id, source_update, request_options = {})
|
2143
2416
|
response = update_source_with_http_info(source_id, source_update, request_options)
|
2144
|
-
@api_client.deserialize(response.body, request_options[:debug_return_type] ||
|
2417
|
+
@api_client.deserialize(response.body, request_options[:debug_return_type] || "Ingestion::SourceUpdateResponse")
|
2145
2418
|
end
|
2146
2419
|
|
2147
2420
|
# Updates a task by its ID.
|
@@ -2160,7 +2433,7 @@ module Algolia
|
|
2160
2433
|
raise ArgumentError, "Parameter `task_update` is required when calling `update_task`."
|
2161
2434
|
end
|
2162
2435
|
|
2163
|
-
path =
|
2436
|
+
path = "/1/tasks/{taskID}".sub("{" + "taskID" + "}", Transport.encode_uri(task_id.to_s))
|
2164
2437
|
query_params = {}
|
2165
2438
|
query_params = query_params.merge(request_options[:query_params]) unless request_options[:query_params].nil?
|
2166
2439
|
header_params = {}
|
@@ -2169,7 +2442,7 @@ module Algolia
|
|
2169
2442
|
post_body = request_options[:debug_body] || @api_client.object_to_http_body(task_update)
|
2170
2443
|
|
2171
2444
|
new_options = request_options.merge(
|
2172
|
-
:operation => :
|
2445
|
+
:operation => :"IngestionClient.update_task",
|
2173
2446
|
:header_params => header_params,
|
2174
2447
|
:query_params => query_params,
|
2175
2448
|
:body => post_body,
|
@@ -2187,7 +2460,7 @@ module Algolia
|
|
2187
2460
|
# @return [TaskUpdateResponse]
|
2188
2461
|
def update_task(task_id, task_update, request_options = {})
|
2189
2462
|
response = update_task_with_http_info(task_id, task_update, request_options)
|
2190
|
-
@api_client.deserialize(response.body, request_options[:debug_return_type] ||
|
2463
|
+
@api_client.deserialize(response.body, request_options[:debug_return_type] || "Ingestion::TaskUpdateResponse")
|
2191
2464
|
end
|
2192
2465
|
|
2193
2466
|
# Updates a transformation by its ID.
|
@@ -2206,7 +2479,10 @@ module Algolia
|
|
2206
2479
|
raise ArgumentError, "Parameter `transformation_create` is required when calling `update_transformation`."
|
2207
2480
|
end
|
2208
2481
|
|
2209
|
-
path =
|
2482
|
+
path = "/1/transformations/{transformationID}".sub(
|
2483
|
+
"{" + "transformationID" + "}",
|
2484
|
+
Transport.encode_uri(transformation_id.to_s)
|
2485
|
+
)
|
2210
2486
|
query_params = {}
|
2211
2487
|
query_params = query_params.merge(request_options[:query_params]) unless request_options[:query_params].nil?
|
2212
2488
|
header_params = {}
|
@@ -2215,7 +2491,7 @@ module Algolia
|
|
2215
2491
|
post_body = request_options[:debug_body] || @api_client.object_to_http_body(transformation_create)
|
2216
2492
|
|
2217
2493
|
new_options = request_options.merge(
|
2218
|
-
:operation => :
|
2494
|
+
:operation => :"IngestionClient.update_transformation",
|
2219
2495
|
:header_params => header_params,
|
2220
2496
|
:query_params => query_params,
|
2221
2497
|
:body => post_body,
|
@@ -2233,7 +2509,10 @@ module Algolia
|
|
2233
2509
|
# @return [TransformationUpdateResponse]
|
2234
2510
|
def update_transformation(transformation_id, transformation_create, request_options = {})
|
2235
2511
|
response = update_transformation_with_http_info(transformation_id, transformation_create, request_options)
|
2236
|
-
@api_client.deserialize(
|
2512
|
+
@api_client.deserialize(
|
2513
|
+
response.body,
|
2514
|
+
request_options[:debug_return_type] || "Ingestion::TransformationUpdateResponse"
|
2515
|
+
)
|
2237
2516
|
end
|
2238
2517
|
|
2239
2518
|
# Validates a source payload to ensure it can be created and that the data source can be reached by Algolia.
|
@@ -2246,7 +2525,7 @@ module Algolia
|
|
2246
2525
|
# @param request_options: The request options to send along with the query, they will be merged with the transporter base parameters (headers, query params, timeouts, etc.). (optional)
|
2247
2526
|
# @return [Http::Response] the response
|
2248
2527
|
def validate_source_with_http_info(source_create = nil, request_options = {})
|
2249
|
-
path =
|
2528
|
+
path = "/1/sources/validate"
|
2250
2529
|
query_params = {}
|
2251
2530
|
query_params = query_params.merge(request_options[:query_params]) unless request_options[:query_params].nil?
|
2252
2531
|
header_params = {}
|
@@ -2255,7 +2534,7 @@ module Algolia
|
|
2255
2534
|
post_body = request_options[:debug_body] || @api_client.object_to_http_body(source_create)
|
2256
2535
|
|
2257
2536
|
new_options = request_options.merge(
|
2258
|
-
:operation => :
|
2537
|
+
:operation => :"IngestionClient.validate_source",
|
2259
2538
|
:header_params => header_params,
|
2260
2539
|
:query_params => query_params,
|
2261
2540
|
:body => post_body,
|
@@ -2276,7 +2555,7 @@ module Algolia
|
|
2276
2555
|
# @return [SourceWatchResponse]
|
2277
2556
|
def validate_source(source_create = nil, request_options = {})
|
2278
2557
|
response = validate_source_with_http_info(source_create, request_options)
|
2279
|
-
@api_client.deserialize(response.body, request_options[:debug_return_type] ||
|
2558
|
+
@api_client.deserialize(response.body, request_options[:debug_return_type] || "Ingestion::SourceWatchResponse")
|
2280
2559
|
end
|
2281
2560
|
|
2282
2561
|
# Validates an update of a source payload to ensure it can be created and that the data source can be reached by Algolia.
|
@@ -2299,7 +2578,7 @@ module Algolia
|
|
2299
2578
|
raise ArgumentError, "Parameter `source_update` is required when calling `validate_source_before_update`."
|
2300
2579
|
end
|
2301
2580
|
|
2302
|
-
path =
|
2581
|
+
path = "/1/sources/{sourceID}/validate".sub("{" + "sourceID" + "}", Transport.encode_uri(source_id.to_s))
|
2303
2582
|
query_params = {}
|
2304
2583
|
query_params = query_params.merge(request_options[:query_params]) unless request_options[:query_params].nil?
|
2305
2584
|
header_params = {}
|
@@ -2308,7 +2587,7 @@ module Algolia
|
|
2308
2587
|
post_body = request_options[:debug_body] || @api_client.object_to_http_body(source_update)
|
2309
2588
|
|
2310
2589
|
new_options = request_options.merge(
|
2311
|
-
:operation => :
|
2590
|
+
:operation => :"IngestionClient.validate_source_before_update",
|
2312
2591
|
:header_params => header_params,
|
2313
2592
|
:query_params => query_params,
|
2314
2593
|
:body => post_body,
|
@@ -2330,7 +2609,8 @@ module Algolia
|
|
2330
2609
|
# @return [SourceWatchResponse]
|
2331
2610
|
def validate_source_before_update(source_id, source_update, request_options = {})
|
2332
2611
|
response = validate_source_before_update_with_http_info(source_id, source_update, request_options)
|
2333
|
-
@api_client.deserialize(response.body, request_options[:debug_return_type] ||
|
2612
|
+
@api_client.deserialize(response.body, request_options[:debug_return_type] || "Ingestion::SourceWatchResponse")
|
2334
2613
|
end
|
2614
|
+
|
2335
2615
|
end
|
2336
2616
|
end
|