def update(self, *, name=None, show_headers=None, show_totals=None, style=None):
if name is None and show_headers is None and show_totals is None and style is None:<EOL><INDENT>raise ValueError('<STR_LIT>')<EOL><DEDENT>data = {}<EOL>if name:<EOL><INDENT>data['<STR_LIT:name>'] = name<EOL><DEDENT>if show_headers:<EOL><INDENT>data['<STR_LIT>'] = show_headers<EOL><DEDENT>if show_totals:<EOL><INDENT>data['<STR_LIT>'] = show_totals<EOL><DEDENT>if style:<EOL><INDENT>data['<STR_LIT>'] = style<EOL><DEDENT>response = self.session.patch(self.build_url('<STR_LIT>'), data=data)<EOL>if not response:<EOL><INDENT>return False<EOL><DEDENT>data = response.json()<EOL>self.name = data.get('<STR_LIT:name>', self.name)<EOL>self.show_headers = data.get('<STR_LIT>', self.show_headers)<EOL>self.show_totals = data.get('<STR_LIT>', self.show_totals)<EOL>self.style = data.get('<STR_LIT>', self.style)<EOL>return True<EOL>
Updates this table
:param str name: the name of the table
:param bool show_headers: whether or not to show the headers
:param bool show_totals: whether or not to show the totals
:param str style: the style of the table
:return: Success or Failure