lib/elasticsearch/api/actions/snapshot_lifecycle_management/start.rb in elasticsearch-api-8.12.2 vs lib/elasticsearch/api/actions/snapshot_lifecycle_management/start.rb in elasticsearch-api-8.13.0

- old
+ new

@@ -24,21 +24,21 @@ module Actions # Turns on snapshot lifecycle management (SLM). # # @option arguments [Hash] :headers Custom HTTP headers # - # @see https://www.elastic.co/guide/en/elasticsearch/reference/8.12/slm-api-start.html + # @see https://www.elastic.co/guide/en/elasticsearch/reference/8.13/slm-api-start.html # def start(arguments = {}) - request_opts = { endpoint: arguments[:endpoint] || "slm.start" } + request_opts = { endpoint: arguments[:endpoint] || 'slm.start' } arguments = arguments.clone headers = arguments.delete(:headers) || {} body = nil method = Elasticsearch::API::HTTP_POST - path = "_slm/start" + path = '_slm/start' params = {} Elasticsearch::API::Response.new( perform_request(method, path, params, body, headers, request_opts) )