class Google::Apis::PubsubliteV1::RetentionConfig

The settings for a topic's message retention.

Attributes

per_partition_bytes[RW]

The provisioned storage, in bytes, per partition. If the number of bytes stored in any of the topic's partitions grows beyond this value, older messages will be dropped to make room for newer ones, regardless of the value of `period`. Corresponds to the JSON property `perPartitionBytes` @return [Fixnum]

period[RW]

How long a published message is retained. If unset, messages will be retained as long as the bytes retained for each partition is below `per_partition_bytes` . Corresponds to the JSON property `period` @return [String]

Public Class Methods

new(**args) click to toggle source
# File lib/google/apis/pubsublite_v1/classes.rb, line 632
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 637
def update!(**args)
  @per_partition_bytes = args[:per_partition_bytes] if args.key?(:per_partition_bytes)
  @period = args[:period] if args.key?(:period)
end