class Google::Apis::StorageV1::Notification
A subscription to receive Google PubSub notifications.
Attributes
An optional list of additional attributes to attach to each Cloud PubSub message published for this notification subscription. Corresponds to the JSON property ‘custom_attributes` @return [Hash<String,String>]
HTTP 1.1 Entity tag for this subscription notification. Corresponds to the JSON property ‘etag` @return [String]
If present, only send notifications about listed event types. If empty, sent notifications for all event types. Corresponds to the JSON property ‘event_types` @return [Array<String>]
The ID of the notification. Corresponds to the JSON property ‘id` @return [String]
The kind of item this is. For notifications, this is always storage# notification. Corresponds to the JSON property ‘kind` @return [String]
If present, only apply this notification configuration to object names that begin with this prefix. Corresponds to the JSON property ‘object_name_prefix` @return [String]
The desired content of the Payload. Corresponds to the JSON property ‘payload_format` @return [String]
The canonical URL of this notification. Corresponds to the JSON property ‘selfLink` @return [String]
The Cloud PubSub topic to which this subscription publishes. Formatted as: ‘// pubsub.googleapis.com/projects/`project-identifier`/topics/`my-topic`’ Corresponds to the JSON property ‘topic` @return [String]
Public Class Methods
# File lib/google/apis/storage_v1/classes.rb, line 1379 def initialize(**args) update!(**args) end
Public Instance Methods
Update properties of this object
# File lib/google/apis/storage_v1/classes.rb, line 1384 def update!(**args) @custom_attributes = args[:custom_attributes] if args.key?(:custom_attributes) @etag = args[:etag] if args.key?(:etag) @event_types = args[:event_types] if args.key?(:event_types) @id = args[:id] if args.key?(:id) @kind = args[:kind] if args.key?(:kind) @object_name_prefix = args[:object_name_prefix] if args.key?(:object_name_prefix) @payload_format = args[:payload_format] if args.key?(:payload_format) @self_link = args[:self_link] if args.key?(:self_link) @topic = args[:topic] if args.key?(:topic) end