PubsubTarget(mapping=None, *, ignore_unknown_fields=False, **kwargs)
Pub/Sub target. The job will be delivered by publishing a message to the given Pub/Sub topic.
Attributes |
|
---|---|
Name | Description |
topic_name |
str
Required. The name of the Cloud Pub/Sub topic to which messages will be published when a job is delivered. The topic name must be in the same format as required by Pub/Sub's PublishRequest.name __,
for example projects/PROJECT_ID/topics/TOPIC_ID .
The topic must be in the same project as the Cloud Scheduler
job.
|
data |
bytes
The message payload for PubsubMessage. Pubsub message must contain either non-empty data, or at least one attribute. |
attributes |
MutableMapping[str, str]
Attributes for PubsubMessage. Pubsub message must contain either non-empty data, or at least one attribute. |
Classes
AttributesEntry
AttributesEntry(mapping=None, *, ignore_unknown_fields=False, **kwargs)
The abstract base class for a message.
Parameters | |
---|---|
Name | Description |
kwargs |
dict
Keys and values corresponding to the fields of the message. |
mapping |
Union[dict,
A dictionary or message to be used to determine the values for this message. |
ignore_unknown_fields |
Optional(bool)
If True, do not raise errors for unknown fields. Only applied if |