def update_roles(self, roles='<STR_LIT>'):
if not self.object_id:<EOL><INDENT>return False<EOL><DEDENT>url = self.build_url(self._endpoints.get('<STR_LIT>').format(<EOL>driveitem_id=self.driveitem_id, id=self.object_id))<EOL>if roles in {'<STR_LIT>', '<STR_LIT>'}:<EOL><INDENT>data = {'<STR_LIT>': ['<STR_LIT>']}<EOL><DEDENT>elif roles == {'<STR_LIT>', '<STR_LIT>'}:<EOL><INDENT>data = {'<STR_LIT>': ['<STR_LIT>']}<EOL><DEDENT>else:<EOL><INDENT>raise ValueError('<STR_LIT>'.format(roles))<EOL><DEDENT>response = self.con.patch(url, data=data)<EOL>if not response:<EOL><INDENT>return False<EOL><DEDENT>self.roles = data.get('<STR_LIT>', [])<EOL>return True<EOL>
Updates the roles of this permission

        :return: Success / Failure
        :rtype: bool