toValue method

String toValue()

Implementation

String toValue() {
  switch (this) {
    case NotebookExecutionStatus.startPending:
      return 'START_PENDING';
    case NotebookExecutionStatus.starting:
      return 'STARTING';
    case NotebookExecutionStatus.running:
      return 'RUNNING';
    case NotebookExecutionStatus.finishing:
      return 'FINISHING';
    case NotebookExecutionStatus.finished:
      return 'FINISHED';
    case NotebookExecutionStatus.failing:
      return 'FAILING';
    case NotebookExecutionStatus.failed:
      return 'FAILED';
    case NotebookExecutionStatus.stopPending:
      return 'STOP_PENDING';
    case NotebookExecutionStatus.stopping:
      return 'STOPPING';
    case NotebookExecutionStatus.stopped:
      return 'STOPPED';
  }
}