describeQuery method
Retrieves information about a query, including its status.
May throw AccessDeniedException.
May throw InternalFailureException.
May throw InvalidRequestException.
May throw ResourceNotFoundException.
May throw ThrottlingException.
Parameter queryId :
The unique identifier for the query execution.
Parameter workspaceName :
The name of the workspace associated with the query.
Implementation
Future<DescribeQueryResponse> describeQuery({
required String queryId,
required String workspaceName,
}) async {
final response = await _protocol.send(
payload: null,
method: 'GET',
requestUri:
'/workspaces/${Uri.encodeComponent(workspaceName)}/queries/${Uri.encodeComponent(queryId)}',
hostPrefix: 'data.',
exceptionFnMap: _exceptionFns,
);
return DescribeQueryResponse.fromJson(response);
}