Resource: GitHubEnterpriseConfig
GitHubEnterpriseConfig represents a configuration for a GitHub Enterprise server.
JSON representation |
---|
{
"name": string,
"hostUrl": string,
"appId": string,
"createTime": string,
"webhookKey": string,
"peeredNetwork": string,
"secrets": {
object ( |
Fields | |
---|---|
name |
The full resource name for the GitHubEnterpriseConfig For example: "projects/{$projectId}/locations/{$locationId}/githubEnterpriseConfigs/{$configId}" |
hostUrl |
The URL of the github enterprise host the configuration is for. |
appId |
Required. The GitHub app id of the Cloud Build app on the GitHub Enterprise server. |
createTime |
Output only. Time when the installation was associated with the project. A timestamp in RFC3339 UTC "Zulu" format, with nanosecond resolution and up to nine fractional digits. Examples: |
webhookKey |
The key that should be attached to webhook calls to the v1.webhook endpoint. |
peeredNetwork |
Optional. The network to be used when reaching out to the GitHub Enterprise server. The VPC network must be enabled for private service connection. This should be set if the GitHub Enterprise server is hosted on-premises and not reachable by public internet. If this field is left empty, no network peering will occur and calls to the GitHub Enterprise server will be made over the public internet. Must be in the format |
secrets |
Optional. Names of secrets in Secret Manager. |
displayName |
Optional. Name to display for this config. |
sslCa |
Optional. SSL certificate to use for requests to GitHub Enterprise. |
GitHubEnterpriseSecrets
GitHubEnterpriseSecrets represents the names of all necessary secrets in Secret Manager for a GitHub Enterprise server. Format is: projects/
JSON representation |
---|
{ "privateKeyName": string, "webhookSecretName": string, "oauthSecretName": string, "oauthClientIdName": string, "privateKeyVersionName": string, "webhookSecretVersionName": string, "oauthSecretVersionName": string, "oauthClientIdVersionName": string } |
Fields | |
---|---|
privateKeyName |
The resource name for the private key secret. |
webhookSecretName |
The resource name for the webhook secret in Secret Manager. |
oauthSecretName |
The resource name for the OAuth secret in Secret Manager. |
oauthClientIdName |
The resource name for the OAuth client ID secret in Secret Manager. |
privateKeyVersionName |
The resource name for the private key secret version. |
webhookSecretVersionName |
The resource name for the webhook secret secret version in Secret Manager. |
oauthSecretVersionName |
The resource name for the OAuth secret secret version in Secret Manager. |
oauthClientIdVersionName |
The resource name for the OAuth client ID secret version in Secret Manager. |
Methods |
|
---|---|
|
Create an association between a GCP project and a GitHub Enterprise server. |
|
Delete an association between a GCP project and a GitHub Enterprise server. |
|
Retrieve a GitHubEnterpriseConfig. |
|
List all GitHubEnterpriseConfigs for a given project. |
|
Update an association between a GCP project and a GitHub Enterprise server. |