The council may appoint a city attorney and provide for the payment of such attorney for services rendered to the city. The city attorney shall be responsible for representing and/or directing all litigation in which the city is a party; shall attend the meetings of the mayor and/or council as directed; shall advise the 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 requested by the mayor, council, or city manager.