Class JobNotification (0.17.12)

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

Notification configurations.

Attributes

NameDescription
pubsub_topic str
The Pub/Sub topic where notifications like the job state changes will be published. The topic must exist in the same project as the job and billings will be charged to this project. If not specified, no Pub/Sub messages will be sent. Topic format: projects/{project}/topics/{topic}.
message google.cloud.batch_v1alpha.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.

Values: TYPE_UNSPECIFIED (0): Unspecified. JOB_STATE_CHANGED (1): Notify users that the job state has changed. TASK_STATE_CHANGED (2): Notify users that the task state has changed.