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 \ V1Methods
__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 |
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. |
setGithubApp
Required. Immutable. The GitHub Application that was installed to the GitHub user or organization.
| Parameter | |
|---|---|
| Name | Description |
var |
int
Enum of type 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 |
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 |
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 |
|