PubsubTarget class

Pub/Sub target. The job will be delivered by publishing a message to the given Pub/Sub topic.

Constructors

PubsubTarget({Input<Map<String, String>>? attributes, Input<String>? data, required Input<String> topicName})
Creates a new PubsubTarget. attributes Attributes for PubsubMessage. Pubsub message must contain either non-empty data, or at least one attribute. data The message payload for PubsubMessage. Pubsub message must contain either non-empty data, or at least one attribute. topicName 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.
const
PubsubTarget.fromMap(Map<String, dynamic> map)
factory

Properties

attributes → Input<Map<String, String>>?
Attributes for PubsubMessage. Pubsub message must contain either non-empty data, or at least one attribute.
final
data → Input<String>?
The message payload for PubsubMessage. Pubsub message must contain either non-empty data, or at least one attribute.
final
hashCode → int
The hash code for this object.
no setterinherited
runtimeType → Type
A representation of the runtime type of the object.
no setterinherited
topicName → Input<String>
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.
final

Methods

noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
toMap() → Map<String, dynamic>
toString() → String
A string representation of this object.
inherited

Operators

operator ==(Object other) → bool
The equality operator.
inherited