Class: Google::Apis::MirrorV1::Notification
- Inherits:
-
Object
- Object
- Google::Apis::MirrorV1::Notification
- 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
-
#collection ⇒ String
The collection that generated the notification.
-
#item_id ⇒ String
The ID of the item that generated the notification.
-
#operation ⇒ String
The type of operation that generated the notification.
-
#user_actions ⇒ Array<Google::Apis::MirrorV1::UserAction>
A list of actions taken by the user that triggered the notification.
-
#user_token ⇒ String
The user token provided by the service when it subscribed for notifications.
-
#verify_token ⇒ String
The secret verify token provided by the service when it subscribed for notifications.
Instance Method Summary collapse
-
#initialize(**args) ⇒ Notification
constructor
A new instance of Notification.
-
#update!(**args) ⇒ Object
Update properties of this object.
Methods included from Core::JsonObjectSupport
Methods included from Core::Hashable
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
#collection ⇒ String
The collection that generated the notification.
Corresponds to the JSON property collection
531 532 533 |
# File 'generated/google/apis/mirror_v1/classes.rb', line 531 def collection @collection end |
#item_id ⇒ String
The ID of the item that generated the notification.
Corresponds to the JSON property itemId
536 537 538 |
# File 'generated/google/apis/mirror_v1/classes.rb', line 536 def item_id @item_id end |
#operation ⇒ String
The type of operation that generated the notification.
Corresponds to the JSON property operation
541 542 543 |
# File 'generated/google/apis/mirror_v1/classes.rb', line 541 def operation @operation end |
#user_actions ⇒ Array<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 @user_actions end |
#user_token ⇒ String
The user token provided by the service when it subscribed for notifications.
Corresponds to the JSON property userToken
551 552 553 |
# File 'generated/google/apis/mirror_v1/classes.rb', line 551 def user_token @user_token end |
#verify_token ⇒ String
The secret verify token provided by the service when it subscribed for
notifications.
Corresponds to the JSON property verifyToken
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 |