#[non_exhaustive]pub struct ExecutePatchJobRequest {
pub parent: String,
pub description: String,
pub instance_filter: Option<PatchInstanceFilter>,
pub patch_config: Option<PatchConfig>,
pub duration: Option<Duration>,
pub dry_run: bool,
pub display_name: String,
pub rollout: Option<PatchRollout>,
/* private fields */
}Expand description
A request message to initiate patching across Compute Engine instances.
Fields (Non-exhaustive)§
This struct is marked as non-exhaustive
Struct { .. } syntax; cannot be matched against without a wildcard ..; and struct update syntax will not work.parent: StringRequired. The project in which to run this patch in the form projects/*
description: StringDescription of the patch job. Length of the description is limited to 1024 characters.
instance_filter: Option<PatchInstanceFilter>Required. Instances to patch, either explicitly or filtered by some criteria such as zone or labels.
patch_config: Option<PatchConfig>Patch configuration being applied. If omitted, instances are patched using the default configurations.
duration: Option<Duration>Duration of the patch job. After the duration ends, the patch job times out.
dry_run: boolIf this patch is a dry-run only, instances are contacted but will do nothing.
display_name: StringDisplay name for this patch job. This does not have to be unique.
rollout: Option<PatchRollout>Rollout strategy of the patch job.
Implementations§
Source§impl ExecutePatchJobRequest
impl ExecutePatchJobRequest
Sourcepub fn set_parent<T: Into<String>>(self, v: T) -> Self
pub fn set_parent<T: Into<String>>(self, v: T) -> Self
Sourcepub fn set_description<T: Into<String>>(self, v: T) -> Self
pub fn set_description<T: Into<String>>(self, v: T) -> Self
Sets the value of description.
§Example
let x = ExecutePatchJobRequest::new().set_description("example");Sourcepub fn set_instance_filter<T>(self, v: T) -> Selfwhere
T: Into<PatchInstanceFilter>,
pub fn set_instance_filter<T>(self, v: T) -> Selfwhere
T: Into<PatchInstanceFilter>,
Sets the value of instance_filter.
§Example
use google_cloud_osconfig_v1::model::PatchInstanceFilter;
let x = ExecutePatchJobRequest::new().set_instance_filter(PatchInstanceFilter::default()/* use setters */);Sourcepub fn set_or_clear_instance_filter<T>(self, v: Option<T>) -> Selfwhere
T: Into<PatchInstanceFilter>,
pub fn set_or_clear_instance_filter<T>(self, v: Option<T>) -> Selfwhere
T: Into<PatchInstanceFilter>,
Sets or clears the value of instance_filter.
§Example
use google_cloud_osconfig_v1::model::PatchInstanceFilter;
let x = ExecutePatchJobRequest::new().set_or_clear_instance_filter(Some(PatchInstanceFilter::default()/* use setters */));
let x = ExecutePatchJobRequest::new().set_or_clear_instance_filter(None::<PatchInstanceFilter>);Sourcepub fn set_patch_config<T>(self, v: T) -> Selfwhere
T: Into<PatchConfig>,
pub fn set_patch_config<T>(self, v: T) -> Selfwhere
T: Into<PatchConfig>,
Sets the value of patch_config.
§Example
use google_cloud_osconfig_v1::model::PatchConfig;
let x = ExecutePatchJobRequest::new().set_patch_config(PatchConfig::default()/* use setters */);Sourcepub fn set_or_clear_patch_config<T>(self, v: Option<T>) -> Selfwhere
T: Into<PatchConfig>,
pub fn set_or_clear_patch_config<T>(self, v: Option<T>) -> Selfwhere
T: Into<PatchConfig>,
Sets or clears the value of patch_config.
§Example
use google_cloud_osconfig_v1::model::PatchConfig;
let x = ExecutePatchJobRequest::new().set_or_clear_patch_config(Some(PatchConfig::default()/* use setters */));
let x = ExecutePatchJobRequest::new().set_or_clear_patch_config(None::<PatchConfig>);Sourcepub fn set_duration<T>(self, v: T) -> Self
pub fn set_duration<T>(self, v: T) -> Self
Sourcepub fn set_or_clear_duration<T>(self, v: Option<T>) -> Self
pub fn set_or_clear_duration<T>(self, v: Option<T>) -> Self
Sourcepub fn set_dry_run<T: Into<bool>>(self, v: T) -> Self
pub fn set_dry_run<T: Into<bool>>(self, v: T) -> Self
Sourcepub fn set_display_name<T: Into<String>>(self, v: T) -> Self
pub fn set_display_name<T: Into<String>>(self, v: T) -> Self
Sets the value of display_name.
§Example
let x = ExecutePatchJobRequest::new().set_display_name("example");Sourcepub fn set_rollout<T>(self, v: T) -> Selfwhere
T: Into<PatchRollout>,
pub fn set_rollout<T>(self, v: T) -> Selfwhere
T: Into<PatchRollout>,
Sourcepub fn set_or_clear_rollout<T>(self, v: Option<T>) -> Selfwhere
T: Into<PatchRollout>,
pub fn set_or_clear_rollout<T>(self, v: Option<T>) -> Selfwhere
T: Into<PatchRollout>,
Trait Implementations§
Source§impl Clone for ExecutePatchJobRequest
impl Clone for ExecutePatchJobRequest
Source§fn clone(&self) -> ExecutePatchJobRequest
fn clone(&self) -> ExecutePatchJobRequest
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read moreSource§impl Debug for ExecutePatchJobRequest
impl Debug for ExecutePatchJobRequest
Source§impl Default for ExecutePatchJobRequest
impl Default for ExecutePatchJobRequest
Source§fn default() -> ExecutePatchJobRequest
fn default() -> ExecutePatchJobRequest
Source§impl Message for ExecutePatchJobRequest
impl Message for ExecutePatchJobRequest
Source§impl PartialEq for ExecutePatchJobRequest
impl PartialEq for ExecutePatchJobRequest
impl StructuralPartialEq for ExecutePatchJobRequest
Auto Trait Implementations§
impl Freeze for ExecutePatchJobRequest
impl RefUnwindSafe for ExecutePatchJobRequest
impl Send for ExecutePatchJobRequest
impl Sync for ExecutePatchJobRequest
impl Unpin for ExecutePatchJobRequest
impl UnsafeUnpin for ExecutePatchJobRequest
impl UnwindSafe for ExecutePatchJobRequest
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<ST, DT> CastableFrom<ST, Initialized, Initialized> for DT
impl<ST, DT> CastableFrom<ST, Uninit, Uninit> for DT
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> DeserializeOwned for Twhere
T: for<'de> Deserialize<'de>,
Source§impl<T> FutureExt for T
impl<T> FutureExt for T
Source§fn with_context(self, otel_cx: Context) -> WithContext<Self>
fn with_context(self, otel_cx: Context) -> WithContext<Self>
Source§fn with_current_context(self) -> WithContext<Self>
fn with_current_context(self) -> WithContext<Self>
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