Generated API
This commit is contained in:
@@ -7,11 +7,12 @@ class SqlClient(NamespacedClient):
|
||||
"""
|
||||
`<Clear SQL cursor>`_
|
||||
|
||||
:arg body: Specify the cursor value in the `cursor` element to clean the
|
||||
cursor.
|
||||
:arg body: Specify the cursor value in the `cursor` element to
|
||||
clean the cursor.
|
||||
"""
|
||||
if body in SKIP_IN_PATH:
|
||||
raise ValueError("Empty value passed for a required argument 'body'.")
|
||||
|
||||
return self.transport.perform_request(
|
||||
"POST", "/_sql/close", params=params, body=body
|
||||
)
|
||||
@@ -21,12 +22,14 @@ class SqlClient(NamespacedClient):
|
||||
"""
|
||||
`<Execute SQL>`_
|
||||
|
||||
: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
|
||||
: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
|
||||
"""
|
||||
if body in SKIP_IN_PATH:
|
||||
raise ValueError("Empty value passed for a required argument 'body'.")
|
||||
|
||||
return self.transport.perform_request("POST", "/_sql", params=params, body=body)
|
||||
|
||||
@query_params()
|
||||
@@ -38,6 +41,7 @@ class SqlClient(NamespacedClient):
|
||||
"""
|
||||
if body in SKIP_IN_PATH:
|
||||
raise ValueError("Empty value passed for a required argument 'body'.")
|
||||
|
||||
return self.transport.perform_request(
|
||||
"POST", "/_sql/translate", params=params, body=body
|
||||
)
|
||||
|
||||
Reference in New Issue
Block a user