Add list_subscriptions() back for backward compatibility.

This commit is contained in:
rht 2021-03-10 06:23:53 -05:00 committed by Tim Abbott
parent 57e8886dfe
commit 61abb4f59c

View file

@ -1288,6 +1288,11 @@ class Client:
request=request, request=request,
) )
def list_subscriptions(self, request: Optional[Dict[str, Any]] = None) -> Dict[str, Any]:
logger.warning("list_subscriptions() is deprecated."
" Please use get_subscriptions() instead.")
return self.get_subscriptions(request)
def add_subscriptions(self, streams: Iterable[Dict[str, Any]], **kwargs: Any) -> Dict[str, Any]: def add_subscriptions(self, streams: Iterable[Dict[str, Any]], **kwargs: Any) -> Dict[str, Any]:
''' '''
See examples/subscribe for example usage. See examples/subscribe for example usage.