Each unit has a gas shut-off valve on the lower wall next to the kitchen range. You have to open a cabinet to get to it; you’ll see a white pipe with a white lever. Turn the lever so that it’s perpendicular to the length of the pipe to shut gas off.
Note that you will be unable to turn the gas on again yourself, it will require a visit from PG&E to turn back on.