# Google Cloud Network Connectivity V1 Client - Class AutoAccept (2.5.3)

2.5.3 (latest) 2.5.2 2.4.0 2.3.0 2.2.2 2.1.2 2.0.2 1.5.5 1.4.2 1.3.0 1.2.0 1.1.1 1.0.5 Reference documentation and code samples for the Google Cloud Network Connectivity V1 Client class AutoAccept.

The auto-accept setting for a group controls whether
proposed spokes are automatically attached to the hub. If auto-accept is
enabled, the spoke immediately is attached to the hub and becomes part of the
group. In this case, the new spoke is in the ACTIVE state.

If auto-accept is disabled, the spoke goes to the INACTIVE
state, and it must be reviewed and accepted by a hub
administrator.

Generated from protobuf message `google.cloud.networkconnectivity.v1.AutoAccept`

## Namespace

Google \\ Cloud \\ NetworkConnectivity \\ V1

## Methods

### __construct

Constructor.

| **Parameters** ||
|---|---|
| **Name** | **Description** |
| `data` | `array` Optional. Data for populating the Message object. |
| `↳ auto_accept_projects` | `string[]` Optional. A list of project ids or project numbers for which you want to enable auto-accept. The auto-accept setting is applied to spokes being created or updated in these projects. |

### getAutoAcceptProjects

Optional. A list of project ids or project numbers for which you want
to enable auto-accept. The auto-accept setting is applied to
spokes being created or updated in these projects.

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

### setAutoAcceptProjects

Optional. A list of project ids or project numbers for which you want
to enable auto-accept. The auto-accept setting is applied to
spokes being created or updated in these projects.

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

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