Any police officer violating the rules or regulations of the police department or of this Code, upon conviction therefor by the city council, after due notice and hearing, or upon the plea of guilty, shall be reprimanded, fined, suspended, or dismissed by the city council. Any one or more of said penalties may be imposed in the discretion of the city council.