Class: Google::Apis::PubsubV1::MessageStoragePolicy
- Inherits:
-
Object
- Object
- Google::Apis::PubsubV1::MessageStoragePolicy
- Includes:
- Core::Hashable, Core::JsonObjectSupport
- Defined in:
- lib/google/apis/pubsub_v1/classes.rb,
lib/google/apis/pubsub_v1/representations.rb,
lib/google/apis/pubsub_v1/representations.rb
Overview
A policy constraining the storage of messages published to the topic.
Instance Attribute Summary collapse
-
#allowed_persistence_regions ⇒ Array<String>
A list of IDs of GCP regions where messages that are published to the topic may be persisted in storage.
Instance Method Summary collapse
-
#initialize(**args) ⇒ MessageStoragePolicy
constructor
A new instance of MessageStoragePolicy.
-
#update!(**args) ⇒ Object
Update properties of this object.
Constructor Details
#initialize(**args) ⇒ MessageStoragePolicy
Returns a new instance of MessageStoragePolicy.
669 670 671 |
# File 'lib/google/apis/pubsub_v1/classes.rb', line 669 def initialize(**args) update!(**args) end |
Instance Attribute Details
#allowed_persistence_regions ⇒ Array<String>
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
667 668 669 |
# File 'lib/google/apis/pubsub_v1/classes.rb', line 667 def allowed_persistence_regions @allowed_persistence_regions end |
Instance Method Details
#update!(**args) ⇒ Object
Update properties of this object
674 675 676 |
# File 'lib/google/apis/pubsub_v1/classes.rb', line 674 def update!(**args) @allowed_persistence_regions = args[:allowed_persistence_regions] if args.key?(:allowed_persistence_regions) end |