# Google Cloud Asset V1 Client - Class AccessControlList (2.3.3)

2.3.3 (latest) 2.3.2 2.2.3 2.1.3 2.0.1 1.16.4 1.14.1 1.13.2 1.12.2 1.11.3 1.10.2 1.9.2 Reference documentation and code samples for the Google Cloud Asset V1 Client class AccessControlList.

An access control list, derived from the above IAM policy binding, which
contains a set of resources and accesses. May include one
item from each set to compose an access control entry.

NOTICE that there could be multiple access control lists for one IAM policy
binding. The access control lists are created based on resource and access
combinations.
For example, assume we have the following cases in one IAM policy binding:

- Permission P1 and P2 apply to resource R1 and R2;
- Permission P3 applies to resource R2 and R3; This will result in the following access control lists:
- AccessControlList 1: \[R1, R2\], \[P1, P2\]
- AccessControlList 2: \[R2, R3\], \[P3\]

Generated from protobuf message `google.cloud.asset.v1.IamPolicyAnalysisResult.AccessControlList`

## Namespace

Google \\ Cloud \\ Asset \\ V1 \\ IamPolicyAnalysisResult

## Methods

### __construct

Constructor.

| **Parameters** ||
|---|---|
| **Name** | **Description** |
| `data` | `array` Optional. Data for populating the Message object. |
| `↳ resources` | `array<https://docs.cloud.google.com/php/docs/reference/cloud-asset/latest/V1.IamPolicyAnalysisResult.Resource>` The resources that match one of the following conditions: - The resource_selector, if it is specified in request; - Otherwise, resources reachable from the policy attached resource. |
| `↳ accesses` | `array<https://docs.cloud.google.com/php/docs/reference/cloud-asset/latest/V1.IamPolicyAnalysisResult.Access>` The accesses that match one of the following conditions: - The access_selector, if it is specified in request; - Otherwise, access specifiers reachable from the policy binding's role. |
| `↳ resource_edges` | `array<https://docs.cloud.google.com/php/docs/reference/cloud-asset/latest/V1.IamPolicyAnalysisResult.Edge>` Resource edges of the graph starting from the policy attached resource to any descendant resources. The [Edge.source_node](https://docs.cloud.google.com/php/docs/reference/cloud-asset/latest/V1.IamPolicyAnalysisResult.Edge#_Google_Cloud_Asset_V1_IamPolicyAnalysisResult_Edge__getSourceNode__) contains the full resource name of a parent resource and [Edge.target_node](https://docs.cloud.google.com/php/docs/reference/cloud-asset/latest/V1.IamPolicyAnalysisResult.Edge#_Google_Cloud_Asset_V1_IamPolicyAnalysisResult_Edge__getTargetNode__) contains the full resource name of a child resource. This field is present only if the output_resource_edges option is enabled in request. |
| `↳ condition_evaluation` | `https://docs.cloud.google.com/php/docs/reference/cloud-asset/latest/V1.ConditionEvaluation` Condition evaluation for this AccessControlList, if there is a condition defined in the above IAM policy binding. |

### getResources

The resources that match one of the following conditions:

- The resource_selector, if it is specified in request;
- Otherwise, resources reachable from the policy attached resource.

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `https://protobuf.dev/reference/php/api-docs/Google/Protobuf/RepeatedField<https://docs.cloud.google.com/php/docs/reference/cloud-asset/latest/V1.IamPolicyAnalysisResult.Resource>` |   |

### setResources

The resources that match one of the following conditions:

- The resource_selector, if it is specified in request;
- Otherwise, resources reachable from the policy attached resource.

| **Parameter** ||
|---|---|
| **Name** | **Description** |
| `var` | `array<https://docs.cloud.google.com/php/docs/reference/cloud-asset/latest/V1.IamPolicyAnalysisResult.Resource>` |

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `$this` |   |

### getAccesses

The accesses that match one of the following conditions:

- The access_selector, if it is specified in request;
- Otherwise, access specifiers reachable from the policy binding's role.

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `https://protobuf.dev/reference/php/api-docs/Google/Protobuf/RepeatedField<https://docs.cloud.google.com/php/docs/reference/cloud-asset/latest/V1.IamPolicyAnalysisResult.Access>` |   |

### setAccesses

The accesses that match one of the following conditions:

- The access_selector, if it is specified in request;
- Otherwise, access specifiers reachable from the policy binding's role.

| **Parameter** ||
|---|---|
| **Name** | **Description** |
| `var` | `array<https://docs.cloud.google.com/php/docs/reference/cloud-asset/latest/V1.IamPolicyAnalysisResult.Access>` |

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `$this` |   |

### getResourceEdges

Resource edges of the graph starting from the policy attached
resource to any descendant resources. The
[Edge.source_node](https://docs.cloud.google.com/php/docs/reference/cloud-asset/latest/V1.IamPolicyAnalysisResult.Edge#_Google_Cloud_Asset_V1_IamPolicyAnalysisResult_Edge__getSourceNode__)
contains the full resource name of a parent resource and
[Edge.target_node](https://docs.cloud.google.com/php/docs/reference/cloud-asset/latest/V1.IamPolicyAnalysisResult.Edge#_Google_Cloud_Asset_V1_IamPolicyAnalysisResult_Edge__getTargetNode__)
contains the full resource name of a child resource. This field is
present only if the output_resource_edges option is enabled in request.

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `https://protobuf.dev/reference/php/api-docs/Google/Protobuf/RepeatedField<https://docs.cloud.google.com/php/docs/reference/cloud-asset/latest/V1.IamPolicyAnalysisResult.Edge>` |   |

### setResourceEdges

Resource edges of the graph starting from the policy attached
resource to any descendant resources. The
[Edge.source_node](https://docs.cloud.google.com/php/docs/reference/cloud-asset/latest/V1.IamPolicyAnalysisResult.Edge#_Google_Cloud_Asset_V1_IamPolicyAnalysisResult_Edge__getSourceNode__)
contains the full resource name of a parent resource and
[Edge.target_node](https://docs.cloud.google.com/php/docs/reference/cloud-asset/latest/V1.IamPolicyAnalysisResult.Edge#_Google_Cloud_Asset_V1_IamPolicyAnalysisResult_Edge__getTargetNode__)
contains the full resource name of a child resource. This field is
present only if the output_resource_edges option is enabled in request.

| **Parameter** ||
|---|---|
| **Name** | **Description** |
| `var` | `array<https://docs.cloud.google.com/php/docs/reference/cloud-asset/latest/V1.IamPolicyAnalysisResult.Edge>` |

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `$this` |   |

### getConditionEvaluation

Condition evaluation for this AccessControlList, if there is a condition
defined in the above IAM policy binding.

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `https://docs.cloud.google.com/php/docs/reference/cloud-asset/latest/V1.ConditionEvaluation|null` |   |

### hasConditionEvaluation

### clearConditionEvaluation

### setConditionEvaluation

Condition evaluation for this AccessControlList, if there is a condition
defined in the above IAM policy binding.

| **Parameter** ||
|---|---|
| **Name** | **Description** |
| `var` | `https://docs.cloud.google.com/php/docs/reference/cloud-asset/latest/V1.ConditionEvaluation` |

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `$this` |   |