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 or structure upon completion, prior to the issuance of the certificate of occupancy.