pub struct PatchConfig {
pub reboot_config: i32,
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 the patch(es) to a VM instance.
Fields§
§reboot_config: i32
Post-patch reboot settings.
apt: Option<AptSettings>
Apt update settings. Use this setting to override the default apt
patch
rules.
yum: Option<YumSettings>
Yum update settings. Use this setting to override the default yum
patch
rules.
goo: Option<GooSettings>
Goo update settings. Use this setting to override the default goo
patch
rules.
zypper: Option<ZypperSettings>
Zypper update settings. Use this setting to 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
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<T> Instrument for T
impl<T> Instrument for T
Source§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
Source§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