API: Update Elasticsearch APIs for 7.x
This commit is contained in:
committed by
Seth Michael Larson
parent
2ce9fd3914
commit
c1fbdef75e
@@ -23,6 +23,7 @@ class SqlClient(NamespacedClient):
|
||||
def clear_cursor(self, body, params=None, headers=None):
|
||||
"""
|
||||
Clears the SQL cursor
|
||||
|
||||
`<https://www.elastic.co/guide/en/elasticsearch/reference/7.x/sql-pagination.html>`_
|
||||
|
||||
:arg body: Specify the cursor value in the `cursor` element to
|
||||
@@ -39,6 +40,7 @@ class SqlClient(NamespacedClient):
|
||||
def query(self, body, params=None, headers=None):
|
||||
"""
|
||||
Executes a SQL request
|
||||
|
||||
`<https://www.elastic.co/guide/en/elasticsearch/reference/7.x/sql-rest-overview.html>`_
|
||||
|
||||
:arg body: Use the `query` element to start a query. Use the
|
||||
@@ -57,6 +59,7 @@ class SqlClient(NamespacedClient):
|
||||
def translate(self, body, params=None, headers=None):
|
||||
"""
|
||||
Translates SQL into Elasticsearch queries
|
||||
|
||||
`<https://www.elastic.co/guide/en/elasticsearch/reference/7.x/sql-translate.html>`_
|
||||
|
||||
:arg body: Specify the query in the `query` element.
|
||||
|
||||
Reference in New Issue
Block a user