Struct google_api_proto::google::cloud::policytroubleshooter::iam::v3::DenyPolicyExplanation
source · pub struct DenyPolicyExplanation {
pub deny_access_state: i32,
pub explained_resources: Vec<ExplainedDenyResource>,
pub relevance: i32,
pub permission_deniable: bool,
}
Expand description
Details about how the relevant IAM deny policies affect the final access state.
Fields§
§deny_access_state: i32
Indicates whether the principal is denied the specified permission for the specified resource, based on evaluating all applicable IAM deny policies.
explained_resources: Vec<ExplainedDenyResource>
List of resources with IAM deny policies that were evaluated to check the principal’s denied permissions, with annotations to indicate how each policy contributed to the final result.
The list of resources includes the policy for the resource itself, as well as policies that are inherited from higher levels of the resource hierarchy, including the organization, the folder, and the project. The order of the resources starts from the resource and climbs up the resource hierarchy.
To learn more about the resource hierarchy, see https://cloud.google.com/iam/help/resource-hierarchy.
relevance: i32
The relevance of the deny policy result to the overall access state.
permission_deniable: bool
Indicates whether the permission to troubleshoot is supported in deny policies.
Implementations§
source§impl DenyPolicyExplanation
impl DenyPolicyExplanation
sourcepub fn deny_access_state(&self) -> DenyAccessState
pub fn deny_access_state(&self) -> DenyAccessState
Returns the enum value of deny_access_state
, or the default if the field is set to an invalid enum value.
sourcepub fn set_deny_access_state(&mut self, value: DenyAccessState)
pub fn set_deny_access_state(&mut self, value: DenyAccessState)
Sets deny_access_state
to the provided enum value.
sourcepub fn relevance(&self) -> HeuristicRelevance
pub fn relevance(&self) -> HeuristicRelevance
Returns the enum value of relevance
, or the default if the field is set to an invalid enum value.
sourcepub fn set_relevance(&mut self, value: HeuristicRelevance)
pub fn set_relevance(&mut self, value: HeuristicRelevance)
Sets relevance
to the provided enum value.
Trait Implementations§
source§impl Clone for DenyPolicyExplanation
impl Clone for DenyPolicyExplanation
source§fn clone(&self) -> DenyPolicyExplanation
fn clone(&self) -> DenyPolicyExplanation
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source
. Read moresource§impl Debug for DenyPolicyExplanation
impl Debug for DenyPolicyExplanation
source§impl Default for DenyPolicyExplanation
impl Default for DenyPolicyExplanation
source§impl Message for DenyPolicyExplanation
impl Message for DenyPolicyExplanation
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 DenyPolicyExplanation
impl PartialEq for DenyPolicyExplanation
source§fn eq(&self, other: &DenyPolicyExplanation) -> bool
fn eq(&self, other: &DenyPolicyExplanation) -> bool
self
and other
values to be equal, and is used
by ==
.impl StructuralPartialEq for DenyPolicyExplanation
Auto Trait Implementations§
impl Freeze for DenyPolicyExplanation
impl RefUnwindSafe for DenyPolicyExplanation
impl Send for DenyPolicyExplanation
impl Sync for DenyPolicyExplanation
impl Unpin for DenyPolicyExplanation
impl UnwindSafe for DenyPolicyExplanation
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