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

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 principal 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 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 array<Google\Rpc\Status>

The general errors contained in the troubleshooting response.

getAccess

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

Returns
TypeDescription
int

setAccess

Indicates whether the principal 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 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.

Returns
TypeDescription
Google\Protobuf\Internal\RepeatedField

setExplainedPolicies

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.

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

getErrors

The general errors contained in the troubleshooting response.

Returns
TypeDescription
Google\Protobuf\Internal\RepeatedField

setErrors

The general errors contained in the troubleshooting response.

Parameter
NameDescription
var array<Google\Rpc\Status>
Returns
TypeDescription
$this