Class: Google::Apis::PubsubliteV1::PubSubConfig
- Inherits:
-
Object
- Object
- Google::Apis::PubsubliteV1::PubSubConfig
- Includes:
- Core::Hashable, Core::JsonObjectSupport
- Defined in:
- lib/google/apis/pubsublite_v1/classes.rb,
lib/google/apis/pubsublite_v1/representations.rb,
lib/google/apis/pubsublite_v1/representations.rb
Overview
Configuration for exporting to a Pub/Sub topic.
Instance Attribute Summary collapse
-
#topic ⇒ String
The name of the Pub/Sub topic.
Instance Method Summary collapse
-
#initialize(**args) ⇒ PubSubConfig
constructor
A new instance of PubSubConfig.
-
#update!(**args) ⇒ Object
Update properties of this object.
Constructor Details
#initialize(**args) ⇒ PubSubConfig
Returns a new instance of PubSubConfig.
722 723 724 |
# File 'lib/google/apis/pubsublite_v1/classes.rb', line 722 def initialize(**args) update!(**args) end |
Instance Attribute Details
#topic ⇒ String
The name of the Pub/Sub topic. Structured like: projects/project_number
/
topics/topic_id
. The topic may be changed.
Corresponds to the JSON property topic
720 721 722 |
# File 'lib/google/apis/pubsublite_v1/classes.rb', line 720 def topic @topic end |
Instance Method Details
#update!(**args) ⇒ Object
Update properties of this object
727 728 729 |
# File 'lib/google/apis/pubsublite_v1/classes.rb', line 727 def update!(**args) @topic = args[:topic] if args.key?(:topic) end |