@@ -30,6 +30,19 @@ class InstanceGroupManagerInstanceLifecyclePolicy extends \Google\Model
3030 public const DEFAULT_ACTION_ON_FAILURE_REPAIR = 'REPAIR ' ;
3131 public const FORCE_UPDATE_ON_REPAIR_NO = 'NO ' ;
3232 public const FORCE_UPDATE_ON_REPAIR_YES = 'YES ' ;
33+ /**
34+ * (Default) MIG uses the same action configured for
35+ * instanceLifecyclePolicy.defaultActionOnFailure field.
36+ */
37+ public const ON_FAILED_HEALTH_CHECK_DEFAULT_ACTION = 'DEFAULT_ACTION ' ;
38+ /**
39+ * MIG doesn't repair an unhealthy VM.
40+ */
41+ public const ON_FAILED_HEALTH_CHECK_DO_NOTHING = 'DO_NOTHING ' ;
42+ /**
43+ * MIG automatically repairs an unhealthy VM by recreating it.
44+ */
45+ public const ON_FAILED_HEALTH_CHECK_REPAIR = 'REPAIR ' ;
3346 /**
3447 * The action that a MIG performs on a failed or an unhealthy VM. A VM is
3548 * marked as unhealthy when the application running on that VM fails a health
@@ -54,6 +67,18 @@ class InstanceGroupManagerInstanceLifecyclePolicy extends \Google\Model
5467 * @var string
5568 */
5669 public $ forceUpdateOnRepair ;
70+ /**
71+ * The action that a MIG performs on an unhealthy VM. A VM is marked as
72+ * unhealthy when the application running on that VM fails a health check.
73+ * Valid values are: - DEFAULT_ACTION (default): MIG uses the same
74+ * action configured for instanceLifecyclePolicy.defaultActionOnFailure
75+ * field. - REPAIR: MIG automatically repairs an unhealthy VM by
76+ * recreating it. - DO_NOTHING: MIG doesn't repair an unhealthy VM. For
77+ * more information, see About repairing VMs in a MIG.
78+ *
79+ * @var string
80+ */
81+ public $ onFailedHealthCheck ;
5782
5883 /**
5984 * The action that a MIG performs on a failed or an unhealthy VM. A VM is
@@ -103,6 +128,30 @@ public function getForceUpdateOnRepair()
103128 {
104129 return $ this ->forceUpdateOnRepair ;
105130 }
131+ /**
132+ * The action that a MIG performs on an unhealthy VM. A VM is marked as
133+ * unhealthy when the application running on that VM fails a health check.
134+ * Valid values are: - DEFAULT_ACTION (default): MIG uses the same
135+ * action configured for instanceLifecyclePolicy.defaultActionOnFailure
136+ * field. - REPAIR: MIG automatically repairs an unhealthy VM by
137+ * recreating it. - DO_NOTHING: MIG doesn't repair an unhealthy VM. For
138+ * more information, see About repairing VMs in a MIG.
139+ *
140+ * Accepted values: DEFAULT_ACTION, DO_NOTHING, REPAIR
141+ *
142+ * @param self::ON_FAILED_HEALTH_CHECK_* $onFailedHealthCheck
143+ */
144+ public function setOnFailedHealthCheck ($ onFailedHealthCheck )
145+ {
146+ $ this ->onFailedHealthCheck = $ onFailedHealthCheck ;
147+ }
148+ /**
149+ * @return self::ON_FAILED_HEALTH_CHECK_*
150+ */
151+ public function getOnFailedHealthCheck ()
152+ {
153+ return $ this ->onFailedHealthCheck ;
154+ }
106155}
107156
108157// Adding a class alias for backwards compatibility with the previous class name.
0 commit comments