From 4746433419fd58098e52759adb5a4062e5260901 Mon Sep 17 00:00:00 2001 From: Zhiwei Liang Date: Tue, 20 May 2025 04:44:04 -0400 Subject: [PATCH] Deprecate Event.mark_read --- linode_api4/objects/account.py | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/linode_api4/objects/account.py b/linode_api4/objects/account.py index c7318d87..836f4152 100644 --- a/linode_api4/objects/account.py +++ b/linode_api4/objects/account.py @@ -3,6 +3,7 @@ from datetime import datetime import requests +from deprecated import deprecated from linode_api4.errors import ApiError, UnexpectedResponseError from linode_api4.objects import DATE_FORMAT, Volume @@ -305,6 +306,12 @@ def volume(self): return Volume(self._client, self.entity.id) return None + @deprecated( + reason="`mark_read` API is deprecated. Use the 'mark_seen' " + "API instead. Please note that the `mark_seen` API functions " + "differently and will mark all events up to and including the " + "referenced event-id as 'seen' rather than individual events.", + ) def mark_read(self): """ Marks a single Event as read.