Struct google_api_proto::google::cloud::osconfig::v1beta::PatchInstanceFilter
source · pub struct PatchInstanceFilter {
pub all: bool,
pub group_labels: Vec<GroupLabel>,
pub zones: Vec<String>,
pub instances: Vec<String>,
pub instance_name_prefixes: Vec<String>,
}
Expand description
A filter to target VM instances for patching. The targeted VMs must meet all criteria specified. So if both labels and zones are specified, the patch job targets only VMs with those labels and in those zones.
Fields§
§all: bool
Target all VM instances in the project. If true, no other criteria is permitted.
group_labels: Vec<GroupLabel>
Targets VM instances matching at least one of these label sets. This allows targeting of disparate groups, for example “env=prod or env=staging”.
zones: Vec<String>
Targets VM instances in ANY of these zones. Leave empty to target VM instances in any zone.
instances: Vec<String>
Targets any of the VM instances specified. Instances are specified by their
URI in the form zones/\[ZONE\]/instances/\[INSTANCE_NAME\]
,
projects/\[PROJECT_ID\]/zones/\[ZONE\]/instances/\[INSTANCE_NAME\]
, or
<https://www.googleapis.com/compute/v1/projects/\[PROJECT_ID\]/zones/\[ZONE\]/instances/\[INSTANCE_NAME\]
>
instance_name_prefixes: Vec<String>
Targets VMs whose name starts with one of these prefixes. Similar to labels, this is another way to group VMs when targeting configs, for example prefix=“prod-”.
Trait Implementations§
source§impl Clone for PatchInstanceFilter
impl Clone for PatchInstanceFilter
source§fn clone(&self) -> PatchInstanceFilter
fn clone(&self) -> PatchInstanceFilter
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source
. Read moresource§impl Debug for PatchInstanceFilter
impl Debug for PatchInstanceFilter
source§impl Default for PatchInstanceFilter
impl Default for PatchInstanceFilter
source§impl Message for PatchInstanceFilter
impl Message for PatchInstanceFilter
source§fn encoded_len(&self) -> usize
fn encoded_len(&self) -> usize
source§fn encode<B>(&self, buf: &mut B) -> Result<(), EncodeError>where
B: BufMut,
Self: Sized,
fn encode<B>(&self, buf: &mut B) -> Result<(), EncodeError>where
B: BufMut,
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<B>(&self, buf: &mut B) -> Result<(), EncodeError>where
B: BufMut,
Self: Sized,
fn encode_length_delimited<B>(&self, buf: &mut B) -> Result<(), EncodeError>where
B: BufMut,
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<B>(buf: B) -> Result<Self, DecodeError>where
B: Buf,
Self: Default,
fn decode<B>(buf: B) -> Result<Self, DecodeError>where
B: Buf,
Self: Default,
source§fn decode_length_delimited<B>(buf: B) -> Result<Self, DecodeError>where
B: Buf,
Self: Default,
fn decode_length_delimited<B>(buf: B) -> Result<Self, DecodeError>where
B: Buf,
Self: Default,
source§fn merge<B>(&mut self, buf: B) -> Result<(), DecodeError>where
B: Buf,
Self: Sized,
fn merge<B>(&mut self, buf: B) -> Result<(), DecodeError>where
B: Buf,
Self: Sized,
self
. Read moresource§fn merge_length_delimited<B>(&mut self, buf: B) -> Result<(), DecodeError>where
B: Buf,
Self: Sized,
fn merge_length_delimited<B>(&mut self, buf: B) -> Result<(), DecodeError>where
B: Buf,
Self: Sized,
self
.source§impl PartialEq for PatchInstanceFilter
impl PartialEq for PatchInstanceFilter
source§fn eq(&self, other: &PatchInstanceFilter) -> bool
fn eq(&self, other: &PatchInstanceFilter) -> bool
self
and other
values to be equal, and is used
by ==
.impl StructuralPartialEq for PatchInstanceFilter
Auto Trait Implementations§
impl Freeze for PatchInstanceFilter
impl RefUnwindSafe for PatchInstanceFilter
impl Send for PatchInstanceFilter
impl Sync for PatchInstanceFilter
impl Unpin for PatchInstanceFilter
impl UnwindSafe for PatchInstanceFilter
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