elasticsearch-api/lib/elasticsearch/api/actions/snapshot/cleanup_repository.rb
def cleanup_repository(arguments = {})
          raise ArgumentError, "Required argument 'repository' missing" unless arguments[:repository]

          headers = arguments.delete(:headers) || {}

          body = nil

          arguments = arguments.clone

          _repository = arguments.delete(:repository)

          method = Elasticsearch::API::HTTP_POST
          path   = "_snapshot/#{Utils.__listify(_repository)}/_cleanup"
          params = Utils.process_params(arguments)

          perform_request(method, path, params, body, headers).body
        end
# Removes stale data from repository.
#
# @option arguments [String] :repository A repository name
# @option arguments [Time] :master_timeout Explicit operation timeout for connection to master node
# @option arguments [Time] :timeout Explicit operation timeout
# @option arguments [Hash] :headers Custom HTTP headers
#
# @see https://www.elastic.co/guide/en/elasticsearch/reference/master/clean-up-snapshot-repo-api.html
#
Removes stale data from repository.
Removes stale data from repository .
def cleanup_repository(arguments = {})
          raise ArgumentError, "Required argument 'repository' missing" unless arguments[:repository]
          headers = arguments.delete(:headers) || {}
          body = nil
          arguments = arguments.clone
          _repository = arguments.delete(:repository)
          method = Elasticsearch::API::HTTP_POST
          path   = "_snapshot/#{Utils.__listify(_repository)}/_cleanup"
          params = Utils.process_params(arguments)
          perform_request(method, path, params, body, headers).body
        end
def cleanup_repository ( arguments = { } ) raise ArgumentError , "Required argument 'repository' missing" unless arguments [ :repository ] headers = arguments . delete ( :headers ) || { } body = nil arguments = arguments . clone _repository = arguments . delete ( :repository ) method = Elasticsearch :: API :: HTTP_POST path = "_snapshot/#{Utils.__listify(_repository)}/_cleanup" params = Utils . process_params ( arguments ) perform_request ( method , path , params , body , headers ) . body end
Removes stale data from repository.
Removes stale data from repository .
arguments
:headers Custom HTTP headers
: headers Custom HTTP headers
see
None