0.13.0 (latest) 0.12.0 0.11.0 0.10.3 0.9.0 0.8.0 0.7.0 0.6.4 0.5.1 0.4.1 0.3.2 0.2.5 0.1.0 Reference documentation and code samples for the Google Cloud Redis Cluster V1 Client class AclPolicy.

The ACL policy resource.

Generated from protobuf message `google.cloud.redis.cluster.v1.AclPolicy`

## Namespace

Google \\ Cloud \\ Redis \\ Cluster \\ V1

## Methods

### __construct

Constructor.

| **Parameters** ||
|---|---|
| **Name** | **Description** |
| `data` | `array` Optional. Data for populating the Message object. |
| `↳ name` | `string` Identifier. Full resource path of the ACL policy. |
| `↳ rules` | `array<https://docs.cloud.google.com/php/docs/reference/cloud-redis-cluster/latest/V1.AclRule>` Required. The ACL rules within the ACL policy. |
| `↳ state` | `int` Output only. The state of the ACL policy. |
| `↳ etag` | `string` Output only. Etag for the ACL policy. |
| `↳ cluster_acl_policy_attachments` | `array<https://docs.cloud.google.com/php/docs/reference/cloud-redis-cluster/latest/V1.ClusterAclPolicyAttachment>` Output only. The ACL policy attachment status for each attached cluster. |
| `↳ create_time` | `Google\Protobuf\Timestamp` Output only. The timestamp that the ACL policy was created. |
| `↳ update_time` | `Google\Protobuf\Timestamp` Output only. The timestamp that the ACL policy was last updated. |

### getName

Identifier. Full resource path of the ACL policy.

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `string` |   |

### setName

Identifier. Full resource path of the ACL policy.

| **Parameter** ||
|---|---|
| **Name** | **Description** |
| `var` | `string` |

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

### getRules

Required. The ACL rules within the ACL policy.

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `Google\Protobuf\RepeatedField<https://docs.cloud.google.com/php/docs/reference/cloud-redis-cluster/latest/V1.AclRule>` |   |

### setRules

Required. The ACL rules within the ACL policy.

| **Parameter** ||
|---|---|
| **Name** | **Description** |
| `var` | `array<https://docs.cloud.google.com/php/docs/reference/cloud-redis-cluster/latest/V1.AclRule>` |

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

### getState

Output only. The state of the ACL policy.

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `int` | Enum of type [State](https://docs.cloud.google.com/php/docs/reference/cloud-redis-cluster/latest/V1.AclPolicy.State). |

### setState

Output only. The state of the ACL policy.

| **Parameter** ||
|---|---|
| **Name** | **Description** |
| `var` | `int` Enum of type [State](https://docs.cloud.google.com/php/docs/reference/cloud-redis-cluster/latest/V1.AclPolicy.State). |

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

### getEtag

Output only. Etag for the ACL policy.

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `string` |   |

### hasEtag

### clearEtag

### setEtag

Output only. Etag for the ACL policy.

| **Parameter** ||
|---|---|
| **Name** | **Description** |
| `var` | `string` |

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

### getClusterAclPolicyAttachments

Output only. The ACL policy attachment status for each attached cluster.

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `Google\Protobuf\RepeatedField<https://docs.cloud.google.com/php/docs/reference/cloud-redis-cluster/latest/V1.ClusterAclPolicyAttachment>` |   |

### setClusterAclPolicyAttachments

Output only. The ACL policy attachment status for each attached cluster.

| **Parameter** ||
|---|---|
| **Name** | **Description** |
| `var` | `array<https://docs.cloud.google.com/php/docs/reference/cloud-redis-cluster/latest/V1.ClusterAclPolicyAttachment>` |

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

### getCreateTime

Output only. The timestamp that the ACL policy was created.

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `Google\Protobuf\Timestamp|null` |   |

### hasCreateTime

### clearCreateTime

### setCreateTime

Output only. The timestamp that the ACL policy was created.

| **Parameter** ||
|---|---|
| **Name** | **Description** |
| `var` | `Google\Protobuf\Timestamp` |

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

### getUpdateTime

Output only. The timestamp that the ACL policy was last updated.

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `Google\Protobuf\Timestamp|null` |   |

### hasUpdateTime

### clearUpdateTime

### setUpdateTime

Output only. The timestamp that the ACL policy was last updated.

| **Parameter** ||
|---|---|
| **Name** | **Description** |
| `var` | `Google\Protobuf\Timestamp` |

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