NotificationArgs class
The set of arguments for Notification. The set of arguments for Notification.
Constructors
-
NotificationArgs({required Input<
String> bucket, Input<Map< ? customAttributes, Input<String, String> ?>List< ? eventTypes, Input<String> ?>String?> ? objectNamePrefix, required Input<String> payloadFormat, required Input<String> topic}) -
Creates a new NotificationArgs.
bucketThe name of the bucket.customAttributesA set of key/value attribute pairs to attach to each Cloud PubSub message published for this notification subscriptioneventTypesList 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"objectNamePrefixSpecifies 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.payloadFormatThe desired content of the Payload. One of"JSON_API_V1"or"NONE".topicThe Cloud PubSub topic to which this subscription publishes. Expects either theconst -
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-topicormy-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