Struct google_api_proto::google::cloud::asset::v1::AnalyzerOrgPolicy
source · pub struct AnalyzerOrgPolicy {
pub attached_resource: String,
pub applied_resource: String,
pub rules: Vec<Rule>,
pub inherit_from_parent: bool,
pub reset: bool,
}
Expand description
This organization policy message is a modified version of the one defined in the Organization Policy system. This message contains several fields defined in the original organization policy with some new fields for analysis purpose.
Fields§
§attached_resource: String
The [full resource name] (https://cloud.google.com/asset-inventory/docs/resource-name-format) of an organization/folder/project resource where this organization policy is set.
Notice that some type of constraints are defined with default policy. This field will be empty for them.
applied_resource: String
The [full resource name] (https://cloud.google.com/asset-inventory/docs/resource-name-format) of an organization/folder/project resource where this organization policy applies to.
For any user defined org policies, this field has the same value as the [attached_resource] field. Only for default policy, this field has the different value.
rules: Vec<Rule>
List of rules for this organization policy.
inherit_from_parent: bool
If inherit_from_parent
is true, Rules set higher up in the
hierarchy (up to the closest root) are inherited and present in the
effective policy. If it is false, then no rules are inherited, and this
policy becomes the effective root for evaluation.
reset: bool
Ignores policies set above this resource and restores the default behavior
of the constraint at this resource.
This field can be set in policies for either list or boolean
constraints. If set, rules
must be empty and inherit_from_parent
must be set to false.
Trait Implementations§
source§impl Clone for AnalyzerOrgPolicy
impl Clone for AnalyzerOrgPolicy
source§fn clone(&self) -> AnalyzerOrgPolicy
fn clone(&self) -> AnalyzerOrgPolicy
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source
. Read moresource§impl Debug for AnalyzerOrgPolicy
impl Debug for AnalyzerOrgPolicy
source§impl Default for AnalyzerOrgPolicy
impl Default for AnalyzerOrgPolicy
source§impl Message for AnalyzerOrgPolicy
impl Message for AnalyzerOrgPolicy
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 AnalyzerOrgPolicy
impl PartialEq for AnalyzerOrgPolicy
source§fn eq(&self, other: &AnalyzerOrgPolicy) -> bool
fn eq(&self, other: &AnalyzerOrgPolicy) -> bool
self
and other
values to be equal, and is used
by ==
.impl StructuralPartialEq for AnalyzerOrgPolicy
Auto Trait Implementations§
impl Freeze for AnalyzerOrgPolicy
impl RefUnwindSafe for AnalyzerOrgPolicy
impl Send for AnalyzerOrgPolicy
impl Sync for AnalyzerOrgPolicy
impl Unpin for AnalyzerOrgPolicy
impl UnwindSafe for AnalyzerOrgPolicy
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