class Google::Apis::MirrorV1::Notification
A notification delivered by the API.
Attributes
The collection that generated the notification. Corresponds to the JSON property `collection` @return [String]
The ID of the item that generated the notification. Corresponds to the JSON property `itemId` @return [String]
The type of operation that generated the notification. Corresponds to the JSON property `operation` @return [String]
A list of actions taken by the user that triggered the notification. Corresponds to the JSON property `userActions` @return [Array<Google::Apis::MirrorV1::UserAction>]
The user token provided by the service when it subscribed for notifications. Corresponds to the JSON property `userToken` @return [String]
The secret verify token provided by the service when it subscribed for notifications. Corresponds to the JSON property `verifyToken` @return [String]
Public Class Methods
# File generated/google/apis/mirror_v1/classes.rb, line 559 def initialize(**args) update!(**args) end
Public Instance Methods
Update properties of this object
# File generated/google/apis/mirror_v1/classes.rb, line 564 def update!(**args) @collection = args[:collection] if args.key?(:collection) @item_id = args[:item_id] if args.key?(:item_id) @operation = args[:operation] if args.key?(:operation) @user_actions = args[:user_actions] if args.key?(:user_actions) @user_token = args[:user_token] if args.key?(:user_token) @verify_token = args[:verify_token] if args.key?(:verify_token) end