Generate pre and post resource update hooks