code: def rename(self, new_name):
      
      update = copy.copy(self)
      update.name = new_name
      return self._do_update(update)
docs: Rename a host template.
      @param new_name: New host template name.
      @return: An ApiHostTemplate object.