Class: Google::Apis::EventarcV1beta1::Pubsub
- Inherits:
-
Object
- Object
- Google::Apis::EventarcV1beta1::Pubsub
- Includes:
- Core::Hashable, Core::JsonObjectSupport
- Defined in:
- generated/google/apis/eventarc_v1beta1/classes.rb,
generated/google/apis/eventarc_v1beta1/representations.rb,
generated/google/apis/eventarc_v1beta1/representations.rb
Overview
Represents a Pub/Sub transport.
Instance Attribute Summary collapse
-
#subscription ⇒ String
The name of the Pub/Sub subscription created and managed by Eventarc system as a transport for the event delivery.
-
#topic ⇒ String
The name of the Pub/Sub topic created and managed by Eventarc system as a transport for the event delivery.
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.
690 691 692 |
# File 'generated/google/apis/eventarc_v1beta1/classes.rb', line 690 def initialize(**args) update!(**args) end |
Instance Attribute Details
#subscription ⇒ String
The name of the Pub/Sub subscription created and managed by Eventarc system as
a transport for the event delivery. The value must be in the form of projects/
PROJECT_ID/subscriptions/
SUBSCRIPTION_NAME`.
Corresponds to the JSON property
subscription`
681 682 683 |
# File 'generated/google/apis/eventarc_v1beta1/classes.rb', line 681 def subscription @subscription end |
#topic ⇒ String
The name of the Pub/Sub topic created and managed by Eventarc system as a
transport for the event delivery. The value must be in the form of projects/
PROJECT_ID/topics/
TOPIC_NAME`.
Corresponds to the JSON property
topic`
688 689 690 |
# File 'generated/google/apis/eventarc_v1beta1/classes.rb', line 688 def topic @topic end |
Instance Method Details
#update!(**args) ⇒ Object
Update properties of this object
695 696 697 698 |
# File 'generated/google/apis/eventarc_v1beta1/classes.rb', line 695 def update!(**args) @subscription = args[:subscription] if args.key?(:subscription) @topic = args[:topic] if args.key?(:topic) end |