lib/elasticsearch/api/actions/cat/snapshots.rb in elasticsearch-api-2.0.2 vs lib/elasticsearch/api/actions/cat/snapshots.rb in elasticsearch-api-5.0.0.pre

- old
+ new

@@ -15,23 +15,22 @@ # # @option arguments [Time] :master_timeout Explicit operation timeout for connection to master node # @option arguments [List] :h Comma-separated list of column names to display # @option arguments [Boolean] :help Return help information # @option arguments [Boolean] :v Verbose mode. Display column headers + # @option arguments [List] :s Comma-separated list of column names or column aliases to sort by # # @see https://www.elastic.co/guide/en/elasticsearch/reference/current/cat-snapshots.html # def snapshots(arguments={}) - raise ArgumentError, "Required argument 'repository' missing" unless arguments[:repository] + raise ArgumentError, "Required argument 'repository' missing" if !arguments[:repository] && !arguments[:help] valid_params = [ :master_timeout, :h, :help, - :v ] - - unsupported_params = [ :format ] - Utils.__report_unsupported_parameters(arguments.keys, unsupported_params) + :v, + :s ] repository = arguments.delete(:repository) method = HTTP_GET path = Utils.__pathify "_cat/snapshots", Utils.__escape(repository)