Google Cloud Policy Troubleshooter Iam V3 Client - Class AllowPolicyExplanation (0.1.2)

Reference documentation and code samples for the Google Cloud Policy Troubleshooter Iam V3 Client class AllowPolicyExplanation.

Details about how the relevant IAM allow policies affect the final access state.

Generated from protobuf message google.cloud.policytroubleshooter.iam.v3.AllowPolicyExplanation

Namespace

Google \ Cloud \ PolicyTroubleshooter \ Iam \ V3

Methods

__construct

Constructor.

Parameters
NameDescription
data array

Optional. Data for populating the Message object.

↳ allow_access_state int

Indicates whether the principal has the specified permission for the specified resource, based on evaluating all applicable IAM allow policies.

↳ explained_policies array<Google\Cloud\PolicyTroubleshooter\Iam\V3\ExplainedAllowPolicy>

List of IAM allow 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 includes the policy for the resource itself, as well as allow 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.

↳ relevance int

The relevance of the allow policy type to the overall access state.

getAllowAccessState

Indicates whether the principal has the specified permission for the specified resource, based on evaluating all applicable IAM allow policies.

Returns
TypeDescription
int

setAllowAccessState

Indicates whether the principal has the specified permission for the specified resource, based on evaluating all applicable IAM allow policies.

Parameter
NameDescription
var int
Returns
TypeDescription
$this

getExplainedPolicies

List of IAM allow 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 includes the policy for the resource itself, as well as allow 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.

Returns
TypeDescription
Google\Protobuf\Internal\RepeatedField

setExplainedPolicies

List of IAM allow 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 includes the policy for the resource itself, as well as allow 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.

Parameter
NameDescription
var array<Google\Cloud\PolicyTroubleshooter\Iam\V3\ExplainedAllowPolicy>
Returns
TypeDescription
$this

getRelevance

The relevance of the allow policy type to the overall access state.

Returns
TypeDescription
int

setRelevance

The relevance of the allow policy type to the overall access state.

Parameter
NameDescription
var int
Returns
TypeDescription
$this