pub struct PatchDeployment {
pub name: String,
pub description: String,
pub instance_filter: Option<PatchInstanceFilter>,
pub patch_config: Option<PatchConfig>,
pub duration: Option<Duration>,
pub create_time: Option<Timestamp>,
pub update_time: Option<Timestamp>,
pub last_execute_time: Option<Timestamp>,
pub rollout: Option<PatchRollout>,
pub state: i32,
pub schedule: Option<Schedule>,
}
Expand description
Patch deployments are configurations that individual patch jobs use to complete a patch. These configurations include instance filter, package repository settings, and a schedule. For more information about creating and managing patch deployments, see Scheduling patch jobs.
Fields§
§name: String
Unique name for the patch deployment resource in a project. The patch
deployment name is in the form:
projects/{project_id}/patchDeployments/{patch_deployment_id}
.
This field is ignored when you create a new patch deployment.
description: String
Optional. Description of the patch deployment. Length of the description is limited to 1024 characters.
instance_filter: Option<PatchInstanceFilter>
Required. VM instances to patch.
patch_config: Option<PatchConfig>
Optional. Patch configuration that is applied.
duration: Option<Duration>
Optional. Duration of the patch. After the duration ends, the patch times out.
create_time: Option<Timestamp>
Output only. Time the patch deployment was created. Timestamp is in RFC3339 text format.
update_time: Option<Timestamp>
Output only. Time the patch deployment was last updated. Timestamp is in RFC3339 text format.
last_execute_time: Option<Timestamp>
Output only. The last time a patch job was started by this deployment. Timestamp is in RFC3339 text format.
rollout: Option<PatchRollout>
Optional. Rollout strategy of the patch job.
state: i32
Output only. Current state of the patch deployment.
schedule: Option<Schedule>
Schedule for the patch.
Implementations§
Trait Implementations§
Source§impl Clone for PatchDeployment
impl Clone for PatchDeployment
Source§fn clone(&self) -> PatchDeployment
fn clone(&self) -> PatchDeployment
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source
. Read moreSource§impl Debug for PatchDeployment
impl Debug for PatchDeployment
Source§impl Default for PatchDeployment
impl Default for PatchDeployment
Source§impl Message for PatchDeployment
impl Message for PatchDeployment
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 PatchDeployment
impl PartialEq for PatchDeployment
impl StructuralPartialEq for PatchDeployment
Auto Trait Implementations§
impl Freeze for PatchDeployment
impl RefUnwindSafe for PatchDeployment
impl Send for PatchDeployment
impl Sync for PatchDeployment
impl Unpin for PatchDeployment
impl UnwindSafe for PatchDeployment
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