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 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 | |
---|---|
Type | Description |
int |
setAccess
Indicates whether the member 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 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 | |
---|---|
Type | Description |
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 | |
---|---|
Name | Description |
var |
array<Google\Cloud\PolicyTroubleshooter\V1\ExplainedPolicy>
|
Returns | |
---|---|
Type | Description |
$this |