Class: Google::Apis::PubsubliteV1::TopicPartitions
- Inherits:
-
Object
- Object
- Google::Apis::PubsubliteV1::TopicPartitions
- 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
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.
491 492 493 |
# File 'lib/google/apis/pubsublite_v1/classes.rb', line 491 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
489 490 491 |
# File 'lib/google/apis/pubsublite_v1/classes.rb', line 489 def partition_count @partition_count end |
Instance Method Details
#update!(**args) ⇒ Object
Update properties of this object
496 497 498 |
# File 'lib/google/apis/pubsublite_v1/classes.rb', line 496 def update!(**args) @partition_count = args[:partition_count] if args.key?(:partition_count) end |