def update(self, *, name=None, position=None, visibility=None):
if name is None and position is None and visibility is None:<EOL><INDENT>raise ValueError('<STR_LIT>')<EOL><DEDENT>data = {}<EOL>if name:<EOL><INDENT>data['<STR_LIT:name>'] = name<EOL><DEDENT>if position:<EOL><INDENT>data['<STR_LIT>'] = position<EOL><DEDENT>if visibility:<EOL><INDENT>data['<STR_LIT>'] = visibility<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.position = data.get('<STR_LIT>', self.position)<EOL>self.visibility = data.get('<STR_LIT>', self.visibility)<EOL>return True<EOL>
Changes the name, position or visibility of this worksheet