Struct google_api_proto::google::cloud::policytroubleshooter::iam::v3beta::ExplainedAllowPolicy
source · pub struct ExplainedAllowPolicy {
pub allow_access_state: i32,
pub full_resource_name: String,
pub binding_explanations: Vec<AllowBindingExplanation>,
pub relevance: i32,
pub policy: Option<Policy>,
}
Expand description
Details about how a specific IAM allow policy contributed to the final access state.
Fields§
§allow_access_state: i32
Required. Indicates whether this policy provides 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.v3beta.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.
binding_explanations: Vec<AllowBindingExplanation>
Details about how each role binding in the policy affects the principal’s ability, or inability, to use the permission for the resource. The order of the role bindings matches the role binding order in the 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.v3beta.TroubleshootIamPolicyResponse].
If the sender of the request does not have access to the policy, this field is omitted.
policy: Option<Policy>
The IAM allow policy attached to the resource.
If the sender of the request does not have access to the policy, this field is empty.
Implementations§
source§impl ExplainedAllowPolicy
impl ExplainedAllowPolicy
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 ExplainedAllowPolicy
impl Clone for ExplainedAllowPolicy
source§fn clone(&self) -> ExplainedAllowPolicy
fn clone(&self) -> ExplainedAllowPolicy
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source
. Read moresource§impl Debug for ExplainedAllowPolicy
impl Debug for ExplainedAllowPolicy
source§impl Default for ExplainedAllowPolicy
impl Default for ExplainedAllowPolicy
source§impl Message for ExplainedAllowPolicy
impl Message for ExplainedAllowPolicy
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 ExplainedAllowPolicy
impl PartialEq for ExplainedAllowPolicy
source§fn eq(&self, other: &ExplainedAllowPolicy) -> bool
fn eq(&self, other: &ExplainedAllowPolicy) -> bool
self
and other
values to be equal, and is used
by ==
.impl StructuralPartialEq for ExplainedAllowPolicy
Auto Trait Implementations§
impl !Freeze for ExplainedAllowPolicy
impl RefUnwindSafe for ExplainedAllowPolicy
impl Send for ExplainedAllowPolicy
impl Sync for ExplainedAllowPolicy
impl Unpin for ExplainedAllowPolicy
impl UnwindSafe for ExplainedAllowPolicy
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