Green stinker

After recent rains there seemed to be a hatching of these shiny green beetles. My partner and I had never seen them before and, individually on the same day, picked them up to discover their defense against predators is to spray some gassy sort of stink on them.