waitOperation method
Provides the Operations service functionality in this service.
Throws a http.ClientException if there were problems communicating with
the API service. Throws a ServiceException if the API method failed for
any reason.
Implementation
Future<Operation> waitOperation(WaitOperationRequest request) async {
final url = Uri.https(_host, '/ui/${request.name}:wait', {
if (request.timeout case final $1?) 'timeout': $1.toJson(),
});
final response = await _client.post(url);
return Operation.fromJson(response);
}