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

Inherits:
Object
  • Object
show all
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

Instance Method Summary collapse

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_countFixnum

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

Returns:

  • (Fixnum)


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