Compute: maint: adjust code to use instance object format

Update the code to use instance object format instead of dict format.

TrivialFix

Change-Id: I98814c5960f6fa83e3ace36039783ea36e39b3f9
Merge "Compute: maint: adjust code to use instance object format"