The building official shall inspect or cause to be inspected at various intervals all construction or work for which a permit is required, and a final inspection shall be made of every building, structure, or electrical, gas, mechanical, or plumbing system upon completion, prior to the issuance of the certificate of occupancy or completion.