[][src]Struct gcp_client::google::cloud::policytroubleshooter::v1::ExplainedPolicy

pub struct ExplainedPolicy {
    pub access: i32,
    pub full_resource_name: String,
    pub policy: Option<Policy>,
    pub binding_explanations: Vec<BindingExplanation>,
    pub relevance: i32,
}

Details about how a specific IAM [Policy][google.iam.v1.Policy] contributed to the access check.

Fields

access: i32

Indicates whether this policy provides the specified permission to the specified member for the specified resource.

This field does not indicate whether the member actually has the permission for the resource. There might be another policy that overrides this policy. To determine whether the member actually has the permission, use the access field in the [TroubleshootIamPolicyResponse][IamChecker.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.

policy: Option<Policy>

The IAM policy attached to the resource.

If the sender of the request does not have access to the policy, this field is empty.

binding_explanations: Vec<BindingExplanation>

Details about how each binding in the policy affects the member's ability, or inability, to use the permission for the resource.

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 determination in the [TroubleshootIamPolicyResponse][IamChecker.TroubleshootIamPolicyResponse].

If the sender of the request does not have access to the policy, this field is omitted.

Implementations

impl ExplainedPolicy[src]

pub fn access(&self) -> AccessState[src]

Returns the enum value of access, or the default if the field is set to an invalid enum value.

pub fn set_access(&mut self, value: AccessState)[src]

Sets access to the provided enum value.

pub fn relevance(&self) -> HeuristicRelevance[src]

Returns the enum value of relevance, or the default if the field is set to an invalid enum value.

pub fn set_relevance(&mut self, value: HeuristicRelevance)[src]

Sets relevance to the provided enum value.

Trait Implementations

impl Clone for ExplainedPolicy[src]

impl Debug for ExplainedPolicy[src]

impl Default for ExplainedPolicy[src]

impl Message for ExplainedPolicy[src]

impl PartialEq<ExplainedPolicy> for ExplainedPolicy[src]

impl StructuralPartialEq for ExplainedPolicy[src]

Auto Trait Implementations

Blanket Implementations

impl<T> Any for T where
    T: 'static + ?Sized
[src]

impl<T> Borrow<T> for T where
    T: ?Sized
[src]

impl<T> BorrowMut<T> for T where
    T: ?Sized
[src]

impl<T> From<T> for T[src]

impl<T> Instrument for T[src]

impl<T, U> Into<U> for T where
    U: From<T>, 
[src]

impl<T> IntoRequest<T> for T[src]

impl<T> ToOwned for T where
    T: Clone
[src]

type Owned = T

The resulting type after obtaining ownership.

impl<T, U> TryFrom<U> for T where
    U: Into<T>, 
[src]

type Error = Infallible

The type returned in the event of a conversion error.

impl<T, U> TryInto<U> for T where
    U: TryFrom<T>, 
[src]

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.

impl<V, T> VZip<V> for T where
    V: MultiLane<T>, 

impl<T> WithSubscriber for T[src]