elasticsearch-xpack 7.7.0 → 7.9.0
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/Gemfile +17 -3
- data/Rakefile +16 -3
- data/elasticsearch-xpack.gemspec +16 -3
- data/examples/watcher/error_500.rb +16 -3
- data/lib/elasticsearch/xpack.rb +44 -3
- data/lib/elasticsearch/xpack/api/actions/async_search/delete.rb +18 -5
- data/lib/elasticsearch/xpack/api/actions/async_search/get.rb +18 -5
- data/lib/elasticsearch/xpack/api/actions/async_search/params_registry.rb +16 -3
- data/lib/elasticsearch/xpack/api/actions/async_search/submit.rb +23 -18
- data/lib/elasticsearch/xpack/api/actions/autoscaling/delete_autoscaling_policy.rb +54 -0
- data/lib/elasticsearch/xpack/api/actions/autoscaling/get_autoscaling_decision.rb +49 -0
- data/lib/elasticsearch/xpack/api/actions/autoscaling/get_autoscaling_policy.rb +54 -0
- data/lib/elasticsearch/xpack/api/actions/autoscaling/params_registry.rb +62 -0
- data/lib/elasticsearch/xpack/api/actions/autoscaling/put_autoscaling_policy.rb +56 -0
- data/lib/elasticsearch/xpack/api/actions/cat/ml_data_frame_analytics.rb +21 -12
- data/lib/elasticsearch/xpack/api/actions/cat/ml_datafeeds.rb +20 -9
- data/lib/elasticsearch/xpack/api/actions/cat/ml_jobs.rb +21 -12
- data/lib/elasticsearch/xpack/api/actions/cat/ml_trained_models.rb +21 -12
- data/lib/elasticsearch/xpack/api/actions/cat/params_registry.rb +16 -3
- data/lib/elasticsearch/xpack/api/actions/cat/transform.rb +18 -5
- data/lib/elasticsearch/xpack/api/actions/cat/transforms.rb +20 -9
- data/lib/elasticsearch/xpack/api/actions/cross_cluster_replication/delete_auto_follow_pattern.rb +50 -0
- data/lib/elasticsearch/xpack/api/actions/cross_cluster_replication/follow.rb +60 -0
- data/lib/elasticsearch/xpack/api/actions/cross_cluster_replication/follow_info.rb +50 -0
- data/lib/elasticsearch/xpack/api/actions/cross_cluster_replication/follow_stats.rb +50 -0
- data/lib/elasticsearch/xpack/api/actions/cross_cluster_replication/forget_follower.rb +52 -0
- data/lib/elasticsearch/xpack/api/actions/cross_cluster_replication/get_auto_follow_pattern.rb +52 -0
- data/lib/elasticsearch/xpack/api/actions/cross_cluster_replication/params_registry.rb +62 -0
- data/lib/elasticsearch/xpack/api/actions/cross_cluster_replication/pause_auto_follow_pattern.rb +50 -0
- data/lib/elasticsearch/xpack/api/actions/cross_cluster_replication/pause_follow.rb +50 -0
- data/lib/elasticsearch/xpack/api/actions/cross_cluster_replication/put_auto_follow_pattern.rb +52 -0
- data/lib/elasticsearch/xpack/api/actions/cross_cluster_replication/resume_auto_follow_pattern.rb +50 -0
- data/lib/elasticsearch/xpack/api/actions/cross_cluster_replication/resume_follow.rb +51 -0
- data/lib/elasticsearch/xpack/api/actions/cross_cluster_replication/stats.rb +45 -0
- data/lib/elasticsearch/xpack/api/actions/cross_cluster_replication/unfollow.rb +50 -0
- data/lib/elasticsearch/xpack/api/actions/data_frame_transform_deprecated/delete_transform.rb +22 -5
- data/lib/elasticsearch/xpack/api/actions/data_frame_transform_deprecated/get_transform.rb +23 -6
- data/lib/elasticsearch/xpack/api/actions/data_frame_transform_deprecated/get_transform_stats.rb +22 -5
- data/lib/elasticsearch/xpack/api/actions/data_frame_transform_deprecated/params_registry.rb +16 -3
- data/lib/elasticsearch/xpack/api/actions/data_frame_transform_deprecated/preview_transform.rb +22 -5
- data/lib/elasticsearch/xpack/api/actions/data_frame_transform_deprecated/put_transform.rb +22 -5
- data/lib/elasticsearch/xpack/api/actions/data_frame_transform_deprecated/start_transform.rb +22 -5
- data/lib/elasticsearch/xpack/api/actions/data_frame_transform_deprecated/stop_transform.rb +22 -5
- data/lib/elasticsearch/xpack/api/actions/data_frame_transform_deprecated/update_transform.rb +23 -6
- data/lib/elasticsearch/xpack/api/actions/enrich/delete_policy.rb +50 -0
- data/lib/elasticsearch/xpack/api/actions/enrich/execute_policy.rb +58 -0
- data/lib/elasticsearch/xpack/api/actions/enrich/get_policy.rb +52 -0
- data/lib/elasticsearch/xpack/api/actions/enrich/params_registry.rb +62 -0
- data/lib/elasticsearch/xpack/api/actions/enrich/put_policy.rb +52 -0
- data/lib/elasticsearch/xpack/api/actions/enrich/stats.rb +45 -0
- data/lib/elasticsearch/xpack/api/actions/eql/delete.rb +54 -0
- data/lib/elasticsearch/xpack/api/actions/eql/get.rb +64 -0
- data/lib/elasticsearch/xpack/api/actions/eql/params_registry.rb +62 -0
- data/lib/elasticsearch/xpack/api/actions/eql/search.rb +69 -0
- data/lib/elasticsearch/xpack/api/actions/graph/explore.rb +29 -11
- data/lib/elasticsearch/xpack/api/actions/graph/params_registry.rb +16 -3
- data/lib/elasticsearch/xpack/api/actions/index_lifecycle_management/delete_lifecycle.rb +18 -5
- data/lib/elasticsearch/xpack/api/actions/index_lifecycle_management/delete_policy.rb +16 -3
- data/lib/elasticsearch/xpack/api/actions/index_lifecycle_management/explain.rb +16 -3
- data/lib/elasticsearch/xpack/api/actions/index_lifecycle_management/explain_lifecycle.rb +18 -5
- data/lib/elasticsearch/xpack/api/actions/index_lifecycle_management/get_lifecycle.rb +19 -6
- data/lib/elasticsearch/xpack/api/actions/index_lifecycle_management/get_policy.rb +16 -3
- data/lib/elasticsearch/xpack/api/actions/index_lifecycle_management/get_status.rb +18 -5
- data/lib/elasticsearch/xpack/api/actions/index_lifecycle_management/move_to_step.rb +18 -5
- data/lib/elasticsearch/xpack/api/actions/index_lifecycle_management/params_registry.rb +16 -3
- data/lib/elasticsearch/xpack/api/actions/index_lifecycle_management/put_lifecycle.rb +18 -5
- data/lib/elasticsearch/xpack/api/actions/index_lifecycle_management/put_policy.rb +16 -3
- data/lib/elasticsearch/xpack/api/actions/index_lifecycle_management/remove_policy.rb +18 -5
- data/lib/elasticsearch/xpack/api/actions/index_lifecycle_management/retry.rb +18 -5
- data/lib/elasticsearch/xpack/api/actions/index_lifecycle_management/retry_policy.rb +16 -3
- data/lib/elasticsearch/xpack/api/actions/index_lifecycle_management/start.rb +18 -5
- data/lib/elasticsearch/xpack/api/actions/index_lifecycle_management/stop.rb +18 -5
- data/lib/elasticsearch/xpack/api/actions/indices/create_data_stream.rb +50 -0
- data/lib/elasticsearch/xpack/api/actions/indices/data_streams_stats.rb +52 -0
- data/lib/elasticsearch/xpack/api/actions/indices/delete_data_stream.rb +50 -0
- data/lib/elasticsearch/xpack/api/actions/indices/freeze.rb +68 -0
- data/lib/elasticsearch/xpack/api/actions/indices/get_data_stream.rb +52 -0
- data/lib/elasticsearch/xpack/api/actions/indices/params_registry.rb +62 -0
- data/lib/elasticsearch/xpack/api/actions/indices/reload_search_analyzers.rb +62 -0
- data/lib/elasticsearch/xpack/api/actions/indices/unfreeze.rb +68 -0
- data/lib/elasticsearch/xpack/api/actions/info.rb +22 -7
- data/lib/elasticsearch/xpack/api/actions/license/delete.rb +18 -5
- data/lib/elasticsearch/xpack/api/actions/license/get.rb +18 -5
- data/lib/elasticsearch/xpack/api/actions/license/get_basic_status.rb +18 -5
- data/lib/elasticsearch/xpack/api/actions/license/get_trial_status.rb +18 -5
- data/lib/elasticsearch/xpack/api/actions/license/params_registry.rb +16 -3
- data/lib/elasticsearch/xpack/api/actions/license/post.rb +18 -5
- data/lib/elasticsearch/xpack/api/actions/license/post_start_basic.rb +18 -5
- data/lib/elasticsearch/xpack/api/actions/license/post_start_trial.rb +18 -5
- data/lib/elasticsearch/xpack/api/actions/machine_learning/close_job.rb +18 -5
- data/lib/elasticsearch/xpack/api/actions/machine_learning/delete_calendar.rb +18 -5
- data/lib/elasticsearch/xpack/api/actions/machine_learning/delete_calendar_event.rb +18 -5
- data/lib/elasticsearch/xpack/api/actions/machine_learning/delete_calendar_job.rb +18 -5
- data/lib/elasticsearch/xpack/api/actions/machine_learning/delete_data_frame_analytics.rb +25 -6
- data/lib/elasticsearch/xpack/api/actions/machine_learning/delete_datafeed.rb +18 -5
- data/lib/elasticsearch/xpack/api/actions/machine_learning/delete_expired_data.rb +39 -8
- data/lib/elasticsearch/xpack/api/actions/machine_learning/delete_filter.rb +18 -5
- data/lib/elasticsearch/xpack/api/actions/machine_learning/delete_forecast.rb +19 -6
- data/lib/elasticsearch/xpack/api/actions/machine_learning/delete_job.rb +18 -5
- data/lib/elasticsearch/xpack/api/actions/machine_learning/delete_model_snapshot.rb +18 -5
- data/lib/elasticsearch/xpack/api/actions/machine_learning/delete_trained_model.rb +22 -5
- data/lib/elasticsearch/xpack/api/actions/machine_learning/estimate_memory_usage.rb +17 -4
- data/lib/elasticsearch/xpack/api/actions/machine_learning/estimate_model_memory.rb +18 -5
- data/lib/elasticsearch/xpack/api/actions/machine_learning/evaluate_data_frame.rb +22 -5
- data/lib/elasticsearch/xpack/api/actions/machine_learning/explain_data_frame_analytics.rb +32 -10
- data/lib/elasticsearch/xpack/api/actions/machine_learning/find_file_structure.rb +23 -8
- data/lib/elasticsearch/xpack/api/actions/machine_learning/flush_job.rb +18 -5
- data/lib/elasticsearch/xpack/api/actions/machine_learning/forecast.rb +21 -6
- data/lib/elasticsearch/xpack/api/actions/machine_learning/get_buckets.rb +28 -10
- data/lib/elasticsearch/xpack/api/actions/machine_learning/get_calendar_events.rb +18 -5
- data/lib/elasticsearch/xpack/api/actions/machine_learning/get_calendars.rb +28 -10
- data/lib/elasticsearch/xpack/api/actions/machine_learning/get_categories.rb +31 -11
- data/lib/elasticsearch/xpack/api/actions/machine_learning/get_data_frame_analytics.rb +23 -6
- data/lib/elasticsearch/xpack/api/actions/machine_learning/get_data_frame_analytics_stats.rb +23 -6
- data/lib/elasticsearch/xpack/api/actions/machine_learning/get_datafeed_stats.rb +19 -6
- data/lib/elasticsearch/xpack/api/actions/machine_learning/get_datafeeds.rb +19 -6
- data/lib/elasticsearch/xpack/api/actions/machine_learning/get_filters.rb +19 -6
- data/lib/elasticsearch/xpack/api/actions/machine_learning/get_influencers.rb +25 -7
- data/lib/elasticsearch/xpack/api/actions/machine_learning/get_job_stats.rb +19 -6
- data/lib/elasticsearch/xpack/api/actions/machine_learning/get_jobs.rb +19 -6
- data/lib/elasticsearch/xpack/api/actions/machine_learning/get_model_snapshots.rb +28 -10
- data/lib/elasticsearch/xpack/api/actions/machine_learning/get_overall_buckets.rb +25 -7
- data/lib/elasticsearch/xpack/api/actions/machine_learning/get_records.rb +25 -7
- data/lib/elasticsearch/xpack/api/actions/machine_learning/get_trained_models.rb +26 -7
- data/lib/elasticsearch/xpack/api/actions/machine_learning/get_trained_models_stats.rb +23 -6
- data/lib/elasticsearch/xpack/api/actions/machine_learning/info.rb +18 -5
- data/lib/elasticsearch/xpack/api/actions/machine_learning/open_job.rb +18 -5
- data/lib/elasticsearch/xpack/api/actions/machine_learning/params_registry.rb +16 -3
- data/lib/elasticsearch/xpack/api/actions/machine_learning/post_calendar_events.rb +18 -5
- data/lib/elasticsearch/xpack/api/actions/machine_learning/post_data.rb +18 -5
- data/lib/elasticsearch/xpack/api/actions/machine_learning/preview_datafeed.rb +18 -5
- data/lib/elasticsearch/xpack/api/actions/machine_learning/put_calendar.rb +18 -5
- data/lib/elasticsearch/xpack/api/actions/machine_learning/put_calendar_job.rb +18 -5
- data/lib/elasticsearch/xpack/api/actions/machine_learning/put_data_frame_analytics.rb +22 -5
- data/lib/elasticsearch/xpack/api/actions/machine_learning/put_datafeed.rb +19 -8
- data/lib/elasticsearch/xpack/api/actions/machine_learning/put_filter.rb +18 -5
- data/lib/elasticsearch/xpack/api/actions/machine_learning/put_job.rb +18 -5
- data/lib/elasticsearch/xpack/api/actions/machine_learning/put_trained_model.rb +22 -5
- data/lib/elasticsearch/xpack/api/actions/machine_learning/revert_model_snapshot.rb +18 -5
- data/lib/elasticsearch/xpack/api/actions/machine_learning/set_upgrade_mode.rb +18 -5
- data/lib/elasticsearch/xpack/api/actions/machine_learning/start_data_frame_analytics.rb +22 -5
- data/lib/elasticsearch/xpack/api/actions/machine_learning/start_datafeed.rb +18 -5
- data/lib/elasticsearch/xpack/api/actions/machine_learning/stop_data_frame_analytics.rb +22 -5
- data/lib/elasticsearch/xpack/api/actions/machine_learning/stop_datafeed.rb +18 -5
- data/lib/elasticsearch/xpack/api/actions/machine_learning/update_data_frame_analytics.rb +56 -0
- data/lib/elasticsearch/xpack/api/actions/machine_learning/update_datafeed.rb +19 -8
- data/lib/elasticsearch/xpack/api/actions/machine_learning/update_filter.rb +18 -5
- data/lib/elasticsearch/xpack/api/actions/machine_learning/update_job.rb +18 -5
- data/lib/elasticsearch/xpack/api/actions/machine_learning/update_model_snapshot.rb +18 -5
- data/lib/elasticsearch/xpack/api/actions/machine_learning/validate.rb +18 -5
- data/lib/elasticsearch/xpack/api/actions/machine_learning/validate_detector.rb +18 -5
- data/lib/elasticsearch/xpack/api/actions/migration/deprecations.rb +19 -6
- data/lib/elasticsearch/xpack/api/actions/migration/params_registry.rb +16 -3
- data/lib/elasticsearch/xpack/api/actions/monitoring/bulk.rb +27 -9
- data/lib/elasticsearch/xpack/api/actions/monitoring/params_registry.rb +16 -3
- data/lib/elasticsearch/xpack/api/actions/params_registry.rb +16 -3
- data/lib/elasticsearch/xpack/api/actions/rollup/delete_job.rb +22 -5
- data/lib/elasticsearch/xpack/api/actions/rollup/get_jobs.rb +23 -6
- data/lib/elasticsearch/xpack/api/actions/rollup/get_rollup_caps.rb +23 -6
- data/lib/elasticsearch/xpack/api/actions/rollup/get_rollup_index_caps.rb +22 -5
- data/lib/elasticsearch/xpack/api/actions/rollup/params_registry.rb +16 -3
- data/lib/elasticsearch/xpack/api/actions/rollup/put_job.rb +22 -5
- data/lib/elasticsearch/xpack/api/actions/rollup/rollup_search.rb +25 -8
- data/lib/elasticsearch/xpack/api/actions/rollup/start_job.rb +22 -5
- data/lib/elasticsearch/xpack/api/actions/rollup/stop_job.rb +22 -5
- data/lib/elasticsearch/xpack/api/actions/searchable_snapshots/clear_cache.rb +70 -0
- data/lib/elasticsearch/xpack/api/actions/searchable_snapshots/mount.rb +70 -0
- data/lib/elasticsearch/xpack/api/actions/searchable_snapshots/params_registry.rb +62 -0
- data/lib/elasticsearch/xpack/api/actions/searchable_snapshots/repository_stats.rb +54 -0
- data/lib/elasticsearch/xpack/api/actions/searchable_snapshots/stats.rb +56 -0
- data/lib/elasticsearch/xpack/api/actions/security/authenticate.rb +18 -5
- data/lib/elasticsearch/xpack/api/actions/security/change_password.rb +20 -9
- data/lib/elasticsearch/xpack/api/actions/security/clear_cached_privileges.rb +50 -0
- data/lib/elasticsearch/xpack/api/actions/security/clear_cached_realms.rb +18 -5
- data/lib/elasticsearch/xpack/api/actions/security/clear_cached_roles.rb +18 -5
- data/lib/elasticsearch/xpack/api/actions/security/create_api_key.rb +19 -8
- data/lib/elasticsearch/xpack/api/actions/security/delete_privileges.rb +19 -8
- data/lib/elasticsearch/xpack/api/actions/security/delete_role.rb +19 -8
- data/lib/elasticsearch/xpack/api/actions/security/delete_role_mapping.rb +19 -8
- data/lib/elasticsearch/xpack/api/actions/security/delete_user.rb +19 -8
- data/lib/elasticsearch/xpack/api/actions/security/disable_user.rb +19 -8
- data/lib/elasticsearch/xpack/api/actions/security/enable_user.rb +19 -8
- data/lib/elasticsearch/xpack/api/actions/security/get_api_key.rb +18 -5
- data/lib/elasticsearch/xpack/api/actions/security/get_builtin_privileges.rb +18 -5
- data/lib/elasticsearch/xpack/api/actions/security/get_privileges.rb +19 -6
- data/lib/elasticsearch/xpack/api/actions/security/get_role.rb +19 -6
- data/lib/elasticsearch/xpack/api/actions/security/get_role_mapping.rb +19 -6
- data/lib/elasticsearch/xpack/api/actions/security/get_token.rb +18 -5
- data/lib/elasticsearch/xpack/api/actions/security/get_user.rb +19 -6
- data/lib/elasticsearch/xpack/api/actions/security/get_user_privileges.rb +18 -5
- data/lib/elasticsearch/xpack/api/actions/security/has_privileges.rb +20 -7
- data/lib/elasticsearch/xpack/api/actions/security/invalidate_api_key.rb +18 -5
- data/lib/elasticsearch/xpack/api/actions/security/invalidate_token.rb +18 -5
- data/lib/elasticsearch/xpack/api/actions/security/params_registry.rb +16 -3
- data/lib/elasticsearch/xpack/api/actions/security/put_privileges.rb +19 -8
- data/lib/elasticsearch/xpack/api/actions/security/put_role.rb +19 -8
- data/lib/elasticsearch/xpack/api/actions/security/put_role_mapping.rb +19 -8
- data/lib/elasticsearch/xpack/api/actions/security/put_user.rb +19 -8
- data/lib/elasticsearch/xpack/api/actions/snapshot_lifecycle_management/delete_lifecycle.rb +50 -0
- data/lib/elasticsearch/xpack/api/actions/snapshot_lifecycle_management/execute_lifecycle.rb +50 -0
- data/lib/elasticsearch/xpack/api/actions/snapshot_lifecycle_management/execute_retention.rb +45 -0
- data/lib/elasticsearch/xpack/api/actions/snapshot_lifecycle_management/get_lifecycle.rb +52 -0
- data/lib/elasticsearch/xpack/api/actions/snapshot_lifecycle_management/get_stats.rb +45 -0
- data/lib/elasticsearch/xpack/api/actions/snapshot_lifecycle_management/get_status.rb +45 -0
- data/lib/elasticsearch/xpack/api/actions/snapshot_lifecycle_management/params_registry.rb +62 -0
- data/lib/elasticsearch/xpack/api/actions/snapshot_lifecycle_management/put_lifecycle.rb +51 -0
- data/lib/elasticsearch/xpack/api/actions/snapshot_lifecycle_management/start.rb +45 -0
- data/lib/elasticsearch/xpack/api/actions/snapshot_lifecycle_management/stop.rb +45 -0
- data/lib/elasticsearch/xpack/api/actions/sql/clear_cursor.rb +18 -5
- data/lib/elasticsearch/xpack/api/actions/sql/params_registry.rb +16 -3
- data/lib/elasticsearch/xpack/api/actions/sql/query.rb +18 -5
- data/lib/elasticsearch/xpack/api/actions/sql/translate.rb +18 -5
- data/lib/elasticsearch/xpack/api/actions/ssl/certificates.rb +18 -5
- data/lib/elasticsearch/xpack/api/actions/ssl/params_registry.rb +16 -3
- data/lib/elasticsearch/xpack/api/actions/transform/delete_transform.rb +18 -5
- data/lib/elasticsearch/xpack/api/actions/transform/get_transform.rb +19 -6
- data/lib/elasticsearch/xpack/api/actions/transform/get_transform_stats.rb +18 -5
- data/lib/elasticsearch/xpack/api/actions/transform/params_registry.rb +16 -3
- data/lib/elasticsearch/xpack/api/actions/transform/preview_transform.rb +18 -5
- data/lib/elasticsearch/xpack/api/actions/transform/put_transform.rb +18 -5
- data/lib/elasticsearch/xpack/api/actions/transform/start_transform.rb +18 -5
- data/lib/elasticsearch/xpack/api/actions/transform/stop_transform.rb +18 -5
- data/lib/elasticsearch/xpack/api/actions/transform/update_transform.rb +19 -6
- data/lib/elasticsearch/xpack/api/actions/usage.rb +19 -6
- data/lib/elasticsearch/xpack/api/actions/watcher/ack_watch.rb +19 -6
- data/lib/elasticsearch/xpack/api/actions/watcher/activate_watch.rb +18 -5
- data/lib/elasticsearch/xpack/api/actions/watcher/deactivate_watch.rb +18 -5
- data/lib/elasticsearch/xpack/api/actions/watcher/delete_watch.rb +18 -5
- data/lib/elasticsearch/xpack/api/actions/watcher/execute_watch.rb +19 -6
- data/lib/elasticsearch/xpack/api/actions/watcher/get_watch.rb +18 -5
- data/lib/elasticsearch/xpack/api/actions/watcher/params_registry.rb +16 -3
- data/lib/elasticsearch/xpack/api/actions/watcher/put_watch.rb +18 -5
- data/lib/elasticsearch/xpack/api/actions/watcher/start.rb +18 -5
- data/lib/elasticsearch/xpack/api/actions/watcher/stats.rb +21 -12
- data/lib/elasticsearch/xpack/api/actions/watcher/stop.rb +18 -5
- data/lib/elasticsearch/xpack/api/namespace/async_search.rb +16 -4
- data/lib/elasticsearch/xpack/api/namespace/autoscaling.rb +34 -0
- data/lib/elasticsearch/xpack/api/namespace/cat.rb +16 -3
- data/lib/elasticsearch/xpack/api/namespace/cross_cluster_replication.rb +34 -0
- data/lib/elasticsearch/xpack/api/namespace/data_frame.rb +16 -3
- data/lib/elasticsearch/xpack/api/namespace/enrich.rb +34 -0
- data/lib/elasticsearch/xpack/api/namespace/eql.rb +34 -0
- data/lib/elasticsearch/xpack/api/namespace/graph.rb +16 -3
- data/lib/elasticsearch/xpack/api/namespace/index_lifecycle_management.rb +16 -3
- data/lib/elasticsearch/xpack/api/namespace/indices.rb +34 -0
- data/lib/elasticsearch/xpack/api/namespace/license.rb +16 -3
- data/lib/elasticsearch/xpack/api/namespace/machine_learning.rb +16 -3
- data/lib/elasticsearch/xpack/api/namespace/migration.rb +16 -3
- data/lib/elasticsearch/xpack/api/namespace/monitoring.rb +16 -3
- data/lib/elasticsearch/xpack/api/namespace/rollup.rb +16 -3
- data/lib/elasticsearch/xpack/api/namespace/searchable_snapshots.rb +34 -0
- data/lib/elasticsearch/xpack/api/namespace/security.rb +16 -3
- data/lib/elasticsearch/xpack/api/namespace/snapshot_lifecycle_management.rb +34 -0
- data/lib/elasticsearch/xpack/api/namespace/sql.rb +16 -3
- data/lib/elasticsearch/xpack/api/namespace/ssl.rb +16 -4
- data/lib/elasticsearch/xpack/api/namespace/transform.rb +16 -3
- data/lib/elasticsearch/xpack/api/namespace/watcher.rb +16 -3
- data/lib/elasticsearch/xpack/version.rb +17 -4
- metadata +63 -2
@@ -0,0 +1,70 @@
|
|
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
|
+
module Elasticsearch
|
19
|
+
module XPack
|
20
|
+
module API
|
21
|
+
module SearchableSnapshots
|
22
|
+
module Actions
|
23
|
+
# Clear the cache of searchable snapshots.
|
24
|
+
# This functionality is Experimental and may be changed or removed
|
25
|
+
# completely in a future release. Elastic will take a best effort approach
|
26
|
+
# to fix any issues, but experimental features are not subject to the
|
27
|
+
# support SLA of official GA features.
|
28
|
+
#
|
29
|
+
# @option arguments [List] :index A comma-separated list of index names
|
30
|
+
# @option arguments [Boolean] :ignore_unavailable Whether specified concrete indices should be ignored when unavailable (missing or closed)
|
31
|
+
# @option arguments [Boolean] :allow_no_indices Whether to ignore if a wildcard indices expression resolves into no concrete indices. (This includes `_all` string or when no indices have been specified)
|
32
|
+
# @option arguments [String] :expand_wildcards Whether to expand wildcard expression to concrete indices that are open, closed or both. (options: open, closed, none, all)
|
33
|
+
# @option arguments [List] :index A comma-separated list of index name to limit the operation
|
34
|
+
# @option arguments [Hash] :headers Custom HTTP headers
|
35
|
+
#
|
36
|
+
# @see https://www.elastic.co/guide/en/elasticsearch/reference/7.9/searchable-snapshots-api-clear-cache.html
|
37
|
+
#
|
38
|
+
def clear_cache(arguments = {})
|
39
|
+
headers = arguments.delete(:headers) || {}
|
40
|
+
|
41
|
+
arguments = arguments.clone
|
42
|
+
|
43
|
+
_index = arguments.delete(:index)
|
44
|
+
|
45
|
+
method = Elasticsearch::API::HTTP_POST
|
46
|
+
path = if _index
|
47
|
+
"#{Elasticsearch::API::Utils.__listify(_index)}/_searchable_snapshots/cache/clear"
|
48
|
+
else
|
49
|
+
"_searchable_snapshots/cache/clear"
|
50
|
+
end
|
51
|
+
params = Elasticsearch::API::Utils.__validate_and_extract_params arguments, ParamsRegistry.get(__method__)
|
52
|
+
|
53
|
+
body = nil
|
54
|
+
perform_request(method, path, params, body, headers).body
|
55
|
+
end
|
56
|
+
|
57
|
+
# Register this action with its valid params when the module is loaded.
|
58
|
+
#
|
59
|
+
# @since 6.2.0
|
60
|
+
ParamsRegistry.register(:clear_cache, [
|
61
|
+
:ignore_unavailable,
|
62
|
+
:allow_no_indices,
|
63
|
+
:expand_wildcards,
|
64
|
+
:index
|
65
|
+
].freeze)
|
66
|
+
end
|
67
|
+
end
|
68
|
+
end
|
69
|
+
end
|
70
|
+
end
|
@@ -0,0 +1,70 @@
|
|
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
|
+
module Elasticsearch
|
19
|
+
module XPack
|
20
|
+
module API
|
21
|
+
module SearchableSnapshots
|
22
|
+
module Actions
|
23
|
+
# Mount a snapshot as a searchable index.
|
24
|
+
# This functionality is Experimental and may be changed or removed
|
25
|
+
# completely in a future release. Elastic will take a best effort approach
|
26
|
+
# to fix any issues, but experimental features are not subject to the
|
27
|
+
# support SLA of official GA features.
|
28
|
+
#
|
29
|
+
# @option arguments [String] :repository The name of the repository containing the snapshot of the index to mount
|
30
|
+
# @option arguments [String] :snapshot The name of the snapshot of the index to mount
|
31
|
+
# @option arguments [Time] :master_timeout Explicit operation timeout for connection to master node
|
32
|
+
# @option arguments [Boolean] :wait_for_completion Should this request wait until the operation has completed before returning
|
33
|
+
# @option arguments [Hash] :headers Custom HTTP headers
|
34
|
+
# @option arguments [Hash] :body The restore configuration for mounting the snapshot as searchable (*Required*)
|
35
|
+
#
|
36
|
+
# @see https://www.elastic.co/guide/en/elasticsearch/reference/7.9/searchable-snapshots-api-mount-snapshot.html
|
37
|
+
#
|
38
|
+
def mount(arguments = {})
|
39
|
+
raise ArgumentError, "Required argument 'body' missing" unless arguments[:body]
|
40
|
+
raise ArgumentError, "Required argument 'repository' missing" unless arguments[:repository]
|
41
|
+
raise ArgumentError, "Required argument 'snapshot' missing" unless arguments[:snapshot]
|
42
|
+
|
43
|
+
headers = arguments.delete(:headers) || {}
|
44
|
+
|
45
|
+
arguments = arguments.clone
|
46
|
+
|
47
|
+
_repository = arguments.delete(:repository)
|
48
|
+
|
49
|
+
_snapshot = arguments.delete(:snapshot)
|
50
|
+
|
51
|
+
method = Elasticsearch::API::HTTP_POST
|
52
|
+
path = "_snapshot/#{Elasticsearch::API::Utils.__listify(_repository)}/#{Elasticsearch::API::Utils.__listify(_snapshot)}/_mount"
|
53
|
+
params = Elasticsearch::API::Utils.__validate_and_extract_params arguments, ParamsRegistry.get(__method__)
|
54
|
+
|
55
|
+
body = arguments[:body]
|
56
|
+
perform_request(method, path, params, body, headers).body
|
57
|
+
end
|
58
|
+
|
59
|
+
# Register this action with its valid params when the module is loaded.
|
60
|
+
#
|
61
|
+
# @since 6.2.0
|
62
|
+
ParamsRegistry.register(:mount, [
|
63
|
+
:master_timeout,
|
64
|
+
:wait_for_completion
|
65
|
+
].freeze)
|
66
|
+
end
|
67
|
+
end
|
68
|
+
end
|
69
|
+
end
|
70
|
+
end
|
@@ -0,0 +1,62 @@
|
|
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
|
+
module Elasticsearch
|
19
|
+
module XPack
|
20
|
+
module API
|
21
|
+
module SearchableSnapshots
|
22
|
+
module Actions
|
23
|
+
module ParamsRegistry
|
24
|
+
extend self
|
25
|
+
|
26
|
+
# A Mapping of all the actions to their list of valid params.
|
27
|
+
#
|
28
|
+
# @since 7.4.0
|
29
|
+
PARAMS = {}
|
30
|
+
|
31
|
+
# Register an action with its list of valid params.
|
32
|
+
#
|
33
|
+
# @example Register the action.
|
34
|
+
# ParamsRegistry.register(:benchmark, [ :verbose ])
|
35
|
+
#
|
36
|
+
# @param [ Symbol ] action The action to register.
|
37
|
+
# @param [ Array[Symbol] ] valid_params The list of valid params.
|
38
|
+
#
|
39
|
+
# @since 7.4.0
|
40
|
+
def register(action, valid_params)
|
41
|
+
PARAMS[action.to_sym] = valid_params
|
42
|
+
end
|
43
|
+
|
44
|
+
# Get the list of valid params for a given action.
|
45
|
+
#
|
46
|
+
# @example Get the list of valid params.
|
47
|
+
# ParamsRegistry.get(:benchmark)
|
48
|
+
#
|
49
|
+
# @param [ Symbol ] action The action.
|
50
|
+
#
|
51
|
+
# @return [ Array<Symbol> ] The list of valid params for the action.
|
52
|
+
#
|
53
|
+
# @since 7.4.0
|
54
|
+
def get(action)
|
55
|
+
PARAMS.fetch(action, [])
|
56
|
+
end
|
57
|
+
end
|
58
|
+
end
|
59
|
+
end
|
60
|
+
end
|
61
|
+
end
|
62
|
+
end
|
@@ -0,0 +1,54 @@
|
|
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
|
+
module Elasticsearch
|
19
|
+
module XPack
|
20
|
+
module API
|
21
|
+
module SearchableSnapshots
|
22
|
+
module Actions
|
23
|
+
# Retrieve usage statistics about a snapshot repository.
|
24
|
+
# This functionality is Experimental and may be changed or removed
|
25
|
+
# completely in a future release. Elastic will take a best effort approach
|
26
|
+
# to fix any issues, but experimental features are not subject to the
|
27
|
+
# support SLA of official GA features.
|
28
|
+
#
|
29
|
+
# @option arguments [String] :repository The repository for which to get the stats for
|
30
|
+
# @option arguments [Hash] :headers Custom HTTP headers
|
31
|
+
#
|
32
|
+
# @see https://www.elastic.co/guide/en/elasticsearch/reference/7.9/searchable-snapshots-repository-stats.html
|
33
|
+
#
|
34
|
+
def repository_stats(arguments = {})
|
35
|
+
raise ArgumentError, "Required argument 'repository' missing" unless arguments[:repository]
|
36
|
+
|
37
|
+
headers = arguments.delete(:headers) || {}
|
38
|
+
|
39
|
+
arguments = arguments.clone
|
40
|
+
|
41
|
+
_repository = arguments.delete(:repository)
|
42
|
+
|
43
|
+
method = Elasticsearch::API::HTTP_GET
|
44
|
+
path = "_snapshot/#{Elasticsearch::API::Utils.__listify(_repository)}/_stats"
|
45
|
+
params = {}
|
46
|
+
|
47
|
+
body = nil
|
48
|
+
perform_request(method, path, params, body, headers).body
|
49
|
+
end
|
50
|
+
end
|
51
|
+
end
|
52
|
+
end
|
53
|
+
end
|
54
|
+
end
|
@@ -0,0 +1,56 @@
|
|
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
|
+
module Elasticsearch
|
19
|
+
module XPack
|
20
|
+
module API
|
21
|
+
module SearchableSnapshots
|
22
|
+
module Actions
|
23
|
+
# Retrieve various statistics about searchable snapshots.
|
24
|
+
# This functionality is Experimental and may be changed or removed
|
25
|
+
# completely in a future release. Elastic will take a best effort approach
|
26
|
+
# to fix any issues, but experimental features are not subject to the
|
27
|
+
# support SLA of official GA features.
|
28
|
+
#
|
29
|
+
# @option arguments [List] :index A comma-separated list of index names
|
30
|
+
# @option arguments [Hash] :headers Custom HTTP headers
|
31
|
+
#
|
32
|
+
# @see https://www.elastic.co/guide/en/elasticsearch/reference/7.9/searchable-snapshots-api-stats.html
|
33
|
+
#
|
34
|
+
def stats(arguments = {})
|
35
|
+
headers = arguments.delete(:headers) || {}
|
36
|
+
|
37
|
+
arguments = arguments.clone
|
38
|
+
|
39
|
+
_index = arguments.delete(:index)
|
40
|
+
|
41
|
+
method = Elasticsearch::API::HTTP_GET
|
42
|
+
path = if _index
|
43
|
+
"#{Elasticsearch::API::Utils.__listify(_index)}/_searchable_snapshots/stats"
|
44
|
+
else
|
45
|
+
"_searchable_snapshots/stats"
|
46
|
+
end
|
47
|
+
params = {}
|
48
|
+
|
49
|
+
body = nil
|
50
|
+
perform_request(method, path, params, body, headers).body
|
51
|
+
end
|
52
|
+
end
|
53
|
+
end
|
54
|
+
end
|
55
|
+
end
|
56
|
+
end
|
@@ -1,6 +1,19 @@
|
|
1
|
-
# Licensed to Elasticsearch B.V under one or more
|
2
|
-
#
|
3
|
-
#
|
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.
|
4
17
|
|
5
18
|
module Elasticsearch
|
6
19
|
module XPack
|
@@ -11,7 +24,7 @@ module Elasticsearch
|
|
11
24
|
#
|
12
25
|
# @option arguments [Hash] :headers Custom HTTP headers
|
13
26
|
#
|
14
|
-
# @see https://www.elastic.co/guide/en/elasticsearch/reference/7.
|
27
|
+
# @see https://www.elastic.co/guide/en/elasticsearch/reference/7.9/security-api-authenticate.html
|
15
28
|
#
|
16
29
|
def authenticate(arguments = {})
|
17
30
|
headers = arguments.delete(:headers) || {}
|
@@ -25,8 +38,8 @@ module Elasticsearch
|
|
25
38
|
body = nil
|
26
39
|
perform_request(method, path, params, body, headers).body
|
27
40
|
end
|
41
|
+
end
|
28
42
|
end
|
29
43
|
end
|
30
|
-
end
|
31
44
|
end
|
32
45
|
end
|
@@ -1,6 +1,19 @@
|
|
1
|
-
# Licensed to Elasticsearch B.V under one or more
|
2
|
-
#
|
3
|
-
#
|
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.
|
4
17
|
|
5
18
|
module Elasticsearch
|
6
19
|
module XPack
|
@@ -10,13 +23,11 @@ module Elasticsearch
|
|
10
23
|
# Changes the passwords of users in the native realm and built-in users.
|
11
24
|
#
|
12
25
|
# @option arguments [String] :username The username of the user to change the password for
|
13
|
-
# @option arguments [String] :refresh If `true` (the default) then refresh the affected shards to make this operation visible to search, if `wait_for` then wait for a refresh to make this operation visible to search, if `false` then do nothing with refreshes.
|
14
|
-
# (options: true,false,wait_for)
|
15
|
-
|
26
|
+
# @option arguments [String] :refresh If `true` (the default) then refresh the affected shards to make this operation visible to search, if `wait_for` then wait for a refresh to make this operation visible to search, if `false` then do nothing with refreshes. (options: true, false, wait_for)
|
16
27
|
# @option arguments [Hash] :headers Custom HTTP headers
|
17
28
|
# @option arguments [Hash] :body the new password for the user (*Required*)
|
18
29
|
#
|
19
|
-
# @see https://www.elastic.co/guide/en/elasticsearch/reference/7.
|
30
|
+
# @see https://www.elastic.co/guide/en/elasticsearch/reference/7.9/security-api-change-password.html
|
20
31
|
#
|
21
32
|
def change_password(arguments = {})
|
22
33
|
raise ArgumentError, "Required argument 'body' missing" unless arguments[:body]
|
@@ -32,7 +43,7 @@ module Elasticsearch
|
|
32
43
|
"_security/user/#{Elasticsearch::API::Utils.__listify(_username)}/_password"
|
33
44
|
else
|
34
45
|
"_security/user/_password"
|
35
|
-
|
46
|
+
end
|
36
47
|
params = Elasticsearch::API::Utils.__validate_and_extract_params arguments, ParamsRegistry.get(__method__)
|
37
48
|
|
38
49
|
body = arguments[:body]
|
@@ -45,8 +56,8 @@ module Elasticsearch
|
|
45
56
|
ParamsRegistry.register(:change_password, [
|
46
57
|
:refresh
|
47
58
|
].freeze)
|
59
|
+
end
|
48
60
|
end
|
49
61
|
end
|
50
|
-
end
|
51
62
|
end
|
52
63
|
end
|
@@ -0,0 +1,50 @@
|
|
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
|
+
module Elasticsearch
|
19
|
+
module XPack
|
20
|
+
module API
|
21
|
+
module Security
|
22
|
+
module Actions
|
23
|
+
# Evicts application privileges from the native application privileges cache.
|
24
|
+
#
|
25
|
+
# @option arguments [List] :application A comma-separated list of application names
|
26
|
+
# @option arguments [Hash] :headers Custom HTTP headers
|
27
|
+
#
|
28
|
+
# @see https://www.elastic.co/guide/en/elasticsearch/reference/7.9/security-api-clear-privilege-cache.html
|
29
|
+
#
|
30
|
+
def clear_cached_privileges(arguments = {})
|
31
|
+
raise ArgumentError, "Required argument 'application' missing" unless arguments[:application]
|
32
|
+
|
33
|
+
headers = arguments.delete(:headers) || {}
|
34
|
+
|
35
|
+
arguments = arguments.clone
|
36
|
+
|
37
|
+
_application = arguments.delete(:application)
|
38
|
+
|
39
|
+
method = Elasticsearch::API::HTTP_POST
|
40
|
+
path = "_security/privilege/#{Elasticsearch::API::Utils.__listify(_application)}/_clear_cache"
|
41
|
+
params = {}
|
42
|
+
|
43
|
+
body = nil
|
44
|
+
perform_request(method, path, params, body, headers).body
|
45
|
+
end
|
46
|
+
end
|
47
|
+
end
|
48
|
+
end
|
49
|
+
end
|
50
|
+
end
|