1.3.0 (latest) 1.2.3 1.1.4 1.0.5 0.4.5 0.3.2 0.2.2 0.1.6 Reference documentation and code samples for the Google Cloud BeyondCorp AppConnectors V1 Client class AppConnector.

A BeyondCorp connector resource that represents an application facing
component deployed proximal to and with direct access to the application
instances. It is used to establish connectivity between the remote enterprise
environment and GCP. It initiates connections to the applications and can
proxy the data from users over the connection.

Generated from protobuf message `google.cloud.beyondcorp.appconnectors.v1.AppConnector`

## Namespace

Google \\ Cloud \\ BeyondCorp \\ AppConnectors \\ V1

## Methods

### __construct

Constructor.

| **Parameters** ||
|---|---|
| **Name** | **Description** |
| `data` | `array` Optional. Data for populating the Message object. |
| `↳ name` | `string` Required. Unique resource name of the AppConnector. The name is ignored when creating a AppConnector. |
| `↳ create_time` | `Google\Protobuf\Timestamp` Output only. Timestamp when the resource was created. |
| `↳ update_time` | `Google\Protobuf\Timestamp` Output only. Timestamp when the resource was last modified. |
| `↳ labels` | `array|Google\Protobuf\Internal\MapField` Optional. Resource labels to represent user provided metadata. |
| `↳ display_name` | `string` Optional. An arbitrary user-provided name for the AppConnector. Cannot exceed 64 characters. |
| `↳ uid` | `string` Output only. A unique identifier for the instance generated by the system. |
| `↳ state` | `int` Output only. The current state of the AppConnector. |
| `↳ principal_info` | `https://docs.cloud.google.com/php/docs/reference/cloud-beyondcorp-appconnectors/latest/V1.AppConnector.PrincipalInfo` Required. Principal information about the Identity of the AppConnector. |
| `↳ resource_info` | `https://docs.cloud.google.com/php/docs/reference/cloud-beyondcorp-appconnectors/latest/V1.ResourceInfo` Optional. Resource info of the connector. |

### getName

Required. Unique resource name of the AppConnector.

The name is ignored when creating a AppConnector.

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

### setName

Required. Unique resource name of the AppConnector.

The name is ignored when creating a AppConnector.

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

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

### getCreateTime

Output only. Timestamp when the resource was created.

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `Google\Protobuf\Timestamp|null` |   |

### hasCreateTime

### clearCreateTime

### setCreateTime

Output only. Timestamp when the resource was created.

| **Parameter** ||
|---|---|
| **Name** | **Description** |
| `var` | `Google\Protobuf\Timestamp` |

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

### getUpdateTime

Output only. Timestamp when the resource was last modified.

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `Google\Protobuf\Timestamp|null` |   |

### hasUpdateTime

### clearUpdateTime

### setUpdateTime

Output only. Timestamp when the resource was last modified.

| **Parameter** ||
|---|---|
| **Name** | **Description** |
| `var` | `Google\Protobuf\Timestamp` |

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

### getLabels

Optional. Resource labels to represent user provided metadata.

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `Google\Protobuf\Internal\MapField` |   |

### setLabels

Optional. Resource labels to represent user provided metadata.

| **Parameter** ||
|---|---|
| **Name** | **Description** |
| `var` | `array|Google\Protobuf\Internal\MapField` |

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

### getDisplayName

Optional. An arbitrary user-provided name for the AppConnector. Cannot
exceed 64 characters.

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

### setDisplayName

Optional. An arbitrary user-provided name for the AppConnector. Cannot
exceed 64 characters.

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

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

### getUid

Output only. A unique identifier for the instance generated by the
system.

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

### setUid

Output only. A unique identifier for the instance generated by the
system.

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

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

### getState

Output only. The current state of the AppConnector.

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `int` | Enum of type [State](https://docs.cloud.google.com/php/docs/reference/cloud-beyondcorp-appconnectors/latest/V1.AppConnector.State). |

### setState

Output only. The current state of the AppConnector.

| **Parameter** ||
|---|---|
| **Name** | **Description** |
| `var` | `int` Enum of type [State](https://docs.cloud.google.com/php/docs/reference/cloud-beyondcorp-appconnectors/latest/V1.AppConnector.State). |

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

### getPrincipalInfo

Required. Principal information about the Identity of the AppConnector.

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `https://docs.cloud.google.com/php/docs/reference/cloud-beyondcorp-appconnectors/latest/V1.AppConnector.PrincipalInfo|null` |   |

### hasPrincipalInfo

### clearPrincipalInfo

### setPrincipalInfo

Required. Principal information about the Identity of the AppConnector.

| **Parameter** ||
|---|---|
| **Name** | **Description** |
| `var` | `https://docs.cloud.google.com/php/docs/reference/cloud-beyondcorp-appconnectors/latest/V1.AppConnector.PrincipalInfo` |

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

### getResourceInfo

Optional. Resource info of the connector.

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `https://docs.cloud.google.com/php/docs/reference/cloud-beyondcorp-appconnectors/latest/V1.ResourceInfo|null` |   |

### hasResourceInfo

### clearResourceInfo

### setResourceInfo

Optional. Resource info of the connector.

| **Parameter** ||
|---|---|
| **Name** | **Description** |
| `var` | `https://docs.cloud.google.com/php/docs/reference/cloud-beyondcorp-appconnectors/latest/V1.ResourceInfo` |

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