# Google Cloud Build V2 Client - Class GitHubConfig (1.1.2)

1.1.2 (latest) 1.1.1 1.0.4 0.16.3 0.15.0 0.14.0 0.13.2 0.12.0 0.11.0 0.10.0 0.9.0 0.8.0 0.7.3 0.6.1 0.5.1 0.4.0 0.3.8 Reference documentation and code samples for the Google Cloud Build V2 Client class GitHubConfig.

Configuration for connections to github.com.

Generated from protobuf message `google.devtools.cloudbuild.v2.GitHubConfig`

## Namespace

Google \\ Cloud \\ Build \\ V2

## Methods

### __construct

Constructor.

| **Parameters** ||
|---|---|
| **Name** | **Description** |
| `data` | `array` Optional. Data for populating the Message object. |
| `↳ authorizer_credential` | `https://docs.cloud.google.com/php/docs/reference/cloud-build/latest/V2.OAuthCredential` OAuth credential of the account that authorized the Cloud Build GitHub App. It is recommended to use a robot account instead of a human user account. The OAuth token must be tied to the Cloud Build GitHub App. |
| `↳ app_installation_id` | `int|string` GitHub App installation id. |

### getAuthorizerCredential

OAuth credential of the account that authorized the Cloud Build GitHub App.

It is recommended to use a robot account instead of a human user account.
The OAuth token must be tied to the Cloud Build GitHub App.

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `https://docs.cloud.google.com/php/docs/reference/cloud-build/latest/V2.OAuthCredential|null` |   |

### hasAuthorizerCredential

### clearAuthorizerCredential

### setAuthorizerCredential

OAuth credential of the account that authorized the Cloud Build GitHub App.

It is recommended to use a robot account instead of a human user account.
The OAuth token must be tied to the Cloud Build GitHub App.

| **Parameter** ||
|---|---|
| **Name** | **Description** |
| `var` | `https://docs.cloud.google.com/php/docs/reference/cloud-build/latest/V2.OAuthCredential` |

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

### getAppInstallationId

GitHub App installation id.

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

### setAppInstallationId

GitHub App installation id.

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

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