View Source GoogleApi.PubSub.V1.Model.MessageStoragePolicy (google_api_pub_sub v0.38.0)

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

Attributes

  • allowedPersistenceRegions (type: list(String.t), default: nil) - 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.
  • enforceInTransit (type: boolean(), default: nil) - 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.

Summary

Functions

Unwrap a decoded JSON object into its complex fields.

Types

@type t() :: %GoogleApi.PubSub.V1.Model.MessageStoragePolicy{
  allowedPersistenceRegions: [String.t()] | nil,
  enforceInTransit: boolean() | nil
}

Functions

@spec decode(struct(), keyword()) :: struct()

Unwrap a decoded JSON object into its complex fields.