Class: Google::Cloud::Scheduler::V1::PubsubTarget
- Inherits:
-
Object
- Object
- Google::Cloud::Scheduler::V1::PubsubTarget
- Extended by:
- Protobuf::MessageExts::ClassMethods
- Includes:
- Protobuf::MessageExts
- Defined in:
- proto_docs/google/cloud/scheduler/v1/target.rb
Overview
Pub/Sub target. The job will be delivered by publishing a message to the given Pub/Sub topic.
Defined Under Namespace
Classes: AttributesEntry
Instance Attribute Summary collapse
-
#attributes ⇒ ::Google::Protobuf::Map{::String => ::String}
Attributes for PubsubMessage.
-
#data ⇒ ::String
The message payload for PubsubMessage.
-
#topic_name ⇒ ::String
Required.
Instance Attribute Details
#attributes ⇒ ::Google::Protobuf::Map{::String => ::String}
Returns Attributes for PubsubMessage.
Pubsub message must contain either non-empty data, or at least one attribute.
211 212 213 214 215 216 217 218 219 220 221 222 223 |
# File 'proto_docs/google/cloud/scheduler/v1/target.rb', line 211 class PubsubTarget include ::Google::Protobuf::MessageExts extend ::Google::Protobuf::MessageExts::ClassMethods # @!attribute [rw] key # @return [::String] # @!attribute [rw] value # @return [::String] class AttributesEntry include ::Google::Protobuf::MessageExts extend ::Google::Protobuf::MessageExts::ClassMethods end end |
#data ⇒ ::String
Returns The message payload for PubsubMessage.
Pubsub message must contain either non-empty data, or at least one attribute.
211 212 213 214 215 216 217 218 219 220 221 222 223 |
# File 'proto_docs/google/cloud/scheduler/v1/target.rb', line 211 class PubsubTarget include ::Google::Protobuf::MessageExts extend ::Google::Protobuf::MessageExts::ClassMethods # @!attribute [rw] key # @return [::String] # @!attribute [rw] value # @return [::String] class AttributesEntry include ::Google::Protobuf::MessageExts extend ::Google::Protobuf::MessageExts::ClassMethods end end |
#topic_name ⇒ ::String
Returns 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.
211 212 213 214 215 216 217 218 219 220 221 222 223 |
# File 'proto_docs/google/cloud/scheduler/v1/target.rb', line 211 class PubsubTarget include ::Google::Protobuf::MessageExts extend ::Google::Protobuf::MessageExts::ClassMethods # @!attribute [rw] key # @return [::String] # @!attribute [rw] value # @return [::String] class AttributesEntry include ::Google::Protobuf::MessageExts extend ::Google::Protobuf::MessageExts::ClassMethods end end |