reportHostAsFaulty method
Mark the host as faulty and try to restart the instance on a new host.
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> reportHostAsFaulty(
ReportHostAsFaultyInstanceRequest request,
) async {
if (isClosed) throw StateError('Service is closed');
if (_reportHostAsFaulty case final reportHostAsFaulty?) {
return reportHostAsFaulty(request);
}
throw UnsupportedError('reportHostAsFaulty');
}