Struct google_api_proto::google::cloud::osconfig::v1alpha::os_policy::ResourceGroup
source · pub struct ResourceGroup {
pub os_filter: Option<OsFilter>,
pub inventory_filters: Vec<InventoryFilter>,
pub resources: Vec<Resource>,
}
Expand description
Resource groups provide a mechanism to group OS policy resources.
Resource groups enable OS policy authors to create a single OS policy to be applied to VMs running different operating Systems.
When the OS policy is applied to a target VM, the appropriate resource
group within the OS policy is selected based on the OSFilter
specified
within the resource group.
Fields§
§os_filter: Option<OsFilter>
Deprecated. Use the inventory_filters
field instead.
Used to specify the OS filter for a resource group
inventory_filters: Vec<InventoryFilter>
List of inventory filters for the resource group.
The resources in this resource group are applied to the target VM if it satisfies at least one of the following inventory filters.
For example, to apply this resource group to VMs running either RHEL
or
CentOS
operating systems, specify 2 items for the list with following
values:
inventory_filters[0].os_short_name=‘rhel’ and
inventory_filters[1].os_short_name=‘centos’
If the list is empty, this resource group will be applied to the target VM unconditionally.
resources: Vec<Resource>
Required. List of resources configured for this resource group. The resources are executed in the exact order specified here.
Trait Implementations§
source§impl Clone for ResourceGroup
impl Clone for ResourceGroup
source§fn clone(&self) -> ResourceGroup
fn clone(&self) -> ResourceGroup
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source
. Read moresource§impl Debug for ResourceGroup
impl Debug for ResourceGroup
source§impl Default for ResourceGroup
impl Default for ResourceGroup
source§impl Message for ResourceGroup
impl Message for ResourceGroup
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 ResourceGroup
impl PartialEq for ResourceGroup
source§fn eq(&self, other: &ResourceGroup) -> bool
fn eq(&self, other: &ResourceGroup) -> bool
self
and other
values to be equal, and is used
by ==
.impl StructuralPartialEq for ResourceGroup
Auto Trait Implementations§
impl Freeze for ResourceGroup
impl RefUnwindSafe for ResourceGroup
impl Send for ResourceGroup
impl Sync for ResourceGroup
impl Unpin for ResourceGroup
impl UnwindSafe for ResourceGroup
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