lib/elasticsearch/api/actions/transform/preview_transform.rb in elasticsearch-api-8.0.1 vs lib/elasticsearch/api/actions/transform/preview_transform.rb in elasticsearch-api-8.1.0
- old
+ new
@@ -24,16 +24,17 @@
# @option arguments [String] :transform_id The id of the transform to preview.
# @option arguments [Time] :timeout Controls the time to wait for the preview
# @option arguments [Hash] :headers Custom HTTP headers
# @option arguments [Hash] :body The definition for the transform to preview
#
- # @see https://www.elastic.co/guide/en/elasticsearch/reference/current/preview-transform.html
+ # @see https://www.elastic.co/guide/en/elasticsearch/reference/8.1/preview-transform.html
#
def preview_transform(arguments = {})
- arguments = arguments.clone
headers = arguments.delete(:headers) || {}
body = arguments.delete(:body)
+
+ arguments = arguments.clone
_transform_id = arguments.delete(:transform_id)
method = if body
Elasticsearch::API::HTTP_POST