class Google::Apis::CloudschedulerV1::PubsubTarget

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

Attributes

attributes[RW]

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>]

data[RW]

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]

topic_name[RW]

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

new(**args) click to toggle source
# File lib/google/apis/cloudscheduler_v1/classes.rb, line 685
def initialize(**args)
   update!(**args)
end

Public Instance Methods

update!(**args) click to toggle source

Update properties of this object

# File lib/google/apis/cloudscheduler_v1/classes.rb, line 690
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