Google Cloud Build V2 Client - Class GitHubEnterpriseConfig (1.1.2)
Reference documentation and code samples for the Google Cloud Build V2 Client class GitHubEnterpriseConfig.
Configuration for connections to an instance of GitHub Enterprise.
Generated from protobuf message google.devtools.cloudbuild.v2.GitHubEnterpriseConfig
Namespace
Google \ Cloud \ Build \ V2
Methods
__construct
Constructor.
Parameter
Name
Description
data
mixed
getHostUri
Required. The URI of the GitHub Enterprise host this connection is for.
Returns
Type
Description
string
setHostUri
Required. The URI of the GitHub Enterprise host this connection is for.
Parameter
Name
Description
var
string
Returns
Type
Description
$this
getApiKey
Required. API Key used for authentication of webhook events.
Returns
Type
Description
string
setApiKey
Required. API Key used for authentication of webhook events.
Parameter
Name
Description
var
string
Returns
Type
Description
$this
getAppId
Id of the GitHub App created from the manifest.
Returns
Type
Description
int|string
setAppId
Id of the GitHub App created from the manifest.
Parameter
Name
Description
var
int|string
Returns
Type
Description
$this
getAppSlug
The URL-friendly name of the GitHub App.
Returns
Type
Description
string
setAppSlug
The URL-friendly name of the GitHub App.
Parameter
Name
Description
var
string
Returns
Type
Description
$this
getPrivateKeySecretVersion
SecretManager resource containing the private key of the GitHub App,
formatted as projects/*/secrets/*/versions/*.
Returns
Type
Description
string
setPrivateKeySecretVersion
SecretManager resource containing the private key of the GitHub App,
formatted as projects/*/secrets/*/versions/*.
Parameter
Name
Description
var
string
Returns
Type
Description
$this
getWebhookSecretSecretVersion
SecretManager resource containing the webhook secret of the GitHub App,
formatted as projects/*/secrets/*/versions/*.
Returns
Type
Description
string
setWebhookSecretSecretVersion
SecretManager resource containing the webhook secret of the GitHub App,
formatted as projects/*/secrets/*/versions/*.
Parameter
Name
Description
var
string
Returns
Type
Description
$this
getAppInstallationId
ID of the installation of the GitHub App.
Returns
Type
Description
int|string
setAppInstallationId
ID of the installation of the GitHub App.
Parameter
Name
Description
var
int|string
Returns
Type
Description
$this
getServiceDirectoryConfig
Configuration for using Service Directory to privately connect to a GitHub
Enterprise server. This should only be set if the GitHub Enterprise server
is hosted on-premises and not reachable by public internet. If this field
is left empty, calls to the GitHub Enterprise server will be made over the
public internet.
Configuration for using Service Directory to privately connect to a GitHub
Enterprise server. This should only be set if the GitHub Enterprise server
is hosted on-premises and not reachable by public internet. If this field
is left empty, calls to the GitHub Enterprise server will be made over the
public internet.
[[["Easy to understand","easyToUnderstand","thumb-up"],["Solved my problem","solvedMyProblem","thumb-up"],["Other","otherUp","thumb-up"]],[["Missing the information I need","missingTheInformationINeed","thumb-down"],["Too complicated / too many steps","tooComplicatedTooManySteps","thumb-down"],["Out of date","outOfDate","thumb-down"],["Samples / code issue","samplesCodeIssue","thumb-down"],["Other","otherDown","thumb-down"]],["Last updated 2026-03-19 UTC."],[],[]]