Class: Google::Apis::MirrorV1::Notification

Inherits:
Object
  • Object
show all
Includes:
Core::Hashable, Core::JsonObjectSupport
Defined in:
generated/google/apis/mirror_v1/classes.rb,
generated/google/apis/mirror_v1/representations.rb,
generated/google/apis/mirror_v1/representations.rb

Overview

A notification delivered by the API.

Instance Attribute Summary collapse

Instance Method Summary collapse

Methods included from Core::JsonObjectSupport

#to_json

Methods included from Core::Hashable

process_value, #to_h

Constructor Details

#initialize(**args) ⇒ Notification

Returns a new instance of Notification



559
560
561
# File 'generated/google/apis/mirror_v1/classes.rb', line 559

def initialize(**args)
   update!(**args)
end

Instance Attribute Details

#collectionString

The collection that generated the notification. Corresponds to the JSON property collection

Returns:

  • (String)


531
532
533
# File 'generated/google/apis/mirror_v1/classes.rb', line 531

def collection
  @collection
end

#item_idString

The ID of the item that generated the notification. Corresponds to the JSON property itemId

Returns:

  • (String)


536
537
538
# File 'generated/google/apis/mirror_v1/classes.rb', line 536

def item_id
  @item_id
end

#operationString

The type of operation that generated the notification. Corresponds to the JSON property operation

Returns:

  • (String)


541
542
543
# File 'generated/google/apis/mirror_v1/classes.rb', line 541

def operation
  @operation
end

#user_actionsArray<Google::Apis::MirrorV1::UserAction>

A list of actions taken by the user that triggered the notification. Corresponds to the JSON property userActions



546
547
548
# File 'generated/google/apis/mirror_v1/classes.rb', line 546

def 
  @user_actions
end

#user_tokenString

The user token provided by the service when it subscribed for notifications. Corresponds to the JSON property userToken

Returns:

  • (String)


551
552
553
# File 'generated/google/apis/mirror_v1/classes.rb', line 551

def user_token
  @user_token
end

#verify_tokenString

The secret verify token provided by the service when it subscribed for notifications. Corresponds to the JSON property verifyToken

Returns:

  • (String)


557
558
559
# File 'generated/google/apis/mirror_v1/classes.rb', line 557

def verify_token
  @verify_token
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



564
565
566
567
568
569
570
571
# 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