lib/elasticsearch/api/actions/snapshot_lifecycle_management/start.rb in elasticsearch-api-8.14.0 vs lib/elasticsearch/api/actions/snapshot_lifecycle_management/start.rb in elasticsearch-api-8.15.0
- old
+ new
@@ -22,13 +22,15 @@
module API
module SnapshotLifecycleManagement
module Actions
# Turns on snapshot lifecycle management (SLM).
#
+ # @option arguments [Time] :master_timeout Timeout for processing on master node
+ # @option arguments [Time] :timeout Timeout for acknowledgement of update from all nodes in cluster
# @option arguments [Hash] :headers Custom HTTP headers
#
- # @see https://www.elastic.co/guide/en/elasticsearch/reference/8.14/slm-api-start.html
+ # @see https://www.elastic.co/guide/en/elasticsearch/reference/8.15/slm-api-start.html
#
def start(arguments = {})
request_opts = { endpoint: arguments[:endpoint] || 'slm.start' }
arguments = arguments.clone
@@ -36,10 +38,10 @@
body = nil
method = Elasticsearch::API::HTTP_POST
path = '_slm/start'
- params = {}
+ params = Utils.process_params(arguments)
Elasticsearch::API::Response.new(
perform_request(method, path, params, body, headers, request_opts)
)
end