The council shall appoint a city attorney to serve at its pleasure and to be its legal adviser. (1971, c. 698, s. 1.)