Hi there! Are you looking for the official Deno documentation? Try docs.deno.com for all your Deno learning needs.

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";
}

§Properties

§
newJobState?: "STATE_UNSPECIFIED" | "QUEUED" | "SCHEDULED" | "RUNNING" | "SUCCEEDED" | "FAILED" | "DELETION_IN_PROGRESS"
[src]

The new job state.

§
newTaskState?: "STATE_UNSPECIFIED" | "PENDING" | "ASSIGNED" | "RUNNING" | "FAILED" | "SUCCEEDED" | "UNEXECUTED"
[src]

The new task state.

§
type?: "TYPE_UNSPECIFIED" | "JOB_STATE_CHANGED" | "TASK_STATE_CHANGED"
[src]

The message type.