API: Update Elasticsearch APIs for 7.x

This commit is contained in:
Seth Michael Larson
2020-10-20 15:22:43 -05:00
committed by Seth Michael Larson
parent 2ce9fd3914
commit c1fbdef75e
124 changed files with 2278 additions and 700 deletions
+3
View File
@@ -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.