#[non_exhaustive]pub struct InstanceGroupManagerVersion {
pub instance_template: Option<String>,
pub name: Option<String>,
pub target_size: Option<FixedOrPercent>,
/* private fields */
}instance-group-managers or region-instance-group-managers only.Fields (Non-exhaustive)§
This struct is marked as non-exhaustive
Struct { .. } syntax; cannot be matched against without a wildcard ..; and struct update syntax will not work.instance_template: Option<String>The URL of the instance template that is specified for this managed instance group. The group uses this template to create new instances in the managed instance group until the targetSize for this version is reached. The templates for existing instances in the group do not change unless you run recreateInstances, run applyUpdatesToInstances, or set the group’s updatePolicy.type to PROACTIVE; in those cases, existing instances are updated until the targetSize for this version is reached.
name: Option<String>Name of the version. Unique among all versions in the scope of this managed instance group.
target_size: Option<FixedOrPercent>Specifies the intended number of instances to be created from the instanceTemplate. The final number of instances created from the template will be equal to: - If expressed as a fixed number, the minimum of either targetSize.fixed or instanceGroupManager.targetSize is used. - if expressed as a percent, the targetSize would be (targetSize.percent/100 * InstanceGroupManager.targetSize) If there is a remainder, the number is rounded. If unset, this version will update any remaining instances not updated by another version. Read Starting a canary update for more information.
Implementations§
Source§impl InstanceGroupManagerVersion
impl InstanceGroupManagerVersion
pub fn new() -> Self
Sourcepub fn set_instance_template<T>(self, v: T) -> Self
pub fn set_instance_template<T>(self, v: T) -> Self
Sets the value of instance_template.
Sourcepub fn set_or_clear_instance_template<T>(self, v: Option<T>) -> Self
pub fn set_or_clear_instance_template<T>(self, v: Option<T>) -> Self
Sets or clears the value of instance_template.
Sourcepub fn set_or_clear_name<T>(self, v: Option<T>) -> Self
pub fn set_or_clear_name<T>(self, v: Option<T>) -> Self
Sets or clears the value of name.
Sourcepub fn set_target_size<T>(self, v: T) -> Selfwhere
T: Into<FixedOrPercent>,
pub fn set_target_size<T>(self, v: T) -> Selfwhere
T: Into<FixedOrPercent>,
Sets the value of target_size.
Sourcepub fn set_or_clear_target_size<T>(self, v: Option<T>) -> Selfwhere
T: Into<FixedOrPercent>,
pub fn set_or_clear_target_size<T>(self, v: Option<T>) -> Selfwhere
T: Into<FixedOrPercent>,
Sets or clears the value of target_size.
Trait Implementations§
Source§impl Clone for InstanceGroupManagerVersion
impl Clone for InstanceGroupManagerVersion
Source§fn clone(&self) -> InstanceGroupManagerVersion
fn clone(&self) -> InstanceGroupManagerVersion
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read more