Class JobNotification (0.11.0)

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. This topic 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 attribute that a message should have. Without specified message attributes, no message will be sent by default.

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.