Class JobNotification (0.17.26)

JobNotification(mapping=None, *, ignore_unknown_fields=False, **kwargs)

Notification configurations.

Attributes

Name Description
pubsub_topic str
The Pub/Sub topic where notifications for the job, like state changes, will be published. If undefined, no Pub/Sub notifications are sent for this job. Specify the topic using the following format: projects/{project}/topics/{topic}. Notably, if you want to specify a Pub/Sub topic that is in a different project than the job, your administrator must grant your project's Batch service agent permission to publish to that topic. For more information about configuring Pub/Sub notifications for a job, see https://cloud.google.com/batch/docs/enable-notifications.
message google.cloud.batch_v1.types.JobNotification.Message
The attribute requirements of messages to be sent to this Pub/Sub topic. Without this field, no message will be sent.

Classes

Message

Message(mapping=None, *, ignore_unknown_fields=False, **kwargs)

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.

Type

Type(value)

The message type.