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

Request for `CreateAclPolicy`.

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

## Namespace

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

## Methods

### __construct

Constructor.

| **Parameters** ||
|---|---|
| **Name** | **Description** |
| `data` | `array` Optional. Data for populating the Message object. |
| `↳ parent` | `string` Required. The resource name of the cluster location using the form: `projects/{project_id}/locations/{location_id}` where `location_id` refers to a Google Cloud region. |
| `↳ acl_policy_id` | `string` Required. The logical name of the ACL policy in the customer project with the following restrictions: \* \* Must contain only lowercase letters, numbers, and hyphens. \* \* Must start with a letter. \* \* Must be between 1-63 characters. \* \* Must end with a number or a letter. \* \* Must be unique within the customer project / location |
| `↳ acl_policy` | `https://docs.cloud.google.com/php/docs/reference/cloud-redis-cluster/latest/V1.AclPolicy` Required. The ACL policy that is to be created. |
| `↳ request_id` | `string` Optional. Idempotent request UUID. . |

### getParent

Required. The resource name of the cluster location using the form:
`projects/{project_id}/locations/{location_id}`
where `location_id` refers to a Google Cloud region.

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

### setParent

Required. The resource name of the cluster location using the form:
`projects/{project_id}/locations/{location_id}`
where `location_id` refers to a Google Cloud region.

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

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

### getAclPolicyId

Required. The logical name of the ACL policy in the customer project
with the following restrictions:

- Must contain only lowercase letters, numbers, and hyphens.

- Must start with a letter.

- Must be between 1-63 characters.
- Must end with a number or a letter.
- Must be unique within the customer project / location

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

### setAclPolicyId

Required. The logical name of the ACL policy in the customer project
with the following restrictions:

- Must contain only lowercase letters, numbers, and hyphens.

- Must start with a letter.

- Must be between 1-63 characters.
- Must end with a number or a letter.
- Must be unique within the customer project / location

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

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

### getAclPolicy

Required. The ACL policy that is to be created.

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

### hasAclPolicy

### clearAclPolicy

### setAclPolicy

Required. The ACL policy that is to be created.

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

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

### getRequestId

Optional. Idempotent request UUID.

.

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

### setRequestId

Optional. Idempotent request UUID.

.

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

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

### static::build

| **Parameters** ||
|---|---|
| **Name** | **Description** |
| `parent` | `string` Required. The resource name of the cluster location using the form: `projects/{project_id}/locations/{location_id}` where `location_id` refers to a Google Cloud region. Please see CloudRedisClusterClient::locationName() for help formatting this field. |
| `aclPolicy` | `https://docs.cloud.google.com/php/docs/reference/cloud-redis-cluster/latest/V1.AclPolicy` Required. The ACL policy that is to be created. |
| `aclPolicyId` | `string` Required. The logical name of the ACL policy in the customer project with the following restrictions: - - Must contain only lowercase letters, numbers, and hyphens. - - Must start with a letter. - - Must be between 1-63 characters. - - Must end with a number or a letter. - - Must be unique within the customer project / location |

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