lib/elasticsearch/api/actions/transform/delete_transform.rb in elasticsearch-api-8.0.1 vs lib/elasticsearch/api/actions/transform/delete_transform.rb in elasticsearch-api-8.1.0
- old
+ new
@@ -24,18 +24,19 @@
# @option arguments [String] :transform_id The id of the transform to delete
# @option arguments [Boolean] :force When `true`, the transform is deleted regardless of its current state. The default value is `false`, meaning that the transform must be `stopped` before it can be deleted.
# @option arguments [Time] :timeout Controls the time to wait for the transform deletion
# @option arguments [Hash] :headers Custom HTTP headers
#
- # @see https://www.elastic.co/guide/en/elasticsearch/reference/current/delete-transform.html
+ # @see https://www.elastic.co/guide/en/elasticsearch/reference/8.1/delete-transform.html
#
def delete_transform(arguments = {})
raise ArgumentError, "Required argument 'transform_id' missing" unless arguments[:transform_id]
- arguments = arguments.clone
headers = arguments.delete(:headers) || {}
body = nil
+
+ arguments = arguments.clone
_transform_id = arguments.delete(:transform_id)
method = Elasticsearch::API::HTTP_DELETE
path = "_transform/#{Utils.__listify(_transform_id)}"