Class: Google::Apis::PubsubliteV1::TopicPartitions

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

Response for GetTopicPartitions.

Instance Attribute Summary collapse

Instance Method Summary collapse

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_countFixnum

The number of partitions in the topic. Corresponds to the JSON property partitionCount

Returns:

  • (Fixnum)


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