lib/elasticsearch/api/actions/cat/templates.rb in elasticsearch-api-7.8.1 vs lib/elasticsearch/api/actions/cat/templates.rb in elasticsearch-api-7.9.0.pre
- old
+ new
@@ -29,11 +29,11 @@
# @option arguments [Boolean] :help Return help information
# @option arguments [List] :s Comma-separated list of column names or column aliases to sort by
# @option arguments [Boolean] :v Verbose mode. Display column headers
# @option arguments [Hash] :headers Custom HTTP headers
#
- # @see https://www.elastic.co/guide/en/elasticsearch/reference/7.8/cat-templates.html
+ # @see https://www.elastic.co/guide/en/elasticsearch/reference/7.x/cat-templates.html
#
def templates(arguments = {})
headers = arguments.delete(:headers) || {}
arguments = arguments.clone
@@ -43,11 +43,11 @@
method = Elasticsearch::API::HTTP_GET
path = if _name
"_cat/templates/#{Utils.__listify(_name)}"
else
"_cat/templates"
- end
+ end
params = Utils.__validate_and_extract_params arguments, ParamsRegistry.get(__method__)
body = nil
perform_request(method, path, params, body, headers).body
end
@@ -62,9 +62,9 @@
:h,
:help,
:s,
:v
].freeze)
-end
end
+ end
end
end