Struct google_api_proto::google::cloud::policytroubleshooter::v1::TroubleshootIamPolicyResponse
source · pub struct TroubleshootIamPolicyResponse {
pub access: i32,
pub explained_policies: Vec<ExplainedPolicy>,
pub errors: Vec<Status>,
}
Expand description
Response for [TroubleshootIamPolicy][google.cloud.policytroubleshooter.v1.IamChecker.TroubleshootIamPolicy].
Fields§
§access: i32
Indicates whether the principal has the specified permission for the specified resource, based on evaluating all of the applicable IAM policies.
explained_policies: Vec<ExplainedPolicy>
List of IAM 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 can include the policy for the resource itself. It can also include 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.
errors: Vec<Status>
The general errors contained in the troubleshooting response.
Implementations§
source§impl TroubleshootIamPolicyResponse
impl TroubleshootIamPolicyResponse
sourcepub fn access(&self) -> AccessState
pub fn access(&self) -> AccessState
Returns the enum value of access
, or the default if the field is set to an invalid enum value.
sourcepub fn set_access(&mut self, value: AccessState)
pub fn set_access(&mut self, value: AccessState)
Sets access
to the provided enum value.
Trait Implementations§
source§impl Clone for TroubleshootIamPolicyResponse
impl Clone for TroubleshootIamPolicyResponse
source§fn clone(&self) -> TroubleshootIamPolicyResponse
fn clone(&self) -> TroubleshootIamPolicyResponse
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source
. Read moresource§impl Message for TroubleshootIamPolicyResponse
impl Message for TroubleshootIamPolicyResponse
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 TroubleshootIamPolicyResponse
impl PartialEq for TroubleshootIamPolicyResponse
source§fn eq(&self, other: &TroubleshootIamPolicyResponse) -> bool
fn eq(&self, other: &TroubleshootIamPolicyResponse) -> bool
self
and other
values to be equal, and is used
by ==
.impl StructuralPartialEq for TroubleshootIamPolicyResponse
Auto Trait Implementations§
impl Freeze for TroubleshootIamPolicyResponse
impl RefUnwindSafe for TroubleshootIamPolicyResponse
impl Send for TroubleshootIamPolicyResponse
impl Sync for TroubleshootIamPolicyResponse
impl Unpin for TroubleshootIamPolicyResponse
impl UnwindSafe for TroubleshootIamPolicyResponse
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