0.6.2 (latest) 0.6.1 0.5.3 0.4.1 0.3.0 0.2.2 0.1.2 Reference documentation and code samples for the Google Cloud Developer Connect V1 Client class GitHubConfig.

Configuration for connections to github.com.

Generated from protobuf message `google.cloud.developerconnect.v1.GitHubConfig`

## Namespace

Google \\ Cloud \\ DeveloperConnect \\ V1

## Methods

### __construct

Constructor.

| **Parameters** ||
|---|---|
| **Name** | **Description** |
| `data` | `array` Optional. Data for populating the Message object. |
| `↳ github_app` | `int` Required. Immutable. The GitHub Application that was installed to the GitHub user or organization. |
| `↳ authorizer_credential` | `https://docs.cloud.google.com/php/docs/reference/cloud-developerconnect/latest/V1.OAuthCredential` Optional. OAuth credential of the account that authorized the GitHub App. It is recommended to use a robot account instead of a human user account. The OAuth token must be tied to the GitHub App of this config. |
| `↳ app_installation_id` | `int|string` Optional. GitHub App installation id. |
| `↳ installation_uri` | `string` Output only. The URI to navigate to in order to manage the installation associated with this GitHubConfig. |

### getGithubApp

Required. Immutable. The GitHub Application that was installed to the
GitHub user or organization.

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `int` | Enum of type [GitHubApp](https://docs.cloud.google.com/php/docs/reference/cloud-developerconnect/latest/V1.GitHubConfig.GitHubApp). |

### setGithubApp

Required. Immutable. The GitHub Application that was installed to the
GitHub user or organization.

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

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

### getAuthorizerCredential

Optional. OAuth credential of the account that authorized the GitHub App.

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

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

### hasAuthorizerCredential

### clearAuthorizerCredential

### setAuthorizerCredential

Optional. OAuth credential of the account that authorized the GitHub App.

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

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

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

### getAppInstallationId

Optional. GitHub App installation id.

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

### setAppInstallationId

Optional. GitHub App installation id.

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

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

### getInstallationUri

Output only. The URI to navigate to in order to manage the installation
associated with this GitHubConfig.

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

### setInstallationUri

Output only. The URI to navigate to in order to manage the installation
associated with this GitHubConfig.

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

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