1.3.0 (latest) 1.2.4 1.1.3 1.0.4 0.5.5 0.4.5 0.3.5 Reference documentation and code samples for the Access Context Manager V1 Client class ListAccessLevelsRequest.

A request to list all `AccessLevels` in an `AccessPolicy`.

Generated from protobuf message `google.identity.accesscontextmanager.v1.ListAccessLevelsRequest`

## Namespace

Google \\ Identity \\ AccessContextManager \\ V1

## Methods

### __construct

Constructor.

| **Parameters** ||
|---|---|
| **Name** | **Description** |
| `data` | `array` Optional. Data for populating the Message object. |
| `↳ parent` | `string` Required. Resource name for the access policy to list \[Access Levels\] \[google.identity.accesscontextmanager.v1.AccessLevel\] from. Format: `accessPolicies/{policy_id}` |
| `↳ page_size` | `int` Number of \[Access Levels\] \[google.identity.accesscontextmanager.v1.AccessLevel\] to include in the list. Default 100. |
| `↳ page_token` | `string` Next page token for the next batch of \[Access Level\] \[google.identity.accesscontextmanager.v1.AccessLevel\] instances. Defaults to the first page of results. |
| `↳ access_level_format` | `int` Whether to return `BasicLevels` in the Cloud Common Expression language, as `CustomLevels`, rather than as `BasicLevels`. Defaults to returning `AccessLevels` in the format they were defined. |

### getParent

Required. Resource name for the access policy to list [Access Levels](https://docs.cloud.google.com/php/docs/reference/access-context-manager/latest/V1.AccessLevel) from.

Format:
`accessPolicies/{policy_id}`

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

### setParent

Required. Resource name for the access policy to list [Access Levels](https://docs.cloud.google.com/php/docs/reference/access-context-manager/latest/V1.AccessLevel) from.

Format:
`accessPolicies/{policy_id}`

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

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

### getPageSize

Number of [Access Levels](https://docs.cloud.google.com/php/docs/reference/access-context-manager/latest/V1.AccessLevel) to include in
the list. Default 100.

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

### setPageSize

Number of [Access Levels](https://docs.cloud.google.com/php/docs/reference/access-context-manager/latest/V1.AccessLevel) to include in
the list. Default 100.

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

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

### getPageToken

Next page token for the next batch of [Access Level](https://docs.cloud.google.com/php/docs/reference/access-context-manager/latest/V1.AccessLevel) instances.

Defaults to the first page of results.

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

### setPageToken

Next page token for the next batch of [Access Level](https://docs.cloud.google.com/php/docs/reference/access-context-manager/latest/V1.AccessLevel) instances.

Defaults to the first page of results.

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

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

### getAccessLevelFormat

Whether to return `BasicLevels` in the Cloud Common Expression language, as
`CustomLevels`, rather than as `BasicLevels`. Defaults to returning
`AccessLevels` in the format they were defined.

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `int` | Enum of type [LevelFormat](https://docs.cloud.google.com/php/docs/reference/access-context-manager/latest/V1.LevelFormat). |

### setAccessLevelFormat

Whether to return `BasicLevels` in the Cloud Common Expression language, as
`CustomLevels`, rather than as `BasicLevels`. Defaults to returning
`AccessLevels` in the format they were defined.

| **Parameter** ||
|---|---|
| **Name** | **Description** |
| `var` | `int` Enum of type [LevelFormat](https://docs.cloud.google.com/php/docs/reference/access-context-manager/latest/V1.LevelFormat). |

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

### static::build

| **Parameter** ||
|---|---|
| **Name** | **Description** |
| `parent` | `string` Required. Resource name for the access policy to list [Access Levels](https://docs.cloud.google.com/php/docs/reference/access-context-manager/latest/V1.AccessLevel) from. Format: `accessPolicies/{policy_id}` Please see AccessContextManagerClient::accessPolicyName() for help formatting this field. |

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `https://docs.cloud.google.com/php/docs/reference/access-context-manager/latest/V1.ListAccessLevelsRequest` |   |