lib/elasticsearch/api/actions/cat/aliases.rb in elasticsearch-api-7.8.1 vs lib/elasticsearch/api/actions/cat/aliases.rb in elasticsearch-api-7.9.0.pre

- old
+ new

@@ -28,13 +28,14 @@ # @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 [String] :expand_wildcards Whether to expand wildcard expression to concrete indices that are open, closed or both. # (options: open,closed,hidden,none,all) + # @option arguments [Hash] :headers Custom HTTP headers # - # @see https://www.elastic.co/guide/en/elasticsearch/reference/7.8/cat-alias.html + # @see https://www.elastic.co/guide/en/elasticsearch/reference/7.x/cat-alias.html # def aliases(arguments = {}) headers = arguments.delete(:headers) || {} arguments = arguments.clone @@ -44,11 +45,11 @@ method = Elasticsearch::API::HTTP_GET path = if _name "_cat/aliases/#{Utils.__listify(_name)}" else "_cat/aliases" - end + end params = Utils.__validate_and_extract_params arguments, ParamsRegistry.get(__method__) params[:h] = Utils.__listify(params[:h]) if params[:h] body = nil perform_request(method, path, params, body, headers).body @@ -64,9 +65,9 @@ :help, :s, :v, :expand_wildcards ].freeze) -end end + end end end