Sha256: 3ea28e8e83092ac9bdc587abee7444e361eec3287f7aa487b8063b8a66e11d56
Contents?: true
Size: 1.53 KB
Versions: 1
Compression:
Stored size: 1.53 KB
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 Cat module Actions # Retrieves info of all PIT segments # # @option arguments [String] :format a short version of the Accept header, e.g. json, yaml # @option arguments [List] :h Comma-separated list of column names to display # @option arguments [Boolean] :help Return help information # @option arguments [List] :s Comma-separated list of column names or column aliases to sort by # @option arguments [Boolean] :v Verbose mode. Display column headers # @option arguments [Hash] :headers Custom HTTP headers def all_pit_segments(arguments = {}) arguments = arguments.clone headers = arguments.delete(:headers) || {} method = OpenSearch::API::HTTP_GET path = '_cat/pit_segments/_all' params = Utils.__validate_and_extract_params arguments, ParamsRegistry.get(__method__) params[:h] = Utils.__listify(params[:h]) if params[:h] body = nil perform_request(method, path, params, body, headers).body end ParamsRegistry.register(:all_pit_segments, [ :format, :h, :help, :s, :v ].freeze) end end end end
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
opensearch-api-2.2.0 | lib/opensearch/api/actions/cat/all_pit_segments.rb |