NotificationArgs constructor
Creates a new NotificationArgs.
bucket The name of the bucket.
customAttributes A set of key/value attribute pairs to attach to each Cloud PubSub message published for this notification subscription
eventTypes List of event type filters for this notification config. If not specified, Cloud Storage will send notifications for all event types. The valid types are: "OBJECT_FINALIZE", "OBJECT_METADATA_UPDATE", "OBJECT_DELETE", "OBJECT_ARCHIVE"
objectNamePrefix Specifies a prefix path filter for this notification config. Cloud Storage will only send notifications for objects in this bucket whose names begin with the specified prefix.
payloadFormat The desired content of the Payload. One of "JSON_API_V1" or "NONE".
topic The Cloud PubSub topic to which this subscription publishes. Expects either the
Implementation
const NotificationArgs({
required this.bucket,
this.customAttributes,
this.eventTypes,
this.objectNamePrefix,
required this.payloadFormat,
required this.topic,
});