Reference documentation and code samples for the Cloud Scheduler V1beta1 API class Google::Cloud::Scheduler::V1beta1::PubsubTarget.
Pub/Sub target. The job will be delivered by publishing a message to the given Pub/Sub topic.
Inherits
- Object
Extended By
- Google::Protobuf::MessageExts::ClassMethods
Includes
- Google::Protobuf::MessageExts
Methods
#attributes
def attributes() -> ::Google::Protobuf::Map{::String => ::String}
-
(::Google::Protobuf::Map{::String => ::String}) — Attributes for PubsubMessage.
Pubsub message must contain either non-empty data, or at least one attribute.
#attributes=
def attributes=(value) -> ::Google::Protobuf::Map{::String => ::String}
-
value (::Google::Protobuf::Map{::String => ::String}) — Attributes for PubsubMessage.
Pubsub message must contain either non-empty data, or at least one attribute.
-
(::Google::Protobuf::Map{::String => ::String}) — Attributes for PubsubMessage.
Pubsub message must contain either non-empty data, or at least one attribute.
#data
def data() -> ::String
-
(::String) — The message payload for PubsubMessage.
Pubsub message must contain either non-empty data, or at least one attribute.
#data=
def data=(value) -> ::String
-
value (::String) — The message payload for PubsubMessage.
Pubsub message must contain either non-empty data, or at least one attribute.
-
(::String) — The message payload for PubsubMessage.
Pubsub message must contain either non-empty data, or at least one attribute.
#topic_name
def topic_name() -> ::String
-
(::String) — 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.
#topic_name=
def topic_name=(value) -> ::String
-
value (::String) — 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.
-
(::String) — 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.