Google Cloud Developer Connect V1 Client - Class GitHubConfig (0.1.1)

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 Google\Cloud\DeveloperConnect\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

setGithubApp

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

Parameter
Name Description
var int
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
Google\Cloud\DeveloperConnect\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 Google\Cloud\DeveloperConnect\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