elasticsearch-api 8.10.0 → 8.11.0
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/api-spec-testing/test_file/action.rb +76 -64
- data/api-spec-testing/test_file/task_group.rb +1 -1
- data/api-spec-testing/test_file.rb +8 -3
- data/elasticsearch-api.gemspec +2 -2
- data/lib/elasticsearch/api/actions/async_search/delete.rb +10 -2
- data/lib/elasticsearch/api/actions/async_search/get.rb +10 -2
- data/lib/elasticsearch/api/actions/async_search/status.rb +10 -2
- data/lib/elasticsearch/api/actions/async_search/submit.rb +10 -2
- data/lib/elasticsearch/api/actions/autoscaling/delete_autoscaling_policy.rb +10 -2
- data/lib/elasticsearch/api/actions/autoscaling/get_autoscaling_capacity.rb +4 -2
- data/lib/elasticsearch/api/actions/autoscaling/get_autoscaling_policy.rb +10 -2
- data/lib/elasticsearch/api/actions/autoscaling/put_autoscaling_policy.rb +10 -2
- data/lib/elasticsearch/api/actions/bulk.rb +10 -2
- data/lib/elasticsearch/api/actions/cat/aliases.rb +10 -2
- data/lib/elasticsearch/api/actions/cat/allocation.rb +10 -2
- data/lib/elasticsearch/api/actions/cat/component_templates.rb +10 -2
- data/lib/elasticsearch/api/actions/cat/count.rb +10 -2
- data/lib/elasticsearch/api/actions/cat/fielddata.rb +10 -2
- data/lib/elasticsearch/api/actions/cat/health.rb +4 -2
- data/lib/elasticsearch/api/actions/cat/help.rb +4 -2
- data/lib/elasticsearch/api/actions/cat/indices.rb +10 -2
- data/lib/elasticsearch/api/actions/cat/master.rb +4 -2
- data/lib/elasticsearch/api/actions/cat/ml_data_frame_analytics.rb +10 -2
- data/lib/elasticsearch/api/actions/cat/ml_datafeeds.rb +10 -2
- data/lib/elasticsearch/api/actions/cat/ml_jobs.rb +10 -2
- data/lib/elasticsearch/api/actions/cat/ml_trained_models.rb +10 -2
- data/lib/elasticsearch/api/actions/cat/nodeattrs.rb +4 -2
- data/lib/elasticsearch/api/actions/cat/nodes.rb +4 -2
- data/lib/elasticsearch/api/actions/cat/pending_tasks.rb +4 -2
- data/lib/elasticsearch/api/actions/cat/plugins.rb +4 -2
- data/lib/elasticsearch/api/actions/cat/recovery.rb +10 -2
- data/lib/elasticsearch/api/actions/cat/repositories.rb +4 -2
- data/lib/elasticsearch/api/actions/cat/segments.rb +10 -2
- data/lib/elasticsearch/api/actions/cat/shards.rb +10 -2
- data/lib/elasticsearch/api/actions/cat/snapshots.rb +10 -2
- data/lib/elasticsearch/api/actions/cat/tasks.rb +4 -2
- data/lib/elasticsearch/api/actions/cat/templates.rb +10 -2
- data/lib/elasticsearch/api/actions/cat/thread_pool.rb +10 -2
- data/lib/elasticsearch/api/actions/cat/transforms.rb +10 -2
- data/lib/elasticsearch/api/actions/clear_scroll.rb +11 -3
- data/lib/elasticsearch/api/actions/close_point_in_time.rb +4 -2
- data/lib/elasticsearch/api/actions/cluster/allocation_explain.rb +4 -2
- data/lib/elasticsearch/api/actions/cluster/delete_component_template.rb +10 -2
- data/lib/elasticsearch/api/actions/cluster/delete_voting_config_exclusions.rb +4 -2
- data/lib/elasticsearch/api/actions/cluster/exists_component_template.rb +10 -2
- data/lib/elasticsearch/api/actions/cluster/get_component_template.rb +10 -2
- data/lib/elasticsearch/api/actions/cluster/get_settings.rb +4 -2
- data/lib/elasticsearch/api/actions/cluster/health.rb +10 -2
- data/lib/elasticsearch/api/actions/cluster/info.rb +10 -2
- data/lib/elasticsearch/api/actions/cluster/pending_tasks.rb +4 -2
- data/lib/elasticsearch/api/actions/cluster/post_voting_config_exclusions.rb +4 -2
- data/lib/elasticsearch/api/actions/cluster/put_component_template.rb +10 -2
- data/lib/elasticsearch/api/actions/cluster/put_settings.rb +4 -2
- data/lib/elasticsearch/api/actions/cluster/remote_info.rb +4 -2
- data/lib/elasticsearch/api/actions/cluster/reroute.rb +4 -2
- data/lib/elasticsearch/api/actions/cluster/state.rb +10 -2
- data/lib/elasticsearch/api/actions/cluster/stats.rb +10 -2
- data/lib/elasticsearch/api/actions/count.rb +10 -2
- data/lib/elasticsearch/api/actions/create.rb +9 -1
- data/lib/elasticsearch/api/actions/cross_cluster_replication/delete_auto_follow_pattern.rb +10 -2
- data/lib/elasticsearch/api/actions/cross_cluster_replication/follow.rb +10 -2
- data/lib/elasticsearch/api/actions/cross_cluster_replication/follow_info.rb +10 -2
- data/lib/elasticsearch/api/actions/cross_cluster_replication/follow_stats.rb +10 -2
- data/lib/elasticsearch/api/actions/cross_cluster_replication/forget_follower.rb +10 -2
- data/lib/elasticsearch/api/actions/cross_cluster_replication/get_auto_follow_pattern.rb +10 -2
- data/lib/elasticsearch/api/actions/cross_cluster_replication/pause_auto_follow_pattern.rb +10 -2
- data/lib/elasticsearch/api/actions/cross_cluster_replication/pause_follow.rb +10 -2
- data/lib/elasticsearch/api/actions/cross_cluster_replication/put_auto_follow_pattern.rb +10 -2
- data/lib/elasticsearch/api/actions/cross_cluster_replication/resume_auto_follow_pattern.rb +10 -2
- data/lib/elasticsearch/api/actions/cross_cluster_replication/resume_follow.rb +10 -2
- data/lib/elasticsearch/api/actions/cross_cluster_replication/stats.rb +4 -2
- data/lib/elasticsearch/api/actions/cross_cluster_replication/unfollow.rb +10 -2
- data/lib/elasticsearch/api/actions/dangling_indices/delete_dangling_index.rb +10 -2
- data/lib/elasticsearch/api/actions/dangling_indices/import_dangling_index.rb +10 -2
- data/lib/elasticsearch/api/actions/dangling_indices/list_dangling_indices.rb +4 -2
- data/lib/elasticsearch/api/actions/delete.rb +11 -3
- data/lib/elasticsearch/api/actions/delete_by_query.rb +10 -2
- data/lib/elasticsearch/api/actions/delete_by_query_rethrottle.rb +10 -2
- data/lib/elasticsearch/api/actions/delete_script.rb +10 -2
- data/lib/elasticsearch/api/actions/enrich/delete_policy.rb +10 -2
- data/lib/elasticsearch/api/actions/enrich/execute_policy.rb +10 -2
- data/lib/elasticsearch/api/actions/enrich/get_policy.rb +10 -2
- data/lib/elasticsearch/api/actions/enrich/put_policy.rb +10 -2
- data/lib/elasticsearch/api/actions/enrich/stats.rb +4 -2
- data/lib/elasticsearch/api/actions/eql/delete.rb +10 -2
- data/lib/elasticsearch/api/actions/eql/get.rb +10 -2
- data/lib/elasticsearch/api/actions/eql/get_status.rb +10 -2
- data/lib/elasticsearch/api/actions/eql/search.rb +10 -2
- data/lib/elasticsearch/api/actions/esql/query.rb +59 -0
- data/lib/elasticsearch/api/actions/exists.rb +10 -2
- data/lib/elasticsearch/api/actions/exists_source.rb +10 -2
- data/lib/elasticsearch/api/actions/explain.rb +10 -2
- data/lib/elasticsearch/api/actions/features/get_features.rb +4 -2
- data/lib/elasticsearch/api/actions/features/reset_features.rb +4 -2
- data/lib/elasticsearch/api/actions/field_caps.rb +10 -2
- data/lib/elasticsearch/api/actions/fleet/delete_secret.rb +9 -1
- data/lib/elasticsearch/api/actions/fleet/get_secret.rb +9 -1
- data/lib/elasticsearch/api/actions/fleet/global_checkpoints.rb +10 -2
- data/lib/elasticsearch/api/actions/fleet/msearch.rb +9 -1
- data/lib/elasticsearch/api/actions/fleet/post_secret.rb +3 -1
- data/lib/elasticsearch/api/actions/fleet/search.rb +9 -1
- data/lib/elasticsearch/api/actions/get.rb +11 -3
- data/lib/elasticsearch/api/actions/get_script.rb +10 -2
- data/lib/elasticsearch/api/actions/get_script_context.rb +4 -2
- data/lib/elasticsearch/api/actions/get_script_languages.rb +4 -2
- data/lib/elasticsearch/api/actions/get_source.rb +10 -2
- data/lib/elasticsearch/api/actions/graph/explore.rb +10 -2
- data/lib/elasticsearch/api/actions/health_report.rb +10 -2
- data/lib/elasticsearch/api/actions/index.rb +10 -2
- data/lib/elasticsearch/api/actions/index_lifecycle_management/delete_lifecycle.rb +10 -2
- data/lib/elasticsearch/api/actions/index_lifecycle_management/explain_lifecycle.rb +10 -2
- data/lib/elasticsearch/api/actions/index_lifecycle_management/get_lifecycle.rb +10 -2
- data/lib/elasticsearch/api/actions/index_lifecycle_management/get_status.rb +4 -2
- data/lib/elasticsearch/api/actions/index_lifecycle_management/migrate_to_data_tiers.rb +4 -2
- data/lib/elasticsearch/api/actions/index_lifecycle_management/move_to_step.rb +10 -2
- data/lib/elasticsearch/api/actions/index_lifecycle_management/put_lifecycle.rb +10 -2
- data/lib/elasticsearch/api/actions/index_lifecycle_management/remove_policy.rb +10 -2
- data/lib/elasticsearch/api/actions/index_lifecycle_management/retry.rb +10 -2
- data/lib/elasticsearch/api/actions/index_lifecycle_management/start.rb +4 -2
- data/lib/elasticsearch/api/actions/index_lifecycle_management/stop.rb +4 -2
- data/lib/elasticsearch/api/actions/indices/add_block.rb +10 -2
- data/lib/elasticsearch/api/actions/indices/analyze.rb +10 -2
- data/lib/elasticsearch/api/actions/indices/clear_cache.rb +10 -2
- data/lib/elasticsearch/api/actions/indices/clone.rb +10 -2
- data/lib/elasticsearch/api/actions/indices/close.rb +10 -2
- data/lib/elasticsearch/api/actions/indices/create.rb +10 -2
- data/lib/elasticsearch/api/actions/indices/create_data_stream.rb +10 -2
- data/lib/elasticsearch/api/actions/indices/data_streams_stats.rb +10 -2
- data/lib/elasticsearch/api/actions/indices/delete.rb +11 -3
- data/lib/elasticsearch/api/actions/indices/delete_alias.rb +10 -2
- data/lib/elasticsearch/api/actions/indices/delete_data_lifecycle.rb +10 -2
- data/lib/elasticsearch/api/actions/indices/delete_data_stream.rb +10 -2
- data/lib/elasticsearch/api/actions/indices/delete_index_template.rb +10 -2
- data/lib/elasticsearch/api/actions/indices/delete_template.rb +11 -3
- data/lib/elasticsearch/api/actions/indices/disk_usage.rb +10 -2
- data/lib/elasticsearch/api/actions/indices/downsample.rb +10 -2
- data/lib/elasticsearch/api/actions/indices/exists.rb +10 -2
- data/lib/elasticsearch/api/actions/indices/exists_alias.rb +10 -2
- data/lib/elasticsearch/api/actions/indices/exists_index_template.rb +10 -2
- data/lib/elasticsearch/api/actions/indices/exists_template.rb +10 -2
- data/lib/elasticsearch/api/actions/indices/explain_data_lifecycle.rb +10 -2
- data/lib/elasticsearch/api/actions/indices/field_usage_stats.rb +10 -2
- data/lib/elasticsearch/api/actions/indices/flush.rb +10 -2
- data/lib/elasticsearch/api/actions/indices/forcemerge.rb +10 -2
- data/lib/elasticsearch/api/actions/indices/get.rb +10 -2
- data/lib/elasticsearch/api/actions/indices/get_alias.rb +10 -2
- data/lib/elasticsearch/api/actions/indices/get_data_lifecycle.rb +10 -2
- data/lib/elasticsearch/api/actions/indices/get_data_stream.rb +10 -2
- data/lib/elasticsearch/api/actions/indices/get_field_mapping.rb +10 -2
- data/lib/elasticsearch/api/actions/indices/get_index_template.rb +10 -2
- data/lib/elasticsearch/api/actions/indices/get_mapping.rb +10 -2
- data/lib/elasticsearch/api/actions/indices/get_settings.rb +10 -2
- data/lib/elasticsearch/api/actions/indices/get_template.rb +10 -2
- data/lib/elasticsearch/api/actions/indices/migrate_to_data_stream.rb +10 -2
- data/lib/elasticsearch/api/actions/indices/modify_data_stream.rb +4 -2
- data/lib/elasticsearch/api/actions/indices/open.rb +10 -2
- data/lib/elasticsearch/api/actions/indices/promote_data_stream.rb +10 -2
- data/lib/elasticsearch/api/actions/indices/put_alias.rb +10 -2
- data/lib/elasticsearch/api/actions/indices/put_data_lifecycle.rb +10 -2
- data/lib/elasticsearch/api/actions/indices/put_index_template.rb +10 -2
- data/lib/elasticsearch/api/actions/indices/put_mapping.rb +10 -2
- data/lib/elasticsearch/api/actions/indices/put_settings.rb +10 -2
- data/lib/elasticsearch/api/actions/indices/put_template.rb +10 -2
- data/lib/elasticsearch/api/actions/indices/recovery.rb +10 -2
- data/lib/elasticsearch/api/actions/indices/refresh.rb +10 -2
- data/lib/elasticsearch/api/actions/indices/reload_search_analyzers.rb +10 -2
- data/lib/elasticsearch/api/actions/indices/resolve_index.rb +10 -2
- data/lib/elasticsearch/api/actions/indices/rollover.rb +10 -2
- data/lib/elasticsearch/api/actions/indices/segments.rb +10 -2
- data/lib/elasticsearch/api/actions/indices/shard_stores.rb +10 -2
- data/lib/elasticsearch/api/actions/indices/shrink.rb +10 -2
- data/lib/elasticsearch/api/actions/indices/simulate_index_template.rb +10 -2
- data/lib/elasticsearch/api/actions/indices/simulate_template.rb +10 -2
- data/lib/elasticsearch/api/actions/indices/split.rb +10 -2
- data/lib/elasticsearch/api/actions/indices/stats.rb +10 -2
- data/lib/elasticsearch/api/actions/indices/unfreeze.rb +10 -2
- data/lib/elasticsearch/api/actions/indices/update_aliases.rb +4 -2
- data/lib/elasticsearch/api/actions/indices/validate_query.rb +10 -2
- data/lib/elasticsearch/api/actions/inference/delete_model.rb +69 -0
- data/lib/elasticsearch/api/actions/inference/get_model.rb +69 -0
- data/lib/elasticsearch/api/actions/inference/inference.rb +70 -0
- data/lib/elasticsearch/api/actions/inference/put_model.rb +70 -0
- data/lib/elasticsearch/api/actions/info.rb +4 -2
- data/lib/elasticsearch/api/actions/ingest/delete_pipeline.rb +10 -2
- data/lib/elasticsearch/api/actions/ingest/geo_ip_stats.rb +4 -2
- data/lib/elasticsearch/api/actions/ingest/get_pipeline.rb +10 -2
- data/lib/elasticsearch/api/actions/ingest/processor_grok.rb +4 -2
- data/lib/elasticsearch/api/actions/ingest/put_pipeline.rb +10 -2
- data/lib/elasticsearch/api/actions/ingest/simulate.rb +10 -2
- data/lib/elasticsearch/api/actions/knn_search.rb +10 -2
- data/lib/elasticsearch/api/actions/license/delete.rb +4 -2
- data/lib/elasticsearch/api/actions/license/get.rb +4 -2
- data/lib/elasticsearch/api/actions/license/get_basic_status.rb +4 -2
- data/lib/elasticsearch/api/actions/license/get_trial_status.rb +4 -2
- data/lib/elasticsearch/api/actions/license/post.rb +4 -2
- data/lib/elasticsearch/api/actions/license/post_start_basic.rb +4 -2
- data/lib/elasticsearch/api/actions/license/post_start_trial.rb +4 -2
- data/lib/elasticsearch/api/actions/logstash/delete_pipeline.rb +10 -2
- data/lib/elasticsearch/api/actions/logstash/get_pipeline.rb +10 -2
- data/lib/elasticsearch/api/actions/logstash/put_pipeline.rb +10 -2
- data/lib/elasticsearch/api/actions/machine_learning/clear_trained_model_deployment_cache.rb +10 -2
- data/lib/elasticsearch/api/actions/machine_learning/close_job.rb +10 -2
- data/lib/elasticsearch/api/actions/machine_learning/delete_calendar.rb +10 -2
- data/lib/elasticsearch/api/actions/machine_learning/delete_calendar_event.rb +10 -2
- data/lib/elasticsearch/api/actions/machine_learning/delete_calendar_job.rb +10 -2
- data/lib/elasticsearch/api/actions/machine_learning/delete_data_frame_analytics.rb +10 -2
- data/lib/elasticsearch/api/actions/machine_learning/delete_datafeed.rb +10 -2
- data/lib/elasticsearch/api/actions/machine_learning/delete_expired_data.rb +10 -2
- data/lib/elasticsearch/api/actions/machine_learning/delete_filter.rb +10 -2
- data/lib/elasticsearch/api/actions/machine_learning/delete_forecast.rb +10 -2
- data/lib/elasticsearch/api/actions/machine_learning/delete_job.rb +10 -2
- data/lib/elasticsearch/api/actions/machine_learning/delete_model_snapshot.rb +10 -2
- data/lib/elasticsearch/api/actions/machine_learning/delete_trained_model.rb +10 -2
- data/lib/elasticsearch/api/actions/machine_learning/delete_trained_model_alias.rb +10 -2
- data/lib/elasticsearch/api/actions/machine_learning/estimate_model_memory.rb +4 -2
- data/lib/elasticsearch/api/actions/machine_learning/evaluate_data_frame.rb +4 -2
- data/lib/elasticsearch/api/actions/machine_learning/explain_data_frame_analytics.rb +10 -2
- data/lib/elasticsearch/api/actions/machine_learning/flush_job.rb +10 -2
- data/lib/elasticsearch/api/actions/machine_learning/forecast.rb +10 -2
- data/lib/elasticsearch/api/actions/machine_learning/get_buckets.rb +10 -2
- data/lib/elasticsearch/api/actions/machine_learning/get_calendar_events.rb +10 -2
- data/lib/elasticsearch/api/actions/machine_learning/get_calendars.rb +10 -2
- data/lib/elasticsearch/api/actions/machine_learning/get_categories.rb +10 -2
- data/lib/elasticsearch/api/actions/machine_learning/get_data_frame_analytics.rb +10 -2
- data/lib/elasticsearch/api/actions/machine_learning/get_data_frame_analytics_stats.rb +10 -2
- data/lib/elasticsearch/api/actions/machine_learning/get_datafeed_stats.rb +10 -2
- data/lib/elasticsearch/api/actions/machine_learning/get_datafeeds.rb +10 -2
- data/lib/elasticsearch/api/actions/machine_learning/get_filters.rb +10 -2
- data/lib/elasticsearch/api/actions/machine_learning/get_influencers.rb +10 -2
- data/lib/elasticsearch/api/actions/machine_learning/get_job_stats.rb +10 -2
- data/lib/elasticsearch/api/actions/machine_learning/get_jobs.rb +10 -2
- data/lib/elasticsearch/api/actions/machine_learning/get_memory_stats.rb +10 -2
- data/lib/elasticsearch/api/actions/machine_learning/get_model_snapshot_upgrade_stats.rb +10 -2
- data/lib/elasticsearch/api/actions/machine_learning/get_model_snapshots.rb +10 -2
- data/lib/elasticsearch/api/actions/machine_learning/get_overall_buckets.rb +10 -2
- data/lib/elasticsearch/api/actions/machine_learning/get_records.rb +10 -2
- data/lib/elasticsearch/api/actions/machine_learning/get_trained_models.rb +10 -2
- data/lib/elasticsearch/api/actions/machine_learning/get_trained_models_stats.rb +10 -2
- data/lib/elasticsearch/api/actions/machine_learning/infer_trained_model.rb +10 -2
- data/lib/elasticsearch/api/actions/machine_learning/info.rb +4 -2
- data/lib/elasticsearch/api/actions/machine_learning/open_job.rb +10 -2
- data/lib/elasticsearch/api/actions/machine_learning/post_calendar_events.rb +10 -2
- data/lib/elasticsearch/api/actions/machine_learning/post_data.rb +10 -2
- data/lib/elasticsearch/api/actions/machine_learning/preview_data_frame_analytics.rb +10 -2
- data/lib/elasticsearch/api/actions/machine_learning/preview_datafeed.rb +10 -2
- data/lib/elasticsearch/api/actions/machine_learning/put_calendar.rb +10 -2
- data/lib/elasticsearch/api/actions/machine_learning/put_calendar_job.rb +10 -2
- data/lib/elasticsearch/api/actions/machine_learning/put_data_frame_analytics.rb +10 -2
- data/lib/elasticsearch/api/actions/machine_learning/put_datafeed.rb +10 -2
- data/lib/elasticsearch/api/actions/machine_learning/put_filter.rb +10 -2
- data/lib/elasticsearch/api/actions/machine_learning/put_job.rb +10 -2
- data/lib/elasticsearch/api/actions/machine_learning/put_trained_model.rb +10 -2
- data/lib/elasticsearch/api/actions/machine_learning/put_trained_model_alias.rb +10 -2
- data/lib/elasticsearch/api/actions/machine_learning/put_trained_model_definition_part.rb +10 -2
- data/lib/elasticsearch/api/actions/machine_learning/put_trained_model_vocabulary.rb +10 -2
- data/lib/elasticsearch/api/actions/machine_learning/reset_job.rb +10 -2
- data/lib/elasticsearch/api/actions/machine_learning/revert_model_snapshot.rb +10 -2
- data/lib/elasticsearch/api/actions/machine_learning/set_upgrade_mode.rb +4 -2
- data/lib/elasticsearch/api/actions/machine_learning/start_data_frame_analytics.rb +10 -2
- data/lib/elasticsearch/api/actions/machine_learning/start_datafeed.rb +10 -2
- data/lib/elasticsearch/api/actions/machine_learning/start_trained_model_deployment.rb +10 -2
- data/lib/elasticsearch/api/actions/machine_learning/stop_data_frame_analytics.rb +10 -2
- data/lib/elasticsearch/api/actions/machine_learning/stop_datafeed.rb +10 -2
- data/lib/elasticsearch/api/actions/machine_learning/stop_trained_model_deployment.rb +10 -2
- data/lib/elasticsearch/api/actions/machine_learning/update_data_frame_analytics.rb +10 -2
- data/lib/elasticsearch/api/actions/machine_learning/update_datafeed.rb +10 -2
- data/lib/elasticsearch/api/actions/machine_learning/update_filter.rb +10 -2
- data/lib/elasticsearch/api/actions/machine_learning/update_job.rb +10 -2
- data/lib/elasticsearch/api/actions/machine_learning/update_model_snapshot.rb +10 -2
- data/lib/elasticsearch/api/actions/machine_learning/update_trained_model_deployment.rb +10 -2
- data/lib/elasticsearch/api/actions/machine_learning/upgrade_job_snapshot.rb +10 -2
- data/lib/elasticsearch/api/actions/machine_learning/validate.rb +4 -2
- data/lib/elasticsearch/api/actions/machine_learning/validate_detector.rb +4 -2
- data/lib/elasticsearch/api/actions/mget.rb +10 -2
- data/lib/elasticsearch/api/actions/migration/deprecations.rb +10 -2
- data/lib/elasticsearch/api/actions/migration/get_feature_upgrade_status.rb +4 -2
- data/lib/elasticsearch/api/actions/migration/post_feature_upgrade.rb +4 -2
- data/lib/elasticsearch/api/actions/monitoring/bulk.rb +10 -2
- data/lib/elasticsearch/api/actions/msearch.rb +10 -2
- data/lib/elasticsearch/api/actions/msearch_template.rb +10 -2
- data/lib/elasticsearch/api/actions/mtermvectors.rb +10 -2
- data/lib/elasticsearch/api/actions/nodes/clear_repositories_metering_archive.rb +10 -2
- data/lib/elasticsearch/api/actions/nodes/get_repositories_metering_info.rb +10 -2
- data/lib/elasticsearch/api/actions/nodes/hot_threads.rb +10 -2
- data/lib/elasticsearch/api/actions/nodes/info.rb +10 -2
- data/lib/elasticsearch/api/actions/nodes/reload_secure_settings.rb +10 -2
- data/lib/elasticsearch/api/actions/nodes/stats.rb +10 -2
- data/lib/elasticsearch/api/actions/nodes/usage.rb +10 -2
- data/lib/elasticsearch/api/actions/open_point_in_time.rb +10 -2
- data/lib/elasticsearch/api/actions/ping.rb +4 -2
- data/lib/elasticsearch/api/actions/put_script.rb +10 -2
- data/lib/elasticsearch/api/actions/query_ruleset/delete.rb +10 -2
- data/lib/elasticsearch/api/actions/query_ruleset/get.rb +10 -2
- data/lib/elasticsearch/api/actions/query_ruleset/list.rb +4 -2
- data/lib/elasticsearch/api/actions/query_ruleset/put.rb +10 -2
- data/lib/elasticsearch/api/actions/rank_eval.rb +10 -2
- data/lib/elasticsearch/api/actions/reindex.rb +4 -2
- data/lib/elasticsearch/api/actions/reindex_rethrottle.rb +10 -2
- data/lib/elasticsearch/api/actions/render_search_template.rb +10 -2
- data/lib/elasticsearch/api/actions/rollup/delete_job.rb +10 -2
- data/lib/elasticsearch/api/actions/rollup/get_jobs.rb +10 -2
- data/lib/elasticsearch/api/actions/rollup/get_rollup_caps.rb +10 -2
- data/lib/elasticsearch/api/actions/rollup/get_rollup_index_caps.rb +10 -2
- data/lib/elasticsearch/api/actions/rollup/put_job.rb +10 -2
- data/lib/elasticsearch/api/actions/rollup/rollup_search.rb +10 -2
- data/lib/elasticsearch/api/actions/rollup/start_job.rb +10 -2
- data/lib/elasticsearch/api/actions/rollup/stop_job.rb +10 -2
- data/lib/elasticsearch/api/actions/scripts_painless_execute.rb +4 -2
- data/lib/elasticsearch/api/actions/scroll.rb +10 -2
- data/lib/elasticsearch/api/actions/search.rb +10 -2
- data/lib/elasticsearch/api/actions/search_application/delete.rb +10 -2
- data/lib/elasticsearch/api/actions/search_application/delete_behavioral_analytics.rb +10 -2
- data/lib/elasticsearch/api/actions/search_application/get.rb +10 -2
- data/lib/elasticsearch/api/actions/search_application/get_behavioral_analytics.rb +10 -2
- data/lib/elasticsearch/api/actions/search_application/list.rb +4 -2
- data/lib/elasticsearch/api/actions/search_application/post_behavioral_analytics_event.rb +9 -1
- data/lib/elasticsearch/api/actions/search_application/put.rb +10 -2
- data/lib/elasticsearch/api/actions/search_application/put_behavioral_analytics.rb +10 -2
- data/lib/elasticsearch/api/actions/search_application/render_query.rb +10 -2
- data/lib/elasticsearch/api/actions/search_application/search.rb +10 -2
- data/lib/elasticsearch/api/actions/search_mvt.rb +10 -2
- data/lib/elasticsearch/api/actions/search_shards.rb +10 -2
- data/lib/elasticsearch/api/actions/search_template.rb +10 -2
- data/lib/elasticsearch/api/actions/searchable_snapshots/cache_stats.rb +10 -2
- data/lib/elasticsearch/api/actions/searchable_snapshots/clear_cache.rb +10 -2
- data/lib/elasticsearch/api/actions/searchable_snapshots/mount.rb +10 -2
- data/lib/elasticsearch/api/actions/searchable_snapshots/stats.rb +10 -2
- data/lib/elasticsearch/api/actions/security/activate_user_profile.rb +4 -2
- data/lib/elasticsearch/api/actions/security/authenticate.rb +4 -2
- data/lib/elasticsearch/api/actions/security/bulk_update_api_keys.rb +4 -2
- data/lib/elasticsearch/api/actions/security/change_password.rb +10 -2
- data/lib/elasticsearch/api/actions/security/clear_api_key_cache.rb +10 -2
- data/lib/elasticsearch/api/actions/security/clear_cached_privileges.rb +10 -2
- data/lib/elasticsearch/api/actions/security/clear_cached_realms.rb +10 -2
- data/lib/elasticsearch/api/actions/security/clear_cached_roles.rb +10 -2
- data/lib/elasticsearch/api/actions/security/clear_cached_service_tokens.rb +10 -2
- data/lib/elasticsearch/api/actions/security/create_api_key.rb +4 -2
- data/lib/elasticsearch/api/actions/security/create_cross_cluster_api_key.rb +4 -2
- data/lib/elasticsearch/api/actions/security/create_service_token.rb +10 -2
- data/lib/elasticsearch/api/actions/security/delete_privileges.rb +10 -2
- data/lib/elasticsearch/api/actions/security/delete_role.rb +10 -2
- data/lib/elasticsearch/api/actions/security/delete_role_mapping.rb +10 -2
- data/lib/elasticsearch/api/actions/security/delete_service_token.rb +10 -2
- data/lib/elasticsearch/api/actions/security/delete_user.rb +10 -2
- data/lib/elasticsearch/api/actions/security/disable_user.rb +10 -2
- data/lib/elasticsearch/api/actions/security/disable_user_profile.rb +10 -2
- data/lib/elasticsearch/api/actions/security/enable_user.rb +10 -2
- data/lib/elasticsearch/api/actions/security/enable_user_profile.rb +10 -2
- data/lib/elasticsearch/api/actions/security/enroll_kibana.rb +4 -2
- data/lib/elasticsearch/api/actions/security/enroll_node.rb +4 -2
- data/lib/elasticsearch/api/actions/security/get_api_key.rb +4 -2
- data/lib/elasticsearch/api/actions/security/get_builtin_privileges.rb +4 -2
- data/lib/elasticsearch/api/actions/security/get_privileges.rb +10 -2
- data/lib/elasticsearch/api/actions/security/get_role.rb +11 -3
- data/lib/elasticsearch/api/actions/security/get_role_mapping.rb +10 -2
- data/lib/elasticsearch/api/actions/security/get_service_accounts.rb +10 -2
- data/lib/elasticsearch/api/actions/security/get_service_credentials.rb +10 -2
- data/lib/elasticsearch/api/actions/security/get_settings.rb +4 -2
- data/lib/elasticsearch/api/actions/security/get_token.rb +4 -2
- data/lib/elasticsearch/api/actions/security/get_user.rb +11 -3
- data/lib/elasticsearch/api/actions/security/get_user_privileges.rb +4 -2
- data/lib/elasticsearch/api/actions/security/get_user_profile.rb +10 -2
- data/lib/elasticsearch/api/actions/security/grant_api_key.rb +4 -2
- data/lib/elasticsearch/api/actions/security/has_privileges.rb +10 -2
- data/lib/elasticsearch/api/actions/security/has_privileges_user_profile.rb +4 -2
- data/lib/elasticsearch/api/actions/security/invalidate_api_key.rb +4 -2
- data/lib/elasticsearch/api/actions/security/invalidate_token.rb +4 -2
- data/lib/elasticsearch/api/actions/security/oidc_authenticate.rb +4 -2
- data/lib/elasticsearch/api/actions/security/oidc_logout.rb +4 -2
- data/lib/elasticsearch/api/actions/security/oidc_prepare_authentication.rb +4 -2
- data/lib/elasticsearch/api/actions/security/put_privileges.rb +4 -2
- data/lib/elasticsearch/api/actions/security/put_role.rb +10 -2
- data/lib/elasticsearch/api/actions/security/put_role_mapping.rb +10 -2
- data/lib/elasticsearch/api/actions/security/put_user.rb +10 -2
- data/lib/elasticsearch/api/actions/security/query_api_keys.rb +4 -2
- data/lib/elasticsearch/api/actions/security/saml_authenticate.rb +4 -2
- data/lib/elasticsearch/api/actions/security/saml_complete_logout.rb +4 -2
- data/lib/elasticsearch/api/actions/security/saml_invalidate.rb +4 -2
- data/lib/elasticsearch/api/actions/security/saml_logout.rb +4 -2
- data/lib/elasticsearch/api/actions/security/saml_prepare_authentication.rb +4 -2
- data/lib/elasticsearch/api/actions/security/saml_service_provider_metadata.rb +10 -2
- data/lib/elasticsearch/api/actions/security/suggest_user_profiles.rb +4 -2
- data/lib/elasticsearch/api/actions/security/update_api_key.rb +10 -2
- data/lib/elasticsearch/api/actions/security/update_cross_cluster_api_key.rb +10 -2
- data/lib/elasticsearch/api/actions/security/update_settings.rb +4 -2
- data/lib/elasticsearch/api/actions/security/update_user_profile_data.rb +10 -2
- data/lib/elasticsearch/api/actions/shutdown/delete_node.rb +9 -1
- data/lib/elasticsearch/api/actions/shutdown/get_node.rb +9 -1
- data/lib/elasticsearch/api/actions/shutdown/put_node.rb +9 -1
- data/lib/elasticsearch/api/actions/snapshot/cleanup_repository.rb +10 -2
- data/lib/elasticsearch/api/actions/snapshot/clone.rb +10 -2
- data/lib/elasticsearch/api/actions/snapshot/create.rb +10 -2
- data/lib/elasticsearch/api/actions/snapshot/create_repository.rb +10 -2
- data/lib/elasticsearch/api/actions/snapshot/delete.rb +11 -3
- data/lib/elasticsearch/api/actions/snapshot/delete_repository.rb +11 -3
- data/lib/elasticsearch/api/actions/snapshot/get.rb +11 -3
- data/lib/elasticsearch/api/actions/snapshot/get_repository.rb +11 -3
- data/lib/elasticsearch/api/actions/snapshot/repository_analyze.rb +10 -2
- data/lib/elasticsearch/api/actions/snapshot/restore.rb +10 -2
- data/lib/elasticsearch/api/actions/snapshot/status.rb +11 -3
- data/lib/elasticsearch/api/actions/snapshot/verify_repository.rb +10 -2
- data/lib/elasticsearch/api/actions/snapshot_lifecycle_management/delete_lifecycle.rb +10 -2
- data/lib/elasticsearch/api/actions/snapshot_lifecycle_management/execute_lifecycle.rb +10 -2
- data/lib/elasticsearch/api/actions/snapshot_lifecycle_management/execute_retention.rb +4 -2
- data/lib/elasticsearch/api/actions/snapshot_lifecycle_management/get_lifecycle.rb +10 -2
- data/lib/elasticsearch/api/actions/snapshot_lifecycle_management/get_stats.rb +4 -2
- data/lib/elasticsearch/api/actions/snapshot_lifecycle_management/get_status.rb +4 -2
- data/lib/elasticsearch/api/actions/snapshot_lifecycle_management/put_lifecycle.rb +10 -2
- data/lib/elasticsearch/api/actions/snapshot_lifecycle_management/start.rb +4 -2
- data/lib/elasticsearch/api/actions/snapshot_lifecycle_management/stop.rb +4 -2
- data/lib/elasticsearch/api/actions/sql/clear_cursor.rb +4 -2
- data/lib/elasticsearch/api/actions/sql/delete_async.rb +10 -2
- data/lib/elasticsearch/api/actions/sql/get_async.rb +10 -2
- data/lib/elasticsearch/api/actions/sql/get_async_status.rb +10 -2
- data/lib/elasticsearch/api/actions/sql/query.rb +4 -2
- data/lib/elasticsearch/api/actions/sql/translate.rb +4 -2
- data/lib/elasticsearch/api/actions/ssl/certificates.rb +4 -2
- data/lib/elasticsearch/api/actions/synonyms/delete_synonym.rb +10 -2
- data/lib/elasticsearch/api/actions/synonyms/delete_synonym_rule.rb +10 -2
- data/lib/elasticsearch/api/actions/synonyms/get_synonym.rb +10 -2
- data/lib/elasticsearch/api/actions/synonyms/get_synonym_rule.rb +10 -2
- data/lib/elasticsearch/api/actions/synonyms/get_synonyms_sets.rb +4 -2
- data/lib/elasticsearch/api/actions/synonyms/put_synonym.rb +10 -2
- data/lib/elasticsearch/api/actions/synonyms/put_synonym_rule.rb +10 -2
- data/lib/elasticsearch/api/actions/tasks/cancel.rb +10 -2
- data/lib/elasticsearch/api/actions/tasks/get.rb +10 -2
- data/lib/elasticsearch/api/actions/tasks/list.rb +4 -2
- data/lib/elasticsearch/api/actions/terms_enum.rb +10 -2
- data/lib/elasticsearch/api/actions/termvectors.rb +10 -2
- data/lib/elasticsearch/api/actions/text_structure/find_structure.rb +4 -2
- data/lib/elasticsearch/api/actions/transform/delete_transform.rb +10 -2
- data/lib/elasticsearch/api/actions/transform/get_transform.rb +10 -2
- data/lib/elasticsearch/api/actions/transform/get_transform_stats.rb +10 -2
- data/lib/elasticsearch/api/actions/transform/preview_transform.rb +10 -2
- data/lib/elasticsearch/api/actions/transform/put_transform.rb +10 -2
- data/lib/elasticsearch/api/actions/transform/reset_transform.rb +10 -2
- data/lib/elasticsearch/api/actions/transform/schedule_now_transform.rb +10 -2
- data/lib/elasticsearch/api/actions/transform/start_transform.rb +10 -2
- data/lib/elasticsearch/api/actions/transform/stop_transform.rb +10 -2
- data/lib/elasticsearch/api/actions/transform/update_transform.rb +10 -2
- data/lib/elasticsearch/api/actions/transform/upgrade_transforms.rb +4 -2
- data/lib/elasticsearch/api/actions/update.rb +11 -3
- data/lib/elasticsearch/api/actions/update_by_query.rb +10 -2
- data/lib/elasticsearch/api/actions/update_by_query_rethrottle.rb +10 -2
- data/lib/elasticsearch/api/actions/watcher/ack_watch.rb +10 -2
- data/lib/elasticsearch/api/actions/watcher/activate_watch.rb +10 -2
- data/lib/elasticsearch/api/actions/watcher/deactivate_watch.rb +10 -2
- data/lib/elasticsearch/api/actions/watcher/delete_watch.rb +11 -3
- data/lib/elasticsearch/api/actions/watcher/execute_watch.rb +10 -2
- data/lib/elasticsearch/api/actions/watcher/get_settings.rb +4 -2
- data/lib/elasticsearch/api/actions/watcher/get_watch.rb +10 -2
- data/lib/elasticsearch/api/actions/watcher/put_watch.rb +10 -2
- data/lib/elasticsearch/api/actions/watcher/query_watches.rb +4 -2
- data/lib/elasticsearch/api/actions/watcher/start.rb +4 -2
- data/lib/elasticsearch/api/actions/watcher/stats.rb +10 -2
- data/lib/elasticsearch/api/actions/watcher/stop.rb +4 -2
- data/lib/elasticsearch/api/actions/watcher/update_settings.rb +4 -2
- data/lib/elasticsearch/api/actions/xpack/info.rb +4 -2
- data/lib/elasticsearch/api/actions/xpack/usage.rb +4 -2
- data/lib/elasticsearch/api/namespace/common.rb +2 -2
- data/lib/elasticsearch/api/namespace/{synonym_rule.rb → esql.rb} +7 -7
- data/lib/elasticsearch/api/namespace/{synonyms_sets.rb → inference.rb} +7 -7
- data/lib/elasticsearch/api/version.rb +1 -1
- data/lib/elasticsearch/api.rb +2 -2
- data/spec/elasticsearch/api/actions/bulk_spec.rb +24 -1
- data/spec/elasticsearch/api/actions/cat/aliases_spec.rb +2 -1
- data/spec/elasticsearch/api/actions/cat/allocation_spec.rb +2 -1
- data/spec/elasticsearch/api/actions/cat/component_templates_spec.rb +22 -10
- data/spec/elasticsearch/api/actions/cat/count_spec.rb +2 -1
- data/spec/elasticsearch/api/actions/cat/fielddata_spec.rb +4 -2
- data/spec/elasticsearch/api/actions/cat/health_spec.rb +2 -1
- data/spec/elasticsearch/api/actions/cat/help_spec.rb +2 -1
- data/spec/elasticsearch/api/actions/cat/indices_spec.rb +2 -1
- data/spec/elasticsearch/api/actions/cat/master_spec.rb +2 -1
- data/spec/elasticsearch/api/actions/cat/nodeattrs_spec.rb +2 -1
- data/spec/elasticsearch/api/actions/cat/nodes_spec.rb +2 -1
- data/spec/elasticsearch/api/actions/cat/pending_tasks_spec.rb +2 -1
- data/spec/elasticsearch/api/actions/cat/plugins_spec.rb +2 -1
- data/spec/elasticsearch/api/actions/cat/recovery_spec.rb +2 -1
- data/spec/elasticsearch/api/actions/cat/repositories_spec.rb +2 -1
- data/spec/elasticsearch/api/actions/cat/segments_spec.rb +13 -1
- data/spec/elasticsearch/api/actions/cat/shards_spec.rb +2 -1
- data/spec/elasticsearch/api/actions/cat/snapshot_spec.rb +2 -1
- data/spec/elasticsearch/api/actions/cat/tasks_spec.rb +2 -1
- data/spec/elasticsearch/api/actions/cat/templates_spec.rb +2 -1
- data/spec/elasticsearch/api/actions/cat/thread_pool_spec.rb +2 -1
- data/spec/elasticsearch/api/actions/clear_scroll_spec.rb +4 -2
- data/spec/elasticsearch/api/actions/close_point_in_time_spec.rb +2 -1
- data/spec/elasticsearch/api/actions/cluster/allocation_explain_spec.rb +2 -1
- data/spec/elasticsearch/api/actions/cluster/get_settings_spec.rb +2 -1
- data/spec/elasticsearch/api/actions/cluster/health_spec.rb +6 -3
- data/spec/elasticsearch/api/actions/cluster/info_spec.rb +2 -1
- data/spec/elasticsearch/api/actions/cluster/pending_tasks_spec.rb +2 -1
- data/spec/elasticsearch/api/actions/cluster/put_settings_spec.rb +2 -1
- data/spec/elasticsearch/api/actions/cluster/remote_info_spec.rb +2 -1
- data/spec/elasticsearch/api/actions/cluster/reroute_spec.rb +4 -2
- data/spec/elasticsearch/api/actions/cluster/state_spec.rb +4 -2
- data/spec/elasticsearch/api/actions/cluster/stats_spec.rb +2 -1
- data/spec/elasticsearch/api/actions/count_spec.rb +6 -3
- data/spec/elasticsearch/api/actions/create_document_spec.rb +35 -1
- data/spec/elasticsearch/api/actions/dangling_indices/delete_dangling_indices_spec.rb +2 -1
- data/spec/elasticsearch/api/actions/dangling_indices/import_dangling_indices_spec.rb +2 -1
- data/spec/elasticsearch/api/actions/dangling_indices/list_dangling_indices_spec.rb +2 -1
- data/spec/elasticsearch/api/actions/data_frame/update_data_frame_transform_spec.rb +2 -1
- data/spec/elasticsearch/api/actions/delete_by_query_spec.rb +4 -2
- data/spec/elasticsearch/api/actions/delete_document_spec.rb +4 -2
- data/spec/elasticsearch/api/actions/delete_script_spec.rb +2 -1
- data/spec/elasticsearch/api/actions/{synonyms/update_spec.rb → esql/query_spec.rb} +6 -5
- data/spec/elasticsearch/api/actions/exists_document_spec.rb +2 -1
- data/spec/elasticsearch/api/actions/explain_document_spec.rb +35 -1
- data/spec/elasticsearch/api/actions/features/get_features_spec.rb +2 -1
- data/spec/elasticsearch/api/actions/features/reset_features_spec.rb +2 -1
- data/spec/elasticsearch/api/actions/field_caps_spec.rb +2 -1
- data/spec/elasticsearch/api/actions/fleet/global_checkpoints_spec.rb +2 -1
- data/spec/elasticsearch/api/actions/fleet/msearch_spec.rb +2 -1
- data/spec/elasticsearch/api/actions/fleet/search_spec.rb +2 -1
- data/spec/elasticsearch/api/actions/get_document_source_spec.rb +13 -1
- data/spec/elasticsearch/api/actions/get_document_spec.rb +13 -1
- data/spec/elasticsearch/api/actions/get_script_spec.rb +2 -1
- data/spec/elasticsearch/api/actions/health_report_spec.rb +4 -2
- data/spec/elasticsearch/api/actions/index_document_spec.rb +24 -1
- data/spec/elasticsearch/api/actions/index_lifecycle_management/migrate_to_data_tiers_spec.rb +2 -1
- data/spec/elasticsearch/api/actions/indices/add_block_spec.rb +3 -1
- data/spec/elasticsearch/api/actions/indices/analyze_spec.rb +13 -1
- data/spec/elasticsearch/api/actions/indices/clear_cache_spec.rb +24 -1
- data/spec/elasticsearch/api/actions/indices/clone_spec.rb +3 -1
- data/spec/elasticsearch/api/actions/indices/close_spec.rb +13 -1
- data/spec/elasticsearch/api/actions/indices/create_spec.rb +13 -1
- data/spec/elasticsearch/api/actions/indices/data_streams_stats_spec.rb +13 -1
- data/spec/elasticsearch/api/actions/indices/delete_alias_spec.rb +15 -1
- data/spec/elasticsearch/api/actions/indices/delete_data_lifecycle_spec.rb +2 -1
- data/spec/elasticsearch/api/actions/indices/delete_spec.rb +24 -1
- data/spec/elasticsearch/api/actions/indices/delete_template_spec.rb +13 -1
- data/spec/elasticsearch/api/actions/indices/disk_usage_spec.rb +2 -1
- data/spec/elasticsearch/api/actions/indices/exists_alias_spec.rb +26 -1
- data/spec/elasticsearch/api/actions/indices/exists_spec.rb +24 -1
- data/spec/elasticsearch/api/actions/indices/exists_template_spec.rb +13 -1
- data/spec/elasticsearch/api/actions/indices/explain_data_lifecycle_spec.rb +3 -1
- data/spec/elasticsearch/api/actions/indices/field_usage_stats_spec.rb +2 -1
- data/spec/elasticsearch/api/actions/indices/flush_spec.rb +46 -1
- data/spec/elasticsearch/api/actions/indices/forcemerge_spec.rb +2 -1
- data/spec/elasticsearch/api/actions/indices/get_alias_spec.rb +25 -1
- data/spec/elasticsearch/api/actions/indices/get_data_lifecycle_spec.rb +2 -1
- data/spec/elasticsearch/api/actions/indices/get_field_mapping_spec.rb +13 -1
- data/spec/elasticsearch/api/actions/indices/get_mapping_spec.rb +35 -1
- data/spec/elasticsearch/api/actions/indices/get_settings_spec.rb +35 -1
- data/spec/elasticsearch/api/actions/indices/get_spec.rb +2 -1
- data/spec/elasticsearch/api/actions/indices/open_spec.rb +13 -1
- data/spec/elasticsearch/api/actions/indices/put_alias_spec.rb +27 -1
- data/spec/elasticsearch/api/actions/indices/put_data_lifecycle_spec.rb +2 -1
- data/spec/elasticsearch/api/actions/indices/put_mapping_spec.rb +24 -1
- data/spec/elasticsearch/api/actions/indices/put_settings_spec.rb +46 -1
- data/spec/elasticsearch/api/actions/indices/put_template_spec.rb +13 -1
- data/spec/elasticsearch/api/actions/indices/recovery_spec.rb +2 -1
- data/spec/elasticsearch/api/actions/indices/refresh_spec.rb +46 -1
- data/spec/elasticsearch/api/actions/indices/rollover_spec.rb +13 -1
- data/spec/elasticsearch/api/actions/indices/segments_spec.rb +46 -1
- data/spec/elasticsearch/api/actions/indices/shard_stores_spec.rb +2 -1
- data/spec/elasticsearch/api/actions/indices/shrink_spec.rb +3 -1
- data/spec/elasticsearch/api/actions/indices/split_spec.rb +3 -1
- data/spec/elasticsearch/api/actions/indices/stats_spec.rb +68 -1
- data/spec/elasticsearch/api/actions/indices/unfreeze_spec.rb +13 -1
- data/spec/elasticsearch/api/actions/indices/update_aliases_spec.rb +2 -1
- data/spec/elasticsearch/api/actions/indices/validate_query_spec.rb +69 -1
- data/spec/elasticsearch/api/actions/{synonyms/delete_synonym_rule_spec.rb → inference/delete_model_spec.rb} +6 -4
- data/spec/elasticsearch/api/actions/{synonyms/get_synonym_rule_spec.rb → inference/get_model_spec.rb} +6 -4
- data/spec/elasticsearch/api/actions/{synonyms/delete_synonym_spec.rb → inference/inference_spec.rb} +7 -5
- data/spec/elasticsearch/api/actions/{synonyms/put_synonym_rule_spec.rb → inference/put_model_spec.rb} +6 -4
- data/spec/elasticsearch/api/actions/info_spec.rb +2 -1
- data/spec/elasticsearch/api/actions/ingest/delete_pipeline_spec.rb +13 -1
- data/spec/elasticsearch/api/actions/ingest/geo_ip_stats_spec.rb +2 -1
- data/spec/elasticsearch/api/actions/ingest/get_pipeline_spec.rb +13 -1
- data/spec/elasticsearch/api/actions/ingest/put_pipeline_spec.rb +13 -1
- data/spec/elasticsearch/api/actions/ingest/simulate_spec.rb +13 -1
- data/spec/elasticsearch/api/actions/json_builders_spec.rb +4 -2
- data/spec/elasticsearch/api/actions/machine_learning/get_memory_stats_spec.rb +13 -1
- data/spec/elasticsearch/api/actions/machine_learning/get_model_snapshot_upgrade_stats_spec.rb +5 -1
- data/spec/elasticsearch/api/actions/machine_learning/infer_trained_model_deployment_spec.rb +2 -1
- data/spec/elasticsearch/api/actions/machine_learning/put_trained_model_definition_part_spec.rb +3 -1
- data/spec/elasticsearch/api/actions/machine_learning/put_trained_model_vocabulary_spec.rb +3 -1
- data/spec/elasticsearch/api/actions/machine_learning/reset_job_spec.rb +2 -1
- data/spec/elasticsearch/api/actions/machine_learning/set_upgrade_mode_spec.rb +4 -2
- data/spec/elasticsearch/api/actions/machine_learning/start_trained_model_deployment_spec.rb +3 -1
- data/spec/elasticsearch/api/actions/machine_learning/stop_trained_model_deployment_spec.rb +3 -1
- data/spec/elasticsearch/api/actions/machine_learning/update_trained_model_deployment_spec.rb +3 -1
- data/spec/elasticsearch/api/actions/mget_spec.rb +24 -1
- data/spec/elasticsearch/api/actions/migration/get_feature_upgrade_status_spec.rb +2 -1
- data/spec/elasticsearch/api/actions/migration/post_feature_upgrade_spec.rb +2 -1
- data/spec/elasticsearch/api/actions/msearch_spec.rb +35 -1
- data/spec/elasticsearch/api/actions/msearch_template_spec.rb +13 -1
- data/spec/elasticsearch/api/actions/mtermvectors_spec.rb +2 -1
- data/spec/elasticsearch/api/actions/nodes/clear_repositories_metering_archive_spec.rb +3 -1
- data/spec/elasticsearch/api/actions/nodes/get_repositories_metering_info_spec.rb +3 -1
- data/spec/elasticsearch/api/actions/nodes/hot_threads_spec.rb +24 -1
- data/spec/elasticsearch/api/actions/nodes/info_spec.rb +46 -1
- data/spec/elasticsearch/api/actions/nodes/reload_secure_settings_spec.rb +35 -1
- data/spec/elasticsearch/api/actions/nodes/stats_spec.rb +35 -1
- data/spec/elasticsearch/api/actions/open_point_in_time_spec.rb +2 -1
- data/spec/elasticsearch/api/actions/ping_spec.rb +2 -1
- data/spec/elasticsearch/api/actions/put_script_spec.rb +4 -2
- data/spec/elasticsearch/api/actions/query_ruleset/delete_spec.rb +2 -1
- data/spec/elasticsearch/api/actions/query_ruleset/get_spec.rb +2 -1
- data/spec/elasticsearch/api/actions/query_ruleset/put_spec.rb +2 -1
- data/spec/elasticsearch/api/actions/rank_eval_spec.rb +13 -1
- data/spec/elasticsearch/api/actions/reindex_spec.rb +2 -1
- data/spec/elasticsearch/api/actions/render_search_template_spec.rb +4 -2
- data/spec/elasticsearch/api/actions/scroll_spec.rb +4 -2
- data/spec/elasticsearch/api/actions/search_application/delete_behavioral_analytics_spec.rb +3 -1
- data/spec/elasticsearch/api/actions/search_application/delete_spec.rb +2 -1
- data/spec/elasticsearch/api/actions/search_application/get_behavioral_analytics_spec.rb +2 -1
- data/spec/elasticsearch/api/actions/search_application/get_spec.rb +2 -1
- data/spec/elasticsearch/api/actions/search_application/list_spec.rb +2 -1
- data/spec/elasticsearch/api/actions/search_application/post_behavioral_analytics_event_spec.rb +3 -1
- data/spec/elasticsearch/api/actions/search_application/put_behavioral_analytics_spec.rb +3 -1
- data/spec/elasticsearch/api/actions/search_application/put_spec.rb +2 -1
- data/spec/elasticsearch/api/actions/search_application/render_query_spec.rb +3 -1
- data/spec/elasticsearch/api/actions/search_application/search_spec.rb +2 -1
- data/spec/elasticsearch/api/actions/search_mvt_spec.rb +3 -1
- data/spec/elasticsearch/api/actions/search_shards_spec.rb +2 -1
- data/spec/elasticsearch/api/actions/search_spec.rb +24 -1
- data/spec/elasticsearch/api/actions/search_template_spec.rb +2 -1
- data/spec/elasticsearch/api/actions/searchable_snapshots/cache_stats_spec.rb +13 -1
- data/spec/elasticsearch/api/actions/searchable_snapshots/clear_cache_spec.rb +14 -1
- data/spec/elasticsearch/api/actions/searchable_snapshots/mount_spec.rb +3 -1
- data/spec/elasticsearch/api/actions/searchable_snapshots/stats_spec.rb +15 -1
- data/spec/elasticsearch/api/actions/security/clear_cached_service_tokens_spec.rb +3 -1
- data/spec/elasticsearch/api/actions/security/create_api_key_spec.rb +4 -2
- data/spec/elasticsearch/api/actions/security/create_cross_cluster_api_key_spec.rb +2 -1
- data/spec/elasticsearch/api/actions/security/create_service_token_spec.rb +15 -1
- data/spec/elasticsearch/api/actions/security/delete_service_token_spec.rb +3 -1
- data/spec/elasticsearch/api/actions/security/disable_user_profile_spec.rb +2 -1
- data/spec/elasticsearch/api/actions/security/enable_user_profile_spec.rb +2 -1
- data/spec/elasticsearch/api/actions/security/enroll_kibana_spec.rb +2 -1
- data/spec/elasticsearch/api/actions/security/get_api_key_spec.rb +2 -1
- data/spec/elasticsearch/api/actions/security/get_builtin_privileges_spec.rb +2 -1
- data/spec/elasticsearch/api/actions/security/get_service_accounts_spec.rb +26 -1
- data/spec/elasticsearch/api/actions/security/get_service_credentials_spec.rb +3 -1
- data/spec/elasticsearch/api/actions/security/has_privileges_user_profile_spec.rb +2 -1
- data/spec/elasticsearch/api/actions/security/invalidate_api_key_spec.rb +2 -1
- data/spec/elasticsearch/api/actions/security/query_api_keys_spec.rb +2 -1
- data/spec/elasticsearch/api/actions/security/saml_authenticate_spec.rb +2 -1
- data/spec/elasticsearch/api/actions/security/saml_complete_logout_spec.rb +2 -1
- data/spec/elasticsearch/api/actions/security/saml_invalidate_spec.rb +2 -1
- data/spec/elasticsearch/api/actions/security/saml_logout_spec.rb +2 -1
- data/spec/elasticsearch/api/actions/security/saml_prepare_authentication_spec.rb +2 -1
- data/spec/elasticsearch/api/actions/security/saml_service_provider_metadata_spec.rb +3 -1
- data/spec/elasticsearch/api/actions/security/suggest_user_profiles_spec.rb +2 -1
- data/spec/elasticsearch/api/actions/security/update_api_key_spec.rb +2 -1
- data/spec/elasticsearch/api/actions/security/update_cross_cluster_api_key_spec.rb +3 -1
- data/spec/elasticsearch/api/actions/shutdown/delete_node_spec.rb +2 -1
- data/spec/elasticsearch/api/actions/shutdown/get_node_spec.rb +13 -1
- data/spec/elasticsearch/api/actions/shutdown/put_node_spec.rb +2 -1
- data/spec/elasticsearch/api/actions/snapshot/clone_spec.rb +4 -1
- data/spec/elasticsearch/api/actions/snapshot/create_repository_spec.rb +3 -1
- data/spec/elasticsearch/api/actions/snapshot/create_spec.rb +3 -1
- data/spec/elasticsearch/api/actions/snapshot/delete_repository_spec.rb +15 -1
- data/spec/elasticsearch/api/actions/snapshot/delete_spec.rb +3 -1
- data/spec/elasticsearch/api/actions/snapshot/get_repository_spec.rb +2 -1
- data/spec/elasticsearch/api/actions/snapshot/get_spec.rb +3 -1
- data/spec/elasticsearch/api/actions/snapshot/repository_analize_spec.rb +3 -1
- data/spec/elasticsearch/api/actions/snapshot/restore_spec.rb +3 -1
- data/spec/elasticsearch/api/actions/snapshot/status_spec.rb +13 -1
- data/spec/elasticsearch/api/actions/snapshot/verify_repository_spec.rb +3 -1
- data/spec/elasticsearch/api/actions/sql/delete_async_spec.rb +2 -1
- data/spec/elasticsearch/api/actions/sql/get_async_spec.rb +2 -1
- data/spec/elasticsearch/api/actions/sql/get_async_stats_spec.rb +2 -1
- data/spec/elasticsearch/api/actions/tasks/cancel_spec.rb +13 -1
- data/spec/elasticsearch/api/actions/tasks/get_spec.rb +2 -1
- data/spec/elasticsearch/api/actions/tasks/list_spec.rb +2 -1
- data/spec/elasticsearch/api/actions/terms_enum_spec.rb +2 -1
- data/spec/elasticsearch/api/actions/termvectors_spec.rb +13 -1
- data/spec/elasticsearch/api/actions/transform/schedule_now_transform_spec.rb +3 -1
- data/spec/elasticsearch/api/actions/update_by_query_spec.rb +2 -1
- data/spec/elasticsearch/api/actions/update_document_spec.rb +13 -1
- data/spec/elasticsearch/api/actions/watcher/get_settings_spec.rb +2 -1
- data/spec/elasticsearch/api/actions/watcher/update_settings_spec.rb +3 -2
- data/spec/elasticsearch/api/perform_request_spec.rb +86 -0
- data/spec/rest_api/rest_api_tests_helper.rb +1 -1
- data/spec/rest_api/rest_api_yaml_spec.rb +2 -0
- data/spec/spec_helper.rb +0 -4
- data/utils/endpoint_spec.rb +194 -0
- data/utils/{thor/generator/endpoint_specifics.rb → endpoint_specifics.rb} +4 -4
- data/utils/thor/generate_source.rb +14 -141
- data/utils/thor/templates/_body.erb +2 -2
- data/utils/thor/templates/_documentation_top.erb +22 -22
- data/utils/thor/templates/_method_setup.erb +10 -10
- data/utils/thor/templates/_perform_request.erb +11 -11
- data/utils/thor/templates/method.erb +28 -19
- metadata +25 -31
- data/spec/elasticsearch/api/actions/query_ruleset/list_spec.rb +0 -34
- data/spec/elasticsearch/api/actions/security/get_settings_spec.rb +0 -34
- data/spec/elasticsearch/api/actions/security/update_settings_spec.rb +0 -34
- data/spec/elasticsearch/api/actions/synonyms/get_synonym_spec.rb +0 -34
- data/spec/elasticsearch/api/actions/synonyms/get_synonyms_sets_spec.rb +0 -34
- data/spec/rspec_formatter.rb +0 -31
@@ -24,7 +24,8 @@ describe 'client.cluster#put_mapping' do
|
|
24
24
|
url,
|
25
25
|
{},
|
26
26
|
body,
|
27
|
-
{}
|
27
|
+
{},
|
28
|
+
{ defined_params: { index: 'foo' }, endpoint: 'indices.put_mapping' }
|
28
29
|
]
|
29
30
|
end
|
30
31
|
|
@@ -79,6 +80,17 @@ describe 'client.cluster#put_mapping' do
|
|
79
80
|
'foo,bar/_mapping'
|
80
81
|
end
|
81
82
|
|
83
|
+
let(:expected_args) do
|
84
|
+
[
|
85
|
+
'PUT',
|
86
|
+
url,
|
87
|
+
{},
|
88
|
+
body,
|
89
|
+
{},
|
90
|
+
{ defined_params: { index: ['foo','bar'] }, endpoint: 'indices.put_mapping' }
|
91
|
+
]
|
92
|
+
end
|
93
|
+
|
82
94
|
it 'performs the request' do
|
83
95
|
expect(client_double.indices.put_mapping(index: ['foo','bar'], body: {})).to be_a Elasticsearch::API::Response
|
84
96
|
end
|
@@ -89,6 +101,17 @@ describe 'client.cluster#put_mapping' do
|
|
89
101
|
'foo%5Ebar/_mapping'
|
90
102
|
end
|
91
103
|
|
104
|
+
let(:expected_args) do
|
105
|
+
[
|
106
|
+
'PUT',
|
107
|
+
url,
|
108
|
+
{},
|
109
|
+
body,
|
110
|
+
{},
|
111
|
+
{ defined_params: { index: 'foo^bar' }, endpoint: 'indices.put_mapping' }
|
112
|
+
]
|
113
|
+
end
|
114
|
+
|
92
115
|
it 'performs the request' do
|
93
116
|
expect(client_double.indices.put_mapping(index: 'foo^bar', body: {})).to be_a Elasticsearch::API::Response
|
94
117
|
end
|
@@ -25,7 +25,8 @@ describe 'client.cluster#put_settings' do
|
|
25
25
|
url,
|
26
26
|
params,
|
27
27
|
body,
|
28
|
-
{}
|
28
|
+
{},
|
29
|
+
{ endpoint: 'indices.put_settings' }
|
29
30
|
]
|
30
31
|
end
|
31
32
|
|
@@ -68,6 +69,17 @@ describe 'client.cluster#put_settings' do
|
|
68
69
|
'foo/_settings'
|
69
70
|
end
|
70
71
|
|
72
|
+
let(:expected_args) do
|
73
|
+
[
|
74
|
+
'PUT',
|
75
|
+
url,
|
76
|
+
params,
|
77
|
+
body,
|
78
|
+
{},
|
79
|
+
{ defined_params: { index: 'foo' }, endpoint: 'indices.put_settings' }
|
80
|
+
]
|
81
|
+
end
|
82
|
+
|
71
83
|
it 'performs the request' do
|
72
84
|
expect(client_double.indices.put_settings(index: 'foo', flat_settings: true, body: {})).to be_a Elasticsearch::API::Response
|
73
85
|
end
|
@@ -79,6 +91,17 @@ describe 'client.cluster#put_settings' do
|
|
79
91
|
'foo/_settings'
|
80
92
|
end
|
81
93
|
|
94
|
+
let(:expected_args) do
|
95
|
+
[
|
96
|
+
'PUT',
|
97
|
+
url,
|
98
|
+
params,
|
99
|
+
body,
|
100
|
+
{},
|
101
|
+
{ defined_params: { index: 'foo' }, endpoint: 'indices.put_settings' }
|
102
|
+
]
|
103
|
+
end
|
104
|
+
|
82
105
|
it 'performs the request' do
|
83
106
|
expect(client_double.indices.put_settings(index: 'foo', body: {})).to be_a Elasticsearch::API::Response
|
84
107
|
end
|
@@ -90,6 +113,17 @@ describe 'client.cluster#put_settings' do
|
|
90
113
|
'foo,bar/_settings'
|
91
114
|
end
|
92
115
|
|
116
|
+
let(:expected_args) do
|
117
|
+
[
|
118
|
+
'PUT',
|
119
|
+
url,
|
120
|
+
params,
|
121
|
+
body,
|
122
|
+
{},
|
123
|
+
{ defined_params: { index: ['foo','bar'] }, endpoint: 'indices.put_settings' }
|
124
|
+
]
|
125
|
+
end
|
126
|
+
|
93
127
|
it 'performs the request' do
|
94
128
|
expect(client_double.indices.put_settings(index: ['foo','bar'], body: {})).to be_a Elasticsearch::API::Response
|
95
129
|
end
|
@@ -101,6 +135,17 @@ describe 'client.cluster#put_settings' do
|
|
101
135
|
'foo%5Ebar/_settings'
|
102
136
|
end
|
103
137
|
|
138
|
+
let(:expected_args) do
|
139
|
+
[
|
140
|
+
'PUT',
|
141
|
+
url,
|
142
|
+
params,
|
143
|
+
body,
|
144
|
+
{},
|
145
|
+
{ defined_params: { index: 'foo^bar' }, endpoint: 'indices.put_settings' }
|
146
|
+
]
|
147
|
+
end
|
148
|
+
|
104
149
|
it 'performs the request' do
|
105
150
|
expect(client_double.indices.put_settings(index: 'foo^bar', body: {})).to be_a Elasticsearch::API::Response
|
106
151
|
end
|
@@ -25,7 +25,8 @@ describe 'client.cluster#put_template' do
|
|
25
25
|
url,
|
26
26
|
params,
|
27
27
|
body,
|
28
|
-
{}
|
28
|
+
{},
|
29
|
+
{ defined_params: { name: 'foo' }, endpoint: 'indices.put_template' }
|
29
30
|
]
|
30
31
|
end
|
31
32
|
|
@@ -100,6 +101,17 @@ describe 'client.cluster#put_template' do
|
|
100
101
|
{}
|
101
102
|
end
|
102
103
|
|
104
|
+
let(:expected_args) do
|
105
|
+
[
|
106
|
+
'PUT',
|
107
|
+
url,
|
108
|
+
params,
|
109
|
+
body,
|
110
|
+
{},
|
111
|
+
{ defined_params: { name: 'foo^bar' }, endpoint: 'indices.put_template' }
|
112
|
+
]
|
113
|
+
end
|
114
|
+
|
103
115
|
it 'performs the request' do
|
104
116
|
expect(client_double.indices.put_template(name: 'foo^bar', body: {})).to be_a Elasticsearch::API::Response
|
105
117
|
end
|
@@ -25,7 +25,8 @@ describe 'client.cluster#refresh' do
|
|
25
25
|
url,
|
26
26
|
params,
|
27
27
|
body,
|
28
|
-
{}
|
28
|
+
{},
|
29
|
+
{ endpoint: 'indices.refresh' }
|
29
30
|
]
|
30
31
|
end
|
31
32
|
|
@@ -51,6 +52,17 @@ describe 'client.cluster#refresh' do
|
|
51
52
|
'foo/_refresh'
|
52
53
|
end
|
53
54
|
|
55
|
+
let(:expected_args) do
|
56
|
+
[
|
57
|
+
'POST',
|
58
|
+
url,
|
59
|
+
params,
|
60
|
+
body,
|
61
|
+
{},
|
62
|
+
{ defined_params: { index: 'foo' }, endpoint: 'indices.refresh' }
|
63
|
+
]
|
64
|
+
end
|
65
|
+
|
54
66
|
it 'performs the request' do
|
55
67
|
expect(client_double.indices.refresh(index: 'foo')).to be_a Elasticsearch::API::Response
|
56
68
|
end
|
@@ -62,6 +74,17 @@ describe 'client.cluster#refresh' do
|
|
62
74
|
'foo,bar/_refresh'
|
63
75
|
end
|
64
76
|
|
77
|
+
let(:expected_args) do
|
78
|
+
[
|
79
|
+
'POST',
|
80
|
+
url,
|
81
|
+
params,
|
82
|
+
body,
|
83
|
+
{},
|
84
|
+
{ defined_params: { index: ['foo', 'bar'] }, endpoint: 'indices.refresh' }
|
85
|
+
]
|
86
|
+
end
|
87
|
+
|
65
88
|
it 'performs the request' do
|
66
89
|
expect(client_double.indices.refresh(index: ['foo', 'bar'])).to be_a Elasticsearch::API::Response
|
67
90
|
end
|
@@ -73,6 +96,17 @@ describe 'client.cluster#refresh' do
|
|
73
96
|
'foo,bar/_refresh'
|
74
97
|
end
|
75
98
|
|
99
|
+
let(:expected_args) do
|
100
|
+
[
|
101
|
+
'POST',
|
102
|
+
url,
|
103
|
+
params,
|
104
|
+
body,
|
105
|
+
{},
|
106
|
+
{ defined_params: { index: 'foo,bar' }, endpoint: 'indices.refresh' }
|
107
|
+
]
|
108
|
+
end
|
109
|
+
|
76
110
|
it 'performs the request' do
|
77
111
|
expect(client_double.indices.refresh(index: 'foo,bar')).to be_a Elasticsearch::API::Response
|
78
112
|
end
|
@@ -84,6 +118,17 @@ describe 'client.cluster#refresh' do
|
|
84
118
|
'foo%5Ebar/_refresh'
|
85
119
|
end
|
86
120
|
|
121
|
+
let(:expected_args) do
|
122
|
+
[
|
123
|
+
'POST',
|
124
|
+
url,
|
125
|
+
params,
|
126
|
+
body,
|
127
|
+
{},
|
128
|
+
{ defined_params: { index: 'foo^bar' }, endpoint: 'indices.refresh' }
|
129
|
+
]
|
130
|
+
end
|
131
|
+
|
87
132
|
it 'performs the request' do
|
88
133
|
expect(client_double.indices.refresh(index: 'foo^bar')).to be_a Elasticsearch::API::Response
|
89
134
|
end
|
@@ -25,7 +25,8 @@ describe 'client.cluster#rollover' do
|
|
25
25
|
url,
|
26
26
|
params,
|
27
27
|
body,
|
28
|
-
{}
|
28
|
+
{},
|
29
|
+
{ defined_params: { alias: 'foo' }, endpoint: 'indices.rollover' }
|
29
30
|
]
|
30
31
|
end
|
31
32
|
|
@@ -51,6 +52,17 @@ describe 'client.cluster#rollover' do
|
|
51
52
|
'foo/_rollover/bar'
|
52
53
|
end
|
53
54
|
|
55
|
+
let(:expected_args) do
|
56
|
+
[
|
57
|
+
'POST',
|
58
|
+
url,
|
59
|
+
params,
|
60
|
+
body,
|
61
|
+
{},
|
62
|
+
{ defined_params: { alias: 'foo', new_index: 'bar' }, endpoint: 'indices.rollover' }
|
63
|
+
]
|
64
|
+
end
|
65
|
+
|
54
66
|
it 'performs the request' do
|
55
67
|
expect(client_double.indices.rollover(alias: 'foo', new_index: 'bar')).to be_a Elasticsearch::API::Response
|
56
68
|
end
|
@@ -25,7 +25,8 @@ describe 'client.cluster#segments' do
|
|
25
25
|
url,
|
26
26
|
params,
|
27
27
|
body,
|
28
|
-
{}
|
28
|
+
{},
|
29
|
+
{ endpoint: 'indices.segments' }
|
29
30
|
]
|
30
31
|
end
|
31
32
|
|
@@ -51,6 +52,17 @@ describe 'client.cluster#segments' do
|
|
51
52
|
'foo/_segments'
|
52
53
|
end
|
53
54
|
|
55
|
+
let(:expected_args) do
|
56
|
+
[
|
57
|
+
'GET',
|
58
|
+
url,
|
59
|
+
params,
|
60
|
+
body,
|
61
|
+
{},
|
62
|
+
{ defined_params: { index: 'foo' }, endpoint: 'indices.segments' }
|
63
|
+
]
|
64
|
+
end
|
65
|
+
|
54
66
|
it 'performs the request' do
|
55
67
|
expect(client_double.indices.segments(index: 'foo')).to be_a Elasticsearch::API::Response
|
56
68
|
end
|
@@ -62,6 +74,17 @@ describe 'client.cluster#segments' do
|
|
62
74
|
'foo,bar/_segments'
|
63
75
|
end
|
64
76
|
|
77
|
+
let(:expected_args) do
|
78
|
+
[
|
79
|
+
'GET',
|
80
|
+
url,
|
81
|
+
params,
|
82
|
+
body,
|
83
|
+
{},
|
84
|
+
{ defined_params: { index: ['foo', 'bar'] }, endpoint: 'indices.segments' }
|
85
|
+
]
|
86
|
+
end
|
87
|
+
|
65
88
|
it 'performs the request' do
|
66
89
|
expect(client_double.indices.segments(index: ['foo', 'bar'])).to be_a Elasticsearch::API::Response
|
67
90
|
end
|
@@ -73,6 +96,17 @@ describe 'client.cluster#segments' do
|
|
73
96
|
'foo,bar/_segments'
|
74
97
|
end
|
75
98
|
|
99
|
+
let(:expected_args) do
|
100
|
+
[
|
101
|
+
'GET',
|
102
|
+
url,
|
103
|
+
params,
|
104
|
+
body,
|
105
|
+
{},
|
106
|
+
{ defined_params: { index: 'foo,bar' }, endpoint: 'indices.segments' }
|
107
|
+
]
|
108
|
+
end
|
109
|
+
|
76
110
|
it 'performs the request' do
|
77
111
|
expect(client_double.indices.segments(index: 'foo,bar')).to be_a Elasticsearch::API::Response
|
78
112
|
end
|
@@ -84,6 +118,17 @@ describe 'client.cluster#segments' do
|
|
84
118
|
'foo%5Ebar/_segments'
|
85
119
|
end
|
86
120
|
|
121
|
+
let(:expected_args) do
|
122
|
+
[
|
123
|
+
'GET',
|
124
|
+
url,
|
125
|
+
params,
|
126
|
+
body,
|
127
|
+
{},
|
128
|
+
{ defined_params: { index: 'foo^bar' }, endpoint: 'indices.segments' }
|
129
|
+
]
|
130
|
+
end
|
131
|
+
|
87
132
|
it 'performs the request' do
|
88
133
|
expect(client_double.indices.segments(index: 'foo^bar')).to be_a Elasticsearch::API::Response
|
89
134
|
end
|
@@ -25,7 +25,8 @@ describe 'client.cluster#stats' do
|
|
25
25
|
url,
|
26
26
|
params,
|
27
27
|
body,
|
28
|
-
{}
|
28
|
+
{},
|
29
|
+
{ endpoint: 'indices.stats' }
|
29
30
|
]
|
30
31
|
end
|
31
32
|
|
@@ -50,6 +51,17 @@ describe 'client.cluster#stats' do
|
|
50
51
|
'foo/_stats'
|
51
52
|
end
|
52
53
|
|
54
|
+
let(:expected_args) do
|
55
|
+
[
|
56
|
+
'GET',
|
57
|
+
url,
|
58
|
+
params,
|
59
|
+
body,
|
60
|
+
{},
|
61
|
+
{ defined_params: { index: 'foo' }, endpoint: 'indices.stats' }
|
62
|
+
]
|
63
|
+
end
|
64
|
+
|
53
65
|
it 'performs the request' do
|
54
66
|
expect(client_double.indices.stats(index: 'foo')).to be_a Elasticsearch::API::Response
|
55
67
|
end
|
@@ -60,6 +72,17 @@ describe 'client.cluster#stats' do
|
|
60
72
|
'foo,bar/_stats'
|
61
73
|
end
|
62
74
|
|
75
|
+
let(:expected_args) do
|
76
|
+
[
|
77
|
+
'GET',
|
78
|
+
url,
|
79
|
+
params,
|
80
|
+
body,
|
81
|
+
{},
|
82
|
+
{ defined_params: { index: ['foo', 'bar'] }, endpoint: 'indices.stats' }
|
83
|
+
]
|
84
|
+
end
|
85
|
+
|
63
86
|
it 'performs the request' do
|
64
87
|
expect(client_double.indices.stats(index: ['foo', 'bar'])).to be_a Elasticsearch::API::Response
|
65
88
|
end
|
@@ -70,6 +93,17 @@ describe 'client.cluster#stats' do
|
|
70
93
|
'foo,bar/_stats'
|
71
94
|
end
|
72
95
|
|
96
|
+
let(:expected_args) do
|
97
|
+
[
|
98
|
+
'GET',
|
99
|
+
url,
|
100
|
+
params,
|
101
|
+
body,
|
102
|
+
{},
|
103
|
+
{ defined_params: { index: 'foo,bar' }, endpoint: 'indices.stats' }
|
104
|
+
]
|
105
|
+
end
|
106
|
+
|
73
107
|
it 'performs the request' do
|
74
108
|
expect(client_double.indices.stats(index: 'foo,bar')).to be_a Elasticsearch::API::Response
|
75
109
|
end
|
@@ -84,6 +118,17 @@ describe 'client.cluster#stats' do
|
|
84
118
|
'foo/_stats'
|
85
119
|
end
|
86
120
|
|
121
|
+
let(:expected_args) do
|
122
|
+
[
|
123
|
+
'GET',
|
124
|
+
url,
|
125
|
+
params,
|
126
|
+
body,
|
127
|
+
{},
|
128
|
+
{ defined_params: { index: 'foo' }, endpoint: 'indices.stats' }
|
129
|
+
]
|
130
|
+
end
|
131
|
+
|
87
132
|
it 'performs the request' do
|
88
133
|
expect(client_double.indices.stats(index: 'foo', expand_wildcards: true)).to be_a Elasticsearch::API::Response
|
89
134
|
end
|
@@ -98,6 +143,17 @@ describe 'client.cluster#stats' do
|
|
98
143
|
'foo/_stats/fielddata'
|
99
144
|
end
|
100
145
|
|
146
|
+
let(:expected_args) do
|
147
|
+
[
|
148
|
+
'GET',
|
149
|
+
url,
|
150
|
+
params,
|
151
|
+
body,
|
152
|
+
{},
|
153
|
+
{ defined_params: { index: 'foo', metric: 'fielddata' }, endpoint: 'indices.stats' }
|
154
|
+
]
|
155
|
+
end
|
156
|
+
|
101
157
|
it 'performs the request' do
|
102
158
|
expect(client_double.indices.stats(index: 'foo', metric: 'fielddata', fields: ['foo', 'bar'])).to be_a Elasticsearch::API::Response
|
103
159
|
end
|
@@ -112,6 +168,17 @@ describe 'client.cluster#stats' do
|
|
112
168
|
'_stats/search'
|
113
169
|
end
|
114
170
|
|
171
|
+
let(:expected_args) do
|
172
|
+
[
|
173
|
+
'GET',
|
174
|
+
url,
|
175
|
+
params,
|
176
|
+
body,
|
177
|
+
{},
|
178
|
+
{ defined_params: { metric: 'search' }, endpoint: 'indices.stats' }
|
179
|
+
]
|
180
|
+
end
|
181
|
+
|
115
182
|
it 'performs the request' do
|
116
183
|
expect(client_double.indices.stats(groups: [ 'groupA', 'groupB'], metric: 'search')).to be_a Elasticsearch::API::Response
|
117
184
|
end
|
@@ -25,7 +25,8 @@ describe 'client.indices#unfreeze' do
|
|
25
25
|
url,
|
26
26
|
params,
|
27
27
|
nil,
|
28
|
-
{}
|
28
|
+
{},
|
29
|
+
{ defined_params: { index: 'foo' }, endpoint: 'indices.unfreeze' }
|
29
30
|
]
|
30
31
|
end
|
31
32
|
|
@@ -78,6 +79,17 @@ describe 'client.indices#unfreeze' do
|
|
78
79
|
'foo%5Ebar/_unfreeze'
|
79
80
|
end
|
80
81
|
|
82
|
+
let(:expected_args) do
|
83
|
+
[
|
84
|
+
'POST',
|
85
|
+
url,
|
86
|
+
params,
|
87
|
+
nil,
|
88
|
+
{},
|
89
|
+
{ defined_params: { index: 'foo^bar' }, endpoint: 'indices.unfreeze' }
|
90
|
+
]
|
91
|
+
end
|
92
|
+
|
81
93
|
it 'performs the request' do
|
82
94
|
expect(client_double.indices.unfreeze(index: 'foo^bar')).to be_a Elasticsearch::API::Response
|
83
95
|
end
|
@@ -24,9 +24,11 @@ describe 'client.cluster#validate_query' do
|
|
24
24
|
url,
|
25
25
|
params,
|
26
26
|
body,
|
27
|
-
{}
|
27
|
+
{},
|
28
|
+
{ endpoint: 'indices.validate_query' }
|
28
29
|
]
|
29
30
|
end
|
31
|
+
|
30
32
|
let(:method) { 'GET' }
|
31
33
|
|
32
34
|
let(:url) do
|
@@ -50,6 +52,17 @@ describe 'client.cluster#validate_query' do
|
|
50
52
|
'foo/_validate/query'
|
51
53
|
end
|
52
54
|
|
55
|
+
let(:expected_args) do
|
56
|
+
[
|
57
|
+
method,
|
58
|
+
url,
|
59
|
+
params,
|
60
|
+
body,
|
61
|
+
{},
|
62
|
+
{ defined_params: { index: 'foo' }, endpoint: 'indices.validate_query' }
|
63
|
+
]
|
64
|
+
end
|
65
|
+
|
53
66
|
it 'performs the request' do
|
54
67
|
expect(client_double.indices.validate_query(index: 'foo')).to be_a Elasticsearch::API::Response
|
55
68
|
end
|
@@ -60,6 +73,17 @@ describe 'client.cluster#validate_query' do
|
|
60
73
|
'foo,bar/_validate/query'
|
61
74
|
end
|
62
75
|
|
76
|
+
let(:expected_args) do
|
77
|
+
[
|
78
|
+
method,
|
79
|
+
url,
|
80
|
+
params,
|
81
|
+
body,
|
82
|
+
{},
|
83
|
+
{ defined_params: { index: ['foo', 'bar'] }, endpoint: 'indices.validate_query' }
|
84
|
+
]
|
85
|
+
end
|
86
|
+
|
63
87
|
it 'performs the request' do
|
64
88
|
expect(client_double.indices.validate_query(index: ['foo', 'bar'])).to be_a Elasticsearch::API::Response
|
65
89
|
end
|
@@ -70,6 +94,17 @@ describe 'client.cluster#validate_query' do
|
|
70
94
|
'foo,bar/_validate/query'
|
71
95
|
end
|
72
96
|
|
97
|
+
let(:expected_args) do
|
98
|
+
[
|
99
|
+
method,
|
100
|
+
url,
|
101
|
+
params,
|
102
|
+
body,
|
103
|
+
{},
|
104
|
+
{ defined_params: { index: 'foo,bar' }, endpoint: 'indices.validate_query' }
|
105
|
+
]
|
106
|
+
end
|
107
|
+
|
73
108
|
it 'performs the request' do
|
74
109
|
expect(client_double.indices.validate_query(index: 'foo,bar')).to be_a Elasticsearch::API::Response
|
75
110
|
end
|
@@ -84,6 +119,17 @@ describe 'client.cluster#validate_query' do
|
|
84
119
|
'_validate/query'
|
85
120
|
end
|
86
121
|
|
122
|
+
let(:expected_args) do
|
123
|
+
[
|
124
|
+
method,
|
125
|
+
url,
|
126
|
+
params,
|
127
|
+
body,
|
128
|
+
{},
|
129
|
+
{ endpoint: 'indices.validate_query' }
|
130
|
+
]
|
131
|
+
end
|
132
|
+
|
87
133
|
it 'performs the request' do
|
88
134
|
expect(client_double.indices.validate_query(explain: true, q: 'foo')).to be_a Elasticsearch::API::Response
|
89
135
|
end
|
@@ -95,6 +141,17 @@ describe 'client.cluster#validate_query' do
|
|
95
141
|
end
|
96
142
|
let(:method) { 'POST' }
|
97
143
|
|
144
|
+
let(:expected_args) do
|
145
|
+
[
|
146
|
+
method,
|
147
|
+
url,
|
148
|
+
params,
|
149
|
+
body,
|
150
|
+
{},
|
151
|
+
{ endpoint: 'indices.validate_query' }
|
152
|
+
]
|
153
|
+
end
|
154
|
+
|
98
155
|
it 'performs the request' do
|
99
156
|
expect(client_double.indices.validate_query(body: { filtered: {} })).to be_a Elasticsearch::API::Response
|
100
157
|
end
|
@@ -105,6 +162,17 @@ describe 'client.cluster#validate_query' do
|
|
105
162
|
'foo%5Ebar/_validate/query'
|
106
163
|
end
|
107
164
|
|
165
|
+
let(:expected_args) do
|
166
|
+
[
|
167
|
+
method,
|
168
|
+
url,
|
169
|
+
params,
|
170
|
+
body,
|
171
|
+
{},
|
172
|
+
{ defined_params: { index: 'foo^bar' }, endpoint: 'indices.validate_query' }
|
173
|
+
]
|
174
|
+
end
|
175
|
+
|
108
176
|
it 'performs the request' do
|
109
177
|
expect(client_double.indices.validate_query(index: 'foo^bar')).to be_a Elasticsearch::API::Response
|
110
178
|
end
|
@@ -17,18 +17,20 @@
|
|
17
17
|
|
18
18
|
require 'spec_helper'
|
19
19
|
|
20
|
-
describe 'client.
|
20
|
+
describe 'client#inference.delete_model' do
|
21
21
|
let(:expected_args) do
|
22
22
|
[
|
23
23
|
'DELETE',
|
24
|
-
'
|
24
|
+
'_inference/foo/bar',
|
25
25
|
{},
|
26
26
|
nil,
|
27
|
-
{}
|
27
|
+
{},
|
28
|
+
{ defined_params: { model_id: 'bar', task_type: 'foo' },
|
29
|
+
endpoint: 'inference.delete_model' }
|
28
30
|
]
|
29
31
|
end
|
30
32
|
|
31
33
|
it 'performs the request' do
|
32
|
-
expect(client_double.
|
34
|
+
expect(client_double.inference.delete_model(task_type: 'foo', model_id: 'bar')).to be_a Elasticsearch::API::Response
|
33
35
|
end
|
34
36
|
end
|