lib/elasticsearch/api/actions/transform/upgrade_transforms.rb in elasticsearch-api-8.0.1 vs lib/elasticsearch/api/actions/transform/upgrade_transforms.rb in elasticsearch-api-8.1.0

- old
+ new

@@ -23,16 +23,17 @@ # # @option arguments [Boolean] :dry_run Whether to only check for updates but don't execute # @option arguments [Time] :timeout Controls the time to wait for the upgrade # @option arguments [Hash] :headers Custom HTTP headers # - # @see https://www.elastic.co/guide/en/elasticsearch/reference/current/upgrade-transforms.html + # @see https://www.elastic.co/guide/en/elasticsearch/reference/8.1/upgrade-transforms.html # def upgrade_transforms(arguments = {}) - arguments = arguments.clone headers = arguments.delete(:headers) || {} - body = nil + body = nil + + arguments = arguments.clone method = Elasticsearch::API::HTTP_POST path = "_transform/_upgrade" params = Utils.process_params(arguments)