Class: Google::Apis::PubsubliteV1::TopicPartitions
- Inherits:
-
Object
- Object
- Google::Apis::PubsubliteV1::TopicPartitions
- Includes:
- Core::Hashable, Core::JsonObjectSupport
- Defined in:
- generated/google/apis/pubsublite_v1/classes.rb,
generated/google/apis/pubsublite_v1/representations.rb,
generated/google/apis/pubsublite_v1/representations.rb
Overview
Response for GetTopicPartitions.
Instance Attribute Summary collapse
-
#partition_count ⇒ Fixnum
The number of partitions in the topic.
Instance Method Summary collapse
-
#initialize(**args) ⇒ TopicPartitions
constructor
A new instance of TopicPartitions.
-
#update!(**args) ⇒ Object
Update properties of this object.
Constructor Details
#initialize(**args) ⇒ TopicPartitions
Returns a new instance of TopicPartitions.
450 451 452 |
# File 'generated/google/apis/pubsublite_v1/classes.rb', line 450 def initialize(**args) update!(**args) end |
Instance Attribute Details
#partition_count ⇒ Fixnum
The number of partitions in the topic.
Corresponds to the JSON property partitionCount
448 449 450 |
# File 'generated/google/apis/pubsublite_v1/classes.rb', line 448 def partition_count @partition_count end |
Instance Method Details
#update!(**args) ⇒ Object
Update properties of this object
455 456 457 |
# File 'generated/google/apis/pubsublite_v1/classes.rb', line 455 def update!(**args) @partition_count = args[:partition_count] if args.key?(:partition_count) end |