'List secrets. Similar to the ``docker secret ls`` command.
Args:
filters (dict): Server-side list filtering options.
Returns:
(list of :py:class:`Secret`): The secrets.
Raises:
:py:class:`docker.errors.APIError`
If the server returns an error.'

def list(self, **kwargs):

    resp = self.client.api.secrets(**kwargs)
    return [self.prepare_model(obj) for obj in resp]
