lib/elasticsearch/api/actions/license/post.rb in elasticsearch-api-8.10.0 vs lib/elasticsearch/api/actions/license/post.rb in elasticsearch-api-8.11.0
- old
+ new
@@ -26,23 +26,25 @@
#
# @option arguments [Boolean] :acknowledge whether the user has acknowledged acknowledge messages (default: false)
# @option arguments [Hash] :headers Custom HTTP headers
# @option arguments [Hash] :body licenses to be installed
#
- # @see https://www.elastic.co/guide/en/elasticsearch/reference/8.10/update-license.html
+ # @see https://www.elastic.co/guide/en/elasticsearch/reference/8.11/update-license.html
#
def post(arguments = {})
+ request_opts = { endpoint: arguments[:endpoint] || "license.post" }
+
arguments = arguments.clone
headers = arguments.delete(:headers) || {}
body = arguments.delete(:body)
method = Elasticsearch::API::HTTP_PUT
path = "_license"
params = Utils.process_params(arguments)
Elasticsearch::API::Response.new(
- perform_request(method, path, params, body, headers)
+ perform_request(method, path, params, body, headers, request_opts)
)
end
end
end
end