@@ -40,7 +40,7 @@ class NotificationMinimumSeverity(str, Enum):
40
40
"""Filter notifications returned by the server by minimum severity.
41
41
42
42
Inherits from :class:`str` and :class:`Enum`. Every driver API accepting a
43
- :class:`.NotificationFilter ` value will also accept a string::
43
+ :class:`.NotificationMinimumSeverity ` value will also accept a string::
44
44
45
45
>>> NotificationMinimumSeverity.OFF == "OFF"
46
46
True
@@ -128,23 +128,20 @@ class NotificationDisabledCategory(str, Enum):
128
128
"""Filter notifications returned by the server by category.
129
129
130
130
Inherits from :class:`str` and :class:`Enum`. Every driver API accepting a
131
- :class:`.NotificationFilter ` value will also accept a string::
131
+ :class:`.NotificationDisabledCategory ` value will also accept a string::
132
132
133
- >>> NotificationDisabledCategory.HINT == "HINT"
134
- True
135
133
>>> NotificationDisabledCategory.UNRECOGNIZED == "UNRECOGNIZED"
136
134
True
137
- >>> NotificationDisabledCategory.UNSUPPORTED == "UNSUPPORTED"
138
- True
139
135
>>> NotificationDisabledCategory.PERFORMANCE == "PERFORMANCE"
140
136
True
141
137
>>> NotificationDisabledCategory.DEPRECATION == "DEPRECATION"
142
138
True
143
- >>> NotificationDisabledCategory.GENERIC == "GENERIC"
144
- True
145
139
146
140
.. versionadded:: 5.7
147
141
142
+ .. versionchanged:: 5.14
143
+ Added categories :attr:`.SECURITY` and :attr:`.TOPOLOGY`.
144
+
148
145
.. seealso::
149
146
driver config :ref:`driver-notifications-disabled-categories-ref`,
150
147
session config :ref:`session-notifications-disabled-categories-ref`
@@ -156,6 +153,10 @@ class NotificationDisabledCategory(str, Enum):
156
153
PERFORMANCE = "PERFORMANCE"
157
154
DEPRECATION = "DEPRECATION"
158
155
GENERIC = "GENERIC"
156
+ #: Requires server version 5.14 or newer.
157
+ SECURITY = "SECURITY"
158
+ #: Requires server version 5.14 or newer.
159
+ TOPOLOGY = "TOPOLOGY"
159
160
160
161
161
162
if t .TYPE_CHECKING :
@@ -168,6 +169,8 @@ class NotificationDisabledCategory(str, Enum):
168
169
"PERFORMANCE" ,
169
170
"DEPRECATION" ,
170
171
"GENERIC" ,
172
+ "SECURITY" ,
173
+ "TOPOLOGY" ,
171
174
],
172
175
]
173
176
__all__ .append ("T_NotificationDisabledCategory" )
@@ -188,6 +191,9 @@ class NotificationCategory(str, Enum):
188
191
189
192
.. versionadded:: 5.7
190
193
194
+ .. versionchanged:: 5.14
195
+ Added categories :attr:`.SECURITY` and :attr:`.TOPOLOGY`.
196
+
191
197
.. seealso:: :attr:`SummaryNotification.category`
192
198
"""
193
199
@@ -197,6 +203,8 @@ class NotificationCategory(str, Enum):
197
203
PERFORMANCE = "PERFORMANCE"
198
204
DEPRECATION = "DEPRECATION"
199
205
GENERIC = "GENERIC"
206
+ SECURITY = "SECURITY"
207
+ TOPOLOGY = "TOPOLOGY"
200
208
#: Used when the server provides a Category which the driver is unaware of.
201
209
#: This can happen when connecting to a server newer than the driver or
202
210
#: before notification categories were introduced.
0 commit comments