# Google Cloud Privileged Access Manager V1 Client - Class AuditTrail (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 AuditTrail.

Audit trail for the access provided by this grant.

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

## Namespace

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

## Methods

### __construct

Constructor.

| **Parameters** ||
|---|---|
| **Name** | **Description** |
| `data` | `array` Optional. Data for populating the Message object. |
| `↳ access_grant_time` | `https://protobuf.dev/reference/php/api-docs/Google/Protobuf/Timestamp` Output only. The time at which access was given. |
| `↳ access_remove_time` | `https://protobuf.dev/reference/php/api-docs/Google/Protobuf/Timestamp` Output only. The time at which the system removed access. This could be because of an automatic expiry or because of a revocation. If unspecified, then access hasn't been removed yet. |

### getAccessGrantTime

Output only. The time at which access was given.

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `https://protobuf.dev/reference/php/api-docs/Google/Protobuf/Timestamp|null` |   |

### hasAccessGrantTime

### clearAccessGrantTime

### setAccessGrantTime

Output only. The time at which access was given.

| **Parameter** ||
|---|---|
| **Name** | **Description** |
| `var` | `https://protobuf.dev/reference/php/api-docs/Google/Protobuf/Timestamp` |

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

### getAccessRemoveTime

Output only. The time at which the system removed access. This could be
because of an automatic expiry or because of a revocation.

If unspecified, then access hasn't been removed yet.

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `https://protobuf.dev/reference/php/api-docs/Google/Protobuf/Timestamp|null` |   |

### hasAccessRemoveTime

### clearAccessRemoveTime

### setAccessRemoveTime

Output only. The time at which the system removed access. This could be
because of an automatic expiry or because of a revocation.

If unspecified, then access hasn't been removed yet.

| **Parameter** ||
|---|---|
| **Name** | **Description** |
| `var` | `https://protobuf.dev/reference/php/api-docs/Google/Protobuf/Timestamp` |

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