Notifications

class Notification(...)
delete()

Delete the resource. Requires the respective permission.

last_request_age_s()
Returns:

time in seconds since the last request

Return type:

float | None

reload(expand=False)

Update the object properties by requesting the current data from the server.

Parameters:

expand – if True the properties will contain additional information.

Note

if EXPANDED_ATTRIBUTES contains '*' expand will always be True

update(**kwargs)

Update the resource properties.

Parameters:

kwargs – values to be updated (depending on the resource)

Returns:

a new instance of the updated resource

Return type:

same as object

view()

returns a mapping view of the objects internal properties as returned by the REST API.

EXPANDED_ATTRIBUTES = ('*', 'created_by', 'object', 'type', 'updated_by', 'user')
created_at: datetime
created_by: User
id
object: str
parent: Notifications
seen: bool
type: str
updated_at: datetime
updated_by: User
url

the API endpoint URL

user: User
class Notifications(...)
iter(*args, **params)
mark_all_as_read()
DEFAULT_CACHE_SIZE = -1

controls the LRU cache behaviour

  • LRU disabled, cache unbounded (-1)

  • disable caching (0)

  • limited LRU caching (>0)

cache

resource LRU cache

property client: Client
endpoint: str
url