Skip to content

Commit 4746433

Browse files
committed
Deprecate Event.mark_read
1 parent 40c1630 commit 4746433

File tree

1 file changed

+7
-0
lines changed

1 file changed

+7
-0
lines changed

linode_api4/objects/account.py

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,7 @@
33
from datetime import datetime
44

55
import requests
6+
from deprecated import deprecated
67

78
from linode_api4.errors import ApiError, UnexpectedResponseError
89
from linode_api4.objects import DATE_FORMAT, Volume
@@ -305,6 +306,12 @@ def volume(self):
305306
return Volume(self._client, self.entity.id)
306307
return None
307308

309+
@deprecated(
310+
reason="`mark_read` API is deprecated. Use the 'mark_seen' "
311+
"API instead. Please note that the `mark_seen` API functions "
312+
"differently and will mark all events up to and including the "
313+
"referenced event-id as 'seen' rather than individual events.",
314+
)
308315
def mark_read(self):
309316
"""
310317
Marks a single Event as read.

0 commit comments

Comments
 (0)