GetRegionInstanceGroupManagerUpdatePolicy class

Constructors

GetRegionInstanceGroupManagerUpdatePolicy({required Input<String> instanceRedistributionType, required Input<int> maxSurgeFixed, required Input<int> maxSurgePercent, required Input<int> maxUnavailableFixed, required Input<int> maxUnavailablePercent, required Input<int> minReadySec, required Input<String> minimalAction, required Input<String> mostDisruptiveAllowedAction, required Input<String> replacementMethod, required Input<String> type})
Creates a new GetRegionInstanceGroupManagerUpdatePolicy. instanceRedistributionType The instance redistribution policy for regional managed instance groups. Valid values are: "PROACTIVE", "NONE". If PROACTIVE (default), the group attempts to maintain an even distribution of VM instances across zones in the region. If NONE, proactive redistribution is disabled. maxSurgeFixed Specifies a fixed number of VM instances. This must be a positive integer. Conflicts with max_surge_percent. Both cannot be 0 maxSurgePercent Specifies a percentage of instances between 0 to 100%, inclusive. For example, specify 80 for 80%. Conflicts with max_surge_fixed. maxUnavailableFixed Specifies a fixed number of VM instances. This must be a positive integer. maxUnavailablePercent Specifies a percentage of instances between 0 to 100%, inclusive. For example, specify 80 for 80%. minReadySec Minimum number of seconds to wait for after a newly created instance becomes available. This value must be from range 0, 3600. minimalAction Minimal action to be taken on an instance. You can specify either NONE to forbid any actions, REFRESH to update without stopping instances, RESTART to restart existing instances or REPLACE to delete and create new instances from the target template. If you specify a REFRESH, the Updater will attempt to perform that action only. However, if the Updater determines that the minimal action you specify is not enough to perform the update, it might perform a more disruptive action. mostDisruptiveAllowedAction Most disruptive action that is allowed to be taken on an instance. You can specify either NONE to forbid any actions, REFRESH to allow actions that do not need instance restart, RESTART to allow actions that can be applied without instance replacing or REPLACE to allow all possible actions. If the Updater determines that the minimal update action needed is more disruptive than most disruptive allowed action you specify it will not perform the update at all. replacementMethod The instance replacement method for regional managed instance groups. Valid values are: "RECREATE", "SUBSTITUTE". If SUBSTITUTE (default), the group replaces VM instances with new instances that have randomly generated names. If RECREATE, instance names are preserved. You must also set maxUnavailableFixed or maxUnavailablePercent to be greater than 0. type The type of update process. You can specify either PROACTIVE so that the instance group manager proactively executes actions in order to bring instances to their target versions or OPPORTUNISTIC so that no action is proactively executed but the update will be performed as part of other actions (for example, resizes or recreateInstances calls).
const
GetRegionInstanceGroupManagerUpdatePolicy.fromMap(Map<String, dynamic> map)
factory

Properties

hashCode → int
The hash code for this object.
no setterinherited
instanceRedistributionType → Input<String>
The instance redistribution policy for regional managed instance groups. Valid values are: "PROACTIVE", "NONE". If PROACTIVE (default), the group attempts to maintain an even distribution of VM instances across zones in the region. If NONE, proactive redistribution is disabled.
final
maxSurgeFixed → Input<int>
Specifies a fixed number of VM instances. This must be a positive integer. Conflicts with max_surge_percent. Both cannot be 0
final
maxSurgePercent → Input<int>
Specifies a percentage of instances between 0 to 100%, inclusive. For example, specify 80 for 80%. Conflicts with max_surge_fixed.
final
maxUnavailableFixed → Input<int>
Specifies a fixed number of VM instances. This must be a positive integer.
final
maxUnavailablePercent → Input<int>
Specifies a percentage of instances between 0 to 100%, inclusive. For example, specify 80 for 80%.
final
minimalAction → Input<String>
Minimal action to be taken on an instance. You can specify either NONE to forbid any actions, REFRESH to update without stopping instances, RESTART to restart existing instances or REPLACE to delete and create new instances from the target template. If you specify a REFRESH, the Updater will attempt to perform that action only. However, if the Updater determines that the minimal action you specify is not enough to perform the update, it might perform a more disruptive action.
final
minReadySec → Input<int>
Minimum number of seconds to wait for after a newly created instance becomes available. This value must be from range 0, 3600.
final
mostDisruptiveAllowedAction → Input<String>
Most disruptive action that is allowed to be taken on an instance. You can specify either NONE to forbid any actions, REFRESH to allow actions that do not need instance restart, RESTART to allow actions that can be applied without instance replacing or REPLACE to allow all possible actions. If the Updater determines that the minimal update action needed is more disruptive than most disruptive allowed action you specify it will not perform the update at all.
final
replacementMethod → Input<String>
The instance replacement method for regional managed instance groups. Valid values are: "RECREATE", "SUBSTITUTE". If SUBSTITUTE (default), the group replaces VM instances with new instances that have randomly generated names. If RECREATE, instance names are preserved. You must also set maxUnavailableFixed or maxUnavailablePercent to be greater than 0.
final
runtimeType → Type
A representation of the runtime type of the object.
no setterinherited
type → Input<String>
The type of update process. You can specify either PROACTIVE so that the instance group manager proactively executes actions in order to bring instances to their target versions or OPPORTUNISTIC so that no action is proactively executed but the update will be performed as part of other actions (for example, resizes or recreateInstances calls).
final

Methods

noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
toMap() → Map<String, dynamic>
toString() → String
A string representation of this object.
inherited

Operators

operator ==(Object other) → bool
The equality operator.
inherited