Struct google_api_proto::google::cloud::policytroubleshooter::iam::v3::ExplainedDenyPolicy
source · pub struct ExplainedDenyPolicy {
pub deny_access_state: i32,
pub policy: Option<Policy>,
pub rule_explanations: Vec<DenyRuleExplanation>,
pub relevance: i32,
}
Expand description
Details about how a specific IAM deny policy [Policy][google.iam.v2.Policy] contributed to the access check.
Fields§
§deny_access_state: i32
Required. Indicates whether this policy denies the specified permission to the specified principal for the specified resource.
This field does not indicate whether the principal actually has the
permission for the resource. There might be another policy that overrides
this policy. To determine whether the principal actually has the
permission, use the overall_access_state
field in the
[TroubleshootIamPolicyResponse][google.cloud.policytroubleshooter.iam.v3.TroubleshootIamPolicyResponse].
policy: Option<Policy>
The IAM deny policy attached to the resource.
If the sender of the request does not have access to the policy, this field is omitted.
rule_explanations: Vec<DenyRuleExplanation>
Details about how each rule in the policy affects the principal’s inability to use the permission for the resource. The order of the deny rule matches the order of the rules in the deny policy.
If the sender of the request does not have access to the policy, this field is omitted.
relevance: i32
The relevance of this policy to the overall access state in the [TroubleshootIamPolicyResponse][google.cloud.policytroubleshooter.iam.v3.TroubleshootIamPolicyResponse].
If the sender of the request does not have access to the policy, this field is omitted.
Implementations§
source§impl ExplainedDenyPolicy
impl ExplainedDenyPolicy
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 ExplainedDenyPolicy
impl Clone for ExplainedDenyPolicy
source§fn clone(&self) -> ExplainedDenyPolicy
fn clone(&self) -> ExplainedDenyPolicy
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source
. Read moresource§impl Debug for ExplainedDenyPolicy
impl Debug for ExplainedDenyPolicy
source§impl Default for ExplainedDenyPolicy
impl Default for ExplainedDenyPolicy
source§impl Message for ExplainedDenyPolicy
impl Message for ExplainedDenyPolicy
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 ExplainedDenyPolicy
impl PartialEq for ExplainedDenyPolicy
source§fn eq(&self, other: &ExplainedDenyPolicy) -> bool
fn eq(&self, other: &ExplainedDenyPolicy) -> bool
self
and other
values to be equal, and is used
by ==
.impl StructuralPartialEq for ExplainedDenyPolicy
Auto Trait Implementations§
impl Freeze for ExplainedDenyPolicy
impl RefUnwindSafe for ExplainedDenyPolicy
impl Send for ExplainedDenyPolicy
impl Sync for ExplainedDenyPolicy
impl Unpin for ExplainedDenyPolicy
impl UnwindSafe for ExplainedDenyPolicy
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