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 \ V1Methods
__construct
Constructor.
Parameters | |
---|---|
Name | Description |
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 | |
---|---|
Type | Description |
int |
setAccess
Indicates whether the principal has the specified permission for the specified resource, based on evaluating all of the applicable IAM policies.
Parameter | |
---|---|
Name | Description |
var |
int
|
Returns | |
---|---|
Type | Description |
$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 | |
---|---|
Type | Description |
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 | |
---|---|
Name | Description |
var |
array<Google\Cloud\PolicyTroubleshooter\V1\ExplainedPolicy>
|
Returns | |
---|---|
Type | Description |
$this |
getErrors
The general errors contained in the troubleshooting response.
Returns | |
---|---|
Type | Description |
Google\Protobuf\Internal\RepeatedField |
setErrors
The general errors contained in the troubleshooting response.
Parameter | |
---|---|
Name | Description |
var |
array<Google\Rpc\Status>
|
Returns | |
---|---|
Type | Description |
$this |