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

Step represents a logical step in a manual approval workflow.

Generated from protobuf message `google.cloud.privilegedaccessmanager.v1.ManualApprovals.Step`

## Namespace

Google \\ Cloud \\ PrivilegedAccessManager \\ V1 \\ ManualApprovals

## Methods

### __construct

Constructor.

| **Parameters** ||
|---|---|
| **Name** | **Description** |
| `data` | `array` Optional. Data for populating the Message object. |
| `↳ approvers` | `array<https://docs.cloud.google.com/php/docs/reference/cloud-privilegedaccessmanager/latest/V1.AccessControlEntry>` Optional. The potential set of approvers in this step. This list must contain at most one entry. |
| `↳ approvals_needed` | `int` Required. How many users from the above list need to approve. If there aren't enough distinct users in the list, then the workflow indefinitely blocks. Should always be greater than 0. 1 is the only supported value. |
| `↳ approver_email_recipients` | `string[]` Optional. Additional email addresses to be notified when a grant is pending approval. |

### getApprovers

Optional. The potential set of approvers in this step. This list must
contain at most one entry.

| **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.AccessControlEntry>` |   |

### setApprovers

Optional. The potential set of approvers in this step. This list must
contain at most one entry.

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

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

### getApprovalsNeeded

Required. How many users from the above list need to approve. If there
aren't enough distinct users in the list, then the workflow indefinitely
blocks. Should always be greater than 0. 1 is the only supported value.

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

### setApprovalsNeeded

Required. How many users from the above list need to approve. If there
aren't enough distinct users in the list, then the workflow indefinitely
blocks. Should always be greater than 0. 1 is the only supported value.

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

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

### getApproverEmailRecipients

Optional. Additional email addresses to be notified when a grant is
pending approval.

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `https://protobuf.dev/reference/php/api-docs/Google/Protobuf/RepeatedField<string>` |   |

### setApproverEmailRecipients

Optional. Additional email addresses to be notified when a grant is
pending approval.

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

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