Sha256: 7294416c7d19463b817143488c6711ce5b83df30dcf67399ee6ae7748afd8915
Contents?: true
Size: 951 Bytes
Versions: 6
Compression:
Stored size: 951 Bytes
Contents
module Elasticsearch module XPack module API module SQL module Actions # TODO: Description # # @option arguments [Hash] :body Use the `query` element to start a query. Use the `cursor` element to continue a query. (*Required*) # @option arguments [String] :format a short version of the Accept header, e.g. json, yaml # # @see Execute SQL # def query(arguments={}) raise ArgumentError, "Required argument 'body' missing" unless arguments[:body] valid_params = [ :format ] method = Elasticsearch::API::HTTP_POST path = "_xpack/sql" params = Elasticsearch::API::Utils.__validate_and_extract_params arguments, valid_params body = arguments[:body] perform_request(method, path, params, body).body end end end end end end
Version data entries
6 entries across 6 versions & 1 rubygems