What does ‘brass’ mean?

( n ) High ranking officials. When the brass hears about this, they aren’t going to like it.
( n ) Impudence, gall, effrontery. He had the brass to tell the teacher off.