def update_record(self, dns_type, name, content, **kwargs):
record = self.get_record(dns_type, name)<EOL>data = {<EOL>'<STR_LIT:type>': dns_type,<EOL>'<STR_LIT:name>': name,<EOL>'<STR_LIT:content>': content<EOL>}<EOL>if kwargs.get('<STR_LIT>') and kwargs['<STR_LIT>'] != <NUM_LIT:1>:<EOL><INDENT>data['<STR_LIT>'] = kwargs['<STR_LIT>']<EOL><DEDENT>if kwargs.get('<STR_LIT>') is True:<EOL><INDENT>data['<STR_LIT>'] = True<EOL><DEDENT>else:<EOL><INDENT>data['<STR_LIT>'] = False<EOL><DEDENT>content = self.request(<EOL>urllib.parse.urljoin(self.api_url, self.zone['<STR_LIT:id>'] + '<STR_LIT>' + record['<STR_LIT:id>']),<EOL>'<STR_LIT>',<EOL>data=data<EOL>)<EOL>print('<STR_LIT>')<EOL>return content['<STR_LIT:result>']<EOL>
Update dns record
:param dns_type:
:param name:
:param content:
:param kwargs:
:return: