Struct google_api_proto::google::cloud::compute::v1::RegionInstanceGroupManagersApplyUpdatesRequest
source · pub struct RegionInstanceGroupManagersApplyUpdatesRequest {
pub all_instances: Option<bool>,
pub instances: Vec<String>,
pub minimal_action: Option<String>,
pub most_disruptive_allowed_action: Option<String>,
}
Expand description
RegionInstanceGroupManagers.applyUpdatesToInstances
Fields§
§all_instances: Option<bool>
Flag to update all instances instead of specified list of “instances”. If the flag is set to true then the instances may not be specified in the request.
instances: Vec<String>
The list of URLs of one or more instances for which you want to apply updates. Each URL can be a full URL or a partial URL, such as zones/[ZONE]/instances/[INSTANCE_NAME].
minimal_action: Option<String>
The minimal action that you want to perform on each instance during the update: - REPLACE: At minimum, delete the instance and create it again. - RESTART: Stop the instance and start it again. - REFRESH: Do not stop the instance and limit disruption as much as possible. - NONE: Do not disrupt the instance at all. By default, the minimum action is NONE. If your update requires a more disruptive action than you set with this flag, the necessary action is performed to execute the update. Check the MinimalAction enum for the list of possible values.
most_disruptive_allowed_action: Option<String>
The most disruptive action that you want to perform on each instance during the update: - REPLACE: Delete the instance and create it again. - RESTART: Stop the instance and start it again. - REFRESH: Do not stop the instance and limit disruption as much as possible. - NONE: Do not disrupt the instance at all. By default, the most disruptive allowed action is REPLACE. If your update requires a more disruptive action than you set with this flag, the update request will fail. Check the MostDisruptiveAllowedAction enum for the list of possible values.
Implementations§
source§impl RegionInstanceGroupManagersApplyUpdatesRequest
impl RegionInstanceGroupManagersApplyUpdatesRequest
sourcepub fn most_disruptive_allowed_action(&self) -> &str
pub fn most_disruptive_allowed_action(&self) -> &str
Returns the value of most_disruptive_allowed_action
, or the default value if most_disruptive_allowed_action
is unset.
sourcepub fn minimal_action(&self) -> &str
pub fn minimal_action(&self) -> &str
Returns the value of minimal_action
, or the default value if minimal_action
is unset.
sourcepub fn all_instances(&self) -> bool
pub fn all_instances(&self) -> bool
Returns the value of all_instances
, or the default value if all_instances
is unset.
Trait Implementations§
source§impl Clone for RegionInstanceGroupManagersApplyUpdatesRequest
impl Clone for RegionInstanceGroupManagersApplyUpdatesRequest
source§fn clone(&self) -> RegionInstanceGroupManagersApplyUpdatesRequest
fn clone(&self) -> RegionInstanceGroupManagersApplyUpdatesRequest
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source
. Read moresource§impl Message for RegionInstanceGroupManagersApplyUpdatesRequest
impl Message for RegionInstanceGroupManagersApplyUpdatesRequest
source§fn encoded_len(&self) -> usize
fn encoded_len(&self) -> usize
source§fn encode(&self, buf: &mut impl BufMut) -> Result<(), EncodeError>where
Self: Sized,
fn encode(&self, buf: &mut impl BufMut) -> Result<(), EncodeError>where
Self: Sized,
source§fn encode_to_vec(&self) -> Vec<u8>where
Self: Sized,
fn encode_to_vec(&self) -> Vec<u8>where
Self: Sized,
source§fn encode_length_delimited(
&self,
buf: &mut impl BufMut,
) -> Result<(), EncodeError>where
Self: Sized,
fn encode_length_delimited(
&self,
buf: &mut impl BufMut,
) -> Result<(), EncodeError>where
Self: Sized,
source§fn encode_length_delimited_to_vec(&self) -> Vec<u8>where
Self: Sized,
fn encode_length_delimited_to_vec(&self) -> Vec<u8>where
Self: Sized,
source§fn decode(buf: impl Buf) -> Result<Self, DecodeError>where
Self: Default,
fn decode(buf: impl Buf) -> Result<Self, DecodeError>where
Self: Default,
source§fn decode_length_delimited(buf: impl Buf) -> Result<Self, DecodeError>where
Self: Default,
fn decode_length_delimited(buf: impl Buf) -> Result<Self, DecodeError>where
Self: Default,
source§fn merge(&mut self, buf: impl Buf) -> Result<(), DecodeError>where
Self: Sized,
fn merge(&mut self, buf: impl Buf) -> Result<(), DecodeError>where
Self: Sized,
self
. Read moresource§fn merge_length_delimited(&mut self, buf: impl Buf) -> Result<(), DecodeError>where
Self: Sized,
fn merge_length_delimited(&mut self, buf: impl Buf) -> Result<(), DecodeError>where
Self: Sized,
self
.source§impl PartialEq for RegionInstanceGroupManagersApplyUpdatesRequest
impl PartialEq for RegionInstanceGroupManagersApplyUpdatesRequest
source§fn eq(&self, other: &RegionInstanceGroupManagersApplyUpdatesRequest) -> bool
fn eq(&self, other: &RegionInstanceGroupManagersApplyUpdatesRequest) -> bool
self
and other
values to be equal, and is used
by ==
.impl StructuralPartialEq for RegionInstanceGroupManagersApplyUpdatesRequest
Auto Trait Implementations§
impl Freeze for RegionInstanceGroupManagersApplyUpdatesRequest
impl RefUnwindSafe for RegionInstanceGroupManagersApplyUpdatesRequest
impl Send for RegionInstanceGroupManagersApplyUpdatesRequest
impl Sync for RegionInstanceGroupManagersApplyUpdatesRequest
impl Unpin for RegionInstanceGroupManagersApplyUpdatesRequest
impl UnwindSafe for RegionInstanceGroupManagersApplyUpdatesRequest
Blanket Implementations§
source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
§impl<T> Instrument for T
impl<T> Instrument for T
§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
source§impl<T> IntoRequest<T> for T
impl<T> IntoRequest<T> for T
source§fn into_request(self) -> Request<T>
fn into_request(self) -> Request<T>
T
in a tonic::Request