Any officer or employee, or member of the construction board of adjustment and appeals, charged with the enforcement of this Code, acting for the applicable governing authority in the discharge of his duties, shall not thereby render himself personally liable, and is hereby relieved from all personal liability, for any damage that may occur to persons or property as a result of any act required or permitted in the discharge of his duties. Any suit brought against any officer or employee or member because of such act performed by him in the enforcement of any provision of this Code shall be defended by the city attorney until the final termination of the proceedings.