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,11 +7,10 @@ module Elasticsearch
|
|
7
7
|
module API
|
8
8
|
module Security
|
9
9
|
module Actions
|
10
|
-
#
|
11
|
-
|
10
|
+
# Determines whether the specified user has a specified list of privileges.
|
12
11
|
#
|
13
12
|
# @option arguments [String] :user Username
|
14
|
-
|
13
|
+
# @option arguments [Hash] :headers Custom HTTP headers
|
15
14
|
# @option arguments [Hash] :body The privileges to test (*Required*)
|
16
15
|
#
|
17
16
|
# @see https://www.elastic.co/guide/en/elasticsearch/reference/current/security-api-has-privileges.html
|
@@ -19,6 +18,8 @@ module Elasticsearch
|
|
19
18
|
def has_privileges(arguments = {})
|
20
19
|
raise ArgumentError, "Required argument 'body' missing" unless arguments[:body]
|
21
20
|
|
21
|
+
headers = arguments.delete(:headers) || {}
|
22
|
+
|
22
23
|
arguments = arguments.clone
|
23
24
|
|
24
25
|
_user = arguments.delete(:user)
|
@@ -32,7 +33,7 @@ module Elasticsearch
|
|
32
33
|
params = {}
|
33
34
|
|
34
35
|
body = arguments[:body]
|
35
|
-
perform_request(method, path, params, body).body
|
36
|
+
perform_request(method, path, params, body, headers).body
|
36
37
|
end
|
37
38
|
end
|
38
39
|
end
|
@@ -7,8 +7,9 @@ module Elasticsearch
|
|
7
7
|
module API
|
8
8
|
module Security
|
9
9
|
module Actions
|
10
|
-
#
|
11
|
-
|
10
|
+
# Invalidates one or more API keys.
|
11
|
+
#
|
12
|
+
# @option arguments [Hash] :headers Custom HTTP headers
|
12
13
|
# @option arguments [Hash] :body The api key request to invalidate API key(s) (*Required*)
|
13
14
|
#
|
14
15
|
# @see https://www.elastic.co/guide/en/elasticsearch/reference/current/security-api-invalidate-api-key.html
|
@@ -16,6 +17,8 @@ module Elasticsearch
|
|
16
17
|
def invalidate_api_key(arguments = {})
|
17
18
|
raise ArgumentError, "Required argument 'body' missing" unless arguments[:body]
|
18
19
|
|
20
|
+
headers = arguments.delete(:headers) || {}
|
21
|
+
|
19
22
|
arguments = arguments.clone
|
20
23
|
|
21
24
|
method = Elasticsearch::API::HTTP_DELETE
|
@@ -23,7 +26,7 @@ module Elasticsearch
|
|
23
26
|
params = {}
|
24
27
|
|
25
28
|
body = arguments[:body]
|
26
|
-
perform_request(method, path, params, body).body
|
29
|
+
perform_request(method, path, params, body, headers).body
|
27
30
|
end
|
28
31
|
end
|
29
32
|
end
|
@@ -7,8 +7,9 @@ module Elasticsearch
|
|
7
7
|
module API
|
8
8
|
module Security
|
9
9
|
module Actions
|
10
|
-
#
|
11
|
-
|
10
|
+
# Invalidates one or more access tokens or refresh tokens.
|
11
|
+
#
|
12
|
+
# @option arguments [Hash] :headers Custom HTTP headers
|
12
13
|
# @option arguments [Hash] :body The token to invalidate (*Required*)
|
13
14
|
#
|
14
15
|
# @see https://www.elastic.co/guide/en/elasticsearch/reference/current/security-api-invalidate-token.html
|
@@ -16,6 +17,8 @@ module Elasticsearch
|
|
16
17
|
def invalidate_token(arguments = {})
|
17
18
|
raise ArgumentError, "Required argument 'body' missing" unless arguments[:body]
|
18
19
|
|
20
|
+
headers = arguments.delete(:headers) || {}
|
21
|
+
|
19
22
|
arguments = arguments.clone
|
20
23
|
|
21
24
|
method = Elasticsearch::API::HTTP_DELETE
|
@@ -23,7 +26,7 @@ module Elasticsearch
|
|
23
26
|
params = {}
|
24
27
|
|
25
28
|
body = arguments[:body]
|
26
|
-
perform_request(method, path, params, body).body
|
29
|
+
perform_request(method, path, params, body, headers).body
|
27
30
|
end
|
28
31
|
end
|
29
32
|
end
|
@@ -7,19 +7,21 @@ module Elasticsearch
|
|
7
7
|
module API
|
8
8
|
module Security
|
9
9
|
module Actions
|
10
|
-
#
|
11
|
-
|
10
|
+
# Adds or updates application privileges.
|
12
11
|
#
|
13
12
|
# @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
13
|
# (options: true,false,wait_for)
|
15
14
|
|
15
|
+
# @option arguments [Hash] :headers Custom HTTP headers
|
16
16
|
# @option arguments [Hash] :body The privilege(s) to add (*Required*)
|
17
17
|
#
|
18
|
-
# @see
|
18
|
+
# @see https://www.elastic.co/guide/en/elasticsearch/reference/current/security-api-put-privileges.html
|
19
19
|
#
|
20
20
|
def put_privileges(arguments = {})
|
21
21
|
raise ArgumentError, "Required argument 'body' missing" unless arguments[:body]
|
22
22
|
|
23
|
+
headers = arguments.delete(:headers) || {}
|
24
|
+
|
23
25
|
arguments = arguments.clone
|
24
26
|
|
25
27
|
method = Elasticsearch::API::HTTP_PUT
|
@@ -27,7 +29,7 @@ module Elasticsearch
|
|
27
29
|
params = Elasticsearch::API::Utils.__validate_and_extract_params arguments, ParamsRegistry.get(__method__)
|
28
30
|
|
29
31
|
body = arguments[:body]
|
30
|
-
perform_request(method, path, params, body).body
|
32
|
+
perform_request(method, path, params, body, headers).body
|
31
33
|
end
|
32
34
|
|
33
35
|
# Register this action with its valid params when the module is loaded.
|
@@ -7,13 +7,13 @@ module Elasticsearch
|
|
7
7
|
module API
|
8
8
|
module Security
|
9
9
|
module Actions
|
10
|
-
#
|
11
|
-
|
10
|
+
# Adds and updates roles in the native realm.
|
12
11
|
#
|
13
12
|
# @option arguments [String] :name Role name
|
14
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.
|
15
14
|
# (options: true,false,wait_for)
|
16
15
|
|
16
|
+
# @option arguments [Hash] :headers Custom HTTP headers
|
17
17
|
# @option arguments [Hash] :body The role to add (*Required*)
|
18
18
|
#
|
19
19
|
# @see https://www.elastic.co/guide/en/elasticsearch/reference/current/security-api-put-role.html
|
@@ -22,6 +22,8 @@ module Elasticsearch
|
|
22
22
|
raise ArgumentError, "Required argument 'body' missing" unless arguments[:body]
|
23
23
|
raise ArgumentError, "Required argument 'name' missing" unless arguments[:name]
|
24
24
|
|
25
|
+
headers = arguments.delete(:headers) || {}
|
26
|
+
|
25
27
|
arguments = arguments.clone
|
26
28
|
|
27
29
|
_name = arguments.delete(:name)
|
@@ -31,7 +33,7 @@ module Elasticsearch
|
|
31
33
|
params = Elasticsearch::API::Utils.__validate_and_extract_params arguments, ParamsRegistry.get(__method__)
|
32
34
|
|
33
35
|
body = arguments[:body]
|
34
|
-
perform_request(method, path, params, body).body
|
36
|
+
perform_request(method, path, params, body, headers).body
|
35
37
|
end
|
36
38
|
|
37
39
|
# Register this action with its valid params when the module is loaded.
|
@@ -7,13 +7,13 @@ module Elasticsearch
|
|
7
7
|
module API
|
8
8
|
module Security
|
9
9
|
module Actions
|
10
|
-
#
|
11
|
-
|
10
|
+
# Creates and updates role mappings.
|
12
11
|
#
|
13
12
|
# @option arguments [String] :name Role-mapping name
|
14
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.
|
15
14
|
# (options: true,false,wait_for)
|
16
15
|
|
16
|
+
# @option arguments [Hash] :headers Custom HTTP headers
|
17
17
|
# @option arguments [Hash] :body The role mapping to add (*Required*)
|
18
18
|
#
|
19
19
|
# @see https://www.elastic.co/guide/en/elasticsearch/reference/current/security-api-put-role-mapping.html
|
@@ -22,6 +22,8 @@ module Elasticsearch
|
|
22
22
|
raise ArgumentError, "Required argument 'body' missing" unless arguments[:body]
|
23
23
|
raise ArgumentError, "Required argument 'name' missing" unless arguments[:name]
|
24
24
|
|
25
|
+
headers = arguments.delete(:headers) || {}
|
26
|
+
|
25
27
|
arguments = arguments.clone
|
26
28
|
|
27
29
|
_name = arguments.delete(:name)
|
@@ -31,7 +33,7 @@ module Elasticsearch
|
|
31
33
|
params = Elasticsearch::API::Utils.__validate_and_extract_params arguments, ParamsRegistry.get(__method__)
|
32
34
|
|
33
35
|
body = arguments[:body]
|
34
|
-
perform_request(method, path, params, body).body
|
36
|
+
perform_request(method, path, params, body, headers).body
|
35
37
|
end
|
36
38
|
|
37
39
|
# Register this action with its valid params when the module is loaded.
|
@@ -7,13 +7,13 @@ module Elasticsearch
|
|
7
7
|
module API
|
8
8
|
module Security
|
9
9
|
module Actions
|
10
|
-
#
|
11
|
-
|
10
|
+
# Adds and updates users in the native realm. These users are commonly referred to as native users.
|
12
11
|
#
|
13
12
|
# @option arguments [String] :username The username of the User
|
14
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.
|
15
14
|
# (options: true,false,wait_for)
|
16
15
|
|
16
|
+
# @option arguments [Hash] :headers Custom HTTP headers
|
17
17
|
# @option arguments [Hash] :body The user to add (*Required*)
|
18
18
|
#
|
19
19
|
# @see https://www.elastic.co/guide/en/elasticsearch/reference/current/security-api-put-user.html
|
@@ -22,6 +22,8 @@ module Elasticsearch
|
|
22
22
|
raise ArgumentError, "Required argument 'body' missing" unless arguments[:body]
|
23
23
|
raise ArgumentError, "Required argument 'username' missing" unless arguments[:username]
|
24
24
|
|
25
|
+
headers = arguments.delete(:headers) || {}
|
26
|
+
|
25
27
|
arguments = arguments.clone
|
26
28
|
|
27
29
|
_username = arguments.delete(:username)
|
@@ -31,7 +33,7 @@ module Elasticsearch
|
|
31
33
|
params = Elasticsearch::API::Utils.__validate_and_extract_params arguments, ParamsRegistry.get(__method__)
|
32
34
|
|
33
35
|
body = arguments[:body]
|
34
|
-
perform_request(method, path, params, body).body
|
36
|
+
perform_request(method, path, params, body, headers).body
|
35
37
|
end
|
36
38
|
|
37
39
|
# Register this action with its valid params when the module is loaded.
|
@@ -7,15 +7,18 @@ module Elasticsearch
|
|
7
7
|
module API
|
8
8
|
module SQL
|
9
9
|
module Actions
|
10
|
-
#
|
11
|
-
|
10
|
+
# Clears the SQL cursor
|
11
|
+
#
|
12
|
+
# @option arguments [Hash] :headers Custom HTTP headers
|
12
13
|
# @option arguments [Hash] :body Specify the cursor value in the `cursor` element to clean the cursor. (*Required*)
|
13
14
|
#
|
14
|
-
# @see
|
15
|
+
# @see https://www.elastic.co/guide/en/elasticsearch/reference/current/sql-pagination.html
|
15
16
|
#
|
16
17
|
def clear_cursor(arguments = {})
|
17
18
|
raise ArgumentError, "Required argument 'body' missing" unless arguments[:body]
|
18
19
|
|
20
|
+
headers = arguments.delete(:headers) || {}
|
21
|
+
|
19
22
|
arguments = arguments.clone
|
20
23
|
|
21
24
|
method = Elasticsearch::API::HTTP_POST
|
@@ -23,7 +26,7 @@ module Elasticsearch
|
|
23
26
|
params = {}
|
24
27
|
|
25
28
|
body = arguments[:body]
|
26
|
-
perform_request(method, path, params, body).body
|
29
|
+
perform_request(method, path, params, body, headers).body
|
27
30
|
end
|
28
31
|
end
|
29
32
|
end
|
@@ -7,18 +7,19 @@ module Elasticsearch
|
|
7
7
|
module API
|
8
8
|
module SQL
|
9
9
|
module Actions
|
10
|
-
#
|
11
|
-
|
10
|
+
# Executes a SQL request
|
12
11
|
#
|
13
12
|
# @option arguments [String] :format a short version of the Accept header, e.g. json, yaml
|
14
|
-
|
13
|
+
# @option arguments [Hash] :headers Custom HTTP headers
|
15
14
|
# @option arguments [Hash] :body Use the `query` element to start a query. Use the `cursor` element to continue a query. (*Required*)
|
16
15
|
#
|
17
|
-
# @see
|
16
|
+
# @see https://www.elastic.co/guide/en/elasticsearch/reference/current/sql-rest-overview.html
|
18
17
|
#
|
19
18
|
def query(arguments = {})
|
20
19
|
raise ArgumentError, "Required argument 'body' missing" unless arguments[:body]
|
21
20
|
|
21
|
+
headers = arguments.delete(:headers) || {}
|
22
|
+
|
22
23
|
arguments = arguments.clone
|
23
24
|
|
24
25
|
method = Elasticsearch::API::HTTP_POST
|
@@ -26,7 +27,7 @@ module Elasticsearch
|
|
26
27
|
params = Elasticsearch::API::Utils.__validate_and_extract_params arguments, ParamsRegistry.get(__method__)
|
27
28
|
|
28
29
|
body = arguments[:body]
|
29
|
-
perform_request(method, path, params, body).body
|
30
|
+
perform_request(method, path, params, body, headers).body
|
30
31
|
end
|
31
32
|
|
32
33
|
# Register this action with its valid params when the module is loaded.
|
@@ -7,15 +7,18 @@ module Elasticsearch
|
|
7
7
|
module API
|
8
8
|
module SQL
|
9
9
|
module Actions
|
10
|
-
#
|
11
|
-
|
10
|
+
# Translates SQL into Elasticsearch queries
|
11
|
+
#
|
12
|
+
# @option arguments [Hash] :headers Custom HTTP headers
|
12
13
|
# @option arguments [Hash] :body Specify the query in the `query` element. (*Required*)
|
13
14
|
#
|
14
|
-
# @see
|
15
|
+
# @see https://www.elastic.co/guide/en/elasticsearch/reference/current/sql-translate.html
|
15
16
|
#
|
16
17
|
def translate(arguments = {})
|
17
18
|
raise ArgumentError, "Required argument 'body' missing" unless arguments[:body]
|
18
19
|
|
20
|
+
headers = arguments.delete(:headers) || {}
|
21
|
+
|
19
22
|
arguments = arguments.clone
|
20
23
|
|
21
24
|
method = Elasticsearch::API::HTTP_POST
|
@@ -23,7 +26,7 @@ module Elasticsearch
|
|
23
26
|
params = {}
|
24
27
|
|
25
28
|
body = arguments[:body]
|
26
|
-
perform_request(method, path, params, body).body
|
29
|
+
perform_request(method, path, params, body, headers).body
|
27
30
|
end
|
28
31
|
end
|
29
32
|
end
|
@@ -7,12 +7,15 @@ module Elasticsearch
|
|
7
7
|
module API
|
8
8
|
module SSL
|
9
9
|
module Actions
|
10
|
-
#
|
11
|
-
|
10
|
+
# Retrieves information about the X.509 certificates used to encrypt communications in the cluster.
|
11
|
+
#
|
12
|
+
# @option arguments [Hash] :headers Custom HTTP headers
|
12
13
|
#
|
13
14
|
# @see https://www.elastic.co/guide/en/elasticsearch/reference/current/security-api-ssl.html
|
14
15
|
#
|
15
16
|
def certificates(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
|
@@ -0,0 +1,45 @@
|
|
1
|
+
# Licensed to Elasticsearch B.V under one or more agreements.
|
2
|
+
# Elasticsearch B.V licenses this file to you under the Apache 2.0 License.
|
3
|
+
# See the LICENSE file in the project root for more information
|
4
|
+
|
5
|
+
module Elasticsearch
|
6
|
+
module XPack
|
7
|
+
module API
|
8
|
+
module Transform
|
9
|
+
module Actions
|
10
|
+
# Deletes an existing transform.
|
11
|
+
#
|
12
|
+
# @option arguments [String] :transform_id The id of the transform to delete
|
13
|
+
# @option arguments [Boolean] :force When `true`, the transform is deleted regardless of its current state. The default value is `false`, meaning that the transform must be `stopped` before it can be deleted.
|
14
|
+
# @option arguments [Hash] :headers Custom HTTP headers
|
15
|
+
#
|
16
|
+
# @see https://www.elastic.co/guide/en/elasticsearch/reference/current/delete-transform.html
|
17
|
+
#
|
18
|
+
def delete_transform(arguments = {})
|
19
|
+
raise ArgumentError, "Required argument 'transform_id' missing" unless arguments[:transform_id]
|
20
|
+
|
21
|
+
headers = arguments.delete(:headers) || {}
|
22
|
+
|
23
|
+
arguments = arguments.clone
|
24
|
+
|
25
|
+
_transform_id = arguments.delete(:transform_id)
|
26
|
+
|
27
|
+
method = Elasticsearch::API::HTTP_DELETE
|
28
|
+
path = "_transform/#{Elasticsearch::API::Utils.__listify(_transform_id)}"
|
29
|
+
params = Elasticsearch::API::Utils.__validate_and_extract_params arguments, ParamsRegistry.get(__method__)
|
30
|
+
|
31
|
+
body = nil
|
32
|
+
perform_request(method, path, params, body, headers).body
|
33
|
+
end
|
34
|
+
|
35
|
+
# Register this action with its valid params when the module is loaded.
|
36
|
+
#
|
37
|
+
# @since 6.2.0
|
38
|
+
ParamsRegistry.register(:delete_transform, [
|
39
|
+
:force
|
40
|
+
].freeze)
|
41
|
+
end
|
42
|
+
end
|
43
|
+
end
|
44
|
+
end
|
45
|
+
end
|
@@ -0,0 +1,51 @@
|
|
1
|
+
# Licensed to Elasticsearch B.V under one or more agreements.
|
2
|
+
# Elasticsearch B.V licenses this file to you under the Apache 2.0 License.
|
3
|
+
# See the LICENSE file in the project root for more information
|
4
|
+
|
5
|
+
module Elasticsearch
|
6
|
+
module XPack
|
7
|
+
module API
|
8
|
+
module Transform
|
9
|
+
module Actions
|
10
|
+
# Retrieves configuration information for transforms.
|
11
|
+
#
|
12
|
+
# @option arguments [String] :transform_id The id or comma delimited list of id expressions of the transforms to get, '_all' or '*' implies get all transforms
|
13
|
+
# @option arguments [Int] :from skips a number of transform configs, defaults to 0
|
14
|
+
# @option arguments [Int] :size specifies a max number of transforms to get, defaults to 100
|
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)
|
16
|
+
# @option arguments [Hash] :headers Custom HTTP headers
|
17
|
+
#
|
18
|
+
# @see https://www.elastic.co/guide/en/elasticsearch/reference/current/get-transform.html
|
19
|
+
#
|
20
|
+
def get_transform(arguments = {})
|
21
|
+
headers = arguments.delete(:headers) || {}
|
22
|
+
|
23
|
+
arguments = arguments.clone
|
24
|
+
|
25
|
+
_transform_id = arguments.delete(:transform_id)
|
26
|
+
|
27
|
+
method = Elasticsearch::API::HTTP_GET
|
28
|
+
path = if _transform_id
|
29
|
+
"_transform/#{Elasticsearch::API::Utils.__listify(_transform_id)}"
|
30
|
+
else
|
31
|
+
"_transform"
|
32
|
+
end
|
33
|
+
params = Elasticsearch::API::Utils.__validate_and_extract_params arguments, ParamsRegistry.get(__method__)
|
34
|
+
|
35
|
+
body = nil
|
36
|
+
perform_request(method, path, params, body, headers).body
|
37
|
+
end
|
38
|
+
|
39
|
+
# Register this action with its valid params when the module is loaded.
|
40
|
+
#
|
41
|
+
# @since 6.2.0
|
42
|
+
ParamsRegistry.register(:get_transform, [
|
43
|
+
:from,
|
44
|
+
:size,
|
45
|
+
:allow_no_match
|
46
|
+
].freeze)
|
47
|
+
end
|
48
|
+
end
|
49
|
+
end
|
50
|
+
end
|
51
|
+
end
|
@@ -0,0 +1,49 @@
|
|
1
|
+
# Licensed to Elasticsearch B.V under one or more agreements.
|
2
|
+
# Elasticsearch B.V licenses this file to you under the Apache 2.0 License.
|
3
|
+
# See the LICENSE file in the project root for more information
|
4
|
+
|
5
|
+
module Elasticsearch
|
6
|
+
module XPack
|
7
|
+
module API
|
8
|
+
module Transform
|
9
|
+
module Actions
|
10
|
+
# Retrieves usage information for transforms.
|
11
|
+
#
|
12
|
+
# @option arguments [String] :transform_id The id of the transform for which to get stats. '_all' or '*' implies all transforms
|
13
|
+
# @option arguments [Number] :from skips a number of transform stats, defaults to 0
|
14
|
+
# @option arguments [Number] :size specifies a max number of transform stats to get, defaults to 100
|
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)
|
16
|
+
# @option arguments [Hash] :headers Custom HTTP headers
|
17
|
+
#
|
18
|
+
# @see https://www.elastic.co/guide/en/elasticsearch/reference/current/get-transform-stats.html
|
19
|
+
#
|
20
|
+
def get_transform_stats(arguments = {})
|
21
|
+
raise ArgumentError, "Required argument 'transform_id' missing" unless arguments[:transform_id]
|
22
|
+
|
23
|
+
headers = arguments.delete(:headers) || {}
|
24
|
+
|
25
|
+
arguments = arguments.clone
|
26
|
+
|
27
|
+
_transform_id = arguments.delete(:transform_id)
|
28
|
+
|
29
|
+
method = Elasticsearch::API::HTTP_GET
|
30
|
+
path = "_transform/#{Elasticsearch::API::Utils.__listify(_transform_id)}/_stats"
|
31
|
+
params = Elasticsearch::API::Utils.__validate_and_extract_params arguments, ParamsRegistry.get(__method__)
|
32
|
+
|
33
|
+
body = nil
|
34
|
+
perform_request(method, path, params, body, headers).body
|
35
|
+
end
|
36
|
+
|
37
|
+
# Register this action with its valid params when the module is loaded.
|
38
|
+
#
|
39
|
+
# @since 6.2.0
|
40
|
+
ParamsRegistry.register(:get_transform_stats, [
|
41
|
+
:from,
|
42
|
+
:size,
|
43
|
+
:allow_no_match
|
44
|
+
].freeze)
|
45
|
+
end
|
46
|
+
end
|
47
|
+
end
|
48
|
+
end
|
49
|
+
end
|