getWorkflow method
Returns information about a workflow.
Parameter id :
The ID of the workflow. To rerieve a list of workflow IDs, use
ListWorkflows.
Parameter projectName :
The name of the project in the space.
Parameter spaceName :
The name of the space.
Implementation
Future<GetWorkflowResponse> getWorkflow({
required String id,
required String projectName,
required String spaceName,
}) async {
final response = await _protocol.send(
payload: null,
method: 'GET',
requestUri:
'/v1/spaces/${Uri.encodeComponent(spaceName)}/projects/${Uri.encodeComponent(projectName)}/workflows/${Uri.encodeComponent(id)}',
exceptionFnMap: _exceptionFns,
);
return GetWorkflowResponse.fromJson(response);
}