getNotebookRuntime method

  1. @override
Future<NotebookRuntime> getNotebookRuntime(
  1. GetNotebookRuntimeRequest request
)
override

Gets a NotebookRuntime.

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<NotebookRuntime> getNotebookRuntime(
  GetNotebookRuntimeRequest request,
) async {
  if (isClosed) throw StateError('Service is closed');

  if (_getNotebookRuntime case final getNotebookRuntime?) {
    return getNotebookRuntime(request);
  }
  throw UnsupportedError('getNotebookRuntime');
}