Message
import type { Message } from "https://googleapis.deno.dev/v1/batch:v1.ts";
Message details. Describe the conditions under which messages will be sent. If no attribute is defined, no message will be sent by default. One message should specify either the job or the task level attributes, but not both. For example, job level: JOB_STATE_CHANGED and/or a specified new_job_state; task level: TASK_STATE_CHANGED and/or a specified new_task_state.
interface Message {
newJobState?:
| "STATE_UNSPECIFIED"
| "QUEUED"
| "SCHEDULED"
| "RUNNING"
| "SUCCEEDED"
| "FAILED"
| "DELETION_IN_PROGRESS";
newTaskState?:
| "STATE_UNSPECIFIED"
| "PENDING"
| "ASSIGNED"
| "RUNNING"
| "FAILED"
| "SUCCEEDED"
| "UNEXECUTED";
type?: "TYPE_UNSPECIFIED" | "JOB_STATE_CHANGED" | "TASK_STATE_CHANGED";
}