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.



722
723
724
# File 'lib/google/apis/pubsublite_v1/classes.rb', line 722

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)


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