The mayor shall appoint a city attorney subject to confirmation by a majority of the councilmembers. The city attorney shall be a member of the State Bar of Georgia and shall have actively practiced law for at least one year. The city attorney shall serve at the pleasure of the city council. The city attorney shall be responsible for representing and defending the city in all litigation in which the city is a party; may be the prosecuting officer in the municipal court; shall attend the meetings of the city council as directed; shall advise the city council, mayor, and other officers and employees of the city concerning legal aspects of the city's affairs; and shall perform such other duties as may be required of the city attorney by virtue of such person's position as city attorney.