Cloud Pub/Sub V1 API - Class Google::Cloud::PubSub::V1::MessageStoragePolicy (v0.13.1)

Reference documentation and code samples for the Cloud Pub/Sub V1 API class Google::Cloud::PubSub::V1::MessageStoragePolicy.

A policy constraining the storage of messages published to the topic.

Inherits

  • Object

Extended By

  • Google::Protobuf::MessageExts::ClassMethods

Includes

  • Google::Protobuf::MessageExts

Methods

#allowed_persistence_regions

def allowed_persistence_regions() -> ::Array<::String>
Returns
  • (::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.

#allowed_persistence_regions=

def allowed_persistence_regions=(value) -> ::Array<::String>
Parameter
  • value (::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.
Returns
  • (::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.