# Google Cloud Privileged Access Manager V1 Client - Class Timeline (0.4.4)

0.4.4 (latest) 0.4.3 0.3.0 0.2.1 0.1.4 Reference documentation and code samples for the Google Cloud Privileged Access Manager V1 Client class Timeline.

Timeline of a grant describing what happened to it and when.

Generated from protobuf message `google.cloud.privilegedaccessmanager.v1.Grant.Timeline`

## Namespace

Google \\ Cloud \\ PrivilegedAccessManager \\ V1 \\ Grant

## Methods

### __construct

Constructor.

| **Parameters** ||
|---|---|
| **Name** | **Description** |
| `data` | `array` Optional. Data for populating the Message object. |
| `↳ events` | `array<https://docs.cloud.google.com/php/docs/reference/cloud-privilegedaccessmanager/latest/V1.Grant.Timeline.Event>` Output only. The events that have occurred on this grant. This list contains entries in the same order as they occurred. The first entry is always be of type `Requested` and there is always at least one entry in this array. |

### getEvents

Output only. The events that have occurred on this grant. This list
contains entries in the same order as they occurred. The first entry is
always be of type `Requested` and there is always at least one entry in
this array.

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `https://protobuf.dev/reference/php/api-docs/Google/Protobuf/RepeatedField<https://docs.cloud.google.com/php/docs/reference/cloud-privilegedaccessmanager/latest/V1.Grant.Timeline.Event>` |   |

### setEvents

Output only. The events that have occurred on this grant. This list
contains entries in the same order as they occurred. The first entry is
always be of type `Requested` and there is always at least one entry in
this array.

| **Parameter** ||
|---|---|
| **Name** | **Description** |
| `var` | `array<https://docs.cloud.google.com/php/docs/reference/cloud-privilegedaccessmanager/latest/V1.Grant.Timeline.Event>` |

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