Class: Google::Apis::PubsubliteV1::PubSubConfig

Inherits:
Object
  • Object
show all
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

Instance Method Summary collapse

Constructor Details

#initialize(**args) ⇒ PubSubConfig

Returns a new instance of PubSubConfig.



731
732
733
# File 'lib/google/apis/pubsublite_v1/classes.rb', line 731

def initialize(**args)
   update!(**args)
end

Instance Attribute Details

#topicString

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

Returns:

  • (String)


729
730
731
# File 'lib/google/apis/pubsublite_v1/classes.rb', line 729

def topic
  @topic
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



736
737
738
# File 'lib/google/apis/pubsublite_v1/classes.rb', line 736

def update!(**args)
  @topic = args[:topic] if args.key?(:topic)
end