docs: def update(gandi, fqdn, name, type, value, ttl, file):
      """Update record entry for a domain.
  
      --file option will ignore other parameters and overwrite current zone
      content with provided file content.
      """
      domains = gandi.dns.list()
      domains = [domain['fqdn'] for domain in domains]
      if fqdn not in domains:
          gandi.echo('Sorry domain %s does not exist' % fqdn)
          gandi.echo('Please use one of the following: %s' % ', '.join(domains))
          return
  
      content = ''
      if file:
          content = file.read()
      elif not sys.stdin.isatty():
          content = click.get_text_stream('stdin').read()
  
      content = content.strip()
      if not content and not name and not type and not value:
          click.echo('Cannot find parameters for zone content to update.')
          return
  
      if name and type and not value:
          click.echo('You must provide one or more value parameter.')
          return
  
      result = gandi.dns.update_record(fqdn, name, type, value, ttl, content)
      gandi.echo(result['message'])