code: def list(self, id, filter=None, type=None, sort=None, limit=None, page=None): # pylint: disable=invalid-name,redefined-builtin
          
          schema = AttachmentSchema(exclude=('path'))
          resp = self.service.list(self._base(id), filter, type, sort, limit, page)
          at, l = self.service.decode(schema, resp, many=True, links=True)
          return Page(at, l)
docs: Get a list of a device's attachments.
  
          :param id: Device ID as an int.
          :param filter: (optional) Filters to apply as a string list.
          :param type: (optional) `union` or `inter` as string.
          :param sort: (optional) Sort fields to apply as string list.
          :param limit: (optional) Limit returned list length.
          :param page: (optional) Page to return.
          :return: :class:`attachments.Page <attachments.Page>` object