SynologyDSM/SynologyDSM.py
def volumes(self):
        """Returns all available volumes"""
        if self._data is not None:
            volumes = []
            for volume in self._data["volumes"]:
                volumes.append(volume["id"])
            return volumes
def volumes(self):
        if self._data is not None:
            volumes = []
            for volume in self._data["volumes"]:
                volumes.append(volume["id"])
            return volumes
def volumes ( self ) : if self . _data is not None : volumes = [ ] for volume in self . _data [ "volumes" ] : volumes . append ( volume [ "id" ] ) return volumes
Returns all available volumes
Returns all available volumes