waitOperation method

Future<Operation<ProtoMessage, ProtoMessage>> waitOperation(
  1. WaitOperationRequest request
)

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 = _endPoint.replace(
    path: '/ui/${request.name}:wait',
    queryParameters: {
      if (request.timeout case final $1?) 'timeout': $1.toJson(),
    },
  );
  final response = await _client.post(url);
  return Operation.fromJson(response);
}