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

- old
+ new

@@ -28,14 +28,15 @@ # @option arguments [List] :h Comma-separated list of column names to display # @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 [String] :time The unit in which to display time values # (options: d,h,m,s,ms,micros,nanos) + # @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-snapshots.html + # @see https://www.elastic.co/guide/en/elasticsearch/reference/7.x/cat-snapshots.html # def snapshots(arguments = {}) headers = arguments.delete(:headers) || {} arguments = arguments.clone @@ -45,11 +46,11 @@ method = Elasticsearch::API::HTTP_GET path = if _repository "_cat/snapshots/#{Utils.__listify(_repository)}" else "_cat/snapshots" - end + end params = Utils.__validate_and_extract_params arguments, ParamsRegistry.get(__method__) body = nil perform_request(method, path, params, body, headers).body end @@ -65,9 +66,9 @@ :help, :s, :time, :v ].freeze) -end end + end end end