The city council may, by resolution or ordinance, regulate or entirely prohibit traffic upon any street, alley, or portion thereof, and when so regulated or prohibited may direct the placing of traffic control devices upon such streets to indicate such regulation or prohibition.