getNotebookRuntimeTemplate method

  1. @override
Future<NotebookRuntimeTemplate> getNotebookRuntimeTemplate(
  1. GetNotebookRuntimeTemplateRequest request
)
override

Gets a NotebookRuntimeTemplate.

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<NotebookRuntimeTemplate> getNotebookRuntimeTemplate(
  GetNotebookRuntimeTemplateRequest request,
) async {
  if (isClosed) throw StateError('Service is closed');

  if (_getNotebookRuntimeTemplate case final getNotebookRuntimeTemplate?) {
    return getNotebookRuntimeTemplate(request);
  }
  throw UnsupportedError('getNotebookRuntimeTemplate');
}