Added new service that implements VM state management.
Add new endpoint to set maintenance mode (update last used timestamp to prevent VMs from suspending/resuming VMs if it was suspended)
General implementation:
At startup service look over extender.service.remote-builder.platforms and form maps with instance name and update last "touched" timestamp
According to last "touched" timestamp and configured extender.gcp.controller.time-before-suspend service checks every extender.gcp.controller.check-period do VM need to be suspended.
Before every request to remote builder we invoke GCPInstanceService.touchInstance to update last "touched" timestamp
General implementation:
extender.gcp.controller.time-before-suspend
service checks everyextender.gcp.controller.check-period
do VM need to be suspended.GCPInstanceService.touchInstance
to update last "touched" timestampExample of configuration: