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 AclPolicyRevision.

The ACL policy revision resource.

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

## Namespace

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

## Methods

### __construct

Constructor.

| **Parameters** ||
|---|---|
| **Name** | **Description** |
| `data` | `array` Optional. Data for populating the Message object. |
| `↳ name` | `string` Identifier. The name of the ACL policy revision. Format: "projects/{project}/locations/{location}/aclPolicies/{acl_policy}/revisions/{revision}" |
| `↳ revision_number` | `int|string` Output only. The revision number of the ACL policy revision. |
| `↳ snapshot` | `https://docs.cloud.google.com/php/docs/reference/cloud-redis-cluster/latest/V1.AclPolicy` Output only. The snapshot of the ACL policy at the time of revision creation. |
| `↳ create_time` | `Google\Protobuf\Timestamp` Output only. The timestamp that the revision was created. |
| `↳ attached_clusters` | `string[]` Output only. A list of clusters that are attached to this ACL policy revision. |

### getName

Identifier. The name of the ACL policy revision.

Format:
"projects/{project}/locations/{location}/aclPolicies/{acl_policy}/revisions/{revision}"

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

### setName

Identifier. The name of the ACL policy revision.

Format:
"projects/{project}/locations/{location}/aclPolicies/{acl_policy}/revisions/{revision}"

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

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

### getRevisionNumber

Output only. The revision number of the ACL policy revision.

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

### setRevisionNumber

Output only. The revision number of the ACL policy revision.

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

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

### getSnapshot

Output only. The snapshot of the ACL policy at the time of revision
creation.

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

### hasSnapshot

### clearSnapshot

### setSnapshot

Output only. The snapshot of the ACL policy at the time of revision
creation.

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

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

### getCreateTime

Output only. The timestamp that the revision was created.

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

### hasCreateTime

### clearCreateTime

### setCreateTime

Output only. The timestamp that the revision was created.

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

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

### getAttachedClusters

Output only. A list of clusters that are attached to this ACL policy
revision.

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `Google\Protobuf\RepeatedField<string>` |   |

### setAttachedClusters

Output only. A list of clusters that are attached to this ACL policy
revision.

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

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