restartType property

String? restartType
getter/setter pair

Whether the Instance should be automatically restarted whenever it is terminated by Compute Engine (not terminated by user).

This configuration is identical to automaticRestart field in Compute Engine create instance under scheduling. It was changed to an enum (instead of a boolean) to match the default value in Compute Engine which is automatic restart. Possible string values are:

  • "RESTART_TYPE_UNSPECIFIED" : Unspecified behavior. This will use the default.
  • "AUTOMATIC_RESTART" : The Instance should be automatically restarted whenever it is terminated by Compute Engine.
  • "NO_AUTOMATIC_RESTART" : The Instance isn't automatically restarted whenever it is terminated by Compute Engine.

Implementation

core.String? restartType;