Cal. Gov't Code § 41803
The city attorney shall perform other legal services required from time to time by the legislative body.