A fuel gas pipe supplies two buildings on a single lot. Where is the shutoff valve required?

A fuel gas pipe supplies two buildings on a single lot. Where is the shutoff valve required?