File tree Expand file tree Collapse file tree 2 files changed +3
-4
lines changed
lib/elasticsearch/xpack/api/actions Expand file tree Collapse file tree 2 files changed +3
-4
lines changed Original file line number Diff line number Diff line change @@ -22,6 +22,7 @@ module Actions
22
22
# Retrieves information about the installed X-Pack features.
23
23
#
24
24
# @option arguments [List] :categories Comma-separated list of info categories. Can be any of: build, license, features
25
+ # @option arguments [Boolean] :accept_enterprise If an enterprise license is installed, return the type and mode as 'enterprise' (default: false)
25
26
# @option arguments [Hash] :headers Custom HTTP headers
26
27
#
27
28
# @see https://www.elastic.co/guide/en/elasticsearch/reference/7.8/info-api.html
@@ -43,7 +44,8 @@ def info(arguments = {})
43
44
#
44
45
# @since 6.2.0
45
46
ParamsRegistry . register ( :info , [
46
- :categories
47
+ :categories ,
48
+ :accept_enterprise
47
49
] . freeze )
48
50
end
49
51
end
Original file line number Diff line number Diff line change 20
20
module Elasticsearch
21
21
module Test
22
22
class XPackInfoTest < Minitest ::Test
23
-
24
23
context "XPack: Info" do
25
24
subject { FakeClient . new }
26
25
@@ -35,9 +34,7 @@ class XPackInfoTest < Minitest::Test
35
34
36
35
subject . xpack . info
37
36
end
38
-
39
37
end
40
-
41
38
end
42
39
end
43
40
end
You can’t perform that action at this time.
0 commit comments