Package googleapiclient :: Module channel :: Class Notification
[hide private]
[frames] | no frames]

Class Notification

source code

object --+
         |
        Notification

A Notification from a Channel.

Notifications are not usually constructed directly, but are returned
from functions like notification_from_headers().

Attributes:
  message_number: int, The unique id number of this notification.
  state: str, The state of the resource being monitored.
  uri: str, The address of the resource being monitored.
  resource_id: str, The unique identifier of the version of the resource at
    this event.

Instance Methods [hide private]
 
__init__(*args, **kwargs)
Notification constructor.
source code

Inherited from object: __delattr__, __format__, __getattribute__, __hash__, __new__, __reduce__, __reduce_ex__, __repr__, __setattr__, __sizeof__, __str__, __subclasshook__

Properties [hide private]

Inherited from object: __class__

Method Details [hide private]

__init__(*args, **kwargs)
(Constructor)

source code 
Notification constructor.

Args:
  message_number: int, The unique id number of this notification.
  state: str, The state of the resource being monitored. Can be one
    of "exists", "not_exists", or "sync".
  resource_uri: str, The address of the resource being monitored.
  resource_id: str, The identifier of the watched resource.

Decorators:
  • @util.positional(5)
Overrides: object.__init__