lib/elasticsearch/api/actions/searchable_snapshots/mount.rb in elasticsearch-api-8.0.1 vs lib/elasticsearch/api/actions/searchable_snapshots/mount.rb in elasticsearch-api-8.1.0

- old
+ new

@@ -27,20 +27,21 @@ # @option arguments [Boolean] :wait_for_completion Should this request wait until the operation has completed before returning # @option arguments [String] :storage Selects the kind of local storage used to accelerate searches. Experimental, and defaults to `full_copy` # @option arguments [Hash] :headers Custom HTTP headers # @option arguments [Hash] :body The restore configuration for mounting the snapshot as searchable (*Required*) # - # @see https://www.elastic.co/guide/en/elasticsearch/reference/master/searchable-snapshots-api-mount-snapshot.html + # @see https://www.elastic.co/guide/en/elasticsearch/reference/8.1/searchable-snapshots-api-mount-snapshot.html # def mount(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] - arguments = arguments.clone headers = arguments.delete(:headers) || {} body = arguments.delete(:body) + + arguments = arguments.clone _repository = arguments.delete(:repository) _snapshot = arguments.delete(:snapshot)