'Edit this team.
:param str name: (required)
:param str permission: (optional), (\'pull\', \'push\', \'admin\')
:returns: bool'

@requires_auth
def edit(self, name, permission=u''):

    if name:
        data = {u'name': name, u'permission': permission}
        json = self._json(self._patch(self._api, data=dumps(data)), 200)
        if json:
            self._update_attributes(json)
            return True
    return False
