lib/elasticsearch/api/actions/snapshot/clone.rb in elasticsearch-api-8.0.1 vs lib/elasticsearch/api/actions/snapshot/clone.rb in elasticsearch-api-8.1.0
- old
+ new
@@ -26,21 +26,22 @@
# @option arguments [String] :target_snapshot The name of the cloned snapshot to create
# @option arguments [Time] :master_timeout Explicit operation timeout for connection to master node
# @option arguments [Hash] :headers Custom HTTP headers
# @option arguments [Hash] :body The snapshot clone definition (*Required*)
#
- # @see https://www.elastic.co/guide/en/elasticsearch/reference/master/modules-snapshots.html
+ # @see https://www.elastic.co/guide/en/elasticsearch/reference/8.1/modules-snapshots.html
#
def clone(arguments = {})
raise ArgumentError, "Required argument 'body' missing" unless arguments[:body]
raise ArgumentError, "Required argument 'repository' missing" unless arguments[:repository]
raise ArgumentError, "Required argument 'snapshot' missing" unless arguments[:snapshot]
raise ArgumentError, "Required argument 'target_snapshot' missing" unless arguments[:target_snapshot]
- arguments = arguments.clone
headers = arguments.delete(:headers) || {}
body = arguments.delete(:body)
+
+ arguments = arguments.clone
_repository = arguments.delete(:repository)
_snapshot = arguments.delete(:snapshot)