[][src]Struct google_compute1::InstanceGroupManagerUpdatePolicy

pub struct InstanceGroupManagerUpdatePolicy {
    pub max_surge: Option<FixedOrPercent>,
    pub type_: Option<String>,
    pub max_unavailable: Option<FixedOrPercent>,
    pub minimal_action: Option<String>,
}

There is no detailed description.

This type is not used in any activity, and only used as part of another schema.

Fields

max_surge: Option<FixedOrPercent>

The maximum number of instances that can be created above the specified targetSize during the update process. By default, a fixed value of 1 is used. This value can be either a fixed number or a percentage if the instance group has 10 or more instances. If you set a percentage, the number of instances will be rounded up if necessary.

At least one of either maxSurge or maxUnavailable must be greater than 0. Learn more about maxSurge.

type_: Option<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).

max_unavailable: Option<FixedOrPercent>

The maximum number of instances that can be unavailable during the update process. An instance is considered available if all of the following conditions are satisfied:

  • The instance's status is RUNNING.
  • If there is a health check on the instance group, the instance's liveness health check result must be HEALTHY at least once. If there is no health check on the group, then the instance only needs to have a status of RUNNING to be considered available. By default, a fixed value of 1 is used. This value can be either a fixed number or a percentage if the instance group has 10 or more instances. If you set a percentage, the number of instances will be rounded up if necessary.

At least one of either maxSurge or maxUnavailable must be greater than 0. Learn more about maxUnavailable.

minimal_action: Option<String>

Minimal action to be taken on an instance. You can specify either RESTART to restart existing instances or REPLACE to delete and create new instances from the target template. If you specify a RESTART, 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.

Trait Implementations

impl Part for InstanceGroupManagerUpdatePolicy[src]

impl Default for InstanceGroupManagerUpdatePolicy[src]

impl Clone for InstanceGroupManagerUpdatePolicy[src]

fn clone_from(&mut self, source: &Self)1.0.0[src]

Performs copy-assignment from source. Read more

impl Debug for InstanceGroupManagerUpdatePolicy[src]

impl Serialize for InstanceGroupManagerUpdatePolicy[src]

impl<'de> Deserialize<'de> for InstanceGroupManagerUpdatePolicy[src]

Auto Trait Implementations

Blanket Implementations

impl<T> ToOwned for T where
    T: Clone
[src]

type Owned = T

The resulting type after obtaining ownership.

impl<T> From<T> for T[src]

impl<T, U> Into<U> for T where
    U: From<T>, 
[src]

impl<T, U> TryFrom<U> for T where
    U: Into<T>, 
[src]

type Error = Infallible

The type returned in the event of a conversion error.

impl<T, U> TryInto<U> for T where
    U: TryFrom<T>, 
[src]

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.

impl<T> BorrowMut<T> for T where
    T: ?Sized
[src]

impl<T> Borrow<T> for T where
    T: ?Sized
[src]

impl<T> Any for T where
    T: 'static + ?Sized
[src]

impl<T> Typeable for T where
    T: Any

fn get_type(&self) -> TypeId

Get the TypeId of this object.

impl<T> DeserializeOwned for T where
    T: Deserialize<'de>, 
[src]