lib/elasticsearch/api/actions/indices/get_index_template.rb in elasticsearch-api-7.8.1 vs lib/elasticsearch/api/actions/indices/get_index_template.rb in elasticsearch-api-7.9.0.pre

- old
+ new

@@ -18,22 +18,18 @@ module Elasticsearch module API module Indices module Actions # Returns an index template. - # This functionality is Experimental and may be changed or removed - # completely in a future release. Elastic will take a best effort approach - # to fix any issues, but experimental features are not subject to the - # support SLA of official GA features. # # @option arguments [List] :name The comma separated names of the index templates # @option arguments [Boolean] :flat_settings Return settings in flat format (default: false) # @option arguments [Time] :master_timeout Explicit operation timeout for connection to master node # @option arguments [Boolean] :local Return local information, do not retrieve the state from master node (default: false) # @option arguments [Hash] :headers Custom HTTP headers # - # @see https://www.elastic.co/guide/en/elasticsearch/reference/7.8/indices-templates.html + # @see https://www.elastic.co/guide/en/elasticsearch/reference/7.x/indices-templates.html # def get_index_template(arguments = {}) headers = arguments.delete(:headers) || {} arguments = arguments.clone @@ -43,11 +39,11 @@ method = Elasticsearch::API::HTTP_GET path = if _name "_index_template/#{Utils.__listify(_name)}" else "_index_template" - end + end params = Utils.__validate_and_extract_params arguments, ParamsRegistry.get(__method__) body = nil perform_request(method, path, params, body, headers).body end @@ -58,9 +54,9 @@ ParamsRegistry.register(:get_index_template, [ :flat_settings, :master_timeout, :local ].freeze) -end end + end end end