Cal. Water Code § 8001
As used in this chapter, “works” includes canals, ditches, levees, dikes, embankments, dams, machinery, and other appropriate or ancillary means of accomplishing the purposes mentioned in this chapter.