# Google Cloud OsConfig V1 Client - Class ListOSPolicyAssignmentsRequest (2.2.3)

2.2.3 (latest) 2.2.2 2.1.0 2.0.5 1.3.5 1.2.2 1.1.1 1.0.5 Reference documentation and code samples for the Google Cloud OsConfig V1 Client class ListOSPolicyAssignmentsRequest.

A request message to list OS policy assignments for a parent resource

Generated from protobuf message `google.cloud.osconfig.v1.ListOSPolicyAssignmentsRequest`

## Namespace

Google \\ Cloud \\ OsConfig \\ V1

## Methods

### __construct

Constructor.

| **Parameters** ||
|---|---|
| **Name** | **Description** |
| `data` | `array` Optional. Data for populating the Message object. |
| `↳ parent` | `string` Required. The parent resource name. |
| `↳ page_size` | `int` The maximum number of assignments to return. |
| `↳ page_token` | `string` A pagination token returned from a previous call to `ListOSPolicyAssignments` that indicates where this listing should continue from. |

### getParent

Required. The parent resource name.

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

### setParent

Required. The parent resource name.

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

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

### getPageSize

The maximum number of assignments to return.

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

### setPageSize

The maximum number of assignments to return.

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

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

### getPageToken

A pagination token returned from a previous call to
`ListOSPolicyAssignments` that indicates where this listing should continue
from.

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

### setPageToken

A pagination token returned from a previous call to
`ListOSPolicyAssignments` that indicates where this listing should continue
from.

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

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

### static::build

| **Parameter** ||
|---|---|
| **Name** | **Description** |
| `parent` | `string` Required. The parent resource name. Please see OsConfigZonalServiceClient::locationName() for help formatting this field. |

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `https://docs.cloud.google.com/php/docs/reference/cloud-osconfig/latest/V1.ListOSPolicyAssignmentsRequest` |   |