getOperation<T extends ProtoMessage, S extends ProtoMessage> method
Future<Operation<T, S> >
getOperation<T extends ProtoMessage, S extends ProtoMessage>(
- Operation<
T, S> request
Provides the Operations service functionality in this service.
Throws a http.ClientException if there were problems communicating with
the API service. Throws a StatusException if the API failed with a
Status message. Throws a ServiceException for any other failure.
This method can be used to get the current status of a long-running operation.
Implementation
Future<Operation<T, S>> getOperation<
T extends ProtoMessage,
S extends ProtoMessage
>(Operation<T, S> request) async {
final url = Uri.https(_host, '/v1beta/${request.name}');
final response = await _client.get(url);
return Operation.fromJson(response, request.operationHelper);
}