def update(self, *, visible=None, comment=None):
if visible is None and comment is None:<EOL><INDENT>raise ValueError('<STR_LIT>')<EOL><DEDENT>data = {}<EOL>if visible is not None:<EOL><INDENT>data['<STR_LIT>'] = visible<EOL><DEDENT>if comment is not None:<EOL><INDENT>data['<STR_LIT>'] = comment<EOL><DEDENT>data = None if not data else data<EOL>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.visible = data.get('<STR_LIT>', self.visible)<EOL>self.comment = data.get('<STR_LIT>', self.comment)<EOL>return True<EOL>
Updates this named range
:param bool visible: Specifies whether the object is visible or not
:param str comment: Represents the comment associated with this name
:return: Success or Failure