Class: Google::Apis::PubsubliteV1::Topic
- Inherits:
-
Object
- Object
- Google::Apis::PubsubliteV1::Topic
- 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
Metadata about a topic resource.
Instance Attribute Summary collapse
-
#name ⇒ String
The name of the topic.
-
#partition_config ⇒ Google::Apis::PubsubliteV1::PartitionConfig
The settings for a topic's partitions.
-
#retention_config ⇒ Google::Apis::PubsubliteV1::RetentionConfig
The settings for a topic's message retention.
Instance Method Summary collapse
-
#initialize(**args) ⇒ Topic
constructor
A new instance of Topic.
-
#update!(**args) ⇒ Object
Update properties of this object.
Constructor Details
#initialize(**args) ⇒ Topic
Returns a new instance of Topic.
806 807 808 |
# File 'lib/google/apis/pubsublite_v1/classes.rb', line 806 def initialize(**args) update!(**args) end |
Instance Attribute Details
#name ⇒ String
The name of the topic. Structured like: projects/project_number/locations/
location/topics/topic_id
Corresponds to the JSON property name
794 795 796 |
# File 'lib/google/apis/pubsublite_v1/classes.rb', line 794 def name @name end |
#partition_config ⇒ Google::Apis::PubsubliteV1::PartitionConfig
The settings for a topic's partitions.
Corresponds to the JSON property partitionConfig
799 800 801 |
# File 'lib/google/apis/pubsublite_v1/classes.rb', line 799 def partition_config @partition_config end |
#retention_config ⇒ Google::Apis::PubsubliteV1::RetentionConfig
The settings for a topic's message retention.
Corresponds to the JSON property retentionConfig
804 805 806 |
# File 'lib/google/apis/pubsublite_v1/classes.rb', line 804 def retention_config @retention_config end |
Instance Method Details
#update!(**args) ⇒ Object
Update properties of this object
811 812 813 814 815 |
# 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 |