class Google::Apis::EventarcV1::Pubsub
Represents a Pub/Sub transport.
Attributes
subscription[RW]
Output only. The name of the Pub/Sub subscription created and managed by Eventarc system as a transport for the event delivery. Format: `projects/` PROJECT_ID`/subscriptions/`SUBSCRIPTION_NAME“. Corresponds to the JSON property `subscription` @return [String]
topic[RW]
Optional. The name of the Pub/Sub topic created and managed by Eventarc system as a transport for the event delivery. Format: `projects/`PROJECT_ID`/topics/` TOPIC_NAME“. You may set an existing topic for triggers of the type `google. cloud.pubsub.topic.v1.messagePublished` only. The topic you provide here will not be deleted by Eventarc at trigger deletion. Corresponds to the JSON property `topic` @return [String]
Public Class Methods
new(**args)
click to toggle source
# File lib/google/apis/eventarc_v1/classes.rb, line 731 def initialize(**args) update!(**args) end
Public Instance Methods
update!(**args)
click to toggle source
Update properties of this object
# File lib/google/apis/eventarc_v1/classes.rb, line 736 def update!(**args) @subscription = args[:subscription] if args.key?(:subscription) @topic = args[:topic] if args.key?(:topic) end