Updating sample to v1beta2

Reviewed in https://codereview.appspot.com/55360043/