pub struct PatchJob {Show 15 fields
pub name: String,
pub display_name: String,
pub description: String,
pub create_time: Option<Timestamp>,
pub update_time: Option<Timestamp>,
pub state: i32,
pub instance_filter: Option<PatchInstanceFilter>,
pub patch_config: Option<PatchConfig>,
pub duration: Option<Duration>,
pub instance_details_summary: Option<InstanceDetailsSummary>,
pub dry_run: bool,
pub error_message: String,
pub percent_complete: f64,
pub patch_deployment: String,
pub rollout: Option<PatchRollout>,
}
Expand description
A high level representation of a patch job that is either in progress or has completed.
Instance details are not included in the job. To paginate through instance details, use ListPatchJobInstanceDetails.
For more information about patch jobs, see Creating patch jobs.
Fields§
§name: String
Unique identifier for this patch job in the form
projects/*/patchJobs/*
display_name: String
Display name for this patch job. This is not a unique identifier.
description: String
Description of the patch job. Length of the description is limited to 1024 characters.
create_time: Option<Timestamp>
Time this patch job was created.
update_time: Option<Timestamp>
Last time this patch job was updated.
state: i32
The current state of the PatchJob.
instance_filter: Option<PatchInstanceFilter>
Instances to patch.
patch_config: Option<PatchConfig>
Patch configuration being applied.
duration: Option<Duration>
Duration of the patch job. After the duration ends, the patch job times out.
instance_details_summary: Option<InstanceDetailsSummary>
Summary of instance details.
dry_run: bool
If this patch job is a dry run, the agent reports that it has finished without running any updates on the VM instance.
error_message: String
If this patch job failed, this message provides information about the failure.
percent_complete: f64
Reflects the overall progress of the patch job in the range of 0.0 being no progress to 100.0 being complete.
patch_deployment: String
Output only. Name of the patch deployment that created this patch job.
rollout: Option<PatchRollout>
Rollout strategy being applied.
Implementations§
Trait Implementations§
source§impl Message for PatchJob
impl Message for PatchJob
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 PatchJob
impl PartialEq for PatchJob
impl StructuralPartialEq for PatchJob
Auto Trait Implementations§
impl Freeze for PatchJob
impl RefUnwindSafe for PatchJob
impl Send for PatchJob
impl Sync for PatchJob
impl Unpin for PatchJob
impl UnwindSafe for PatchJob
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