reset method

  1. @override
Future<Operation> reset(
  1. ResetInstanceRequest request
)
override

Performs a reset on the instance. This is a hard reset. The VM does not do a graceful shutdown. For more information, seeResetting an instance.

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

@override
Future<Operation> reset(ResetInstanceRequest request) async {
  if (isClosed) throw StateError('Service is closed');

  if (_reset case final reset?) {
    return reset(request);
  }
  throw UnsupportedError('reset');
}