Struct google_api_proto::google::cloud::osconfig::agentendpoint::v1beta::PatchConfig
source · pub struct PatchConfig {
pub reboot_config: i32,
pub retry_strategy: Option<RetryStrategy>,
pub apt: Option<AptSettings>,
pub yum: Option<YumSettings>,
pub goo: Option<GooSettings>,
pub zypper: Option<ZypperSettings>,
pub windows_update: Option<WindowsUpdateSettings>,
pub pre_step: Option<ExecStep>,
pub post_step: Option<ExecStep>,
pub mig_instances_allowed: bool,
}
Expand description
Patch configuration specifications. Contains details on how to apply patches to a VM instance.
Fields§
§reboot_config: i32
Post-patch reboot settings.
retry_strategy: Option<RetryStrategy>
Retry strategy can be defined to have the agent retry patching during the window if patching fails. If omitted, the agent will use its default retry strategy.
apt: Option<AptSettings>
Apt update settings. Use this override the default apt patch rules.
yum: Option<YumSettings>
Yum update settings. Use this override the default yum patch rules.
goo: Option<GooSettings>
Goo update settings. Use this override the default goo patch rules.
zypper: Option<ZypperSettings>
Zypper update settings. Use this override the default zypper patch rules.
windows_update: Option<WindowsUpdateSettings>
Windows update settings. Use this override the default windows patch rules.
pre_step: Option<ExecStep>
The ExecStep to run before the patch update.
post_step: Option<ExecStep>
The ExecStep to run after the patch update.
mig_instances_allowed: bool
Allows the patch job to run on Managed instance groups (MIGs).
Implementations§
source§impl PatchConfig
impl PatchConfig
sourcepub fn reboot_config(&self) -> RebootConfig
pub fn reboot_config(&self) -> RebootConfig
Returns the enum value of reboot_config
, or the default if the field is set to an invalid enum value.
sourcepub fn set_reboot_config(&mut self, value: RebootConfig)
pub fn set_reboot_config(&mut self, value: RebootConfig)
Sets reboot_config
to the provided enum value.
Trait Implementations§
source§impl Clone for PatchConfig
impl Clone for PatchConfig
source§fn clone(&self) -> PatchConfig
fn clone(&self) -> PatchConfig
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source
. Read moresource§impl Debug for PatchConfig
impl Debug for PatchConfig
source§impl Default for PatchConfig
impl Default for PatchConfig
source§impl Message for PatchConfig
impl Message for PatchConfig
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 PatchConfig
impl PartialEq for PatchConfig
source§fn eq(&self, other: &PatchConfig) -> bool
fn eq(&self, other: &PatchConfig) -> bool
self
and other
values to be equal, and is used
by ==
.impl StructuralPartialEq for PatchConfig
Auto Trait Implementations§
impl Freeze for PatchConfig
impl RefUnwindSafe for PatchConfig
impl Send for PatchConfig
impl Sync for PatchConfig
impl Unpin for PatchConfig
impl UnwindSafe for PatchConfig
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