3 ]@s,ddlmZmZmZmZGdddeZdS))NamespacedClient query_params _make_path SKIP_IN_PATHc@s>eZdZed ddZedd ddZed ddZdS) SqlClientNcCs$|tkrtd|jjdd||dS)z ``_ :arg body: Specify the cursor value in the `cursor` element to clean the cursor. z2Empty value passed for a required argument 'body'.POSTz /_sql/close)paramsbody)r ValueError transportperform_request)selfr rrG/tmp/pip-build-z81i1n8o/elasticsearch/elasticsearch/client/xpack/sql.py clear_cursorszSqlClient.clear_cursorformatcCs$|tkrtd|jjdd||dS)z ``_ :arg body: Use the `query` element to start a query. Use the `cursor` element to continue a query. :arg format: a short version of the Accept header, e.g. json, yaml z2Empty value passed for a required argument 'body'.rz/_sql)rr )rr r r )r r rrrrquerys zSqlClient.querycCs$|tkrtd|jjdd||dS)z} ``_ :arg body: Specify the query in the `query` element. z2Empty value passed for a required argument 'body'.rz/_sql/translate)rr )rr r r )r r rrrr translate szSqlClient.translate)N)N)N)__name__ __module__ __qualname__rrrrrrrrrs   rN)utilsrrrrrrrrrs