elasticsearch-api 8.10.0 → 8.12.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/rspec_matchers.rb +2 -0
- data/api-spec-testing/test_file/action.rb +76 -64
- data/api-spec-testing/test_file/task_group.rb +5 -2
- data/api-spec-testing/test_file.rb +8 -3
- data/api-spec-testing/wipe_cluster.rb +9 -4
- 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 +11 -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/connector/check_in.rb +65 -0
- data/lib/elasticsearch/api/actions/connector/delete.rb +65 -0
- data/lib/elasticsearch/api/actions/connector/get.rb +65 -0
- data/lib/elasticsearch/api/actions/connector/last_sync.rb +67 -0
- data/lib/elasticsearch/api/actions/connector/list.rb +56 -0
- data/lib/elasticsearch/api/actions/connector/post.rb +57 -0
- data/lib/elasticsearch/api/actions/connector/put.rb +67 -0
- data/lib/elasticsearch/api/actions/connector/update_configuration.rb +67 -0
- data/lib/elasticsearch/api/actions/connector/update_error.rb +67 -0
- data/lib/elasticsearch/api/actions/connector/update_filtering.rb +67 -0
- data/lib/elasticsearch/api/actions/connector/update_name.rb +67 -0
- data/lib/elasticsearch/api/actions/connector/update_pipeline.rb +67 -0
- data/lib/elasticsearch/api/actions/connector/update_scheduling.rb +67 -0
- data/lib/elasticsearch/api/actions/connector_sync_job/cancel.rb +66 -0
- data/lib/elasticsearch/api/actions/connector_sync_job/check_in.rb +66 -0
- data/lib/elasticsearch/api/actions/connector_sync_job/delete.rb +66 -0
- data/lib/elasticsearch/api/actions/connector_sync_job/error.rb +69 -0
- data/lib/elasticsearch/api/actions/connector_sync_job/get.rb +66 -0
- data/lib/elasticsearch/api/actions/connector_sync_job/list.rb +58 -0
- data/lib/elasticsearch/api/actions/connector_sync_job/post.rb +57 -0
- data/lib/elasticsearch/api/actions/connector_sync_job/update_stats.rb +69 -0
- 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 +11 -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 +12 -3
- data/lib/elasticsearch/api/actions/ping.rb +4 -2
- data/lib/elasticsearch/api/actions/profiling/status.rb +53 -0
- 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 +5 -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/simulate/ingest.rb +71 -0
- 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 → connector.rb} +7 -7
- data/{spec/rspec_formatter.rb → lib/elasticsearch/api/namespace/connector_sync_job.rb} +14 -9
- data/lib/elasticsearch/api/namespace/{synonyms_sets.rb → esql.rb} +7 -7
- data/lib/elasticsearch/api/namespace/inference.rb +36 -0
- data/lib/elasticsearch/api/namespace/profiling.rb +36 -0
- data/lib/elasticsearch/api/namespace/simulate.rb +36 -0
- data/lib/elasticsearch/api/version.rb +1 -1
- data/lib/elasticsearch/api.rb +6 -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/connector/check_in_spec.rb +38 -0
- data/spec/elasticsearch/api/actions/{synonyms/delete_synonym_rule_spec.rb → connector/delete_spec.rb} +8 -4
- data/spec/elasticsearch/api/actions/{synonyms/delete_synonym_spec.rb → connector/get_spec.rb} +9 -5
- data/spec/elasticsearch/api/actions/connector/last_sync_spec.rb +38 -0
- data/spec/elasticsearch/api/actions/{query_ruleset → connector}/list_spec.rb +5 -4
- data/spec/elasticsearch/api/actions/{security/update_settings_spec.rb → connector/post_spec.rb} +6 -5
- data/spec/elasticsearch/api/actions/connector/put_spec.rb +43 -0
- data/spec/elasticsearch/api/actions/connector/update_configuration_spec.rb +38 -0
- data/spec/elasticsearch/api/actions/connector/update_error_spec.rb +38 -0
- data/spec/elasticsearch/api/actions/connector/update_filtering_spec.rb +38 -0
- data/spec/elasticsearch/api/actions/connector/update_name_spec.rb +38 -0
- data/spec/elasticsearch/api/actions/connector/update_pipeline_spec.rb +38 -0
- data/spec/elasticsearch/api/actions/connector/update_scheduling_spec.rb +42 -0
- data/spec/elasticsearch/api/actions/connector_sync_job/cancel_spec.rb +38 -0
- data/spec/elasticsearch/api/actions/connector_sync_job/check_in_spec.rb +38 -0
- data/spec/elasticsearch/api/actions/connector_sync_job/delete_spec.rb +38 -0
- data/spec/elasticsearch/api/actions/connector_sync_job/error_spec.rb +38 -0
- data/spec/elasticsearch/api/actions/connector_sync_job/get_spec.rb +38 -0
- data/spec/elasticsearch/api/actions/{synonyms/get_synonym_rule_spec.rb → connector_sync_job/list_spec.rb} +5 -4
- data/spec/elasticsearch/api/actions/{synonyms/put_synonym_rule_spec.rb → connector_sync_job/post_spec.rb} +6 -5
- data/spec/elasticsearch/api/actions/connector_sync_job/update_stats_spec.rb +38 -0
- 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/inference/delete_model_spec.rb +36 -0
- data/spec/elasticsearch/api/actions/inference/get_model_spec.rb +36 -0
- data/spec/elasticsearch/api/actions/inference/inference_spec.rb +36 -0
- data/spec/elasticsearch/api/actions/inference/put_model_spec.rb +36 -0
- 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/{synonyms/get_synonym_spec.rb → profiling/status_spec.rb} +6 -4
- 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/{security/get_settings_spec.rb → simulate/ingest_spec.rb} +7 -6
- 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/rest_api/skipped_tests_free.yml +5 -3
- data/spec/rest_api/skipped_tests_platinum.yml +3 -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 +99 -32
- data/spec/elasticsearch/api/actions/synonyms/get_synonyms_sets_spec.rb +0 -34
@@ -16,22 +16,22 @@
|
|
16
16
|
# specific language governing permissions and limitations
|
17
17
|
# under the License.
|
18
18
|
%>
|
19
|
-
<%- @
|
20
|
-
<%- unless @method_name == 'get_field_mapping' && name == 'fields' %>
|
21
|
-
<%= ' '*(@namespace_depth+3) + "_#{name}" %> = arguments.delete(:<%=name %>)
|
19
|
+
<%- @spec.path_parts.each do |name, _| %>
|
20
|
+
<%- unless @spec.method_name == 'get_field_mapping' && name == 'fields' %>
|
21
|
+
<%= ' '*(@spec.namespace_depth+3) + "_#{name}" %> = arguments.delete(:<%=name %>)
|
22
22
|
<%- end -%>
|
23
23
|
<%- end -%>
|
24
24
|
|
25
|
-
<%= ' '*(@namespace_depth+4) %>method = <%= @http_method %>
|
26
|
-
<%- if @method_name == 'termvectors' %>
|
25
|
+
<%= ' '*(@spec.namespace_depth+4) %>method = <%= @spec.http_method %>
|
26
|
+
<%- if @spec.method_name == 'termvectors' %>
|
27
27
|
endpoint = arguments.delete(:endpoint) || '_termvectors'
|
28
28
|
<%- end -%>
|
29
|
-
<%= ' '*(@namespace_depth+4) %>path = <%= @http_path %>
|
30
|
-
<%- if !@params.empty? || needs_ignore_404?(@endpoint_name) || needs_complex_ignore_404?(@endpoint_name)-%>
|
31
|
-
<%= ' '*(@namespace_depth+4) %>params = Utils.process_params(arguments)
|
29
|
+
<%= ' '*(@spec.namespace_depth+4) %>path = <%= @spec.http_path %>
|
30
|
+
<%- if !@spec.params.empty? || needs_ignore_404?(@spec.endpoint_name) || needs_complex_ignore_404?(@spec.endpoint_name)-%>
|
31
|
+
<%= ' '*(@spec.namespace_depth+4) %>params = Utils.process_params(arguments)
|
32
32
|
<%- else -%>
|
33
|
-
<%= ' '*(@namespace_depth+4) %>params = {}
|
33
|
+
<%= ' '*(@spec.namespace_depth+4) %>params = {}
|
34
34
|
<%- end -%>
|
35
|
-
<%- @specific_params.each do |param| -%>
|
35
|
+
<%- @spec.specific_params.each do |param| -%>
|
36
36
|
<%= param %>
|
37
37
|
<%- end -%>
|
@@ -16,35 +16,35 @@
|
|
16
16
|
# specific language governing permissions and limitations
|
17
17
|
# under the License.
|
18
18
|
%>
|
19
|
-
<%- if ['bulk', 'msearch', 'msearch_template', 'find_structure'].include? @method_name -%>
|
20
|
-
<%= self.send("#{@method_name}_body_helper".to_s) %>
|
19
|
+
<%- if ['bulk', 'msearch', 'msearch_template', 'find_structure'].include? @spec.method_name -%>
|
20
|
+
<%= self.send("#{@spec.method_name}_body_helper".to_s) %>
|
21
21
|
headers.merge!("Content-Type" => "application/x-ndjson")
|
22
22
|
Elasticsearch::API::Response.new(
|
23
|
-
perform_request(method, path, params, payload, headers)
|
23
|
+
perform_request(method, path, params, payload, headers, request_opts)
|
24
24
|
)
|
25
|
-
<%- elsif @method_name == 'ping' -%>
|
25
|
+
<%- elsif @spec.method_name == 'ping' -%>
|
26
26
|
<%= ping_perform_request %>
|
27
27
|
<%- else -%>
|
28
|
-
<%- if needs_ignore_404?(@endpoint_name) %>
|
28
|
+
<%- if needs_ignore_404?(@spec.endpoint_name) %>
|
29
29
|
Utils.__rescue_from_not_found do
|
30
|
-
perform_request(method, path, params, body, headers).status == 200 ? true : false
|
30
|
+
perform_request(method, path, params, body, headers, request_opts).status == 200 ? true : false
|
31
31
|
end
|
32
|
-
<%- elsif needs_complex_ignore_404?(@endpoint_name) -%>
|
32
|
+
<%- elsif needs_complex_ignore_404?(@spec.endpoint_name) -%>
|
33
33
|
if Array(arguments[:ignore]).include?(404)
|
34
34
|
Utils.__rescue_from_not_found {
|
35
35
|
Elasticsearch::API::Response.new(
|
36
|
-
perform_request(method, path, params, body, headers)
|
36
|
+
perform_request(method, path, params, body, headers, request_opts)
|
37
37
|
)
|
38
38
|
}
|
39
39
|
else
|
40
40
|
Elasticsearch::API::Response.new(
|
41
|
-
perform_request(method, path, params, body, headers)
|
41
|
+
perform_request(method, path, params, body, headers, request_opts)
|
42
42
|
)
|
43
43
|
end
|
44
44
|
<%- else -%>
|
45
45
|
Elasticsearch::API::Response.new(
|
46
|
-
perform_request(method, path, params, body, headers)
|
46
|
+
perform_request(method, path, params, body, headers, request_opts)
|
47
47
|
)
|
48
48
|
<%- end -%>
|
49
49
|
<%- end -%>
|
50
|
-
<%= ' '*(@namespace_depth+3) %>end
|
50
|
+
<%= ' '*(@spec.namespace_depth+3) %>end
|
@@ -16,29 +16,38 @@
|
|
16
16
|
# under the License.
|
17
17
|
#
|
18
18
|
module Elasticsearch
|
19
|
-
<%= ' '*(@namespace_depth) %>module API
|
20
|
-
<%- @module_namespace.each_with_index do |name, i| -%>
|
19
|
+
<%= ' '*(@spec.namespace_depth) %>module API
|
20
|
+
<%- @spec.module_namespace.each_with_index do |name, i| -%>
|
21
21
|
<%= ' '*i %>module <%= module_name_helper(name) %>
|
22
22
|
<%- end -%>
|
23
|
-
<%= ' '*(@namespace_depth+2) %>module Actions
|
23
|
+
<%= ' '*(@spec.namespace_depth+2) %>module Actions
|
24
24
|
<%= ERB.new(File.new("./thor/templates/_documentation_top.erb").read, trim_mode: '-').result(binding) -%>
|
25
25
|
<%# Method definition -%>
|
26
|
-
<%= ' '*(@namespace_depth+3) -%>def <%= @method_name %>(arguments = {})
|
27
|
-
|
28
|
-
|
29
|
-
|
30
|
-
|
31
|
-
|
32
|
-
|
33
|
-
|
26
|
+
<%= ' '*(@spec.namespace_depth+3) -%>def <%= @spec.method_name %>(arguments = {})
|
27
|
+
request_opts = { endpoint: arguments[:endpoint] || "<%= @spec.endpoint_name %>" }
|
28
|
+
<%- unless @spec.path_params.empty? %>
|
29
|
+
defined_params =<%= @spec.path_params %>.inject({}) do |set_variables, variable|
|
30
|
+
set_variables[variable] = arguments[variable] if arguments.key?(variable)
|
31
|
+
set_variables
|
32
|
+
end
|
33
|
+
request_opts[:defined_params] = defined_params unless defined_params.empty?
|
34
|
+
<%- end %>
|
35
|
+
<%- %>
|
36
|
+
<%- if @spec.endpoint_name == 'create' -%>
|
37
|
+
<%= ' '*(@spec.namespace_depth+3) %>if arguments[:id]
|
38
|
+
<%= ' '*(@spec.namespace_depth+3) %> index arguments.update op_type: 'create'
|
39
|
+
<%= ' '*(@spec.namespace_depth+3) %>else
|
40
|
+
<%= ' '*(@spec.namespace_depth+3) %> index arguments
|
41
|
+
<%= ' '*(@spec.namespace_depth+3) %>end
|
42
|
+
<%= ' '*(@spec.namespace_depth+2) %>end
|
34
43
|
<%- else -%>
|
35
|
-
<%- if @method_name == 'get_field_mapping' %>
|
44
|
+
<%- if @spec.method_name == 'get_field_mapping' %>
|
36
45
|
arguments = arguments.clone
|
37
46
|
_fields = arguments.delete(:field) || arguments.delete(:fields)
|
38
47
|
raise ArgumentError, "Required argument 'field' missing" unless _fields
|
39
48
|
<%- else -%>
|
40
|
-
<%- @required_parts.each do |required| %><%# Arguments -%>
|
41
|
-
<%= ' '*(@namespace_depth+3) + "raise ArgumentError, \"Required argument '#{required}' missing\" unless arguments[:#{required}]" + "\n" -%>
|
49
|
+
<%- @spec.required_parts.each do |required| %><%# Arguments -%>
|
50
|
+
<%= ' '*(@spec.namespace_depth+3) + "raise ArgumentError, \"Required argument '#{required}' missing\" unless arguments[:#{required}]" + "\n" -%>
|
42
51
|
<%- end -%>
|
43
52
|
arguments = arguments.clone
|
44
53
|
<%- end -%>
|
@@ -50,10 +59,10 @@ module Elasticsearch
|
|
50
59
|
<%- # Perform request -%>
|
51
60
|
<%= ERB.new(File.new("./thor/templates/_perform_request.erb").read, trim_mode: '-').result(binding) %>
|
52
61
|
<%- end -%>
|
53
|
-
<%- if @method_name.match?(/^exists\S*/) -%>
|
54
|
-
alias_method :<%= @method_name %>?, :<%= @method_name %>
|
62
|
+
<%- if @spec.method_name.match?(/^exists\S*/) -%>
|
63
|
+
alias_method :<%= @spec.method_name %>?, :<%= @spec.method_name %>
|
55
64
|
<%- end -%>
|
56
|
-
<%- if @method_name == 'termvectors' %>
|
65
|
+
<%- if @spec.method_name == 'termvectors' %>
|
57
66
|
|
58
67
|
# Deprecated: Use the plural version, {#termvectors}
|
59
68
|
#
|
@@ -62,9 +71,9 @@ module Elasticsearch
|
|
62
71
|
end
|
63
72
|
<%- end -%>
|
64
73
|
|
65
|
-
<%- @namespace_depth.downto(1) do |i| -%>
|
74
|
+
<%- @spec.namespace_depth.downto(1) do |i| -%>
|
66
75
|
<%= ' '*(i-1) %>end
|
67
|
-
<%- end if @namespace_depth > 0 -%>
|
76
|
+
<%- end if @spec.namespace_depth > 0 -%>
|
68
77
|
end
|
69
78
|
end
|
70
79
|
end
|
metadata
CHANGED
@@ -1,16 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: elasticsearch-api
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 8.
|
4
|
+
version: 8.12.0
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
|
-
-
|
8
|
-
- Emily Stolfo
|
9
|
-
- Fernando Briano
|
7
|
+
- Elastic Client Library Maintainers
|
10
8
|
autorequire:
|
11
9
|
bindir: bin
|
12
10
|
cert_chain: []
|
13
|
-
date:
|
11
|
+
date: 2024-01-17 00:00:00.000000000 Z
|
14
12
|
dependencies:
|
15
13
|
- !ruby/object:Gem::Dependency
|
16
14
|
name: multi_json
|
@@ -310,7 +308,7 @@ description: 'Ruby API for Elasticsearch. See the `elasticsearch` gem for full i
|
|
310
308
|
|
311
309
|
'
|
312
310
|
email:
|
313
|
-
-
|
311
|
+
- client-libs@elastic.co
|
314
312
|
executables: []
|
315
313
|
extensions: []
|
316
314
|
extra_rdoc_files:
|
@@ -387,6 +385,27 @@ files:
|
|
387
385
|
- lib/elasticsearch/api/actions/cluster/reroute.rb
|
388
386
|
- lib/elasticsearch/api/actions/cluster/state.rb
|
389
387
|
- lib/elasticsearch/api/actions/cluster/stats.rb
|
388
|
+
- lib/elasticsearch/api/actions/connector/check_in.rb
|
389
|
+
- lib/elasticsearch/api/actions/connector/delete.rb
|
390
|
+
- lib/elasticsearch/api/actions/connector/get.rb
|
391
|
+
- lib/elasticsearch/api/actions/connector/last_sync.rb
|
392
|
+
- lib/elasticsearch/api/actions/connector/list.rb
|
393
|
+
- lib/elasticsearch/api/actions/connector/post.rb
|
394
|
+
- lib/elasticsearch/api/actions/connector/put.rb
|
395
|
+
- lib/elasticsearch/api/actions/connector/update_configuration.rb
|
396
|
+
- lib/elasticsearch/api/actions/connector/update_error.rb
|
397
|
+
- lib/elasticsearch/api/actions/connector/update_filtering.rb
|
398
|
+
- lib/elasticsearch/api/actions/connector/update_name.rb
|
399
|
+
- lib/elasticsearch/api/actions/connector/update_pipeline.rb
|
400
|
+
- lib/elasticsearch/api/actions/connector/update_scheduling.rb
|
401
|
+
- lib/elasticsearch/api/actions/connector_sync_job/cancel.rb
|
402
|
+
- lib/elasticsearch/api/actions/connector_sync_job/check_in.rb
|
403
|
+
- lib/elasticsearch/api/actions/connector_sync_job/delete.rb
|
404
|
+
- lib/elasticsearch/api/actions/connector_sync_job/error.rb
|
405
|
+
- lib/elasticsearch/api/actions/connector_sync_job/get.rb
|
406
|
+
- lib/elasticsearch/api/actions/connector_sync_job/list.rb
|
407
|
+
- lib/elasticsearch/api/actions/connector_sync_job/post.rb
|
408
|
+
- lib/elasticsearch/api/actions/connector_sync_job/update_stats.rb
|
390
409
|
- lib/elasticsearch/api/actions/count.rb
|
391
410
|
- lib/elasticsearch/api/actions/create.rb
|
392
411
|
- lib/elasticsearch/api/actions/cross_cluster_replication/delete_auto_follow_pattern.rb
|
@@ -418,6 +437,7 @@ files:
|
|
418
437
|
- lib/elasticsearch/api/actions/eql/get.rb
|
419
438
|
- lib/elasticsearch/api/actions/eql/get_status.rb
|
420
439
|
- lib/elasticsearch/api/actions/eql/search.rb
|
440
|
+
- lib/elasticsearch/api/actions/esql/query.rb
|
421
441
|
- lib/elasticsearch/api/actions/exists.rb
|
422
442
|
- lib/elasticsearch/api/actions/exists_source.rb
|
423
443
|
- lib/elasticsearch/api/actions/explain.rb
|
@@ -507,6 +527,10 @@ files:
|
|
507
527
|
- lib/elasticsearch/api/actions/indices/unfreeze.rb
|
508
528
|
- lib/elasticsearch/api/actions/indices/update_aliases.rb
|
509
529
|
- lib/elasticsearch/api/actions/indices/validate_query.rb
|
530
|
+
- lib/elasticsearch/api/actions/inference/delete_model.rb
|
531
|
+
- lib/elasticsearch/api/actions/inference/get_model.rb
|
532
|
+
- lib/elasticsearch/api/actions/inference/inference.rb
|
533
|
+
- lib/elasticsearch/api/actions/inference/put_model.rb
|
510
534
|
- lib/elasticsearch/api/actions/info.rb
|
511
535
|
- lib/elasticsearch/api/actions/ingest/delete_pipeline.rb
|
512
536
|
- lib/elasticsearch/api/actions/ingest/geo_ip_stats.rb
|
@@ -615,6 +639,7 @@ files:
|
|
615
639
|
- lib/elasticsearch/api/actions/nodes/usage.rb
|
616
640
|
- lib/elasticsearch/api/actions/open_point_in_time.rb
|
617
641
|
- lib/elasticsearch/api/actions/ping.rb
|
642
|
+
- lib/elasticsearch/api/actions/profiling/status.rb
|
618
643
|
- lib/elasticsearch/api/actions/put_script.rb
|
619
644
|
- lib/elasticsearch/api/actions/query_ruleset/delete.rb
|
620
645
|
- lib/elasticsearch/api/actions/query_ruleset/get.rb
|
@@ -714,6 +739,7 @@ files:
|
|
714
739
|
- lib/elasticsearch/api/actions/shutdown/delete_node.rb
|
715
740
|
- lib/elasticsearch/api/actions/shutdown/get_node.rb
|
716
741
|
- lib/elasticsearch/api/actions/shutdown/put_node.rb
|
742
|
+
- lib/elasticsearch/api/actions/simulate/ingest.rb
|
717
743
|
- lib/elasticsearch/api/actions/snapshot/cleanup_repository.rb
|
718
744
|
- lib/elasticsearch/api/actions/snapshot/clone.rb
|
719
745
|
- lib/elasticsearch/api/actions/snapshot/create.rb
|
@@ -789,16 +815,20 @@ files:
|
|
789
815
|
- lib/elasticsearch/api/namespace/cat.rb
|
790
816
|
- lib/elasticsearch/api/namespace/cluster.rb
|
791
817
|
- lib/elasticsearch/api/namespace/common.rb
|
818
|
+
- lib/elasticsearch/api/namespace/connector.rb
|
819
|
+
- lib/elasticsearch/api/namespace/connector_sync_job.rb
|
792
820
|
- lib/elasticsearch/api/namespace/cross_cluster_replication.rb
|
793
821
|
- lib/elasticsearch/api/namespace/dangling_indices.rb
|
794
822
|
- lib/elasticsearch/api/namespace/data_frame_transform_deprecated.rb
|
795
823
|
- lib/elasticsearch/api/namespace/enrich.rb
|
796
824
|
- lib/elasticsearch/api/namespace/eql.rb
|
825
|
+
- lib/elasticsearch/api/namespace/esql.rb
|
797
826
|
- lib/elasticsearch/api/namespace/features.rb
|
798
827
|
- lib/elasticsearch/api/namespace/fleet.rb
|
799
828
|
- lib/elasticsearch/api/namespace/graph.rb
|
800
829
|
- lib/elasticsearch/api/namespace/index_lifecycle_management.rb
|
801
830
|
- lib/elasticsearch/api/namespace/indices.rb
|
831
|
+
- lib/elasticsearch/api/namespace/inference.rb
|
802
832
|
- lib/elasticsearch/api/namespace/ingest.rb
|
803
833
|
- lib/elasticsearch/api/namespace/license.rb
|
804
834
|
- lib/elasticsearch/api/namespace/logstash.rb
|
@@ -806,6 +836,7 @@ files:
|
|
806
836
|
- lib/elasticsearch/api/namespace/migration.rb
|
807
837
|
- lib/elasticsearch/api/namespace/monitoring.rb
|
808
838
|
- lib/elasticsearch/api/namespace/nodes.rb
|
839
|
+
- lib/elasticsearch/api/namespace/profiling.rb
|
809
840
|
- lib/elasticsearch/api/namespace/query_ruleset.rb
|
810
841
|
- lib/elasticsearch/api/namespace/remote.rb
|
811
842
|
- lib/elasticsearch/api/namespace/rollup.rb
|
@@ -813,13 +844,12 @@ files:
|
|
813
844
|
- lib/elasticsearch/api/namespace/searchable_snapshots.rb
|
814
845
|
- lib/elasticsearch/api/namespace/security.rb
|
815
846
|
- lib/elasticsearch/api/namespace/shutdown.rb
|
847
|
+
- lib/elasticsearch/api/namespace/simulate.rb
|
816
848
|
- lib/elasticsearch/api/namespace/snapshot.rb
|
817
849
|
- lib/elasticsearch/api/namespace/snapshot_lifecycle_management.rb
|
818
850
|
- lib/elasticsearch/api/namespace/sql.rb
|
819
851
|
- lib/elasticsearch/api/namespace/ssl.rb
|
820
|
-
- lib/elasticsearch/api/namespace/synonym_rule.rb
|
821
852
|
- lib/elasticsearch/api/namespace/synonyms.rb
|
822
|
-
- lib/elasticsearch/api/namespace/synonyms_sets.rb
|
823
853
|
- lib/elasticsearch/api/namespace/tasks.rb
|
824
854
|
- lib/elasticsearch/api/namespace/text_structure.rb
|
825
855
|
- lib/elasticsearch/api/namespace/transform.rb
|
@@ -862,6 +892,27 @@ files:
|
|
862
892
|
- spec/elasticsearch/api/actions/cluster/reroute_spec.rb
|
863
893
|
- spec/elasticsearch/api/actions/cluster/state_spec.rb
|
864
894
|
- spec/elasticsearch/api/actions/cluster/stats_spec.rb
|
895
|
+
- spec/elasticsearch/api/actions/connector/check_in_spec.rb
|
896
|
+
- spec/elasticsearch/api/actions/connector/delete_spec.rb
|
897
|
+
- spec/elasticsearch/api/actions/connector/get_spec.rb
|
898
|
+
- spec/elasticsearch/api/actions/connector/last_sync_spec.rb
|
899
|
+
- spec/elasticsearch/api/actions/connector/list_spec.rb
|
900
|
+
- spec/elasticsearch/api/actions/connector/post_spec.rb
|
901
|
+
- spec/elasticsearch/api/actions/connector/put_spec.rb
|
902
|
+
- spec/elasticsearch/api/actions/connector/update_configuration_spec.rb
|
903
|
+
- spec/elasticsearch/api/actions/connector/update_error_spec.rb
|
904
|
+
- spec/elasticsearch/api/actions/connector/update_filtering_spec.rb
|
905
|
+
- spec/elasticsearch/api/actions/connector/update_name_spec.rb
|
906
|
+
- spec/elasticsearch/api/actions/connector/update_pipeline_spec.rb
|
907
|
+
- spec/elasticsearch/api/actions/connector/update_scheduling_spec.rb
|
908
|
+
- spec/elasticsearch/api/actions/connector_sync_job/cancel_spec.rb
|
909
|
+
- spec/elasticsearch/api/actions/connector_sync_job/check_in_spec.rb
|
910
|
+
- spec/elasticsearch/api/actions/connector_sync_job/delete_spec.rb
|
911
|
+
- spec/elasticsearch/api/actions/connector_sync_job/error_spec.rb
|
912
|
+
- spec/elasticsearch/api/actions/connector_sync_job/get_spec.rb
|
913
|
+
- spec/elasticsearch/api/actions/connector_sync_job/list_spec.rb
|
914
|
+
- spec/elasticsearch/api/actions/connector_sync_job/post_spec.rb
|
915
|
+
- spec/elasticsearch/api/actions/connector_sync_job/update_stats_spec.rb
|
865
916
|
- spec/elasticsearch/api/actions/count_spec.rb
|
866
917
|
- spec/elasticsearch/api/actions/create_document_spec.rb
|
867
918
|
- spec/elasticsearch/api/actions/dangling_indices/delete_dangling_indices_spec.rb
|
@@ -871,6 +922,7 @@ files:
|
|
871
922
|
- spec/elasticsearch/api/actions/delete_by_query_spec.rb
|
872
923
|
- spec/elasticsearch/api/actions/delete_document_spec.rb
|
873
924
|
- spec/elasticsearch/api/actions/delete_script_spec.rb
|
925
|
+
- spec/elasticsearch/api/actions/esql/query_spec.rb
|
874
926
|
- spec/elasticsearch/api/actions/exists_document_spec.rb
|
875
927
|
- spec/elasticsearch/api/actions/explain_document_spec.rb
|
876
928
|
- spec/elasticsearch/api/actions/features/get_features_spec.rb
|
@@ -928,6 +980,10 @@ files:
|
|
928
980
|
- spec/elasticsearch/api/actions/indices/unfreeze_spec.rb
|
929
981
|
- spec/elasticsearch/api/actions/indices/update_aliases_spec.rb
|
930
982
|
- spec/elasticsearch/api/actions/indices/validate_query_spec.rb
|
983
|
+
- spec/elasticsearch/api/actions/inference/delete_model_spec.rb
|
984
|
+
- spec/elasticsearch/api/actions/inference/get_model_spec.rb
|
985
|
+
- spec/elasticsearch/api/actions/inference/inference_spec.rb
|
986
|
+
- spec/elasticsearch/api/actions/inference/put_model_spec.rb
|
931
987
|
- spec/elasticsearch/api/actions/info_spec.rb
|
932
988
|
- spec/elasticsearch/api/actions/ingest/delete_pipeline_spec.rb
|
933
989
|
- spec/elasticsearch/api/actions/ingest/geo_ip_stats_spec.rb
|
@@ -959,10 +1015,10 @@ files:
|
|
959
1015
|
- spec/elasticsearch/api/actions/nodes/stats_spec.rb
|
960
1016
|
- spec/elasticsearch/api/actions/open_point_in_time_spec.rb
|
961
1017
|
- spec/elasticsearch/api/actions/ping_spec.rb
|
1018
|
+
- spec/elasticsearch/api/actions/profiling/status_spec.rb
|
962
1019
|
- spec/elasticsearch/api/actions/put_script_spec.rb
|
963
1020
|
- spec/elasticsearch/api/actions/query_ruleset/delete_spec.rb
|
964
1021
|
- spec/elasticsearch/api/actions/query_ruleset/get_spec.rb
|
965
|
-
- spec/elasticsearch/api/actions/query_ruleset/list_spec.rb
|
966
1022
|
- spec/elasticsearch/api/actions/query_ruleset/put_spec.rb
|
967
1023
|
- spec/elasticsearch/api/actions/rank_eval_spec.rb
|
968
1024
|
- spec/elasticsearch/api/actions/reindex_spec.rb
|
@@ -998,7 +1054,6 @@ files:
|
|
998
1054
|
- spec/elasticsearch/api/actions/security/get_builtin_privileges_spec.rb
|
999
1055
|
- spec/elasticsearch/api/actions/security/get_service_accounts_spec.rb
|
1000
1056
|
- spec/elasticsearch/api/actions/security/get_service_credentials_spec.rb
|
1001
|
-
- spec/elasticsearch/api/actions/security/get_settings_spec.rb
|
1002
1057
|
- spec/elasticsearch/api/actions/security/has_privileges_user_profile_spec.rb
|
1003
1058
|
- spec/elasticsearch/api/actions/security/invalidate_api_key_spec.rb
|
1004
1059
|
- spec/elasticsearch/api/actions/security/query_api_keys_spec.rb
|
@@ -1011,10 +1066,10 @@ files:
|
|
1011
1066
|
- spec/elasticsearch/api/actions/security/suggest_user_profiles_spec.rb
|
1012
1067
|
- spec/elasticsearch/api/actions/security/update_api_key_spec.rb
|
1013
1068
|
- spec/elasticsearch/api/actions/security/update_cross_cluster_api_key_spec.rb
|
1014
|
-
- spec/elasticsearch/api/actions/security/update_settings_spec.rb
|
1015
1069
|
- spec/elasticsearch/api/actions/shutdown/delete_node_spec.rb
|
1016
1070
|
- spec/elasticsearch/api/actions/shutdown/get_node_spec.rb
|
1017
1071
|
- spec/elasticsearch/api/actions/shutdown/put_node_spec.rb
|
1072
|
+
- spec/elasticsearch/api/actions/simulate/ingest_spec.rb
|
1018
1073
|
- spec/elasticsearch/api/actions/snapshot/clone_spec.rb
|
1019
1074
|
- spec/elasticsearch/api/actions/snapshot/create_repository_spec.rb
|
1020
1075
|
- spec/elasticsearch/api/actions/snapshot/create_spec.rb
|
@@ -1029,13 +1084,6 @@ files:
|
|
1029
1084
|
- spec/elasticsearch/api/actions/sql/delete_async_spec.rb
|
1030
1085
|
- spec/elasticsearch/api/actions/sql/get_async_spec.rb
|
1031
1086
|
- spec/elasticsearch/api/actions/sql/get_async_stats_spec.rb
|
1032
|
-
- spec/elasticsearch/api/actions/synonyms/delete_synonym_rule_spec.rb
|
1033
|
-
- spec/elasticsearch/api/actions/synonyms/delete_synonym_spec.rb
|
1034
|
-
- spec/elasticsearch/api/actions/synonyms/get_synonym_rule_spec.rb
|
1035
|
-
- spec/elasticsearch/api/actions/synonyms/get_synonym_spec.rb
|
1036
|
-
- spec/elasticsearch/api/actions/synonyms/get_synonyms_sets_spec.rb
|
1037
|
-
- spec/elasticsearch/api/actions/synonyms/put_synonym_rule_spec.rb
|
1038
|
-
- spec/elasticsearch/api/actions/synonyms/update_spec.rb
|
1039
1087
|
- spec/elasticsearch/api/actions/tasks/cancel_spec.rb
|
1040
1088
|
- spec/elasticsearch/api/actions/tasks/get_spec.rb
|
1041
1089
|
- spec/elasticsearch/api/actions/tasks/list_spec.rb
|
@@ -1049,6 +1097,7 @@ files:
|
|
1049
1097
|
- spec/elasticsearch/api/api_response_spec.rb
|
1050
1098
|
- spec/elasticsearch/api/api_spec.rb
|
1051
1099
|
- spec/elasticsearch/api/client_spec.rb
|
1100
|
+
- spec/elasticsearch/api/perform_request_spec.rb
|
1052
1101
|
- spec/elasticsearch/api/utils_spec.rb
|
1053
1102
|
- spec/platinum/integration/analytics/usage_spec.rb
|
1054
1103
|
- spec/platinum/integration/api_key/admin_user_query_api_keys_spec.rb
|
@@ -1201,14 +1250,14 @@ files:
|
|
1201
1250
|
- spec/rest_api/run_rspec_matchers.rb
|
1202
1251
|
- spec/rest_api/skipped_tests_free.yml
|
1203
1252
|
- spec/rest_api/skipped_tests_platinum.yml
|
1204
|
-
- spec/rspec_formatter.rb
|
1205
1253
|
- spec/spec_helper.rb
|
1206
1254
|
- utils/Gemfile
|
1207
1255
|
- utils/README.md
|
1208
1256
|
- utils/Thorfile
|
1257
|
+
- utils/endpoint_spec.rb
|
1258
|
+
- utils/endpoint_specifics.rb
|
1209
1259
|
- utils/thor/.rubocop.yml
|
1210
1260
|
- utils/thor/generate_source.rb
|
1211
|
-
- utils/thor/generator/endpoint_specifics.rb
|
1212
1261
|
- utils/thor/generator/files_helper.rb
|
1213
1262
|
- utils/thor/lister.rb
|
1214
1263
|
- utils/thor/templates/_body.erb
|
@@ -1242,7 +1291,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
1242
1291
|
- !ruby/object:Gem::Version
|
1243
1292
|
version: '0'
|
1244
1293
|
requirements: []
|
1245
|
-
rubygems_version: 3.
|
1294
|
+
rubygems_version: 3.5.3
|
1246
1295
|
signing_key:
|
1247
1296
|
specification_version: 4
|
1248
1297
|
summary: Ruby API for Elasticsearch.
|
@@ -1281,6 +1330,27 @@ test_files:
|
|
1281
1330
|
- spec/elasticsearch/api/actions/cluster/reroute_spec.rb
|
1282
1331
|
- spec/elasticsearch/api/actions/cluster/state_spec.rb
|
1283
1332
|
- spec/elasticsearch/api/actions/cluster/stats_spec.rb
|
1333
|
+
- spec/elasticsearch/api/actions/connector/check_in_spec.rb
|
1334
|
+
- spec/elasticsearch/api/actions/connector/delete_spec.rb
|
1335
|
+
- spec/elasticsearch/api/actions/connector/get_spec.rb
|
1336
|
+
- spec/elasticsearch/api/actions/connector/last_sync_spec.rb
|
1337
|
+
- spec/elasticsearch/api/actions/connector/list_spec.rb
|
1338
|
+
- spec/elasticsearch/api/actions/connector/post_spec.rb
|
1339
|
+
- spec/elasticsearch/api/actions/connector/put_spec.rb
|
1340
|
+
- spec/elasticsearch/api/actions/connector/update_configuration_spec.rb
|
1341
|
+
- spec/elasticsearch/api/actions/connector/update_error_spec.rb
|
1342
|
+
- spec/elasticsearch/api/actions/connector/update_filtering_spec.rb
|
1343
|
+
- spec/elasticsearch/api/actions/connector/update_name_spec.rb
|
1344
|
+
- spec/elasticsearch/api/actions/connector/update_pipeline_spec.rb
|
1345
|
+
- spec/elasticsearch/api/actions/connector/update_scheduling_spec.rb
|
1346
|
+
- spec/elasticsearch/api/actions/connector_sync_job/cancel_spec.rb
|
1347
|
+
- spec/elasticsearch/api/actions/connector_sync_job/check_in_spec.rb
|
1348
|
+
- spec/elasticsearch/api/actions/connector_sync_job/delete_spec.rb
|
1349
|
+
- spec/elasticsearch/api/actions/connector_sync_job/error_spec.rb
|
1350
|
+
- spec/elasticsearch/api/actions/connector_sync_job/get_spec.rb
|
1351
|
+
- spec/elasticsearch/api/actions/connector_sync_job/list_spec.rb
|
1352
|
+
- spec/elasticsearch/api/actions/connector_sync_job/post_spec.rb
|
1353
|
+
- spec/elasticsearch/api/actions/connector_sync_job/update_stats_spec.rb
|
1284
1354
|
- spec/elasticsearch/api/actions/count_spec.rb
|
1285
1355
|
- spec/elasticsearch/api/actions/create_document_spec.rb
|
1286
1356
|
- spec/elasticsearch/api/actions/dangling_indices/delete_dangling_indices_spec.rb
|
@@ -1290,6 +1360,7 @@ test_files:
|
|
1290
1360
|
- spec/elasticsearch/api/actions/delete_by_query_spec.rb
|
1291
1361
|
- spec/elasticsearch/api/actions/delete_document_spec.rb
|
1292
1362
|
- spec/elasticsearch/api/actions/delete_script_spec.rb
|
1363
|
+
- spec/elasticsearch/api/actions/esql/query_spec.rb
|
1293
1364
|
- spec/elasticsearch/api/actions/exists_document_spec.rb
|
1294
1365
|
- spec/elasticsearch/api/actions/explain_document_spec.rb
|
1295
1366
|
- spec/elasticsearch/api/actions/features/get_features_spec.rb
|
@@ -1347,6 +1418,10 @@ test_files:
|
|
1347
1418
|
- spec/elasticsearch/api/actions/indices/unfreeze_spec.rb
|
1348
1419
|
- spec/elasticsearch/api/actions/indices/update_aliases_spec.rb
|
1349
1420
|
- spec/elasticsearch/api/actions/indices/validate_query_spec.rb
|
1421
|
+
- spec/elasticsearch/api/actions/inference/delete_model_spec.rb
|
1422
|
+
- spec/elasticsearch/api/actions/inference/get_model_spec.rb
|
1423
|
+
- spec/elasticsearch/api/actions/inference/inference_spec.rb
|
1424
|
+
- spec/elasticsearch/api/actions/inference/put_model_spec.rb
|
1350
1425
|
- spec/elasticsearch/api/actions/info_spec.rb
|
1351
1426
|
- spec/elasticsearch/api/actions/ingest/delete_pipeline_spec.rb
|
1352
1427
|
- spec/elasticsearch/api/actions/ingest/geo_ip_stats_spec.rb
|
@@ -1378,10 +1453,10 @@ test_files:
|
|
1378
1453
|
- spec/elasticsearch/api/actions/nodes/stats_spec.rb
|
1379
1454
|
- spec/elasticsearch/api/actions/open_point_in_time_spec.rb
|
1380
1455
|
- spec/elasticsearch/api/actions/ping_spec.rb
|
1456
|
+
- spec/elasticsearch/api/actions/profiling/status_spec.rb
|
1381
1457
|
- spec/elasticsearch/api/actions/put_script_spec.rb
|
1382
1458
|
- spec/elasticsearch/api/actions/query_ruleset/delete_spec.rb
|
1383
1459
|
- spec/elasticsearch/api/actions/query_ruleset/get_spec.rb
|
1384
|
-
- spec/elasticsearch/api/actions/query_ruleset/list_spec.rb
|
1385
1460
|
- spec/elasticsearch/api/actions/query_ruleset/put_spec.rb
|
1386
1461
|
- spec/elasticsearch/api/actions/rank_eval_spec.rb
|
1387
1462
|
- spec/elasticsearch/api/actions/reindex_spec.rb
|
@@ -1417,7 +1492,6 @@ test_files:
|
|
1417
1492
|
- spec/elasticsearch/api/actions/security/get_builtin_privileges_spec.rb
|
1418
1493
|
- spec/elasticsearch/api/actions/security/get_service_accounts_spec.rb
|
1419
1494
|
- spec/elasticsearch/api/actions/security/get_service_credentials_spec.rb
|
1420
|
-
- spec/elasticsearch/api/actions/security/get_settings_spec.rb
|
1421
1495
|
- spec/elasticsearch/api/actions/security/has_privileges_user_profile_spec.rb
|
1422
1496
|
- spec/elasticsearch/api/actions/security/invalidate_api_key_spec.rb
|
1423
1497
|
- spec/elasticsearch/api/actions/security/query_api_keys_spec.rb
|
@@ -1430,10 +1504,10 @@ test_files:
|
|
1430
1504
|
- spec/elasticsearch/api/actions/security/suggest_user_profiles_spec.rb
|
1431
1505
|
- spec/elasticsearch/api/actions/security/update_api_key_spec.rb
|
1432
1506
|
- spec/elasticsearch/api/actions/security/update_cross_cluster_api_key_spec.rb
|
1433
|
-
- spec/elasticsearch/api/actions/security/update_settings_spec.rb
|
1434
1507
|
- spec/elasticsearch/api/actions/shutdown/delete_node_spec.rb
|
1435
1508
|
- spec/elasticsearch/api/actions/shutdown/get_node_spec.rb
|
1436
1509
|
- spec/elasticsearch/api/actions/shutdown/put_node_spec.rb
|
1510
|
+
- spec/elasticsearch/api/actions/simulate/ingest_spec.rb
|
1437
1511
|
- spec/elasticsearch/api/actions/snapshot/clone_spec.rb
|
1438
1512
|
- spec/elasticsearch/api/actions/snapshot/create_repository_spec.rb
|
1439
1513
|
- spec/elasticsearch/api/actions/snapshot/create_spec.rb
|
@@ -1448,13 +1522,6 @@ test_files:
|
|
1448
1522
|
- spec/elasticsearch/api/actions/sql/delete_async_spec.rb
|
1449
1523
|
- spec/elasticsearch/api/actions/sql/get_async_spec.rb
|
1450
1524
|
- spec/elasticsearch/api/actions/sql/get_async_stats_spec.rb
|
1451
|
-
- spec/elasticsearch/api/actions/synonyms/delete_synonym_rule_spec.rb
|
1452
|
-
- spec/elasticsearch/api/actions/synonyms/delete_synonym_spec.rb
|
1453
|
-
- spec/elasticsearch/api/actions/synonyms/get_synonym_rule_spec.rb
|
1454
|
-
- spec/elasticsearch/api/actions/synonyms/get_synonym_spec.rb
|
1455
|
-
- spec/elasticsearch/api/actions/synonyms/get_synonyms_sets_spec.rb
|
1456
|
-
- spec/elasticsearch/api/actions/synonyms/put_synonym_rule_spec.rb
|
1457
|
-
- spec/elasticsearch/api/actions/synonyms/update_spec.rb
|
1458
1525
|
- spec/elasticsearch/api/actions/tasks/cancel_spec.rb
|
1459
1526
|
- spec/elasticsearch/api/actions/tasks/get_spec.rb
|
1460
1527
|
- spec/elasticsearch/api/actions/tasks/list_spec.rb
|
@@ -1468,6 +1535,7 @@ test_files:
|
|
1468
1535
|
- spec/elasticsearch/api/api_response_spec.rb
|
1469
1536
|
- spec/elasticsearch/api/api_spec.rb
|
1470
1537
|
- spec/elasticsearch/api/client_spec.rb
|
1538
|
+
- spec/elasticsearch/api/perform_request_spec.rb
|
1471
1539
|
- spec/elasticsearch/api/utils_spec.rb
|
1472
1540
|
- spec/platinum/integration/analytics/usage_spec.rb
|
1473
1541
|
- spec/platinum/integration/api_key/admin_user_query_api_keys_spec.rb
|
@@ -1620,5 +1688,4 @@ test_files:
|
|
1620
1688
|
- spec/rest_api/run_rspec_matchers.rb
|
1621
1689
|
- spec/rest_api/skipped_tests_free.yml
|
1622
1690
|
- spec/rest_api/skipped_tests_platinum.yml
|
1623
|
-
- spec/rspec_formatter.rb
|
1624
1691
|
- spec/spec_helper.rb
|
@@ -1,34 +0,0 @@
|
|
1
|
-
# Licensed to Elasticsearch B.V. under one or more contributor
|
2
|
-
# license agreements. See the NOTICE file distributed with
|
3
|
-
# this work for additional information regarding copyright
|
4
|
-
# ownership. Elasticsearch B.V. licenses this file to you under
|
5
|
-
# the Apache License, Version 2.0 (the "License"); you may
|
6
|
-
# not use this file except in compliance with the License.
|
7
|
-
# You may obtain a copy of the License at
|
8
|
-
#
|
9
|
-
# http://www.apache.org/licenses/LICENSE-2.0
|
10
|
-
#
|
11
|
-
# Unless required by applicable law or agreed to in writing,
|
12
|
-
# software distributed under the License is distributed on an
|
13
|
-
# "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
|
14
|
-
# KIND, either express or implied. See the License for the
|
15
|
-
# specific language governing permissions and limitations
|
16
|
-
# under the License.
|
17
|
-
|
18
|
-
require 'spec_helper'
|
19
|
-
|
20
|
-
describe 'client.synonyms#get_synonyms_sets' do
|
21
|
-
let(:expected_args) do
|
22
|
-
[
|
23
|
-
'GET',
|
24
|
-
'_synonyms',
|
25
|
-
{},
|
26
|
-
nil,
|
27
|
-
{}
|
28
|
-
]
|
29
|
-
end
|
30
|
-
|
31
|
-
it 'performs the request' do
|
32
|
-
expect(client_double.synonyms.get_synonyms_sets).to be_a Elasticsearch::API::Response
|
33
|
-
end
|
34
|
-
end
|