elasticsearch-xpack 7.6.0 → 7.7.0.pre
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/lib/elasticsearch/xpack.rb +12 -0
- data/lib/elasticsearch/xpack/api/actions/async_search/delete.rb +37 -0
- data/lib/elasticsearch/xpack/api/actions/async_search/get.rb +49 -0
- data/lib/elasticsearch/xpack/api/actions/async_search/params_registry.rb +49 -0
- data/lib/elasticsearch/xpack/api/actions/async_search/submit.rb +136 -0
- data/lib/elasticsearch/xpack/api/actions/cat/ml_data_frame_analytics.rb +65 -0
- data/lib/elasticsearch/xpack/api/actions/cat/ml_datafeeds.rb +61 -0
- data/lib/elasticsearch/xpack/api/actions/cat/ml_jobs.rb +65 -0
- data/lib/elasticsearch/xpack/api/actions/cat/ml_trained_models.rb +69 -0
- data/lib/elasticsearch/xpack/api/actions/cat/params_registry.rb +49 -0
- data/lib/elasticsearch/xpack/api/actions/cat/transform.rb +64 -0
- data/lib/elasticsearch/xpack/api/actions/cat/transforms.rb +65 -0
- data/lib/elasticsearch/xpack/api/actions/data_frame_transform_deprecated/delete_transform.rb +5 -4
- data/lib/elasticsearch/xpack/api/actions/data_frame_transform_deprecated/get_transform.rb +6 -5
- data/lib/elasticsearch/xpack/api/actions/data_frame_transform_deprecated/get_transform_stats.rb +5 -4
- data/lib/elasticsearch/xpack/api/actions/data_frame_transform_deprecated/preview_transform.rb +6 -3
- data/lib/elasticsearch/xpack/api/actions/data_frame_transform_deprecated/put_transform.rb +5 -4
- data/lib/elasticsearch/xpack/api/actions/data_frame_transform_deprecated/start_transform.rb +5 -4
- data/lib/elasticsearch/xpack/api/actions/data_frame_transform_deprecated/stop_transform.rb +5 -4
- data/lib/elasticsearch/xpack/api/actions/data_frame_transform_deprecated/update_transform.rb +5 -4
- data/lib/elasticsearch/xpack/api/actions/graph/explore.rb +5 -4
- data/lib/elasticsearch/xpack/api/actions/index_lifecycle_management/delete_lifecycle.rb +5 -4
- data/lib/elasticsearch/xpack/api/actions/index_lifecycle_management/explain_lifecycle.rb +5 -4
- data/lib/elasticsearch/xpack/api/actions/index_lifecycle_management/get_lifecycle.rb +6 -5
- data/lib/elasticsearch/xpack/api/actions/index_lifecycle_management/get_status.rb +6 -3
- data/lib/elasticsearch/xpack/api/actions/index_lifecycle_management/move_to_step.rb +5 -4
- data/lib/elasticsearch/xpack/api/actions/index_lifecycle_management/put_lifecycle.rb +5 -4
- data/lib/elasticsearch/xpack/api/actions/index_lifecycle_management/remove_policy.rb +5 -4
- data/lib/elasticsearch/xpack/api/actions/index_lifecycle_management/retry.rb +5 -4
- data/lib/elasticsearch/xpack/api/actions/index_lifecycle_management/start.rb +6 -3
- data/lib/elasticsearch/xpack/api/actions/index_lifecycle_management/stop.rb +6 -3
- data/lib/elasticsearch/xpack/api/actions/info.rb +5 -4
- data/lib/elasticsearch/xpack/api/actions/license/delete.rb +6 -3
- data/lib/elasticsearch/xpack/api/actions/license/get.rb +5 -4
- data/lib/elasticsearch/xpack/api/actions/license/get_basic_status.rb +6 -3
- data/lib/elasticsearch/xpack/api/actions/license/get_trial_status.rb +6 -3
- data/lib/elasticsearch/xpack/api/actions/license/post.rb +5 -4
- data/lib/elasticsearch/xpack/api/actions/license/post_start_basic.rb +5 -4
- data/lib/elasticsearch/xpack/api/actions/license/post_start_trial.rb +5 -4
- data/lib/elasticsearch/xpack/api/actions/machine_learning/close_job.rb +6 -5
- data/lib/elasticsearch/xpack/api/actions/machine_learning/delete_calendar.rb +6 -5
- data/lib/elasticsearch/xpack/api/actions/machine_learning/delete_calendar_event.rb +6 -5
- data/lib/elasticsearch/xpack/api/actions/machine_learning/delete_calendar_job.rb +6 -5
- data/lib/elasticsearch/xpack/api/actions/machine_learning/delete_data_frame_analytics.rb +6 -5
- data/lib/elasticsearch/xpack/api/actions/machine_learning/delete_datafeed.rb +6 -5
- data/lib/elasticsearch/xpack/api/actions/machine_learning/delete_expired_data.rb +7 -4
- data/lib/elasticsearch/xpack/api/actions/machine_learning/delete_filter.rb +6 -5
- data/lib/elasticsearch/xpack/api/actions/machine_learning/delete_forecast.rb +6 -5
- data/lib/elasticsearch/xpack/api/actions/machine_learning/delete_job.rb +6 -5
- data/lib/elasticsearch/xpack/api/actions/machine_learning/delete_model_snapshot.rb +6 -5
- data/lib/elasticsearch/xpack/api/actions/machine_learning/delete_trained_model.rb +5 -4
- data/lib/elasticsearch/xpack/api/actions/machine_learning/estimate_model_memory.rb +35 -0
- data/lib/elasticsearch/xpack/api/actions/machine_learning/evaluate_data_frame.rb +7 -4
- data/lib/elasticsearch/xpack/api/actions/machine_learning/explain_data_frame_analytics.rb +6 -5
- data/lib/elasticsearch/xpack/api/actions/machine_learning/find_file_structure.rb +6 -5
- data/lib/elasticsearch/xpack/api/actions/machine_learning/flush_job.rb +6 -5
- data/lib/elasticsearch/xpack/api/actions/machine_learning/forecast.rb +6 -5
- data/lib/elasticsearch/xpack/api/actions/machine_learning/get_buckets.rb +6 -5
- data/lib/elasticsearch/xpack/api/actions/machine_learning/get_calendar_events.rb +6 -5
- data/lib/elasticsearch/xpack/api/actions/machine_learning/get_calendars.rb +7 -6
- data/lib/elasticsearch/xpack/api/actions/machine_learning/get_categories.rb +6 -5
- data/lib/elasticsearch/xpack/api/actions/machine_learning/get_data_frame_analytics.rb +7 -6
- data/lib/elasticsearch/xpack/api/actions/machine_learning/get_data_frame_analytics_stats.rb +7 -6
- data/lib/elasticsearch/xpack/api/actions/machine_learning/get_datafeed_stats.rb +7 -6
- data/lib/elasticsearch/xpack/api/actions/machine_learning/get_datafeeds.rb +7 -6
- data/lib/elasticsearch/xpack/api/actions/machine_learning/get_filters.rb +7 -6
- data/lib/elasticsearch/xpack/api/actions/machine_learning/get_influencers.rb +7 -6
- data/lib/elasticsearch/xpack/api/actions/machine_learning/get_job_stats.rb +7 -6
- data/lib/elasticsearch/xpack/api/actions/machine_learning/get_jobs.rb +7 -6
- data/lib/elasticsearch/xpack/api/actions/machine_learning/get_model_snapshots.rb +6 -5
- data/lib/elasticsearch/xpack/api/actions/machine_learning/get_overall_buckets.rb +6 -5
- data/lib/elasticsearch/xpack/api/actions/machine_learning/get_records.rb +8 -7
- data/lib/elasticsearch/xpack/api/actions/machine_learning/get_trained_models.rb +9 -6
- data/lib/elasticsearch/xpack/api/actions/machine_learning/get_trained_models_stats.rb +6 -5
- data/lib/elasticsearch/xpack/api/actions/machine_learning/info.rb +7 -4
- data/lib/elasticsearch/xpack/api/actions/machine_learning/open_job.rb +6 -5
- data/lib/elasticsearch/xpack/api/actions/machine_learning/post_calendar_events.rb +6 -5
- data/lib/elasticsearch/xpack/api/actions/machine_learning/post_data.rb +6 -5
- data/lib/elasticsearch/xpack/api/actions/machine_learning/preview_datafeed.rb +6 -5
- data/lib/elasticsearch/xpack/api/actions/machine_learning/put_calendar.rb +6 -5
- data/lib/elasticsearch/xpack/api/actions/machine_learning/put_calendar_job.rb +6 -5
- data/lib/elasticsearch/xpack/api/actions/machine_learning/put_data_frame_analytics.rb +6 -5
- data/lib/elasticsearch/xpack/api/actions/machine_learning/put_datafeed.rb +22 -5
- data/lib/elasticsearch/xpack/api/actions/machine_learning/put_filter.rb +6 -5
- data/lib/elasticsearch/xpack/api/actions/machine_learning/put_job.rb +6 -5
- data/lib/elasticsearch/xpack/api/actions/machine_learning/put_trained_model.rb +6 -5
- data/lib/elasticsearch/xpack/api/actions/machine_learning/revert_model_snapshot.rb +6 -5
- data/lib/elasticsearch/xpack/api/actions/machine_learning/set_upgrade_mode.rb +6 -5
- data/lib/elasticsearch/xpack/api/actions/machine_learning/start_data_frame_analytics.rb +6 -5
- data/lib/elasticsearch/xpack/api/actions/machine_learning/start_datafeed.rb +6 -5
- data/lib/elasticsearch/xpack/api/actions/machine_learning/stop_data_frame_analytics.rb +6 -5
- data/lib/elasticsearch/xpack/api/actions/machine_learning/stop_datafeed.rb +6 -5
- data/lib/elasticsearch/xpack/api/actions/machine_learning/update_datafeed.rb +22 -5
- data/lib/elasticsearch/xpack/api/actions/machine_learning/update_filter.rb +6 -5
- data/lib/elasticsearch/xpack/api/actions/machine_learning/update_job.rb +6 -5
- data/lib/elasticsearch/xpack/api/actions/machine_learning/update_model_snapshot.rb +6 -5
- data/lib/elasticsearch/xpack/api/actions/machine_learning/validate.rb +6 -3
- data/lib/elasticsearch/xpack/api/actions/machine_learning/validate_detector.rb +6 -3
- data/lib/elasticsearch/xpack/api/actions/migration/deprecations.rb +7 -6
- data/lib/elasticsearch/xpack/api/actions/monitoring/bulk.rb +6 -4
- data/lib/elasticsearch/xpack/api/actions/rollup/delete_job.rb +6 -5
- data/lib/elasticsearch/xpack/api/actions/rollup/get_jobs.rb +7 -6
- data/lib/elasticsearch/xpack/api/actions/rollup/get_rollup_caps.rb +7 -6
- data/lib/elasticsearch/xpack/api/actions/rollup/get_rollup_index_caps.rb +6 -5
- data/lib/elasticsearch/xpack/api/actions/rollup/put_job.rb +6 -5
- data/lib/elasticsearch/xpack/api/actions/rollup/rollup_search.rb +6 -5
- data/lib/elasticsearch/xpack/api/actions/rollup/start_job.rb +6 -5
- data/lib/elasticsearch/xpack/api/actions/rollup/stop_job.rb +6 -5
- data/lib/elasticsearch/xpack/api/actions/security/authenticate.rb +6 -3
- data/lib/elasticsearch/xpack/api/actions/security/change_password.rb +5 -3
- data/lib/elasticsearch/xpack/api/actions/security/clear_cached_realms.rb +5 -4
- data/lib/elasticsearch/xpack/api/actions/security/clear_cached_roles.rb +5 -4
- data/lib/elasticsearch/xpack/api/actions/security/create_api_key.rb +5 -3
- data/lib/elasticsearch/xpack/api/actions/security/delete_privileges.rb +6 -4
- data/lib/elasticsearch/xpack/api/actions/security/delete_role.rb +5 -3
- data/lib/elasticsearch/xpack/api/actions/security/delete_role_mapping.rb +5 -3
- data/lib/elasticsearch/xpack/api/actions/security/delete_user.rb +5 -3
- data/lib/elasticsearch/xpack/api/actions/security/disable_user.rb +5 -3
- data/lib/elasticsearch/xpack/api/actions/security/enable_user.rb +5 -3
- data/lib/elasticsearch/xpack/api/actions/security/get_api_key.rb +5 -4
- data/lib/elasticsearch/xpack/api/actions/security/get_builtin_privileges.rb +6 -3
- data/lib/elasticsearch/xpack/api/actions/security/get_privileges.rb +6 -5
- data/lib/elasticsearch/xpack/api/actions/security/get_role.rb +7 -6
- data/lib/elasticsearch/xpack/api/actions/security/get_role_mapping.rb +6 -5
- data/lib/elasticsearch/xpack/api/actions/security/get_token.rb +6 -3
- data/lib/elasticsearch/xpack/api/actions/security/get_user.rb +7 -6
- data/lib/elasticsearch/xpack/api/actions/security/get_user_privileges.rb +6 -3
- data/lib/elasticsearch/xpack/api/actions/security/has_privileges.rb +5 -4
- data/lib/elasticsearch/xpack/api/actions/security/invalidate_api_key.rb +6 -3
- data/lib/elasticsearch/xpack/api/actions/security/invalidate_token.rb +6 -3
- data/lib/elasticsearch/xpack/api/actions/security/put_privileges.rb +6 -4
- data/lib/elasticsearch/xpack/api/actions/security/put_role.rb +5 -3
- data/lib/elasticsearch/xpack/api/actions/security/put_role_mapping.rb +5 -3
- data/lib/elasticsearch/xpack/api/actions/security/put_user.rb +5 -3
- data/lib/elasticsearch/xpack/api/actions/sql/clear_cursor.rb +7 -4
- data/lib/elasticsearch/xpack/api/actions/sql/query.rb +6 -5
- data/lib/elasticsearch/xpack/api/actions/sql/translate.rb +7 -4
- data/lib/elasticsearch/xpack/api/actions/ssl/certificates.rb +6 -3
- data/lib/elasticsearch/xpack/api/actions/transform/delete_transform.rb +45 -0
- data/lib/elasticsearch/xpack/api/actions/transform/get_transform.rb +51 -0
- data/lib/elasticsearch/xpack/api/actions/transform/get_transform_stats.rb +49 -0
- data/lib/elasticsearch/xpack/api/actions/transform/params_registry.rb +49 -0
- data/lib/elasticsearch/xpack/api/actions/transform/preview_transform.rb +35 -0
- data/lib/elasticsearch/xpack/api/actions/transform/put_transform.rb +47 -0
- data/lib/elasticsearch/xpack/api/actions/transform/start_transform.rb +45 -0
- data/lib/elasticsearch/xpack/api/actions/transform/stop_transform.rb +53 -0
- data/lib/elasticsearch/xpack/api/actions/transform/update_transform.rb +47 -0
- data/lib/elasticsearch/xpack/api/actions/usage.rb +5 -4
- data/lib/elasticsearch/xpack/api/actions/watcher/ack_watch.rb +6 -5
- data/lib/elasticsearch/xpack/api/actions/watcher/activate_watch.rb +5 -4
- data/lib/elasticsearch/xpack/api/actions/watcher/deactivate_watch.rb +5 -4
- data/lib/elasticsearch/xpack/api/actions/watcher/delete_watch.rb +7 -6
- data/lib/elasticsearch/xpack/api/actions/watcher/execute_watch.rb +7 -6
- data/lib/elasticsearch/xpack/api/actions/watcher/get_watch.rb +6 -5
- data/lib/elasticsearch/xpack/api/actions/watcher/put_watch.rb +6 -5
- data/lib/elasticsearch/xpack/api/actions/watcher/start.rb +7 -4
- data/lib/elasticsearch/xpack/api/actions/watcher/stats.rb +7 -6
- data/lib/elasticsearch/xpack/api/actions/watcher/stop.rb +7 -4
- data/lib/elasticsearch/xpack/api/namespace/async_search.rb +22 -0
- data/lib/elasticsearch/xpack/api/namespace/cat.rb +21 -0
- data/lib/elasticsearch/xpack/api/namespace/transform.rb +22 -0
- data/lib/elasticsearch/xpack/version.rb +1 -1
- metadata +28 -4
@@ -7,14 +7,13 @@ module Elasticsearch
|
|
7
7
|
module API
|
8
8
|
module DataFrameTransformDeprecated
|
9
9
|
module Actions
|
10
|
-
#
|
11
|
-
|
10
|
+
# Stops one or more transforms.
|
12
11
|
#
|
13
12
|
# @option arguments [String] :transform_id The id of the transform to stop
|
14
13
|
# @option arguments [Boolean] :wait_for_completion Whether to wait for the transform to fully stop before returning or not. Default to false
|
15
14
|
# @option arguments [Time] :timeout Controls the time to wait until the transform has stopped. Default to 30 seconds
|
16
15
|
# @option arguments [Boolean] :allow_no_match Whether to ignore if a wildcard expression matches no transforms. (This includes `_all` string or when no transforms have been specified)
|
17
|
-
|
16
|
+
# @option arguments [Hash] :headers Custom HTTP headers
|
18
17
|
#
|
19
18
|
# *Deprecation notice*:
|
20
19
|
# [_data_frame/transforms/] is deprecated, use [_transform/] in the future.
|
@@ -26,6 +25,8 @@ module Elasticsearch
|
|
26
25
|
def stop_transform(arguments = {})
|
27
26
|
raise ArgumentError, "Required argument 'transform_id' missing" unless arguments[:transform_id]
|
28
27
|
|
28
|
+
headers = arguments.delete(:headers) || {}
|
29
|
+
|
29
30
|
arguments = arguments.clone
|
30
31
|
|
31
32
|
_transform_id = arguments.delete(:transform_id)
|
@@ -35,7 +36,7 @@ module Elasticsearch
|
|
35
36
|
params = Elasticsearch::API::Utils.__validate_and_extract_params arguments, ParamsRegistry.get(__method__)
|
36
37
|
|
37
38
|
body = nil
|
38
|
-
perform_request(method, path, params, body).body
|
39
|
+
perform_request(method, path, params, body, headers).body
|
39
40
|
end
|
40
41
|
|
41
42
|
# Register this action with its valid params when the module is loaded.
|
data/lib/elasticsearch/xpack/api/actions/data_frame_transform_deprecated/update_transform.rb
CHANGED
@@ -7,12 +7,11 @@ module Elasticsearch
|
|
7
7
|
module API
|
8
8
|
module DataFrameTransformDeprecated
|
9
9
|
module Actions
|
10
|
-
#
|
11
|
-
|
10
|
+
# Updates certain properties of a transform.
|
12
11
|
#
|
13
12
|
# @option arguments [String] :transform_id The id of the transform. (*Required*)
|
14
13
|
# @option arguments [Boolean] :defer_validation If validations should be deferred until transform starts, defaults to false.
|
15
|
-
|
14
|
+
# @option arguments [Hash] :headers Custom HTTP headers
|
16
15
|
# @option arguments [Hash] :body The update transform definition (*Required*)
|
17
16
|
#
|
18
17
|
# *Deprecation notice*:
|
@@ -26,6 +25,8 @@ module Elasticsearch
|
|
26
25
|
raise ArgumentError, "Required argument 'body' missing" unless arguments[:body]
|
27
26
|
raise ArgumentError, "Required argument 'transform_id' missing" unless arguments[:transform_id]
|
28
27
|
|
28
|
+
headers = arguments.delete(:headers) || {}
|
29
|
+
|
29
30
|
arguments = arguments.clone
|
30
31
|
|
31
32
|
_transform_id = arguments.delete(:transform_id)
|
@@ -35,7 +36,7 @@ module Elasticsearch
|
|
35
36
|
params = Elasticsearch::API::Utils.__validate_and_extract_params arguments, ParamsRegistry.get(__method__)
|
36
37
|
|
37
38
|
body = arguments[:body]
|
38
|
-
perform_request(method, path, params, body).body
|
39
|
+
perform_request(method, path, params, body, headers).body
|
39
40
|
end
|
40
41
|
|
41
42
|
# Register this action with its valid params when the module is loaded.
|
@@ -7,14 +7,13 @@ module Elasticsearch
|
|
7
7
|
module API
|
8
8
|
module Graph
|
9
9
|
module Actions
|
10
|
-
#
|
11
|
-
|
10
|
+
# Explore extracted and summarized information about the documents and terms in an index.
|
12
11
|
#
|
13
12
|
# @option arguments [List] :index A comma-separated list of index names to search; use `_all` or empty string to perform the operation on all indices
|
14
13
|
# @option arguments [List] :type A comma-separated list of document types to search; leave empty to perform the operation on all types *Deprecated*
|
15
14
|
# @option arguments [String] :routing Specific routing value
|
16
15
|
# @option arguments [Time] :timeout Explicit operation timeout
|
17
|
-
|
16
|
+
# @option arguments [Hash] :headers Custom HTTP headers
|
18
17
|
# @option arguments [Hash] :body Graph Query DSL
|
19
18
|
#
|
20
19
|
# *Deprecation notice*:
|
@@ -27,6 +26,8 @@ module Elasticsearch
|
|
27
26
|
def explore(arguments = {})
|
28
27
|
raise ArgumentError, "Required argument 'index' missing" unless arguments[:index]
|
29
28
|
|
29
|
+
headers = arguments.delete(:headers) || {}
|
30
|
+
|
30
31
|
arguments = arguments.clone
|
31
32
|
|
32
33
|
_index = arguments.delete(:index)
|
@@ -42,7 +43,7 @@ module Elasticsearch
|
|
42
43
|
params = Elasticsearch::API::Utils.__validate_and_extract_params arguments, ParamsRegistry.get(__method__)
|
43
44
|
|
44
45
|
body = arguments[:body]
|
45
|
-
perform_request(method, path, params, body).body
|
46
|
+
perform_request(method, path, params, body, headers).body
|
46
47
|
end
|
47
48
|
|
48
49
|
# Register this action with its valid params when the module is loaded.
|
@@ -7,17 +7,18 @@ module Elasticsearch
|
|
7
7
|
module API
|
8
8
|
module IndexLifecycleManagement
|
9
9
|
module Actions
|
10
|
-
#
|
11
|
-
|
10
|
+
# Deletes the specified lifecycle policy definition. A currently used policy cannot be deleted.
|
12
11
|
#
|
13
12
|
# @option arguments [String] :policy The name of the index lifecycle policy
|
14
|
-
|
13
|
+
# @option arguments [Hash] :headers Custom HTTP headers
|
15
14
|
#
|
16
15
|
# @see https://www.elastic.co/guide/en/elasticsearch/reference/current/ilm-delete-lifecycle.html
|
17
16
|
#
|
18
17
|
def delete_lifecycle(arguments = {})
|
19
18
|
raise ArgumentError, "Required argument 'policy' missing" unless arguments[:policy]
|
20
19
|
|
20
|
+
headers = arguments.delete(:headers) || {}
|
21
|
+
|
21
22
|
arguments = arguments.clone
|
22
23
|
|
23
24
|
_policy = arguments.delete(:policy)
|
@@ -27,7 +28,7 @@ module Elasticsearch
|
|
27
28
|
params = {}
|
28
29
|
|
29
30
|
body = nil
|
30
|
-
perform_request(method, path, params, body).body
|
31
|
+
perform_request(method, path, params, body, headers).body
|
31
32
|
end
|
32
33
|
end
|
33
34
|
end
|
@@ -7,19 +7,20 @@ module Elasticsearch
|
|
7
7
|
module API
|
8
8
|
module IndexLifecycleManagement
|
9
9
|
module Actions
|
10
|
-
#
|
11
|
-
|
10
|
+
# Retrieves information about the index's current lifecycle state, such as the currently executing phase, action, and step.
|
12
11
|
#
|
13
12
|
# @option arguments [String] :index The name of the index to explain
|
14
13
|
# @option arguments [Boolean] :only_managed filters the indices included in the response to ones managed by ILM
|
15
14
|
# @option arguments [Boolean] :only_errors filters the indices included in the response to ones in an ILM error state, implies only_managed
|
16
|
-
|
15
|
+
# @option arguments [Hash] :headers Custom HTTP headers
|
17
16
|
#
|
18
17
|
# @see https://www.elastic.co/guide/en/elasticsearch/reference/current/ilm-explain-lifecycle.html
|
19
18
|
#
|
20
19
|
def explain_lifecycle(arguments = {})
|
21
20
|
raise ArgumentError, "Required argument 'index' missing" unless arguments[:index]
|
22
21
|
|
22
|
+
headers = arguments.delete(:headers) || {}
|
23
|
+
|
23
24
|
arguments = arguments.clone
|
24
25
|
|
25
26
|
_index = arguments.delete(:index)
|
@@ -29,7 +30,7 @@ module Elasticsearch
|
|
29
30
|
params = Elasticsearch::API::Utils.__validate_and_extract_params arguments, ParamsRegistry.get(__method__)
|
30
31
|
|
31
32
|
body = nil
|
32
|
-
perform_request(method, path, params, body).body
|
33
|
+
perform_request(method, path, params, body, headers).body
|
33
34
|
end
|
34
35
|
|
35
36
|
# Register this action with its valid params when the module is loaded.
|
@@ -7,15 +7,16 @@ module Elasticsearch
|
|
7
7
|
module API
|
8
8
|
module IndexLifecycleManagement
|
9
9
|
module Actions
|
10
|
-
#
|
11
|
-
|
10
|
+
# Returns the specified policy definition. Includes the policy version and last modified date.
|
12
11
|
#
|
13
12
|
# @option arguments [String] :policy The name of the index lifecycle policy
|
14
|
-
|
13
|
+
# @option arguments [Hash] :headers Custom HTTP headers
|
15
14
|
#
|
16
15
|
# @see https://www.elastic.co/guide/en/elasticsearch/reference/current/ilm-get-lifecycle.html
|
17
16
|
#
|
18
17
|
def get_lifecycle(arguments = {})
|
18
|
+
headers = arguments.delete(:headers) || {}
|
19
|
+
|
19
20
|
arguments = arguments.clone
|
20
21
|
|
21
22
|
_policy = arguments.delete(:policy)
|
@@ -25,11 +26,11 @@ module Elasticsearch
|
|
25
26
|
"_ilm/policy/#{Elasticsearch::API::Utils.__listify(_policy)}"
|
26
27
|
else
|
27
28
|
"_ilm/policy"
|
28
|
-
|
29
|
+
end
|
29
30
|
params = {}
|
30
31
|
|
31
32
|
body = nil
|
32
|
-
perform_request(method, path, params, body).body
|
33
|
+
perform_request(method, path, params, body, headers).body
|
33
34
|
end
|
34
35
|
end
|
35
36
|
end
|
@@ -7,12 +7,15 @@ module Elasticsearch
|
|
7
7
|
module API
|
8
8
|
module IndexLifecycleManagement
|
9
9
|
module Actions
|
10
|
-
#
|
11
|
-
|
10
|
+
# Retrieves the current index lifecycle management (ILM) status.
|
11
|
+
#
|
12
|
+
# @option arguments [Hash] :headers Custom HTTP headers
|
12
13
|
#
|
13
14
|
# @see https://www.elastic.co/guide/en/elasticsearch/reference/current/ilm-get-status.html
|
14
15
|
#
|
15
16
|
def get_status(arguments = {})
|
17
|
+
headers = arguments.delete(:headers) || {}
|
18
|
+
|
16
19
|
arguments = arguments.clone
|
17
20
|
|
18
21
|
method = Elasticsearch::API::HTTP_GET
|
@@ -20,7 +23,7 @@ module Elasticsearch
|
|
20
23
|
params = {}
|
21
24
|
|
22
25
|
body = nil
|
23
|
-
perform_request(method, path, params, body).body
|
26
|
+
perform_request(method, path, params, body, headers).body
|
24
27
|
end
|
25
28
|
end
|
26
29
|
end
|
@@ -7,11 +7,10 @@ module Elasticsearch
|
|
7
7
|
module API
|
8
8
|
module IndexLifecycleManagement
|
9
9
|
module Actions
|
10
|
-
#
|
11
|
-
|
10
|
+
# Manually moves an index into the specified step and executes that step.
|
12
11
|
#
|
13
12
|
# @option arguments [String] :index The name of the index whose lifecycle step is to change
|
14
|
-
|
13
|
+
# @option arguments [Hash] :headers Custom HTTP headers
|
15
14
|
# @option arguments [Hash] :body The new lifecycle step to move to
|
16
15
|
#
|
17
16
|
# @see https://www.elastic.co/guide/en/elasticsearch/reference/current/ilm-move-to-step.html
|
@@ -19,6 +18,8 @@ module Elasticsearch
|
|
19
18
|
def move_to_step(arguments = {})
|
20
19
|
raise ArgumentError, "Required argument 'index' missing" unless arguments[:index]
|
21
20
|
|
21
|
+
headers = arguments.delete(:headers) || {}
|
22
|
+
|
22
23
|
arguments = arguments.clone
|
23
24
|
|
24
25
|
_index = arguments.delete(:index)
|
@@ -28,7 +29,7 @@ module Elasticsearch
|
|
28
29
|
params = {}
|
29
30
|
|
30
31
|
body = arguments[:body]
|
31
|
-
perform_request(method, path, params, body).body
|
32
|
+
perform_request(method, path, params, body, headers).body
|
32
33
|
end
|
33
34
|
end
|
34
35
|
end
|
@@ -7,11 +7,10 @@ module Elasticsearch
|
|
7
7
|
module API
|
8
8
|
module IndexLifecycleManagement
|
9
9
|
module Actions
|
10
|
-
#
|
11
|
-
|
10
|
+
# Creates a lifecycle policy
|
12
11
|
#
|
13
12
|
# @option arguments [String] :policy The name of the index lifecycle policy
|
14
|
-
|
13
|
+
# @option arguments [Hash] :headers Custom HTTP headers
|
15
14
|
# @option arguments [Hash] :body The lifecycle policy definition to register
|
16
15
|
#
|
17
16
|
# @see https://www.elastic.co/guide/en/elasticsearch/reference/current/ilm-put-lifecycle.html
|
@@ -19,6 +18,8 @@ module Elasticsearch
|
|
19
18
|
def put_lifecycle(arguments = {})
|
20
19
|
raise ArgumentError, "Required argument 'policy' missing" unless arguments[:policy]
|
21
20
|
|
21
|
+
headers = arguments.delete(:headers) || {}
|
22
|
+
|
22
23
|
arguments = arguments.clone
|
23
24
|
|
24
25
|
_policy = arguments.delete(:policy)
|
@@ -28,7 +29,7 @@ module Elasticsearch
|
|
28
29
|
params = {}
|
29
30
|
|
30
31
|
body = arguments[:body]
|
31
|
-
perform_request(method, path, params, body).body
|
32
|
+
perform_request(method, path, params, body, headers).body
|
32
33
|
end
|
33
34
|
end
|
34
35
|
end
|
@@ -7,17 +7,18 @@ module Elasticsearch
|
|
7
7
|
module API
|
8
8
|
module IndexLifecycleManagement
|
9
9
|
module Actions
|
10
|
-
#
|
11
|
-
|
10
|
+
# Removes the assigned lifecycle policy and stops managing the specified index
|
12
11
|
#
|
13
12
|
# @option arguments [String] :index The name of the index to remove policy on
|
14
|
-
|
13
|
+
# @option arguments [Hash] :headers Custom HTTP headers
|
15
14
|
#
|
16
15
|
# @see https://www.elastic.co/guide/en/elasticsearch/reference/current/ilm-remove-policy.html
|
17
16
|
#
|
18
17
|
def remove_policy(arguments = {})
|
19
18
|
raise ArgumentError, "Required argument 'index' missing" unless arguments[:index]
|
20
19
|
|
20
|
+
headers = arguments.delete(:headers) || {}
|
21
|
+
|
21
22
|
arguments = arguments.clone
|
22
23
|
|
23
24
|
_index = arguments.delete(:index)
|
@@ -27,7 +28,7 @@ module Elasticsearch
|
|
27
28
|
params = {}
|
28
29
|
|
29
30
|
body = nil
|
30
|
-
perform_request(method, path, params, body).body
|
31
|
+
perform_request(method, path, params, body, headers).body
|
31
32
|
end
|
32
33
|
end
|
33
34
|
end
|
@@ -7,17 +7,18 @@ module Elasticsearch
|
|
7
7
|
module API
|
8
8
|
module IndexLifecycleManagement
|
9
9
|
module Actions
|
10
|
-
#
|
11
|
-
|
10
|
+
# Retries executing the policy for an index that is in the ERROR step.
|
12
11
|
#
|
13
12
|
# @option arguments [String] :index The name of the indices (comma-separated) whose failed lifecycle step is to be retry
|
14
|
-
|
13
|
+
# @option arguments [Hash] :headers Custom HTTP headers
|
15
14
|
#
|
16
15
|
# @see https://www.elastic.co/guide/en/elasticsearch/reference/current/ilm-retry-policy.html
|
17
16
|
#
|
18
17
|
def retry(arguments = {})
|
19
18
|
raise ArgumentError, "Required argument 'index' missing" unless arguments[:index]
|
20
19
|
|
20
|
+
headers = arguments.delete(:headers) || {}
|
21
|
+
|
21
22
|
arguments = arguments.clone
|
22
23
|
|
23
24
|
_index = arguments.delete(:index)
|
@@ -27,7 +28,7 @@ module Elasticsearch
|
|
27
28
|
params = {}
|
28
29
|
|
29
30
|
body = nil
|
30
|
-
perform_request(method, path, params, body).body
|
31
|
+
perform_request(method, path, params, body, headers).body
|
31
32
|
end
|
32
33
|
end
|
33
34
|
end
|
@@ -7,12 +7,15 @@ module Elasticsearch
|
|
7
7
|
module API
|
8
8
|
module IndexLifecycleManagement
|
9
9
|
module Actions
|
10
|
-
#
|
11
|
-
|
10
|
+
# Start the index lifecycle management (ILM) plugin.
|
11
|
+
#
|
12
|
+
# @option arguments [Hash] :headers Custom HTTP headers
|
12
13
|
#
|
13
14
|
# @see https://www.elastic.co/guide/en/elasticsearch/reference/current/ilm-start.html
|
14
15
|
#
|
15
16
|
def start(arguments = {})
|
17
|
+
headers = arguments.delete(:headers) || {}
|
18
|
+
|
16
19
|
arguments = arguments.clone
|
17
20
|
|
18
21
|
method = Elasticsearch::API::HTTP_POST
|
@@ -20,7 +23,7 @@ module Elasticsearch
|
|
20
23
|
params = {}
|
21
24
|
|
22
25
|
body = nil
|
23
|
-
perform_request(method, path, params, body).body
|
26
|
+
perform_request(method, path, params, body, headers).body
|
24
27
|
end
|
25
28
|
end
|
26
29
|
end
|
@@ -7,12 +7,15 @@ module Elasticsearch
|
|
7
7
|
module API
|
8
8
|
module IndexLifecycleManagement
|
9
9
|
module Actions
|
10
|
-
#
|
11
|
-
|
10
|
+
# Halts all lifecycle management operations and stops the index lifecycle management (ILM) plugin
|
11
|
+
#
|
12
|
+
# @option arguments [Hash] :headers Custom HTTP headers
|
12
13
|
#
|
13
14
|
# @see https://www.elastic.co/guide/en/elasticsearch/reference/current/ilm-stop.html
|
14
15
|
#
|
15
16
|
def stop(arguments = {})
|
17
|
+
headers = arguments.delete(:headers) || {}
|
18
|
+
|
16
19
|
arguments = arguments.clone
|
17
20
|
|
18
21
|
method = Elasticsearch::API::HTTP_POST
|
@@ -20,7 +23,7 @@ module Elasticsearch
|
|
20
23
|
params = {}
|
21
24
|
|
22
25
|
body = nil
|
23
|
-
perform_request(method, path, params, body).body
|
26
|
+
perform_request(method, path, params, body, headers).body
|
24
27
|
end
|
25
28
|
end
|
26
29
|
end
|
@@ -6,15 +6,16 @@ module Elasticsearch
|
|
6
6
|
module XPack
|
7
7
|
module API
|
8
8
|
module Actions
|
9
|
-
#
|
10
|
-
|
9
|
+
# Retrieves information about the installed X-Pack features.
|
11
10
|
#
|
12
11
|
# @option arguments [List] :categories Comma-separated list of info categories. Can be any of: build, license, features
|
13
|
-
|
12
|
+
# @option arguments [Hash] :headers Custom HTTP headers
|
14
13
|
#
|
15
14
|
# @see https://www.elastic.co/guide/en/elasticsearch/reference/current/info-api.html
|
16
15
|
#
|
17
16
|
def info(arguments = {})
|
17
|
+
headers = arguments.delete(:headers) || {}
|
18
|
+
|
18
19
|
arguments = arguments.clone
|
19
20
|
|
20
21
|
method = Elasticsearch::API::HTTP_GET
|
@@ -22,7 +23,7 @@ module Elasticsearch
|
|
22
23
|
params = Elasticsearch::API::Utils.__validate_and_extract_params arguments, ParamsRegistry.get(__method__)
|
23
24
|
|
24
25
|
body = nil
|
25
|
-
perform_request(method, path, params, body).body
|
26
|
+
perform_request(method, path, params, body, headers).body
|
26
27
|
end
|
27
28
|
|
28
29
|
# Register this action with its valid params when the module is loaded.
|
@@ -7,12 +7,15 @@ module Elasticsearch
|
|
7
7
|
module API
|
8
8
|
module License
|
9
9
|
module Actions
|
10
|
-
#
|
11
|
-
|
10
|
+
# Deletes licensing information for the cluster
|
11
|
+
#
|
12
|
+
# @option arguments [Hash] :headers Custom HTTP headers
|
12
13
|
#
|
13
14
|
# @see https://www.elastic.co/guide/en/elasticsearch/reference/master/delete-license.html
|
14
15
|
#
|
15
16
|
def delete(arguments = {})
|
17
|
+
headers = arguments.delete(:headers) || {}
|
18
|
+
|
16
19
|
arguments = arguments.clone
|
17
20
|
|
18
21
|
method = Elasticsearch::API::HTTP_DELETE
|
@@ -20,7 +23,7 @@ module Elasticsearch
|
|
20
23
|
params = {}
|
21
24
|
|
22
25
|
body = nil
|
23
|
-
perform_request(method, path, params, body).body
|
26
|
+
perform_request(method, path, params, body, headers).body
|
24
27
|
end
|
25
28
|
end
|
26
29
|
end
|