Reference documentation and code samples for the Google Cloud Batch V1 Client class JobNotification.
Notification configurations.
Generated from protobuf message google.cloud.batch.v1.JobNotification
Namespace
Google \ Cloud \ Batch \ V1Methods
__construct
Constructor.
data
array
Optional. Data for populating the Message object.
↳ pubsub_topic
string
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\JobNotification\Message
The attribute requirements of messages to be sent to this Pub/Sub topic. Without this field, no message will be sent.
getPubsubTopic
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
.
string
setPubsubTopic
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
.
var
string
$this
getMessage
The attribute requirements of messages to be sent to this Pub/Sub topic.
Without this field, no message will be sent.
hasMessage
clearMessage
setMessage
The attribute requirements of messages to be sent to this Pub/Sub topic.
Without this field, no message will be sent.
$this