class Google::Apis::PubsubV1::MessageStoragePolicy
A policy constraining the storage of messages published to the topic.
Attributes
allowed_persistence_regions[RW]
A list of IDs of GCP regions where messages that are published to the topic may be persisted in storage. Messages published by publishers running in non- allowed GCP regions (or running outside of GCP altogether) will be routed for storage in one of the allowed regions. An empty list means that no regions are allowed, and is not a valid configuration. Corresponds to the JSON property `allowedPersistenceRegions` @return [Array<String>]
Public Class Methods
new(**args)
click to toggle source
# File lib/google/apis/pubsub_v1/classes.rb, line 467 def initialize(**args) update!(**args) end
Public Instance Methods
update!(**args)
click to toggle source
Update properties of this object
# File lib/google/apis/pubsub_v1/classes.rb, line 472 def update!(**args) @allowed_persistence_regions = args[:allowed_persistence_regions] if args.key?(:allowed_persistence_regions) end