elasticsearch-api 8.12.2 → 8.13.0
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/Gemfile +1 -1
- data/Rakefile +5 -3
- data/api-spec-testing/wipe_cluster.rb +1 -1
- data/lib/elasticsearch/api/actions/async_search/delete.rb +3 -4
- data/lib/elasticsearch/api/actions/async_search/get.rb +3 -4
- data/lib/elasticsearch/api/actions/async_search/status.rb +5 -5
- data/lib/elasticsearch/api/actions/async_search/submit.rb +4 -5
- data/lib/elasticsearch/api/actions/autoscaling/delete_autoscaling_policy.rb +3 -4
- data/lib/elasticsearch/api/actions/autoscaling/get_autoscaling_capacity.rb +3 -3
- data/lib/elasticsearch/api/actions/autoscaling/get_autoscaling_policy.rb +3 -4
- data/lib/elasticsearch/api/actions/autoscaling/put_autoscaling_policy.rb +3 -4
- data/lib/elasticsearch/api/actions/bulk.rb +11 -11
- data/lib/elasticsearch/api/actions/cat/aliases.rb +4 -5
- data/lib/elasticsearch/api/actions/cat/allocation.rb +4 -5
- data/lib/elasticsearch/api/actions/cat/component_templates.rb +4 -5
- data/lib/elasticsearch/api/actions/cat/count.rb +4 -5
- data/lib/elasticsearch/api/actions/cat/fielddata.rb +4 -5
- data/lib/elasticsearch/api/actions/cat/health.rb +3 -3
- data/lib/elasticsearch/api/actions/cat/help.rb +3 -3
- data/lib/elasticsearch/api/actions/cat/indices.rb +4 -5
- data/lib/elasticsearch/api/actions/cat/master.rb +3 -3
- data/lib/elasticsearch/api/actions/cat/ml_data_frame_analytics.rb +4 -5
- data/lib/elasticsearch/api/actions/cat/ml_datafeeds.rb +4 -5
- data/lib/elasticsearch/api/actions/cat/ml_jobs.rb +4 -5
- data/lib/elasticsearch/api/actions/cat/ml_trained_models.rb +4 -5
- data/lib/elasticsearch/api/actions/cat/nodeattrs.rb +3 -3
- data/lib/elasticsearch/api/actions/cat/nodes.rb +3 -3
- data/lib/elasticsearch/api/actions/cat/pending_tasks.rb +3 -3
- data/lib/elasticsearch/api/actions/cat/plugins.rb +3 -3
- data/lib/elasticsearch/api/actions/cat/recovery.rb +4 -5
- data/lib/elasticsearch/api/actions/cat/repositories.rb +3 -3
- data/lib/elasticsearch/api/actions/cat/segments.rb +4 -5
- data/lib/elasticsearch/api/actions/cat/shards.rb +4 -5
- data/lib/elasticsearch/api/actions/cat/snapshots.rb +4 -5
- data/lib/elasticsearch/api/actions/cat/tasks.rb +3 -3
- data/lib/elasticsearch/api/actions/cat/templates.rb +4 -5
- data/lib/elasticsearch/api/actions/cat/thread_pool.rb +4 -5
- data/lib/elasticsearch/api/actions/cat/transforms.rb +4 -5
- data/lib/elasticsearch/api/actions/clear_scroll.rb +6 -7
- data/lib/elasticsearch/api/actions/close_point_in_time.rb +3 -3
- data/lib/elasticsearch/api/actions/cluster/allocation_explain.rb +3 -3
- data/lib/elasticsearch/api/actions/cluster/delete_component_template.rb +3 -4
- data/lib/elasticsearch/api/actions/cluster/delete_voting_config_exclusions.rb +3 -3
- data/lib/elasticsearch/api/actions/cluster/exists_component_template.rb +4 -5
- data/lib/elasticsearch/api/actions/cluster/get_component_template.rb +4 -5
- data/lib/elasticsearch/api/actions/cluster/get_settings.rb +3 -3
- data/lib/elasticsearch/api/actions/cluster/health.rb +4 -5
- data/lib/elasticsearch/api/actions/cluster/info.rb +3 -4
- data/lib/elasticsearch/api/actions/cluster/pending_tasks.rb +3 -3
- data/lib/elasticsearch/api/actions/cluster/post_voting_config_exclusions.rb +3 -3
- data/lib/elasticsearch/api/actions/cluster/put_component_template.rb +3 -4
- data/lib/elasticsearch/api/actions/cluster/put_settings.rb +3 -3
- data/lib/elasticsearch/api/actions/cluster/remote_info.rb +3 -3
- data/lib/elasticsearch/api/actions/cluster/reroute.rb +3 -3
- data/lib/elasticsearch/api/actions/cluster/state.rb +4 -5
- data/lib/elasticsearch/api/actions/cluster/stats.rb +4 -5
- data/lib/elasticsearch/api/actions/connector/check_in.rb +3 -4
- data/lib/elasticsearch/api/actions/connector/delete.rb +3 -4
- data/lib/elasticsearch/api/actions/connector/get.rb +3 -4
- data/lib/elasticsearch/api/actions/connector/last_sync.rb +3 -4
- data/lib/elasticsearch/api/actions/connector/list.rb +8 -4
- data/lib/elasticsearch/api/actions/connector/post.rb +3 -3
- data/lib/elasticsearch/api/actions/connector/put.rb +3 -4
- data/lib/elasticsearch/api/actions/connector/update_api_key_id.rb +66 -0
- data/lib/elasticsearch/api/actions/connector/update_configuration.rb +3 -4
- data/lib/elasticsearch/api/actions/connector/update_error.rb +3 -4
- data/lib/elasticsearch/api/actions/connector/update_filtering.rb +3 -4
- data/lib/elasticsearch/api/actions/connector/update_index_name.rb +66 -0
- data/lib/elasticsearch/api/actions/connector/update_name.rb +3 -4
- data/lib/elasticsearch/api/actions/connector/update_native.rb +66 -0
- data/lib/elasticsearch/api/actions/connector/update_pipeline.rb +3 -4
- data/lib/elasticsearch/api/actions/connector/update_scheduling.rb +3 -4
- data/lib/elasticsearch/api/actions/connector/update_service_type.rb +66 -0
- data/lib/elasticsearch/api/actions/connector/update_status.rb +66 -0
- data/lib/elasticsearch/api/actions/connector_secret/delete.rb +64 -0
- data/lib/elasticsearch/api/actions/connector_secret/get.rb +64 -0
- data/lib/elasticsearch/api/actions/connector_secret/post.rb +57 -0
- data/lib/elasticsearch/api/actions/connector_secret/put.rb +66 -0
- data/lib/elasticsearch/api/actions/connector_sync_job/cancel.rb +7 -6
- data/lib/elasticsearch/api/actions/connector_sync_job/check_in.rb +7 -6
- data/lib/elasticsearch/api/actions/connector_sync_job/delete.rb +7 -6
- data/lib/elasticsearch/api/actions/connector_sync_job/error.rb +7 -6
- data/lib/elasticsearch/api/actions/connector_sync_job/get.rb +7 -6
- data/lib/elasticsearch/api/actions/connector_sync_job/list.rb +4 -3
- data/lib/elasticsearch/api/actions/connector_sync_job/post.rb +3 -3
- data/lib/elasticsearch/api/actions/connector_sync_job/update_stats.rb +7 -6
- data/lib/elasticsearch/api/actions/count.rb +9 -10
- data/lib/elasticsearch/api/actions/create.rb +3 -4
- data/lib/elasticsearch/api/actions/cross_cluster_replication/delete_auto_follow_pattern.rb +3 -4
- data/lib/elasticsearch/api/actions/cross_cluster_replication/follow.rb +3 -4
- data/lib/elasticsearch/api/actions/cross_cluster_replication/follow_info.rb +3 -4
- data/lib/elasticsearch/api/actions/cross_cluster_replication/follow_stats.rb +3 -4
- data/lib/elasticsearch/api/actions/cross_cluster_replication/forget_follower.rb +3 -4
- data/lib/elasticsearch/api/actions/cross_cluster_replication/get_auto_follow_pattern.rb +4 -5
- data/lib/elasticsearch/api/actions/cross_cluster_replication/pause_auto_follow_pattern.rb +3 -4
- data/lib/elasticsearch/api/actions/cross_cluster_replication/pause_follow.rb +3 -4
- data/lib/elasticsearch/api/actions/cross_cluster_replication/put_auto_follow_pattern.rb +3 -4
- data/lib/elasticsearch/api/actions/cross_cluster_replication/resume_auto_follow_pattern.rb +3 -4
- data/lib/elasticsearch/api/actions/cross_cluster_replication/resume_follow.rb +3 -4
- data/lib/elasticsearch/api/actions/cross_cluster_replication/stats.rb +3 -3
- data/lib/elasticsearch/api/actions/cross_cluster_replication/unfollow.rb +3 -4
- data/lib/elasticsearch/api/actions/dangling_indices/delete_dangling_index.rb +3 -4
- data/lib/elasticsearch/api/actions/dangling_indices/import_dangling_index.rb +3 -4
- data/lib/elasticsearch/api/actions/dangling_indices/list_dangling_indices.rb +3 -3
- data/lib/elasticsearch/api/actions/delete.rb +5 -6
- data/lib/elasticsearch/api/actions/delete_by_query.rb +3 -4
- data/lib/elasticsearch/api/actions/delete_by_query_rethrottle.rb +3 -4
- data/lib/elasticsearch/api/actions/delete_script.rb +3 -4
- data/lib/elasticsearch/api/actions/enrich/delete_policy.rb +3 -4
- data/lib/elasticsearch/api/actions/enrich/execute_policy.rb +3 -4
- data/lib/elasticsearch/api/actions/enrich/get_policy.rb +4 -5
- data/lib/elasticsearch/api/actions/enrich/put_policy.rb +3 -4
- data/lib/elasticsearch/api/actions/enrich/stats.rb +3 -3
- data/lib/elasticsearch/api/actions/eql/delete.rb +3 -4
- data/lib/elasticsearch/api/actions/eql/get.rb +3 -4
- data/lib/elasticsearch/api/actions/eql/get_status.rb +3 -4
- data/lib/elasticsearch/api/actions/eql/search.rb +3 -4
- data/lib/elasticsearch/api/actions/esql/async_query.rb +60 -0
- data/lib/elasticsearch/api/actions/esql/async_query_get.rb +63 -0
- data/lib/elasticsearch/api/actions/esql/query.rb +5 -4
- data/lib/elasticsearch/api/actions/exists.rb +5 -6
- data/lib/elasticsearch/api/actions/exists_source.rb +4 -5
- data/lib/elasticsearch/api/actions/explain.rb +4 -5
- data/lib/elasticsearch/api/actions/features/get_features.rb +3 -3
- data/lib/elasticsearch/api/actions/features/reset_features.rb +3 -3
- data/lib/elasticsearch/api/actions/field_caps.rb +10 -10
- data/lib/elasticsearch/api/actions/fleet/delete_secret.rb +2 -3
- data/lib/elasticsearch/api/actions/fleet/get_secret.rb +2 -3
- data/lib/elasticsearch/api/actions/fleet/global_checkpoints.rb +3 -4
- data/lib/elasticsearch/api/actions/fleet/msearch.rb +9 -12
- data/lib/elasticsearch/api/actions/fleet/post_secret.rb +2 -2
- data/lib/elasticsearch/api/actions/fleet/search.rb +4 -5
- data/lib/elasticsearch/api/actions/get.rb +5 -6
- data/lib/elasticsearch/api/actions/get_script.rb +3 -4
- data/lib/elasticsearch/api/actions/get_script_context.rb +3 -3
- data/lib/elasticsearch/api/actions/get_script_languages.rb +3 -3
- data/lib/elasticsearch/api/actions/get_source.rb +3 -4
- data/lib/elasticsearch/api/actions/graph/explore.rb +5 -6
- data/lib/elasticsearch/api/actions/health_report.rb +4 -5
- data/lib/elasticsearch/api/actions/index.rb +4 -4
- data/lib/elasticsearch/api/actions/index_lifecycle_management/delete_lifecycle.rb +3 -4
- data/lib/elasticsearch/api/actions/index_lifecycle_management/explain_lifecycle.rb +3 -4
- data/lib/elasticsearch/api/actions/index_lifecycle_management/get_lifecycle.rb +4 -5
- data/lib/elasticsearch/api/actions/index_lifecycle_management/get_status.rb +3 -3
- data/lib/elasticsearch/api/actions/index_lifecycle_management/migrate_to_data_tiers.rb +3 -3
- data/lib/elasticsearch/api/actions/index_lifecycle_management/move_to_step.rb +3 -4
- data/lib/elasticsearch/api/actions/index_lifecycle_management/put_lifecycle.rb +3 -4
- data/lib/elasticsearch/api/actions/index_lifecycle_management/remove_policy.rb +3 -4
- data/lib/elasticsearch/api/actions/index_lifecycle_management/retry.rb +3 -4
- data/lib/elasticsearch/api/actions/index_lifecycle_management/start.rb +3 -3
- data/lib/elasticsearch/api/actions/index_lifecycle_management/stop.rb +3 -3
- data/lib/elasticsearch/api/actions/indices/add_block.rb +3 -4
- data/lib/elasticsearch/api/actions/indices/analyze.rb +9 -10
- data/lib/elasticsearch/api/actions/indices/clear_cache.rb +4 -5
- data/lib/elasticsearch/api/actions/indices/clone.rb +3 -4
- data/lib/elasticsearch/api/actions/indices/close.rb +3 -4
- data/lib/elasticsearch/api/actions/indices/create.rb +3 -4
- data/lib/elasticsearch/api/actions/indices/create_data_stream.rb +3 -4
- data/lib/elasticsearch/api/actions/indices/data_streams_stats.rb +4 -5
- data/lib/elasticsearch/api/actions/indices/delete.rb +5 -6
- data/lib/elasticsearch/api/actions/indices/delete_alias.rb +4 -7
- data/lib/elasticsearch/api/actions/indices/delete_data_lifecycle.rb +3 -4
- data/lib/elasticsearch/api/actions/indices/delete_data_stream.rb +3 -4
- data/lib/elasticsearch/api/actions/indices/delete_index_template.rb +3 -4
- data/lib/elasticsearch/api/actions/indices/delete_template.rb +5 -6
- data/lib/elasticsearch/api/actions/indices/disk_usage.rb +3 -4
- data/lib/elasticsearch/api/actions/indices/downsample.rb +3 -4
- data/lib/elasticsearch/api/actions/indices/exists.rb +5 -6
- data/lib/elasticsearch/api/actions/indices/exists_alias.rb +5 -6
- data/lib/elasticsearch/api/actions/indices/exists_index_template.rb +4 -5
- data/lib/elasticsearch/api/actions/indices/exists_template.rb +5 -6
- data/lib/elasticsearch/api/actions/indices/explain_data_lifecycle.rb +3 -4
- data/lib/elasticsearch/api/actions/indices/field_usage_stats.rb +3 -4
- data/lib/elasticsearch/api/actions/indices/flush.rb +4 -5
- data/lib/elasticsearch/api/actions/indices/forcemerge.rb +4 -5
- data/lib/elasticsearch/api/actions/indices/get.rb +3 -4
- data/lib/elasticsearch/api/actions/indices/get_alias.rb +4 -5
- data/lib/elasticsearch/api/actions/indices/get_data_lifecycle.rb +3 -4
- data/lib/elasticsearch/api/actions/indices/get_data_stream.rb +4 -5
- data/lib/elasticsearch/api/actions/indices/get_field_mapping.rb +3 -4
- data/lib/elasticsearch/api/actions/indices/get_index_template.rb +4 -5
- data/lib/elasticsearch/api/actions/indices/get_mapping.rb +4 -5
- data/lib/elasticsearch/api/actions/indices/get_settings.rb +4 -5
- data/lib/elasticsearch/api/actions/indices/get_template.rb +4 -5
- data/lib/elasticsearch/api/actions/indices/migrate_to_data_stream.rb +3 -4
- data/lib/elasticsearch/api/actions/indices/modify_data_stream.rb +3 -3
- data/lib/elasticsearch/api/actions/indices/open.rb +3 -4
- data/lib/elasticsearch/api/actions/indices/promote_data_stream.rb +3 -4
- data/lib/elasticsearch/api/actions/indices/put_alias.rb +4 -7
- data/lib/elasticsearch/api/actions/indices/put_data_lifecycle.rb +3 -4
- data/lib/elasticsearch/api/actions/indices/put_index_template.rb +3 -4
- data/lib/elasticsearch/api/actions/indices/put_mapping.rb +3 -4
- data/lib/elasticsearch/api/actions/indices/put_settings.rb +4 -5
- data/lib/elasticsearch/api/actions/indices/put_template.rb +3 -4
- data/lib/elasticsearch/api/actions/indices/recovery.rb +4 -5
- data/lib/elasticsearch/api/actions/indices/refresh.rb +4 -5
- data/lib/elasticsearch/api/actions/indices/reload_search_analyzers.rb +3 -4
- data/lib/elasticsearch/api/actions/indices/resolve_cluster.rb +64 -0
- data/lib/elasticsearch/api/actions/indices/resolve_index.rb +3 -4
- data/lib/elasticsearch/api/actions/indices/rollover.rb +4 -4
- data/lib/elasticsearch/api/actions/indices/segments.rb +4 -5
- data/lib/elasticsearch/api/actions/indices/shard_stores.rb +4 -5
- data/lib/elasticsearch/api/actions/indices/shrink.rb +3 -4
- data/lib/elasticsearch/api/actions/indices/simulate_index_template.rb +3 -4
- data/lib/elasticsearch/api/actions/indices/simulate_template.rb +4 -5
- data/lib/elasticsearch/api/actions/indices/split.rb +3 -4
- data/lib/elasticsearch/api/actions/indices/stats.rb +4 -5
- data/lib/elasticsearch/api/actions/indices/unfreeze.rb +3 -4
- data/lib/elasticsearch/api/actions/indices/update_aliases.rb +3 -3
- data/lib/elasticsearch/api/actions/indices/validate_query.rb +9 -10
- data/lib/elasticsearch/api/actions/inference/delete_model.rb +13 -11
- data/lib/elasticsearch/api/actions/inference/get_model.rb +13 -11
- data/lib/elasticsearch/api/actions/inference/inference.rb +13 -11
- data/lib/elasticsearch/api/actions/inference/put_model.rb +13 -11
- data/lib/elasticsearch/api/actions/info.rb +3 -3
- data/lib/elasticsearch/api/actions/ingest/delete_pipeline.rb +3 -4
- data/lib/elasticsearch/api/actions/ingest/geo_ip_stats.rb +3 -3
- data/lib/elasticsearch/api/actions/ingest/get_pipeline.rb +4 -5
- data/lib/elasticsearch/api/actions/ingest/processor_grok.rb +3 -3
- data/lib/elasticsearch/api/actions/ingest/put_pipeline.rb +3 -4
- data/lib/elasticsearch/api/actions/ingest/simulate.rb +4 -5
- data/lib/elasticsearch/api/actions/knn_search.rb +5 -6
- data/lib/elasticsearch/api/actions/license/delete.rb +3 -3
- data/lib/elasticsearch/api/actions/license/get.rb +3 -3
- data/lib/elasticsearch/api/actions/license/get_basic_status.rb +3 -3
- data/lib/elasticsearch/api/actions/license/get_trial_status.rb +3 -3
- data/lib/elasticsearch/api/actions/license/post.rb +3 -3
- data/lib/elasticsearch/api/actions/license/post_start_basic.rb +3 -3
- data/lib/elasticsearch/api/actions/license/post_start_trial.rb +3 -3
- data/lib/elasticsearch/api/actions/logstash/delete_pipeline.rb +3 -4
- data/lib/elasticsearch/api/actions/logstash/get_pipeline.rb +4 -5
- data/lib/elasticsearch/api/actions/logstash/put_pipeline.rb +3 -4
- data/lib/elasticsearch/api/actions/machine_learning/clear_trained_model_deployment_cache.rb +3 -4
- data/lib/elasticsearch/api/actions/machine_learning/close_job.rb +3 -4
- data/lib/elasticsearch/api/actions/machine_learning/delete_calendar.rb +3 -4
- data/lib/elasticsearch/api/actions/machine_learning/delete_calendar_event.rb +3 -4
- data/lib/elasticsearch/api/actions/machine_learning/delete_calendar_job.rb +3 -4
- data/lib/elasticsearch/api/actions/machine_learning/delete_data_frame_analytics.rb +3 -4
- data/lib/elasticsearch/api/actions/machine_learning/delete_datafeed.rb +3 -4
- data/lib/elasticsearch/api/actions/machine_learning/delete_expired_data.rb +4 -5
- data/lib/elasticsearch/api/actions/machine_learning/delete_filter.rb +3 -4
- data/lib/elasticsearch/api/actions/machine_learning/delete_forecast.rb +3 -4
- data/lib/elasticsearch/api/actions/machine_learning/delete_job.rb +3 -4
- data/lib/elasticsearch/api/actions/machine_learning/delete_model_snapshot.rb +3 -4
- data/lib/elasticsearch/api/actions/machine_learning/delete_trained_model.rb +3 -4
- data/lib/elasticsearch/api/actions/machine_learning/delete_trained_model_alias.rb +3 -4
- data/lib/elasticsearch/api/actions/machine_learning/estimate_model_memory.rb +3 -3
- data/lib/elasticsearch/api/actions/machine_learning/evaluate_data_frame.rb +3 -3
- data/lib/elasticsearch/api/actions/machine_learning/explain_data_frame_analytics.rb +8 -9
- data/lib/elasticsearch/api/actions/machine_learning/flush_job.rb +3 -4
- data/lib/elasticsearch/api/actions/machine_learning/forecast.rb +3 -4
- data/lib/elasticsearch/api/actions/machine_learning/get_buckets.rb +8 -9
- data/lib/elasticsearch/api/actions/machine_learning/get_calendar_events.rb +3 -4
- data/lib/elasticsearch/api/actions/machine_learning/get_calendars.rb +8 -9
- data/lib/elasticsearch/api/actions/machine_learning/get_categories.rb +8 -9
- data/lib/elasticsearch/api/actions/machine_learning/get_data_frame_analytics.rb +4 -5
- data/lib/elasticsearch/api/actions/machine_learning/get_data_frame_analytics_stats.rb +4 -5
- data/lib/elasticsearch/api/actions/machine_learning/get_datafeed_stats.rb +4 -5
- data/lib/elasticsearch/api/actions/machine_learning/get_datafeeds.rb +4 -5
- data/lib/elasticsearch/api/actions/machine_learning/get_filters.rb +4 -5
- data/lib/elasticsearch/api/actions/machine_learning/get_influencers.rb +4 -5
- data/lib/elasticsearch/api/actions/machine_learning/get_job_stats.rb +4 -5
- data/lib/elasticsearch/api/actions/machine_learning/get_jobs.rb +4 -5
- data/lib/elasticsearch/api/actions/machine_learning/get_memory_stats.rb +4 -5
- data/lib/elasticsearch/api/actions/machine_learning/get_model_snapshot_upgrade_stats.rb +3 -4
- data/lib/elasticsearch/api/actions/machine_learning/get_model_snapshots.rb +8 -9
- data/lib/elasticsearch/api/actions/machine_learning/get_overall_buckets.rb +4 -5
- data/lib/elasticsearch/api/actions/machine_learning/get_records.rb +4 -5
- data/lib/elasticsearch/api/actions/machine_learning/get_trained_models.rb +4 -5
- data/lib/elasticsearch/api/actions/machine_learning/get_trained_models_stats.rb +4 -5
- data/lib/elasticsearch/api/actions/machine_learning/infer_trained_model.rb +4 -7
- data/lib/elasticsearch/api/actions/machine_learning/info.rb +3 -3
- data/lib/elasticsearch/api/actions/machine_learning/open_job.rb +3 -4
- data/lib/elasticsearch/api/actions/machine_learning/post_calendar_events.rb +3 -4
- data/lib/elasticsearch/api/actions/machine_learning/post_data.rb +3 -4
- data/lib/elasticsearch/api/actions/machine_learning/preview_data_frame_analytics.rb +8 -9
- data/lib/elasticsearch/api/actions/machine_learning/preview_datafeed.rb +8 -9
- data/lib/elasticsearch/api/actions/machine_learning/put_calendar.rb +3 -4
- data/lib/elasticsearch/api/actions/machine_learning/put_calendar_job.rb +3 -4
- data/lib/elasticsearch/api/actions/machine_learning/put_data_frame_analytics.rb +3 -4
- data/lib/elasticsearch/api/actions/machine_learning/put_datafeed.rb +3 -4
- data/lib/elasticsearch/api/actions/machine_learning/put_filter.rb +3 -4
- data/lib/elasticsearch/api/actions/machine_learning/put_job.rb +3 -4
- data/lib/elasticsearch/api/actions/machine_learning/put_trained_model.rb +3 -4
- data/lib/elasticsearch/api/actions/machine_learning/put_trained_model_alias.rb +3 -4
- data/lib/elasticsearch/api/actions/machine_learning/put_trained_model_definition_part.rb +3 -4
- data/lib/elasticsearch/api/actions/machine_learning/put_trained_model_vocabulary.rb +3 -4
- data/lib/elasticsearch/api/actions/machine_learning/reset_job.rb +3 -4
- data/lib/elasticsearch/api/actions/machine_learning/revert_model_snapshot.rb +3 -4
- data/lib/elasticsearch/api/actions/machine_learning/set_upgrade_mode.rb +3 -3
- data/lib/elasticsearch/api/actions/machine_learning/start_data_frame_analytics.rb +3 -4
- data/lib/elasticsearch/api/actions/machine_learning/start_datafeed.rb +3 -4
- data/lib/elasticsearch/api/actions/machine_learning/start_trained_model_deployment.rb +3 -4
- data/lib/elasticsearch/api/actions/machine_learning/stop_data_frame_analytics.rb +3 -4
- data/lib/elasticsearch/api/actions/machine_learning/stop_datafeed.rb +3 -4
- data/lib/elasticsearch/api/actions/machine_learning/stop_trained_model_deployment.rb +3 -4
- data/lib/elasticsearch/api/actions/machine_learning/update_data_frame_analytics.rb +3 -4
- data/lib/elasticsearch/api/actions/machine_learning/update_datafeed.rb +3 -4
- data/lib/elasticsearch/api/actions/machine_learning/update_filter.rb +3 -4
- data/lib/elasticsearch/api/actions/machine_learning/update_job.rb +3 -4
- data/lib/elasticsearch/api/actions/machine_learning/update_model_snapshot.rb +3 -4
- data/lib/elasticsearch/api/actions/machine_learning/update_trained_model_deployment.rb +3 -4
- data/lib/elasticsearch/api/actions/machine_learning/upgrade_job_snapshot.rb +3 -4
- data/lib/elasticsearch/api/actions/machine_learning/validate.rb +3 -3
- data/lib/elasticsearch/api/actions/machine_learning/validate_detector.rb +3 -3
- data/lib/elasticsearch/api/actions/mget.rb +4 -5
- data/lib/elasticsearch/api/actions/migration/deprecations.rb +4 -5
- data/lib/elasticsearch/api/actions/migration/get_feature_upgrade_status.rb +3 -3
- data/lib/elasticsearch/api/actions/migration/post_feature_upgrade.rb +3 -3
- data/lib/elasticsearch/api/actions/monitoring/bulk.rb +10 -11
- data/lib/elasticsearch/api/actions/msearch.rb +10 -13
- data/lib/elasticsearch/api/actions/msearch_template.rb +8 -11
- data/lib/elasticsearch/api/actions/mtermvectors.rb +9 -10
- data/lib/elasticsearch/api/actions/nodes/clear_repositories_metering_archive.rb +4 -7
- data/lib/elasticsearch/api/actions/nodes/get_repositories_metering_info.rb +3 -4
- data/lib/elasticsearch/api/actions/nodes/hot_threads.rb +4 -5
- data/lib/elasticsearch/api/actions/nodes/info.rb +4 -5
- data/lib/elasticsearch/api/actions/nodes/reload_secure_settings.rb +4 -5
- data/lib/elasticsearch/api/actions/nodes/stats.rb +4 -5
- data/lib/elasticsearch/api/actions/nodes/usage.rb +4 -5
- data/lib/elasticsearch/api/actions/open_point_in_time.rb +3 -4
- data/lib/elasticsearch/api/actions/ping.rb +7 -9
- data/lib/elasticsearch/api/actions/profiling/flamegraph.rb +53 -0
- data/lib/elasticsearch/api/actions/profiling/stacktraces.rb +53 -0
- data/lib/elasticsearch/api/actions/profiling/status.rb +3 -3
- data/lib/elasticsearch/api/actions/put_script.rb +3 -4
- data/lib/elasticsearch/api/actions/query_ruleset/delete.rb +3 -4
- data/lib/elasticsearch/api/actions/query_ruleset/get.rb +3 -4
- data/lib/elasticsearch/api/actions/query_ruleset/list.rb +3 -3
- data/lib/elasticsearch/api/actions/query_ruleset/put.rb +3 -4
- data/lib/elasticsearch/api/actions/rank_eval.rb +4 -5
- data/lib/elasticsearch/api/actions/reindex.rb +3 -3
- data/lib/elasticsearch/api/actions/reindex_rethrottle.rb +3 -4
- data/lib/elasticsearch/api/actions/render_search_template.rb +8 -9
- data/lib/elasticsearch/api/actions/rollup/delete_job.rb +3 -4
- data/lib/elasticsearch/api/actions/rollup/get_jobs.rb +4 -5
- data/lib/elasticsearch/api/actions/rollup/get_rollup_caps.rb +4 -5
- data/lib/elasticsearch/api/actions/rollup/get_rollup_index_caps.rb +3 -4
- data/lib/elasticsearch/api/actions/rollup/put_job.rb +3 -4
- data/lib/elasticsearch/api/actions/rollup/rollup_search.rb +3 -4
- data/lib/elasticsearch/api/actions/rollup/start_job.rb +3 -4
- data/lib/elasticsearch/api/actions/rollup/stop_job.rb +3 -4
- data/lib/elasticsearch/api/actions/scripts_painless_execute.rb +3 -3
- data/lib/elasticsearch/api/actions/scroll.rb +8 -9
- data/lib/elasticsearch/api/actions/search.rb +9 -10
- data/lib/elasticsearch/api/actions/search_application/delete.rb +3 -4
- data/lib/elasticsearch/api/actions/search_application/delete_behavioral_analytics.rb +3 -4
- data/lib/elasticsearch/api/actions/search_application/get.rb +3 -4
- data/lib/elasticsearch/api/actions/search_application/get_behavioral_analytics.rb +4 -5
- data/lib/elasticsearch/api/actions/search_application/list.rb +3 -3
- data/lib/elasticsearch/api/actions/search_application/post_behavioral_analytics_event.rb +2 -3
- data/lib/elasticsearch/api/actions/search_application/put.rb +3 -4
- data/lib/elasticsearch/api/actions/search_application/put_behavioral_analytics.rb +3 -4
- data/lib/elasticsearch/api/actions/search_application/render_query.rb +3 -4
- data/lib/elasticsearch/api/actions/search_application/search.rb +4 -5
- data/lib/elasticsearch/api/actions/search_mvt.rb +3 -4
- data/lib/elasticsearch/api/actions/search_shards.rb +4 -5
- data/lib/elasticsearch/api/actions/search_template.rb +4 -5
- data/lib/elasticsearch/api/actions/searchable_snapshots/cache_stats.rb +4 -5
- data/lib/elasticsearch/api/actions/searchable_snapshots/clear_cache.rb +4 -5
- data/lib/elasticsearch/api/actions/searchable_snapshots/mount.rb +3 -4
- data/lib/elasticsearch/api/actions/searchable_snapshots/stats.rb +4 -5
- data/lib/elasticsearch/api/actions/security/activate_user_profile.rb +3 -3
- data/lib/elasticsearch/api/actions/security/authenticate.rb +3 -3
- data/lib/elasticsearch/api/actions/security/bulk_update_api_keys.rb +3 -3
- data/lib/elasticsearch/api/actions/security/change_password.rb +4 -5
- data/lib/elasticsearch/api/actions/security/clear_api_key_cache.rb +3 -4
- data/lib/elasticsearch/api/actions/security/clear_cached_privileges.rb +3 -4
- data/lib/elasticsearch/api/actions/security/clear_cached_realms.rb +3 -4
- data/lib/elasticsearch/api/actions/security/clear_cached_roles.rb +3 -4
- data/lib/elasticsearch/api/actions/security/clear_cached_service_tokens.rb +3 -4
- data/lib/elasticsearch/api/actions/security/create_api_key.rb +3 -3
- data/lib/elasticsearch/api/actions/security/create_cross_cluster_api_key.rb +3 -3
- data/lib/elasticsearch/api/actions/security/create_service_token.rb +3 -4
- data/lib/elasticsearch/api/actions/security/delete_privileges.rb +3 -4
- data/lib/elasticsearch/api/actions/security/delete_role.rb +3 -4
- data/lib/elasticsearch/api/actions/security/delete_role_mapping.rb +3 -4
- data/lib/elasticsearch/api/actions/security/delete_service_token.rb +3 -4
- data/lib/elasticsearch/api/actions/security/delete_user.rb +3 -4
- data/lib/elasticsearch/api/actions/security/disable_user.rb +3 -4
- data/lib/elasticsearch/api/actions/security/disable_user_profile.rb +3 -4
- data/lib/elasticsearch/api/actions/security/enable_user.rb +3 -4
- data/lib/elasticsearch/api/actions/security/enable_user_profile.rb +3 -4
- data/lib/elasticsearch/api/actions/security/enroll_kibana.rb +3 -3
- data/lib/elasticsearch/api/actions/security/enroll_node.rb +3 -3
- data/lib/elasticsearch/api/actions/security/get_api_key.rb +3 -3
- data/lib/elasticsearch/api/actions/security/get_builtin_privileges.rb +3 -3
- data/lib/elasticsearch/api/actions/security/get_privileges.rb +4 -5
- data/lib/elasticsearch/api/actions/security/get_role.rb +6 -7
- data/lib/elasticsearch/api/actions/security/get_role_mapping.rb +4 -5
- data/lib/elasticsearch/api/actions/security/get_service_accounts.rb +4 -5
- data/lib/elasticsearch/api/actions/security/get_service_credentials.rb +3 -4
- data/lib/elasticsearch/api/actions/security/get_settings.rb +3 -3
- data/lib/elasticsearch/api/actions/security/get_token.rb +3 -3
- data/lib/elasticsearch/api/actions/security/get_user.rb +6 -7
- data/lib/elasticsearch/api/actions/security/get_user_privileges.rb +3 -3
- data/lib/elasticsearch/api/actions/security/get_user_profile.rb +3 -4
- data/lib/elasticsearch/api/actions/security/grant_api_key.rb +3 -3
- data/lib/elasticsearch/api/actions/security/has_privileges.rb +4 -5
- data/lib/elasticsearch/api/actions/security/has_privileges_user_profile.rb +3 -3
- data/lib/elasticsearch/api/actions/security/invalidate_api_key.rb +3 -3
- data/lib/elasticsearch/api/actions/security/invalidate_token.rb +3 -3
- data/lib/elasticsearch/api/actions/security/oidc_authenticate.rb +3 -3
- data/lib/elasticsearch/api/actions/security/oidc_logout.rb +3 -3
- data/lib/elasticsearch/api/actions/security/oidc_prepare_authentication.rb +3 -3
- data/lib/elasticsearch/api/actions/security/put_privileges.rb +3 -3
- data/lib/elasticsearch/api/actions/security/put_role.rb +3 -4
- data/lib/elasticsearch/api/actions/security/put_role_mapping.rb +3 -4
- data/lib/elasticsearch/api/actions/security/put_user.rb +3 -4
- data/lib/elasticsearch/api/actions/security/query_api_keys.rb +3 -3
- data/lib/elasticsearch/api/actions/security/query_user.rb +57 -0
- data/lib/elasticsearch/api/actions/security/saml_authenticate.rb +3 -3
- data/lib/elasticsearch/api/actions/security/saml_complete_logout.rb +3 -3
- data/lib/elasticsearch/api/actions/security/saml_invalidate.rb +3 -3
- data/lib/elasticsearch/api/actions/security/saml_logout.rb +3 -3
- data/lib/elasticsearch/api/actions/security/saml_prepare_authentication.rb +3 -3
- data/lib/elasticsearch/api/actions/security/saml_service_provider_metadata.rb +3 -4
- data/lib/elasticsearch/api/actions/security/suggest_user_profiles.rb +3 -3
- data/lib/elasticsearch/api/actions/security/update_api_key.rb +3 -4
- data/lib/elasticsearch/api/actions/security/update_cross_cluster_api_key.rb +3 -4
- data/lib/elasticsearch/api/actions/security/update_settings.rb +3 -3
- data/lib/elasticsearch/api/actions/security/update_user_profile_data.rb +3 -4
- data/lib/elasticsearch/api/actions/shutdown/delete_node.rb +2 -3
- data/lib/elasticsearch/api/actions/shutdown/get_node.rb +3 -4
- data/lib/elasticsearch/api/actions/shutdown/put_node.rb +2 -3
- data/lib/elasticsearch/api/actions/simulate/ingest.rb +4 -5
- data/lib/elasticsearch/api/actions/snapshot/cleanup_repository.rb +3 -4
- data/lib/elasticsearch/api/actions/snapshot/clone.rb +3 -4
- data/lib/elasticsearch/api/actions/snapshot/create.rb +3 -4
- data/lib/elasticsearch/api/actions/snapshot/create_repository.rb +3 -4
- data/lib/elasticsearch/api/actions/snapshot/delete.rb +5 -6
- data/lib/elasticsearch/api/actions/snapshot/delete_repository.rb +5 -6
- data/lib/elasticsearch/api/actions/snapshot/get.rb +5 -6
- data/lib/elasticsearch/api/actions/snapshot/get_repository.rb +6 -7
- data/lib/elasticsearch/api/actions/snapshot/repository_analyze.rb +3 -4
- data/lib/elasticsearch/api/actions/snapshot/restore.rb +3 -4
- data/lib/elasticsearch/api/actions/snapshot/status.rb +6 -7
- data/lib/elasticsearch/api/actions/snapshot/verify_repository.rb +3 -4
- data/lib/elasticsearch/api/actions/snapshot_lifecycle_management/delete_lifecycle.rb +3 -4
- data/lib/elasticsearch/api/actions/snapshot_lifecycle_management/execute_lifecycle.rb +3 -4
- data/lib/elasticsearch/api/actions/snapshot_lifecycle_management/execute_retention.rb +3 -3
- data/lib/elasticsearch/api/actions/snapshot_lifecycle_management/get_lifecycle.rb +4 -5
- data/lib/elasticsearch/api/actions/snapshot_lifecycle_management/get_stats.rb +3 -3
- data/lib/elasticsearch/api/actions/snapshot_lifecycle_management/get_status.rb +3 -3
- data/lib/elasticsearch/api/actions/snapshot_lifecycle_management/put_lifecycle.rb +3 -4
- data/lib/elasticsearch/api/actions/snapshot_lifecycle_management/start.rb +3 -3
- data/lib/elasticsearch/api/actions/snapshot_lifecycle_management/stop.rb +3 -3
- data/lib/elasticsearch/api/actions/sql/clear_cursor.rb +3 -3
- data/lib/elasticsearch/api/actions/sql/delete_async.rb +3 -4
- data/lib/elasticsearch/api/actions/sql/get_async.rb +3 -4
- data/lib/elasticsearch/api/actions/sql/get_async_status.rb +3 -4
- data/lib/elasticsearch/api/actions/sql/query.rb +3 -3
- data/lib/elasticsearch/api/actions/sql/translate.rb +3 -3
- data/lib/elasticsearch/api/actions/ssl/certificates.rb +3 -3
- data/lib/elasticsearch/api/actions/synonyms/delete_synonym.rb +3 -8
- data/lib/elasticsearch/api/actions/synonyms/delete_synonym_rule.rb +3 -8
- data/lib/elasticsearch/api/actions/synonyms/get_synonym.rb +3 -8
- data/lib/elasticsearch/api/actions/synonyms/get_synonym_rule.rb +3 -8
- data/lib/elasticsearch/api/actions/synonyms/get_synonyms_sets.rb +3 -7
- data/lib/elasticsearch/api/actions/synonyms/put_synonym.rb +3 -8
- data/lib/elasticsearch/api/actions/synonyms/put_synonym_rule.rb +3 -8
- data/lib/elasticsearch/api/actions/tasks/cancel.rb +4 -5
- data/lib/elasticsearch/api/actions/tasks/get.rb +3 -4
- data/lib/elasticsearch/api/actions/tasks/list.rb +3 -3
- data/lib/elasticsearch/api/actions/terms_enum.rb +5 -6
- data/lib/elasticsearch/api/actions/termvectors.rb +12 -12
- data/lib/elasticsearch/api/actions/text_structure/find_structure.rb +9 -9
- data/lib/elasticsearch/api/actions/text_structure/test_grok_pattern.rb +54 -0
- data/lib/elasticsearch/api/actions/transform/delete_transform.rb +3 -4
- data/lib/elasticsearch/api/actions/transform/get_transform.rb +4 -5
- data/lib/elasticsearch/api/actions/transform/get_transform_stats.rb +3 -4
- data/lib/elasticsearch/api/actions/transform/preview_transform.rb +8 -9
- data/lib/elasticsearch/api/actions/transform/put_transform.rb +3 -4
- data/lib/elasticsearch/api/actions/transform/reset_transform.rb +3 -4
- data/lib/elasticsearch/api/actions/transform/schedule_now_transform.rb +3 -4
- data/lib/elasticsearch/api/actions/transform/start_transform.rb +3 -4
- data/lib/elasticsearch/api/actions/transform/stop_transform.rb +3 -4
- data/lib/elasticsearch/api/actions/transform/update_transform.rb +3 -4
- data/lib/elasticsearch/api/actions/transform/upgrade_transforms.rb +3 -3
- data/lib/elasticsearch/api/actions/update.rb +5 -6
- data/lib/elasticsearch/api/actions/update_by_query.rb +3 -4
- data/lib/elasticsearch/api/actions/update_by_query_rethrottle.rb +3 -4
- data/lib/elasticsearch/api/actions/watcher/ack_watch.rb +3 -4
- data/lib/elasticsearch/api/actions/watcher/activate_watch.rb +3 -4
- data/lib/elasticsearch/api/actions/watcher/deactivate_watch.rb +3 -4
- data/lib/elasticsearch/api/actions/watcher/delete_watch.rb +5 -6
- data/lib/elasticsearch/api/actions/watcher/execute_watch.rb +4 -5
- data/lib/elasticsearch/api/actions/watcher/get_settings.rb +3 -3
- data/lib/elasticsearch/api/actions/watcher/get_watch.rb +3 -4
- data/lib/elasticsearch/api/actions/watcher/put_watch.rb +3 -4
- data/lib/elasticsearch/api/actions/watcher/query_watches.rb +3 -3
- data/lib/elasticsearch/api/actions/watcher/start.rb +3 -3
- data/lib/elasticsearch/api/actions/watcher/stats.rb +4 -5
- data/lib/elasticsearch/api/actions/watcher/stop.rb +3 -3
- data/lib/elasticsearch/api/actions/watcher/update_settings.rb +3 -3
- data/lib/elasticsearch/api/actions/xpack/info.rb +3 -3
- data/lib/elasticsearch/api/actions/xpack/usage.rb +3 -3
- data/{spec/platinum/unit/text_structure/find_structure_test.rb → lib/elasticsearch/api/namespace/connector_secret.rb} +12 -16
- data/lib/elasticsearch/api/version.rb +1 -1
- data/lib/elasticsearch/api.rb +2 -1
- data/spec/elasticsearch/api/actions/connector/update_api_key_id_spec.rb +38 -0
- data/spec/elasticsearch/api/actions/connector/update_index_name_spec.rb +38 -0
- data/spec/elasticsearch/api/actions/connector/update_native_spec.rb +38 -0
- data/spec/elasticsearch/api/actions/connector/update_service_type_spec.rb +38 -0
- data/spec/elasticsearch/api/actions/connector/update_status_spec.rb +38 -0
- data/spec/elasticsearch/api/actions/connector_secret/delete_spec.rb +35 -0
- data/spec/elasticsearch/api/actions/connector_secret/get_spec.rb +35 -0
- data/spec/elasticsearch/api/actions/connector_secret/post_spec.rb +35 -0
- data/spec/elasticsearch/api/actions/connector_secret/put_spec.rb +35 -0
- data/spec/elasticsearch/api/actions/esql/async_query_get._spec.rb +35 -0
- data/spec/elasticsearch/api/actions/esql/async_query_spec.rb +35 -0
- data/spec/elasticsearch/api/actions/indices/resolve_cluster_spec.rb +51 -0
- data/spec/elasticsearch/api/actions/inference/delete_model_spec.rb +2 -2
- data/spec/elasticsearch/api/actions/inference/get_model_spec.rb +2 -2
- data/spec/elasticsearch/api/actions/inference/inference_spec.rb +2 -2
- data/spec/elasticsearch/api/actions/inference/put_model_spec.rb +2 -2
- data/spec/elasticsearch/api/actions/profiling/flamegraph_spec.rb +35 -0
- data/spec/elasticsearch/api/actions/profiling/stacktraces_spec.rb +35 -0
- data/spec/elasticsearch/api/actions/security/query_user_spec.rb +49 -0
- data/spec/elasticsearch/api/actions/text_structure/find_structure_spec.rb +35 -0
- data/spec/elasticsearch/api/actions/text_structure/test_grok_pattern_spec.rb +35 -0
- data/spec/elasticsearch/api/perform_request_spec.rb +1 -1
- data/spec/free/integration/health_spec.rb +28 -0
- data/spec/free/integration/spec_helper.rb +28 -0
- data/spec/platinum/integration/api_key/api_key_query_with_aggs_spec.rb +120 -0
- data/spec/platinum/integration/platinum_helper.rb +1 -1
- data/spec/platinum/integration/security/users_query_spec.rb +49 -0
- data/spec/rest_api/skipped_tests_free.yml +15 -0
- data/spec/rest_api/skipped_tests_platinum.yml +6 -0
- data/spec/spec_helper.rb +7 -3
- data/utils/Gemfile +1 -1
- data/utils/{endpoint_spec.rb → thor/endpoint_spec.rb} +1 -2
- data/utils/{endpoint_specifics.rb → thor/endpoint_specifics.rb} +5 -5
- data/utils/thor/generate_source.rb +9 -89
- data/utils/thor/generator/build_hash_helper.rb +64 -0
- data/utils/thor/generator/docs_helper.rb +62 -0
- data/utils/thor/generator/files_helper.rb +25 -22
- data/utils/thor/templates/_body.erb +1 -1
- data/utils/thor/templates/_documentation_top.erb +11 -12
- data/utils/thor/templates/_method_setup.erb +6 -6
- data/utils/thor/templates/_perform_request.erb +1 -1
- data/utils/thor/templates/method.erb +14 -14
- metadata +65 -6
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: '0070963e6a452fe7ae238448c364a95e9394b1a6065206d13c9ce9418cff256e'
|
4
|
+
data.tar.gz: bdd2be6361d4360f5a7370cd6285520b15112f510135c9a383790daac23dc8d0
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 803c77a194333625ffecfc42f77a399591df9f977d556623d26d1a751fd411cf2d466a1e32d80ee6d8ace9afa827fa5c8da5812ab1be7cabb9cd77ea886ae804
|
7
|
+
data.tar.gz: dbe619b08fe85c84050c19d2116978bce64f9701a322990d3e521b613d2054e5d4163b4c33c81936ccbaaf7c1e466cb4ae4e2b0cf9585217f399a307e96092eb
|
data/Gemfile
CHANGED
data/Rakefile
CHANGED
@@ -67,9 +67,11 @@ namespace :test do
|
|
67
67
|
|
68
68
|
desc 'Run Platinum Integration Specs'
|
69
69
|
RSpec::Core::RakeTask.new(:integration) do |t|
|
70
|
-
|
71
|
-
|
72
|
-
|
70
|
+
t.pattern = if ENV['TEST_SUITE'] == 'platinum'
|
71
|
+
'spec/platinum/integration/**/*_spec.rb'
|
72
|
+
else
|
73
|
+
'spec/free/integration/**/*_spec.rb'
|
74
|
+
end
|
73
75
|
t.ruby_opts = '-W0'
|
74
76
|
end
|
75
77
|
end
|
@@ -258,7 +258,7 @@ module Elasticsearch
|
|
258
258
|
platinum_prefixes = [
|
259
259
|
'.monitoring', '.watch', '.triggered-watches', '.data-frame', '.ml-',
|
260
260
|
'.transform', '.deprecation', 'data-streams-mappings', '.fleet',
|
261
|
-
'behavioral_analytics-', 'profiling', 'elastic-connectors'
|
261
|
+
'behavioral_analytics-', 'profiling', 'elastic-connectors', 'ilm-history', '.slm-history'
|
262
262
|
].freeze
|
263
263
|
return true if template.start_with?(*platinum_prefixes)
|
264
264
|
|
@@ -27,14 +27,13 @@ module Elasticsearch
|
|
27
27
|
# @option arguments [String] :id The async search ID
|
28
28
|
# @option arguments [Hash] :headers Custom HTTP headers
|
29
29
|
#
|
30
|
-
# @see https://www.elastic.co/guide/en/elasticsearch/reference/8.
|
30
|
+
# @see https://www.elastic.co/guide/en/elasticsearch/reference/8.13/async-search.html
|
31
31
|
#
|
32
32
|
def delete(arguments = {})
|
33
|
-
request_opts = { endpoint: arguments[:endpoint] ||
|
33
|
+
request_opts = { endpoint: arguments[:endpoint] || 'async_search.delete' }
|
34
34
|
|
35
|
-
defined_params = [:id].
|
35
|
+
defined_params = [:id].each_with_object({}) do |variable, set_variables|
|
36
36
|
set_variables[variable] = arguments[variable] if arguments.key?(variable)
|
37
|
-
set_variables
|
38
37
|
end
|
39
38
|
request_opts[:defined_params] = defined_params unless defined_params.empty?
|
40
39
|
|
@@ -30,14 +30,13 @@ module Elasticsearch
|
|
30
30
|
# @option arguments [Boolean] :typed_keys Specify whether aggregation and suggester names should be prefixed by their respective types in the response
|
31
31
|
# @option arguments [Hash] :headers Custom HTTP headers
|
32
32
|
#
|
33
|
-
# @see https://www.elastic.co/guide/en/elasticsearch/reference/8.
|
33
|
+
# @see https://www.elastic.co/guide/en/elasticsearch/reference/8.13/async-search.html
|
34
34
|
#
|
35
35
|
def get(arguments = {})
|
36
|
-
request_opts = { endpoint: arguments[:endpoint] ||
|
36
|
+
request_opts = { endpoint: arguments[:endpoint] || 'async_search.get' }
|
37
37
|
|
38
|
-
defined_params = [:id].
|
38
|
+
defined_params = [:id].each_with_object({}) do |variable, set_variables|
|
39
39
|
set_variables[variable] = arguments[variable] if arguments.key?(variable)
|
40
|
-
set_variables
|
41
40
|
end
|
42
41
|
request_opts[:defined_params] = defined_params unless defined_params.empty?
|
43
42
|
|
@@ -25,16 +25,16 @@ module Elasticsearch
|
|
25
25
|
# Retrieves the status of a previously submitted async search request given its ID.
|
26
26
|
#
|
27
27
|
# @option arguments [String] :id The async search ID
|
28
|
+
# @option arguments [Time] :keep_alive Specify the time interval in which the results (partial or final) for this search will be available
|
28
29
|
# @option arguments [Hash] :headers Custom HTTP headers
|
29
30
|
#
|
30
|
-
# @see https://www.elastic.co/guide/en/elasticsearch/reference/8.
|
31
|
+
# @see https://www.elastic.co/guide/en/elasticsearch/reference/8.13/async-search.html
|
31
32
|
#
|
32
33
|
def status(arguments = {})
|
33
|
-
request_opts = { endpoint: arguments[:endpoint] ||
|
34
|
+
request_opts = { endpoint: arguments[:endpoint] || 'async_search.status' }
|
34
35
|
|
35
|
-
defined_params = [:id].
|
36
|
+
defined_params = [:id].each_with_object({}) do |variable, set_variables|
|
36
37
|
set_variables[variable] = arguments[variable] if arguments.key?(variable)
|
37
|
-
set_variables
|
38
38
|
end
|
39
39
|
request_opts[:defined_params] = defined_params unless defined_params.empty?
|
40
40
|
|
@@ -49,7 +49,7 @@ module Elasticsearch
|
|
49
49
|
|
50
50
|
method = Elasticsearch::API::HTTP_GET
|
51
51
|
path = "_async_search/status/#{Utils.__listify(_id)}"
|
52
|
-
params =
|
52
|
+
params = Utils.process_params(arguments)
|
53
53
|
|
54
54
|
Elasticsearch::API::Response.new(
|
55
55
|
perform_request(method, path, params, body, headers, request_opts)
|
@@ -69,14 +69,13 @@ module Elasticsearch
|
|
69
69
|
# @option arguments [Hash] :headers Custom HTTP headers
|
70
70
|
# @option arguments [Hash] :body The search definition using the Query DSL
|
71
71
|
#
|
72
|
-
# @see https://www.elastic.co/guide/en/elasticsearch/reference/8.
|
72
|
+
# @see https://www.elastic.co/guide/en/elasticsearch/reference/8.13/async-search.html
|
73
73
|
#
|
74
74
|
def submit(arguments = {})
|
75
|
-
request_opts = { endpoint: arguments[:endpoint] ||
|
75
|
+
request_opts = { endpoint: arguments[:endpoint] || 'async_search.submit' }
|
76
76
|
|
77
|
-
defined_params = [:index].
|
77
|
+
defined_params = [:index].each_with_object({}) do |variable, set_variables|
|
78
78
|
set_variables[variable] = arguments[variable] if arguments.key?(variable)
|
79
|
-
set_variables
|
80
79
|
end
|
81
80
|
request_opts[:defined_params] = defined_params unless defined_params.empty?
|
82
81
|
|
@@ -91,7 +90,7 @@ module Elasticsearch
|
|
91
90
|
path = if _index
|
92
91
|
"#{Utils.__listify(_index)}/_async_search"
|
93
92
|
else
|
94
|
-
|
93
|
+
'_async_search'
|
95
94
|
end
|
96
95
|
params = Utils.process_params(arguments)
|
97
96
|
|
@@ -27,14 +27,13 @@ module Elasticsearch
|
|
27
27
|
# @option arguments [String] :name the name of the autoscaling policy
|
28
28
|
# @option arguments [Hash] :headers Custom HTTP headers
|
29
29
|
#
|
30
|
-
# @see https://www.elastic.co/guide/en/elasticsearch/reference/8.
|
30
|
+
# @see https://www.elastic.co/guide/en/elasticsearch/reference/8.13/autoscaling-delete-autoscaling-policy.html
|
31
31
|
#
|
32
32
|
def delete_autoscaling_policy(arguments = {})
|
33
|
-
request_opts = { endpoint: arguments[:endpoint] ||
|
33
|
+
request_opts = { endpoint: arguments[:endpoint] || 'autoscaling.delete_autoscaling_policy' }
|
34
34
|
|
35
|
-
defined_params = [:name].
|
35
|
+
defined_params = [:name].each_with_object({}) do |variable, set_variables|
|
36
36
|
set_variables[variable] = arguments[variable] if arguments.key?(variable)
|
37
|
-
set_variables
|
38
37
|
end
|
39
38
|
request_opts[:defined_params] = defined_params unless defined_params.empty?
|
40
39
|
|
@@ -26,10 +26,10 @@ module Elasticsearch
|
|
26
26
|
#
|
27
27
|
# @option arguments [Hash] :headers Custom HTTP headers
|
28
28
|
#
|
29
|
-
# @see https://www.elastic.co/guide/en/elasticsearch/reference/8.
|
29
|
+
# @see https://www.elastic.co/guide/en/elasticsearch/reference/8.13/autoscaling-get-autoscaling-capacity.html
|
30
30
|
#
|
31
31
|
def get_autoscaling_capacity(arguments = {})
|
32
|
-
request_opts = { endpoint: arguments[:endpoint] ||
|
32
|
+
request_opts = { endpoint: arguments[:endpoint] || 'autoscaling.get_autoscaling_capacity' }
|
33
33
|
|
34
34
|
arguments = arguments.clone
|
35
35
|
headers = arguments.delete(:headers) || {}
|
@@ -37,7 +37,7 @@ module Elasticsearch
|
|
37
37
|
body = nil
|
38
38
|
|
39
39
|
method = Elasticsearch::API::HTTP_GET
|
40
|
-
path =
|
40
|
+
path = '_autoscaling/capacity'
|
41
41
|
params = {}
|
42
42
|
|
43
43
|
Elasticsearch::API::Response.new(
|
@@ -27,14 +27,13 @@ module Elasticsearch
|
|
27
27
|
# @option arguments [String] :name the name of the autoscaling policy
|
28
28
|
# @option arguments [Hash] :headers Custom HTTP headers
|
29
29
|
#
|
30
|
-
# @see https://www.elastic.co/guide/en/elasticsearch/reference/8.
|
30
|
+
# @see https://www.elastic.co/guide/en/elasticsearch/reference/8.13/autoscaling-get-autoscaling-policy.html
|
31
31
|
#
|
32
32
|
def get_autoscaling_policy(arguments = {})
|
33
|
-
request_opts = { endpoint: arguments[:endpoint] ||
|
33
|
+
request_opts = { endpoint: arguments[:endpoint] || 'autoscaling.get_autoscaling_policy' }
|
34
34
|
|
35
|
-
defined_params = [:name].
|
35
|
+
defined_params = [:name].each_with_object({}) do |variable, set_variables|
|
36
36
|
set_variables[variable] = arguments[variable] if arguments.key?(variable)
|
37
|
-
set_variables
|
38
37
|
end
|
39
38
|
request_opts[:defined_params] = defined_params unless defined_params.empty?
|
40
39
|
|
@@ -28,14 +28,13 @@ module Elasticsearch
|
|
28
28
|
# @option arguments [Hash] :headers Custom HTTP headers
|
29
29
|
# @option arguments [Hash] :body the specification of the autoscaling policy (*Required*)
|
30
30
|
#
|
31
|
-
# @see https://www.elastic.co/guide/en/elasticsearch/reference/8.
|
31
|
+
# @see https://www.elastic.co/guide/en/elasticsearch/reference/8.13/autoscaling-put-autoscaling-policy.html
|
32
32
|
#
|
33
33
|
def put_autoscaling_policy(arguments = {})
|
34
|
-
request_opts = { endpoint: arguments[:endpoint] ||
|
34
|
+
request_opts = { endpoint: arguments[:endpoint] || 'autoscaling.put_autoscaling_policy' }
|
35
35
|
|
36
|
-
defined_params = [:name].
|
36
|
+
defined_params = [:name].each_with_object({}) do |variable, set_variables|
|
37
37
|
set_variables[variable] = arguments[variable] if arguments.key?(variable)
|
38
|
-
set_variables
|
39
38
|
end
|
40
39
|
request_opts[:defined_params] = defined_params unless defined_params.empty?
|
41
40
|
|
@@ -34,19 +34,19 @@ module Elasticsearch
|
|
34
34
|
# @option arguments [List] :_source_includes Default list of fields to extract and return from the _source field, can be overridden on each sub-request
|
35
35
|
# @option arguments [String] :pipeline The pipeline id to preprocess incoming documents with
|
36
36
|
# @option arguments [Boolean] :require_alias Sets require_alias for all incoming documents. Defaults to unset (false)
|
37
|
+
# @option arguments [Boolean] :require_data_stream When true, requires the destination to be a data stream (existing or to-be-created). Default is false
|
37
38
|
# @option arguments [Boolean] :list_executed_pipelines Sets list_executed_pipelines for all incoming documents. Defaults to unset (false)
|
38
39
|
# @option arguments [Hash] :headers Custom HTTP headers
|
39
40
|
# @option arguments [String|Array] :body The operation definition and data (action-data pairs), separated by newlines. Array of Strings, Header/Data pairs,
|
40
41
|
# or the conveniency "combined" format can be passed, refer to Elasticsearch::API::Utils.__bulkify documentation.
|
41
42
|
#
|
42
|
-
# @see https://www.elastic.co/guide/en/elasticsearch/reference/8.
|
43
|
+
# @see https://www.elastic.co/guide/en/elasticsearch/reference/8.13/docs-bulk.html
|
43
44
|
#
|
44
45
|
def bulk(arguments = {})
|
45
|
-
request_opts = { endpoint: arguments[:endpoint] ||
|
46
|
+
request_opts = { endpoint: arguments[:endpoint] || 'bulk' }
|
46
47
|
|
47
|
-
defined_params = [:index].
|
48
|
+
defined_params = [:index].each_with_object({}) do |variable, set_variables|
|
48
49
|
set_variables[variable] = arguments[variable] if arguments.key?(variable)
|
49
|
-
set_variables
|
50
50
|
end
|
51
51
|
request_opts[:defined_params] = defined_params unless defined_params.empty?
|
52
52
|
|
@@ -63,17 +63,17 @@ module Elasticsearch
|
|
63
63
|
path = if _index
|
64
64
|
"#{Utils.__listify(_index)}/_bulk"
|
65
65
|
else
|
66
|
-
|
66
|
+
'_bulk'
|
67
67
|
end
|
68
68
|
params = Utils.process_params(arguments)
|
69
69
|
|
70
|
-
if body.is_a? Array
|
71
|
-
|
72
|
-
|
73
|
-
|
74
|
-
|
70
|
+
payload = if body.is_a? Array
|
71
|
+
Elasticsearch::API::Utils.__bulkify(body)
|
72
|
+
else
|
73
|
+
body
|
74
|
+
end
|
75
75
|
|
76
|
-
headers.merge!(
|
76
|
+
headers.merge!('Content-Type' => 'application/x-ndjson')
|
77
77
|
Elasticsearch::API::Response.new(
|
78
78
|
perform_request(method, path, params, payload, headers, request_opts)
|
79
79
|
)
|
@@ -34,14 +34,13 @@ module Elasticsearch
|
|
34
34
|
# @option arguments [String] :expand_wildcards Whether to expand wildcard expression to concrete indices that are open, closed or both. (options: open, closed, hidden, none, all)
|
35
35
|
# @option arguments [Hash] :headers Custom HTTP headers
|
36
36
|
#
|
37
|
-
# @see https://www.elastic.co/guide/en/elasticsearch/reference/8.
|
37
|
+
# @see https://www.elastic.co/guide/en/elasticsearch/reference/8.13/cat-alias.html
|
38
38
|
#
|
39
39
|
def aliases(arguments = {})
|
40
|
-
request_opts = { endpoint: arguments[:endpoint] ||
|
40
|
+
request_opts = { endpoint: arguments[:endpoint] || 'cat.aliases' }
|
41
41
|
|
42
|
-
defined_params = [:name].
|
42
|
+
defined_params = [:name].each_with_object({}) do |variable, set_variables|
|
43
43
|
set_variables[variable] = arguments[variable] if arguments.key?(variable)
|
44
|
-
set_variables
|
45
44
|
end
|
46
45
|
request_opts[:defined_params] = defined_params unless defined_params.empty?
|
47
46
|
|
@@ -56,7 +55,7 @@ module Elasticsearch
|
|
56
55
|
path = if _name
|
57
56
|
"_cat/aliases/#{Utils.__listify(_name)}"
|
58
57
|
else
|
59
|
-
|
58
|
+
'_cat/aliases'
|
60
59
|
end
|
61
60
|
params = Utils.process_params(arguments)
|
62
61
|
params[:h] = Utils.__listify(params[:h]) if params[:h]
|
@@ -35,14 +35,13 @@ module Elasticsearch
|
|
35
35
|
# @option arguments [Boolean] :v Verbose mode. Display column headers
|
36
36
|
# @option arguments [Hash] :headers Custom HTTP headers
|
37
37
|
#
|
38
|
-
# @see https://www.elastic.co/guide/en/elasticsearch/reference/8.
|
38
|
+
# @see https://www.elastic.co/guide/en/elasticsearch/reference/8.13/cat-allocation.html
|
39
39
|
#
|
40
40
|
def allocation(arguments = {})
|
41
|
-
request_opts = { endpoint: arguments[:endpoint] ||
|
41
|
+
request_opts = { endpoint: arguments[:endpoint] || 'cat.allocation' }
|
42
42
|
|
43
|
-
defined_params = [:node_id].
|
43
|
+
defined_params = [:node_id].each_with_object({}) do |variable, set_variables|
|
44
44
|
set_variables[variable] = arguments[variable] if arguments.key?(variable)
|
45
|
-
set_variables
|
46
45
|
end
|
47
46
|
request_opts[:defined_params] = defined_params unless defined_params.empty?
|
48
47
|
|
@@ -57,7 +56,7 @@ module Elasticsearch
|
|
57
56
|
path = if _node_id
|
58
57
|
"_cat/allocation/#{Utils.__listify(_node_id)}"
|
59
58
|
else
|
60
|
-
|
59
|
+
'_cat/allocation'
|
61
60
|
end
|
62
61
|
params = Utils.process_params(arguments)
|
63
62
|
params[:h] = Utils.__listify(params[:h]) if params[:h]
|
@@ -34,14 +34,13 @@ module Elasticsearch
|
|
34
34
|
# @option arguments [Boolean] :v Verbose mode. Display column headers
|
35
35
|
# @option arguments [Hash] :headers Custom HTTP headers
|
36
36
|
#
|
37
|
-
# @see https://www.elastic.co/guide/en/elasticsearch/reference/8.
|
37
|
+
# @see https://www.elastic.co/guide/en/elasticsearch/reference/8.13/cat-component-templates.html
|
38
38
|
#
|
39
39
|
def component_templates(arguments = {})
|
40
|
-
request_opts = { endpoint: arguments[:endpoint] ||
|
40
|
+
request_opts = { endpoint: arguments[:endpoint] || 'cat.component_templates' }
|
41
41
|
|
42
|
-
defined_params = [:name].
|
42
|
+
defined_params = [:name].each_with_object({}) do |variable, set_variables|
|
43
43
|
set_variables[variable] = arguments[variable] if arguments.key?(variable)
|
44
|
-
set_variables
|
45
44
|
end
|
46
45
|
request_opts[:defined_params] = defined_params unless defined_params.empty?
|
47
46
|
|
@@ -56,7 +55,7 @@ module Elasticsearch
|
|
56
55
|
path = if _name
|
57
56
|
"_cat/component_templates/#{Utils.__listify(_name)}"
|
58
57
|
else
|
59
|
-
|
58
|
+
'_cat/component_templates'
|
60
59
|
end
|
61
60
|
params = Utils.process_params(arguments)
|
62
61
|
|
@@ -32,14 +32,13 @@ module Elasticsearch
|
|
32
32
|
# @option arguments [Boolean] :v Verbose mode. Display column headers
|
33
33
|
# @option arguments [Hash] :headers Custom HTTP headers
|
34
34
|
#
|
35
|
-
# @see https://www.elastic.co/guide/en/elasticsearch/reference/8.
|
35
|
+
# @see https://www.elastic.co/guide/en/elasticsearch/reference/8.13/cat-count.html
|
36
36
|
#
|
37
37
|
def count(arguments = {})
|
38
|
-
request_opts = { endpoint: arguments[:endpoint] ||
|
38
|
+
request_opts = { endpoint: arguments[:endpoint] || 'cat.count' }
|
39
39
|
|
40
|
-
defined_params = [:index].
|
40
|
+
defined_params = [:index].each_with_object({}) do |variable, set_variables|
|
41
41
|
set_variables[variable] = arguments[variable] if arguments.key?(variable)
|
42
|
-
set_variables
|
43
42
|
end
|
44
43
|
request_opts[:defined_params] = defined_params unless defined_params.empty?
|
45
44
|
|
@@ -54,7 +53,7 @@ module Elasticsearch
|
|
54
53
|
path = if _index
|
55
54
|
"_cat/count/#{Utils.__listify(_index)}"
|
56
55
|
else
|
57
|
-
|
56
|
+
'_cat/count'
|
58
57
|
end
|
59
58
|
params = Utils.process_params(arguments)
|
60
59
|
params[:h] = Utils.__listify(params[:h]) if params[:h]
|
@@ -33,14 +33,13 @@ module Elasticsearch
|
|
33
33
|
# @option arguments [Boolean] :v Verbose mode. Display column headers
|
34
34
|
# @option arguments [Hash] :headers Custom HTTP headers
|
35
35
|
#
|
36
|
-
# @see https://www.elastic.co/guide/en/elasticsearch/reference/8.
|
36
|
+
# @see https://www.elastic.co/guide/en/elasticsearch/reference/8.13/cat-fielddata.html
|
37
37
|
#
|
38
38
|
def fielddata(arguments = {})
|
39
|
-
request_opts = { endpoint: arguments[:endpoint] ||
|
39
|
+
request_opts = { endpoint: arguments[:endpoint] || 'cat.fielddata' }
|
40
40
|
|
41
|
-
defined_params = [:fields].
|
41
|
+
defined_params = [:fields].each_with_object({}) do |variable, set_variables|
|
42
42
|
set_variables[variable] = arguments[variable] if arguments.key?(variable)
|
43
|
-
set_variables
|
44
43
|
end
|
45
44
|
request_opts[:defined_params] = defined_params unless defined_params.empty?
|
46
45
|
|
@@ -55,7 +54,7 @@ module Elasticsearch
|
|
55
54
|
path = if _fields
|
56
55
|
"_cat/fielddata/#{Utils.__listify(_fields)}"
|
57
56
|
else
|
58
|
-
|
57
|
+
'_cat/fielddata'
|
59
58
|
end
|
60
59
|
params = Utils.process_params(arguments)
|
61
60
|
|
@@ -33,10 +33,10 @@ module Elasticsearch
|
|
33
33
|
# @option arguments [Boolean] :v Verbose mode. Display column headers
|
34
34
|
# @option arguments [Hash] :headers Custom HTTP headers
|
35
35
|
#
|
36
|
-
# @see https://www.elastic.co/guide/en/elasticsearch/reference/8.
|
36
|
+
# @see https://www.elastic.co/guide/en/elasticsearch/reference/8.13/cat-health.html
|
37
37
|
#
|
38
38
|
def health(arguments = {})
|
39
|
-
request_opts = { endpoint: arguments[:endpoint] ||
|
39
|
+
request_opts = { endpoint: arguments[:endpoint] || 'cat.health' }
|
40
40
|
|
41
41
|
arguments = arguments.clone
|
42
42
|
headers = arguments.delete(:headers) || {}
|
@@ -44,7 +44,7 @@ module Elasticsearch
|
|
44
44
|
body = nil
|
45
45
|
|
46
46
|
method = Elasticsearch::API::HTTP_GET
|
47
|
-
path =
|
47
|
+
path = '_cat/health'
|
48
48
|
params = Utils.process_params(arguments)
|
49
49
|
params[:h] = Utils.__listify(params[:h]) if params[:h]
|
50
50
|
|
@@ -28,10 +28,10 @@ module Elasticsearch
|
|
28
28
|
# @option arguments [List] :s Comma-separated list of column names or column aliases to sort by
|
29
29
|
# @option arguments [Hash] :headers Custom HTTP headers
|
30
30
|
#
|
31
|
-
# @see https://www.elastic.co/guide/en/elasticsearch/reference/8.
|
31
|
+
# @see https://www.elastic.co/guide/en/elasticsearch/reference/8.13/cat.html
|
32
32
|
#
|
33
33
|
def help(arguments = {})
|
34
|
-
request_opts = { endpoint: arguments[:endpoint] ||
|
34
|
+
request_opts = { endpoint: arguments[:endpoint] || 'cat.help' }
|
35
35
|
|
36
36
|
arguments = arguments.clone
|
37
37
|
headers = arguments.delete(:headers) || {}
|
@@ -39,7 +39,7 @@ module Elasticsearch
|
|
39
39
|
body = nil
|
40
40
|
|
41
41
|
method = Elasticsearch::API::HTTP_GET
|
42
|
-
path =
|
42
|
+
path = '_cat'
|
43
43
|
params = Utils.process_params(arguments)
|
44
44
|
|
45
45
|
Elasticsearch::API::Response.new(
|
@@ -39,14 +39,13 @@ module Elasticsearch
|
|
39
39
|
# @option arguments [String] :expand_wildcards Whether to expand wildcard expression to concrete indices that are open, closed or both. (options: open, closed, hidden, none, all)
|
40
40
|
# @option arguments [Hash] :headers Custom HTTP headers
|
41
41
|
#
|
42
|
-
# @see https://www.elastic.co/guide/en/elasticsearch/reference/8.
|
42
|
+
# @see https://www.elastic.co/guide/en/elasticsearch/reference/8.13/cat-indices.html
|
43
43
|
#
|
44
44
|
def indices(arguments = {})
|
45
|
-
request_opts = { endpoint: arguments[:endpoint] ||
|
45
|
+
request_opts = { endpoint: arguments[:endpoint] || 'cat.indices' }
|
46
46
|
|
47
|
-
defined_params = [:index].
|
47
|
+
defined_params = [:index].each_with_object({}) do |variable, set_variables|
|
48
48
|
set_variables[variable] = arguments[variable] if arguments.key?(variable)
|
49
|
-
set_variables
|
50
49
|
end
|
51
50
|
request_opts[:defined_params] = defined_params unless defined_params.empty?
|
52
51
|
|
@@ -61,7 +60,7 @@ module Elasticsearch
|
|
61
60
|
path = if _index
|
62
61
|
"_cat/indices/#{Utils.__listify(_index)}"
|
63
62
|
else
|
64
|
-
|
63
|
+
'_cat/indices'
|
65
64
|
end
|
66
65
|
params = Utils.process_params(arguments)
|
67
66
|
params[:h] = Utils.__listify(params[:h]) if params[:h]
|
@@ -33,10 +33,10 @@ module Elasticsearch
|
|
33
33
|
# @option arguments [Boolean] :v Verbose mode. Display column headers
|
34
34
|
# @option arguments [Hash] :headers Custom HTTP headers
|
35
35
|
#
|
36
|
-
# @see https://www.elastic.co/guide/en/elasticsearch/reference/8.
|
36
|
+
# @see https://www.elastic.co/guide/en/elasticsearch/reference/8.13/cat-master.html
|
37
37
|
#
|
38
38
|
def master(arguments = {})
|
39
|
-
request_opts = { endpoint: arguments[:endpoint] ||
|
39
|
+
request_opts = { endpoint: arguments[:endpoint] || 'cat.master' }
|
40
40
|
|
41
41
|
arguments = arguments.clone
|
42
42
|
headers = arguments.delete(:headers) || {}
|
@@ -44,7 +44,7 @@ module Elasticsearch
|
|
44
44
|
body = nil
|
45
45
|
|
46
46
|
method = Elasticsearch::API::HTTP_GET
|
47
|
-
path =
|
47
|
+
path = '_cat/master'
|
48
48
|
params = Utils.process_params(arguments)
|
49
49
|
|
50
50
|
Elasticsearch::API::Response.new(
|
@@ -35,14 +35,13 @@ module Elasticsearch
|
|
35
35
|
# @option arguments [Boolean] :v Verbose mode. Display column headers
|
36
36
|
# @option arguments [Hash] :headers Custom HTTP headers
|
37
37
|
#
|
38
|
-
# @see http://www.elastic.co/guide/en/elasticsearch/reference/8.
|
38
|
+
# @see http://www.elastic.co/guide/en/elasticsearch/reference/8.13/cat-dfanalytics.html
|
39
39
|
#
|
40
40
|
def ml_data_frame_analytics(arguments = {})
|
41
|
-
request_opts = { endpoint: arguments[:endpoint] ||
|
41
|
+
request_opts = { endpoint: arguments[:endpoint] || 'cat.ml_data_frame_analytics' }
|
42
42
|
|
43
|
-
defined_params = [:id].
|
43
|
+
defined_params = [:id].each_with_object({}) do |variable, set_variables|
|
44
44
|
set_variables[variable] = arguments[variable] if arguments.key?(variable)
|
45
|
-
set_variables
|
46
45
|
end
|
47
46
|
request_opts[:defined_params] = defined_params unless defined_params.empty?
|
48
47
|
|
@@ -57,7 +56,7 @@ module Elasticsearch
|
|
57
56
|
path = if _id
|
58
57
|
"_cat/ml/data_frame/analytics/#{Utils.__listify(_id)}"
|
59
58
|
else
|
60
|
-
|
59
|
+
'_cat/ml/data_frame/analytics'
|
61
60
|
end
|
62
61
|
params = Utils.process_params(arguments)
|
63
62
|
|
@@ -34,14 +34,13 @@ module Elasticsearch
|
|
34
34
|
# @option arguments [Boolean] :v Verbose mode. Display column headers
|
35
35
|
# @option arguments [Hash] :headers Custom HTTP headers
|
36
36
|
#
|
37
|
-
# @see http://www.elastic.co/guide/en/elasticsearch/reference/8.
|
37
|
+
# @see http://www.elastic.co/guide/en/elasticsearch/reference/8.13/cat-datafeeds.html
|
38
38
|
#
|
39
39
|
def ml_datafeeds(arguments = {})
|
40
|
-
request_opts = { endpoint: arguments[:endpoint] ||
|
40
|
+
request_opts = { endpoint: arguments[:endpoint] || 'cat.ml_datafeeds' }
|
41
41
|
|
42
|
-
defined_params = [:datafeed_id].
|
42
|
+
defined_params = [:datafeed_id].each_with_object({}) do |variable, set_variables|
|
43
43
|
set_variables[variable] = arguments[variable] if arguments.key?(variable)
|
44
|
-
set_variables
|
45
44
|
end
|
46
45
|
request_opts[:defined_params] = defined_params unless defined_params.empty?
|
47
46
|
|
@@ -56,7 +55,7 @@ module Elasticsearch
|
|
56
55
|
path = if _datafeed_id
|
57
56
|
"_cat/ml/datafeeds/#{Utils.__listify(_datafeed_id)}"
|
58
57
|
else
|
59
|
-
|
58
|
+
'_cat/ml/datafeeds'
|
60
59
|
end
|
61
60
|
params = Utils.process_params(arguments)
|
62
61
|
|
@@ -35,14 +35,13 @@ module Elasticsearch
|
|
35
35
|
# @option arguments [Boolean] :v Verbose mode. Display column headers
|
36
36
|
# @option arguments [Hash] :headers Custom HTTP headers
|
37
37
|
#
|
38
|
-
# @see http://www.elastic.co/guide/en/elasticsearch/reference/8.
|
38
|
+
# @see http://www.elastic.co/guide/en/elasticsearch/reference/8.13/cat-anomaly-detectors.html
|
39
39
|
#
|
40
40
|
def ml_jobs(arguments = {})
|
41
|
-
request_opts = { endpoint: arguments[:endpoint] ||
|
41
|
+
request_opts = { endpoint: arguments[:endpoint] || 'cat.ml_jobs' }
|
42
42
|
|
43
|
-
defined_params = [:job_id].
|
43
|
+
defined_params = [:job_id].each_with_object({}) do |variable, set_variables|
|
44
44
|
set_variables[variable] = arguments[variable] if arguments.key?(variable)
|
45
|
-
set_variables
|
46
45
|
end
|
47
46
|
request_opts[:defined_params] = defined_params unless defined_params.empty?
|
48
47
|
|
@@ -57,7 +56,7 @@ module Elasticsearch
|
|
57
56
|
path = if _job_id
|
58
57
|
"_cat/ml/anomaly_detectors/#{Utils.__listify(_job_id)}"
|
59
58
|
else
|
60
|
-
|
59
|
+
'_cat/ml/anomaly_detectors'
|
61
60
|
end
|
62
61
|
params = Utils.process_params(arguments)
|
63
62
|
|
@@ -37,14 +37,13 @@ module Elasticsearch
|
|
37
37
|
# @option arguments [Boolean] :v Verbose mode. Display column headers
|
38
38
|
# @option arguments [Hash] :headers Custom HTTP headers
|
39
39
|
#
|
40
|
-
# @see https://www.elastic.co/guide/en/elasticsearch/reference/8.
|
40
|
+
# @see https://www.elastic.co/guide/en/elasticsearch/reference/8.13/cat-trained-model.html
|
41
41
|
#
|
42
42
|
def ml_trained_models(arguments = {})
|
43
|
-
request_opts = { endpoint: arguments[:endpoint] ||
|
43
|
+
request_opts = { endpoint: arguments[:endpoint] || 'cat.ml_trained_models' }
|
44
44
|
|
45
|
-
defined_params = [:model_id].
|
45
|
+
defined_params = [:model_id].each_with_object({}) do |variable, set_variables|
|
46
46
|
set_variables[variable] = arguments[variable] if arguments.key?(variable)
|
47
|
-
set_variables
|
48
47
|
end
|
49
48
|
request_opts[:defined_params] = defined_params unless defined_params.empty?
|
50
49
|
|
@@ -59,7 +58,7 @@ module Elasticsearch
|
|
59
58
|
path = if _model_id
|
60
59
|
"_cat/ml/trained_models/#{Utils.__listify(_model_id)}"
|
61
60
|
else
|
62
|
-
|
61
|
+
'_cat/ml/trained_models'
|
63
62
|
end
|
64
63
|
params = Utils.process_params(arguments)
|
65
64
|
|