0.16.0 (latest) 0.15.0 0.14.0 0.13.3 0.12.0 0.10.0 0.9.0 0.8.0 0.7.0 0.6.2 0.5.1 0.4.2 0.3.0 0.2.0 0.1.1 Reference documentation and code samples for the Google Cloud Memorystore V1 Client class AclPolicy.

The ACL policy resource.

Generated from protobuf message `google.cloud.memorystore.v1.AclPolicy`

## Namespace

Google \\ Cloud \\ Memorystore \\ 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-memorystore/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 of the ACL policy. |
| `↳ instance_acl_policy_attachments` | `array<https://docs.cloud.google.com/php/docs/reference/cloud-memorystore/latest/V1.InstanceAclPolicyAttachment>` Output only. The ACL policy attachment status for each attached instance. |
| `↳ 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-memorystore/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-memorystore/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-memorystore/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-memorystore/latest/V1.AclPolicy.State). |

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

### getEtag

Output only. Etag of the ACL policy.

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

### hasEtag

### clearEtag

### setEtag

Output only. Etag of the ACL policy.

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

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

### getInstanceAclPolicyAttachments

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

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

### setInstanceAclPolicyAttachments

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

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

| **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` |   |