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