NotificationArgs class

The set of arguments for Notification. The set of arguments for Notification.

Constructors

NotificationArgs({required Input<String> bucket, Input<Map<String, String>?>? customAttributes, Input<List<String>?>? eventTypes, Input<String?>? objectNamePrefix, required Input<String> payloadFormat, required Input<String> topic})
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
const
NotificationArgs.fromMap(Map<String, dynamic> map)
factory

Properties

bucket → Input<String>
The name of the bucket.
final
customAttributes → Input<Map<String, String>?>?
A set of key/value attribute pairs to attach to each Cloud PubSub message published for this notification subscription
final
eventTypes → Input<List<String>?>?
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"
final
hashCode → int
The hash code for this object.
no setterinherited
objectNamePrefix → Input<String?>?
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.
final
payloadFormat → Input<String>
The desired content of the Payload. One of "JSON_API_V1" or "NONE".
final
runtimeType → Type
A representation of the runtime type of the object.
no setterinherited
topic → Input<String>
The Cloud PubSub topic to which this subscription publishes. Expects either the topic name, assumed to belong to the default GCP provider project, or the project-level name, i.e. projects/my-gcp-project/topics/my-topic or my-topic. If the project is not set in the provider, you will need to use the project-level name.
final

Methods

noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
toMap() → Map<String, dynamic>
toString() → String
A string representation of this object.
inherited

Operators

operator ==(Object other) → bool
The equality operator.
inherited