class Google::Apis::MirrorV1::Notification

A notification delivered by the API.

Attributes

collection[RW]

The collection that generated the notification. Corresponds to the JSON property `collection` @return [String]

item_id[RW]

The ID of the item that generated the notification. Corresponds to the JSON property `itemId` @return [String]

operation[RW]

The type of operation that generated the notification. Corresponds to the JSON property `operation` @return [String]

user_actions[RW]

A list of actions taken by the user that triggered the notification. Corresponds to the JSON property `userActions` @return [Array<Google::Apis::MirrorV1::UserAction>]

user_token[RW]

The user token provided by the service when it subscribed for notifications. Corresponds to the JSON property `userToken` @return [String]

verify_token[RW]

The secret verify token provided by the service when it subscribed for notifications. Corresponds to the JSON property `verifyToken` @return [String]

Public Class Methods

new(**args) click to toggle source
# File generated/google/apis/mirror_v1/classes.rb, line 559
def initialize(**args)
   update!(**args)
end

Public Instance Methods

update!(**args) click to toggle source

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