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

Request message for `ApproveGrant` method.

Generated from protobuf message `google.cloud.privilegedaccessmanager.v1.ApproveGrantRequest`

## Namespace

Google \\ Cloud \\ PrivilegedAccessManager \\ V1

## Methods

### __construct

Constructor.

| **Parameters** ||
|---|---|
| **Name** | **Description** |
| `data` | `array` Optional. Data for populating the Message object. |
| `↳ name` | `string` Required. Name of the grant resource which is being approved. |
| `↳ reason` | `string` Optional. The reason for approving this grant. This is required if the `require_approver_justification` field of the `ManualApprovals` workflow used in this grant is true. |

### getName

Required. Name of the grant resource which is being approved.

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

### setName

Required. Name of the grant resource which is being approved.

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

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

### getReason

Optional. The reason for approving this grant. This is required if the
`require_approver_justification` field of the `ManualApprovals` workflow
used in this grant is true.

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

### setReason

Optional. The reason for approving this grant. This is required if the
`require_approver_justification` field of the `ManualApprovals` workflow
used in this grant is true.

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

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