Implement update of trial

Reviewer: Daniel Villafuerte (post-commit)

Issue: GCP-9507