Struct google_api_proto::google::cloud::policytroubleshooter::iam::v3::ExplainedDenyResource
source · pub struct ExplainedDenyResource {
pub deny_access_state: i32,
pub full_resource_name: String,
pub explained_policies: Vec<ExplainedDenyPolicy>,
pub relevance: i32,
}
Expand description
Details about how a specific resource contributed to the deny policy evaluation.
Fields§
§deny_access_state: i32
Required. Indicates whether any policies attached to this resource deny the specific 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].
full_resource_name: String
The full resource name that identifies the resource. For example,
//compute.googleapis.com/projects/my-project/zones/us-central1-a/instances/my-instance
.
If the sender of the request does not have access to the policy, this field is omitted.
For examples of full resource names for Google Cloud services, see https://cloud.google.com/iam/help/troubleshooter/full-resource-names.
explained_policies: Vec<ExplainedDenyPolicy>
List of 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.
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 ExplainedDenyResource
impl ExplainedDenyResource
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 ExplainedDenyResource
impl Clone for ExplainedDenyResource
source§fn clone(&self) -> ExplainedDenyResource
fn clone(&self) -> ExplainedDenyResource
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source
. Read moresource§impl Debug for ExplainedDenyResource
impl Debug for ExplainedDenyResource
source§impl Default for ExplainedDenyResource
impl Default for ExplainedDenyResource
source§impl Message for ExplainedDenyResource
impl Message for ExplainedDenyResource
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 ExplainedDenyResource
impl PartialEq for ExplainedDenyResource
source§fn eq(&self, other: &ExplainedDenyResource) -> bool
fn eq(&self, other: &ExplainedDenyResource) -> bool
self
and other
values to be equal, and is used
by ==
.impl StructuralPartialEq for ExplainedDenyResource
Auto Trait Implementations§
impl Freeze for ExplainedDenyResource
impl RefUnwindSafe for ExplainedDenyResource
impl Send for ExplainedDenyResource
impl Sync for ExplainedDenyResource
impl Unpin for ExplainedDenyResource
impl UnwindSafe for ExplainedDenyResource
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