Class: Google::Cloud::PubSub::V1::MessageStoragePolicy
- Inherits:
-
Object
- Object
- Google::Cloud::PubSub::V1::MessageStoragePolicy
- Extended by:
- Protobuf::MessageExts::ClassMethods
- Includes:
- Protobuf::MessageExts
- Defined in:
- proto_docs/google/pubsub/v1/pubsub.rb
Overview
A policy constraining the storage of messages published to the topic.
Instance Attribute Summary collapse
-
#allowed_persistence_regions ⇒ ::Array<::String>
Optional.
-
#enforce_in_transit ⇒ ::Boolean
Optional.
Instance Attribute Details
#allowed_persistence_regions ⇒ ::Array<::String>
Returns Optional. A list of IDs of Google Cloud regions where messages that are published to the topic may be persisted in storage. Messages published by publishers running in non-allowed Google Cloud regions (or running outside of Google Cloud altogether) are routed for storage in one of the allowed regions. An empty list means that no regions are allowed, and is not a valid configuration.
40 41 42 43 |
# File 'proto_docs/google/pubsub/v1/pubsub.rb', line 40 class MessageStoragePolicy include ::Google::Protobuf::MessageExts extend ::Google::Protobuf::MessageExts::ClassMethods end |
#enforce_in_transit ⇒ ::Boolean
Returns Optional. If true, allowed_persistence_regions
is also used to enforce
in-transit guarantees for messages. That is, Pub/Sub will fail
Publish operations on this topic and subscribe operations
on any subscription attached to this topic in any region that is
not in allowed_persistence_regions
.
40 41 42 43 |
# File 'proto_docs/google/pubsub/v1/pubsub.rb', line 40 class MessageStoragePolicy include ::Google::Protobuf::MessageExts extend ::Google::Protobuf::MessageExts::ClassMethods end |