Class: Google::Apis::EventarcV1::Pubsub
- Inherits:
-
Object
- Object
- Google::Apis::EventarcV1::Pubsub
- Includes:
- Core::Hashable, Core::JsonObjectSupport
- Defined in:
- lib/google/apis/eventarc_v1/classes.rb,
lib/google/apis/eventarc_v1/representations.rb,
lib/google/apis/eventarc_v1/representations.rb
Overview
Represents a Pub/Sub transport.
Instance Attribute Summary collapse
-
#subscription ⇒ String
Output only.
-
#topic ⇒ String
Optional.
Instance Method Summary collapse
-
#initialize(**args) ⇒ Pubsub
constructor
A new instance of Pubsub.
-
#update!(**args) ⇒ Object
Update properties of this object.
Constructor Details
#initialize(**args) ⇒ Pubsub
Returns a new instance of Pubsub.
1299 1300 1301 |
# File 'lib/google/apis/eventarc_v1/classes.rb', line 1299 def initialize(**args) update!(**args) end |
Instance Attribute Details
#subscription ⇒ String
Output only. The name of the Pub/Sub subscription created and managed by
Eventarc as a transport for the event delivery. Format: projects/
PROJECT_ID/
subscriptions/
SUBSCRIPTION_NAME`.
Corresponds to the JSON property
subscription`
1288 1289 1290 |
# File 'lib/google/apis/eventarc_v1/classes.rb', line 1288 def subscription @subscription end |
#topic ⇒ String
Optional. The name of the Pub/Sub topic created and managed by Eventarc as a
transport for the event delivery. Format: projects/
PROJECT_ID/topics/
TOPIC_NAME`. You can set an existing topic for triggers of the type
google.
cloud.pubsub.topic.v1.messagePublished. The topic you provide here is not
deleted by Eventarc at trigger deletion.
Corresponds to the JSON property
topic`
1297 1298 1299 |
# File 'lib/google/apis/eventarc_v1/classes.rb', line 1297 def topic @topic end |
Instance Method Details
#update!(**args) ⇒ Object
Update properties of this object
1304 1305 1306 1307 |
# File 'lib/google/apis/eventarc_v1/classes.rb', line 1304 def update!(**args) @subscription = args[:subscription] if args.key?(:subscription) @topic = args[:topic] if args.key?(:topic) end |