class Google::Apis::PubsubliteV1::PartitionConfig

The settings for a topic's partitions.

Attributes

capacity[RW]

The throughput capacity configuration for each partition. Corresponds to the JSON property `capacity` @return [Google::Apis::PubsubliteV1::Capacity]

count[RW]

The number of partitions in the topic. Must be at least 1. Once a topic has been created the number of partitions can be increased but not decreased. Message ordering is not guaranteed across a topic resize. For more information see cloud.google.com/pubsub/lite/docs/topics#scaling_capacity Corresponds to the JSON property `count` @return [Fixnum]

scale[RW]

DEPRECATED: Use capacity instead which can express a superset of configurations. Every partition in the topic is allocated throughput equivalent to `scale` times the standard partition throughput (4 MiB/s). This is also reflected in the cost of this topic; a topic with `scale` of 2 and count of 10 is charged for 20 partitions. This value must be in the range [1,4] . Corresponds to the JSON property `scale` @return [Fixnum]

Public Class Methods

new(**args) click to toggle source
# File lib/google/apis/pubsublite_v1/classes.rb, line 576
def initialize(**args)
   update!(**args)
end

Public Instance Methods

update!(**args) click to toggle source

Update properties of this object

# File lib/google/apis/pubsublite_v1/classes.rb, line 581
def update!(**args)
  @capacity = args[:capacity] if args.key?(:capacity)
  @count = args[:count] if args.key?(:count)
  @scale = args[:scale] if args.key?(:scale)
end