View Source GoogleApi.Storage.V1.Model.Notification (google_api_storage v0.45.0)

A subscription to receive Google PubSub notifications.

Attributes

  • custom_attributes (type: map(), default: nil) - An optional list of additional attributes to attach to each Cloud PubSub message published for this notification subscription.
  • etag (type: String.t, default: nil) - HTTP 1.1 Entity tag for this subscription notification.
  • event_types (type: list(String.t), default: nil) - If present, only send notifications about listed event types. If empty, sent notifications for all event types.
  • id (type: String.t, default: nil) - The ID of the notification.
  • kind (type: String.t, default: storage#notification) - The kind of item this is. For notifications, this is always storage#notification.
  • object_name_prefix (type: String.t, default: nil) - If present, only apply this notification configuration to object names that begin with this prefix.
  • payload_format (type: String.t, default: JSON_API_V1) - The desired content of the Payload.
  • selfLink (type: String.t, default: nil) - The canonical URL of this notification.
  • topic (type: String.t, default: nil) - The Cloud PubSub topic to which this subscription publishes. Formatted as: '//pubsub.googleapis.com/projects/{project-identifier}/topics/{my-topic}'

Summary

Functions

Unwrap a decoded JSON object into its complex fields.

Types

@type t() :: %GoogleApi.Storage.V1.Model.Notification{
  custom_attributes: map() | nil,
  etag: String.t() | nil,
  event_types: [String.t()] | nil,
  id: String.t() | nil,
  kind: String.t() | nil,
  object_name_prefix: String.t() | nil,
  payload_format: String.t() | nil,
  selfLink: String.t() | nil,
  topic: String.t() | nil
}

Functions

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

Unwrap a decoded JSON object into its complex fields.