class Google::Apis::PubsubliteV1::Topic
Metadata about a topic resource.
Attributes
name[RW]
The name of the topic. Structured like: projects/`project_number`/locations/` location`/topics/`topic_id` Corresponds to the JSON property `name` @return [String]
partition_config[RW]
The settings for a topic's partitions. Corresponds to the JSON property `partitionConfig` @return [Google::Apis::PubsubliteV1::PartitionConfig]
retention_config[RW]
The settings for a topic's message retention. Corresponds to the JSON property `retentionConfig` @return [Google::Apis::PubsubliteV1::RetentionConfig]
Public Class Methods
new(**args)
click to toggle source
# File lib/google/apis/pubsublite_v1/classes.rb, line 806 def initialize(**args) update!(**args) end
Public Instance Methods
update!(**args)
click to toggle source
Update properties of this object
# File lib/google/apis/pubsublite_v1/classes.rb, line 811 def update!(**args) @name = args[:name] if args.key?(:name) @partition_config = args[:partition_config] if args.key?(:partition_config) @retention_config = args[:retention_config] if args.key?(:retention_config) end