Sha256: bd4d108bbc82182bafcc80e0a55a2647672cbb7c724053af93f2e7dd629676d5

Contents?: true

Size: 748 Bytes

Versions: 1

Compression:

Stored size: 748 Bytes

Contents

# SPDX-License-Identifier: Apache-2.0
#
# The OpenSearch Contributors require contributions made to
# this file be licensed under the Apache-2.0 license or a
# compatible open source license.
#
# Modifications Copyright OpenSearch Contributors. See
# GitHub history for details.

module OpenSearch
  module API
    module Actions
      # Deletes all PITs.
      def delete_all_pits(arguments = {})
        method = OpenSearch::API::HTTP_DELETE
        path = "_search/point_in_time/_all"
        params = Utils.__validate_and_extract_params arguments, ParamsRegistry.get(__method__)
        body = nil

        perform_request(method, path, params, body).body
      end

      ParamsRegistry.register(:delete_all_pits, [].freeze)
    end
  end
end

Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
opensearch-api-2.2.0 lib/opensearch/api/actions/delete_all_pits.rb