Spdk/python/spdk/rpc/notify.py
wanghailiangx 405be3b794 notify module: remove support for deprecated RPC names
These were deprecated in 2019, it's time to remove
support for them now.

Change-Id: I477da05a42ca607fbad4d178aa541726197d7c83
Signed-off-by: wanghailiangx <hailiangx.e.wang@intel.com>
Reviewed-on: https://review.spdk.io/gerrit/c/spdk/spdk/+/12775
Reviewed-by: Changpeng Liu <changpeng.liu@intel.com>
Reviewed-by: Tomasz Zawadzki <tomasz.zawadzki@intel.com>
Reviewed-by: Jim Harris <james.r.harris@intel.com>
Community-CI: Broadcom CI <spdk-ci.pdl@broadcom.com>
Community-CI: Mellanox Build Bot
Tested-by: SPDK CI Jenkins <sys_sgci@intel.com>
2022-05-23 16:13:30 +00:00

29 lines
562 B
Python

from .helpers import deprecated_alias
def notify_get_types(client):
return client.call("notify_get_types")
def notify_get_notifications(client,
id=None,
max=None):
"""
Args:
id First ID to start fetching from
max Maximum number of notifications to return in response
Return:
Notifications array
"""
params = {}
if id:
params['id'] = id
if max:
params['max'] = max
return client.call("notify_get_notifications", params)