Google Cloud Policy Troubleshooter V1 Client - Class TroubleshootIamPolicyResponse (1.1.2)

Reference documentation and code samples for the Google Cloud Policy Troubleshooter V1 Client class TroubleshootIamPolicyResponse.

Response for TroubleshootIamPolicy.

Generated from protobuf message google.cloud.policytroubleshooter.v1.TroubleshootIamPolicyResponse

Namespace

Google \ Cloud \ PolicyTroubleshooter \ V1

Methods

__construct

Constructor.

Parameters
NameDescription
data array

Optional. Data for populating the Message object.

↳ access int

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

↳ explained_policies array<Google\Cloud\PolicyTroubleshooter\V1\ExplainedPolicy>

List of IAM policies that were evaluated to check the member'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.

getAccess

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

Returns
TypeDescription
int

setAccess

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

Parameter
NameDescription
var int
Returns
TypeDescription
$this

getExplainedPolicies

List of IAM policies that were evaluated to check the member'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.

Returns
TypeDescription
Google\Protobuf\Internal\RepeatedField

setExplainedPolicies

List of IAM policies that were evaluated to check the member'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.

Parameter
NameDescription
var array<Google\Cloud\PolicyTroubleshooter\V1\ExplainedPolicy>
Returns
TypeDescription
$this