Hi there! Are you looking for the official Deno documentation? Try docs.deno.com for all your Deno learning needs.

Notification

import type { Notification } from "https://googleapis.deno.dev/v1/storage:v1.ts";

A subscription to receive Google PubSub notifications.

interface Notification {
custom_attributes?: {
[key: string]: string;
}
;
etag?: string;
event_types?: string[];
id?: string;
kind?: string;
object_name_prefix?: string;
payload_format?: string;
selfLink?: string;
topic?: string;
}

§Properties

§
custom_attributes?: {
[key: string]: string;
}
[src]

An optional list of additional attributes to attach to each Cloud PubSub message published for this notification subscription.

§
etag?: string
[src]

HTTP 1.1 Entity tag for this subscription notification.

§
event_types?: string[]
[src]

If present, only send notifications about listed event types. If empty, sent notifications for all event types.

§
id?: string
[src]

The ID of the notification.

§
kind?: string
[src]

The kind of item this is. For notifications, this is always storage#notification.

§
object_name_prefix?: string
[src]

If present, only apply this notification configuration to object names that begin with this prefix.

§
payload_format?: string
[src]

The desired content of the Payload.

§
topic?: string
[src]

The Cloud PubSub topic to which this subscription publishes. Formatted as: '//pubsub.googleapis.com/projects/{project-identifier}/topics/{my-topic}'