class Google::Apis::CloudschedulerV1beta1::PubsubTarget
Pub/Sub target. The job will be delivered by publishing a message to the given Pub/Sub topic.
Attributes
Attributes for PubsubMessage
. Pubsub message must contain either non-empty data, or at least one attribute. Corresponds to the JSON property `attributes` @return [Hash<String,String>]
The message payload for PubsubMessage
. Pubsub message must contain either non- empty data, or at least one attribute. Corresponds to the JSON property `data` NOTE: Values are automatically base64 encoded/decoded in the client library. @return [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 PubSub's [PublishRequest.name](cloud.google.com/pubsub/ docs/reference/rpc/google.pubsub.v1#publishrequest), for example `projects/ PROJECT_ID/topics/TOPIC_ID`. The topic must be in the same project as the Cloud Scheduler job. Corresponds to the JSON property `topicName` @return [String]
Public Class Methods
# File lib/google/apis/cloudscheduler_v1beta1/classes.rb, line 696 def initialize(**args) update!(**args) end
Public Instance Methods
Update properties of this object
# File lib/google/apis/cloudscheduler_v1beta1/classes.rb, line 701 def update!(**args) @attributes = args[:attributes] if args.key?(:attributes) @data = args[:data] if args.key?(:data) @topic_name = args[:topic_name] if args.key?(:topic_name) end