lib/elasticsearch/api/actions/snapshot/delete.rb in elasticsearch-api-6.2.0 vs lib/elasticsearch/api/actions/snapshot/delete.rb in elasticsearch-api-6.3.0
- old
+ new
@@ -12,13 +12,12 @@
# client.snapshot.delete repository: 'my-backups', snapshot: 'snapshot-1'
#
# @option arguments [String] :repository A repository name (*Required*)
# @option arguments [String] :snapshot A snapshot name (*Required*)
# @option arguments [Time] :master_timeout Explicit operation timeout for connection to master node
- # @option arguments [Number,List] :ignore The list of HTTP errors to ignore
#
- # @see http://www.elasticsearch.org/guide/en/elasticsearch/reference/master/modules-snapshots.html
+ # @see http://www.elastic.co/guide/en/elasticsearch/reference/current/modules-snapshots.html
#
def delete(arguments={})
raise ArgumentError, "Required argument 'repository' missing" unless arguments[:repository]
raise ArgumentError, "Required argument 'snapshot' missing" unless arguments[:snapshot]
repository = arguments.delete(:repository)
@@ -38,10 +37,11 @@
end
# Register this action with its valid params when the module is loaded.
#
# @since 6.2.0
- ParamsRegistry.register(:delete, [ :master_timeout ].freeze)
+ ParamsRegistry.register(:delete, [
+ :master_timeout ].freeze)
end
end
end
end