Among the duties of the city attorney shall be that of representing as counsel, without charge to the persons represented, any city officer or employee in connection with any claim, suit for damages, or other action against such person arising in connection with the performance by such officer or employee of his or her public duties; provided that such employee or officer may have his or her own counsel to assist in the defense, at the expense of the employee or officer.