public sealed class GitHubEnterpriseConfig : IMessage<GitHubEnterpriseConfig>, IEquatable<GitHubEnterpriseConfig>, IDeepCloneable<GitHubEnterpriseConfig>, IBufferMessage, IMessage
Reference documentation and code samples for the Cloud Build v1 API class GitHubEnterpriseConfig.
GitHubEnterpriseConfig represents a configuration for a GitHub Enterprise
server.
Optional. The full resource name for the GitHubEnterpriseConfig
For example:
"projects/{$project_id}/locations/{$location_id}/githubEnterpriseConfigs/{$config_id}"
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
projects/{project}/global/networks/{network}, where {project}
is a project number or id and {network} is the name of a
VPC network in the project.
[[["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 2025-08-19 UTC."],[[["\u003cp\u003eThe latest version of the \u003ccode\u003eGitHubEnterpriseConfig\u003c/code\u003e class in the Cloud Build v1 API is 2.15.0, and documentation is available for versions ranging from 1.0.0 to 2.15.0.\u003c/p\u003e\n"],["\u003cp\u003e\u003ccode\u003eGitHubEnterpriseConfig\u003c/code\u003e is a class that represents a configuration for a GitHub Enterprise server, inheriting from \u003ccode\u003eobject\u003c/code\u003e and implementing multiple interfaces such as \u003ccode\u003eIMessage\u003c/code\u003e, \u003ccode\u003eIEquatable\u003c/code\u003e, \u003ccode\u003eIDeepCloneable\u003c/code\u003e, and \u003ccode\u003eIBufferMessage\u003c/code\u003e.\u003c/p\u003e\n"],["\u003cp\u003eThe \u003ccode\u003eGitHubEnterpriseConfig\u003c/code\u003e class has properties for configuring the connection, including \u003ccode\u003eAppId\u003c/code\u003e, \u003ccode\u003eHostUrl\u003c/code\u003e, \u003ccode\u003ePeeredNetwork\u003c/code\u003e, \u003ccode\u003eSecrets\u003c/code\u003e, and \u003ccode\u003eSslCa\u003c/code\u003e, along with output properties such as \u003ccode\u003eCreateTime\u003c/code\u003e.\u003c/p\u003e\n"],["\u003cp\u003eThis class can be found within the \u003ccode\u003eGoogle.Cloud.CloudBuild.V1\u003c/code\u003e namespace, and it provides methods to interact with a GitHub Enterprise server, enabling integration with the Cloud Build service.\u003c/p\u003e\n"],["\u003cp\u003eThe \u003ccode\u003eGitHubEnterpriseConfig\u003c/code\u003e class allows specifying the network to use to reach the Enterprise server, and also provides the ability to utilize SSL Certificates for requests.\u003c/p\u003e\n"]]],[],null,["# Cloud Build v1 API - Class GitHubEnterpriseConfig (2.16.0)\n\nVersion latestkeyboard_arrow_down\n\n- [2.16.0 (latest)](/dotnet/docs/reference/Google.Cloud.CloudBuild.V1/latest/Google.Cloud.CloudBuild.V1.GitHubEnterpriseConfig)\n- [2.15.0](/dotnet/docs/reference/Google.Cloud.CloudBuild.V1/2.15.0/Google.Cloud.CloudBuild.V1.GitHubEnterpriseConfig)\n- [2.14.0](/dotnet/docs/reference/Google.Cloud.CloudBuild.V1/2.14.0/Google.Cloud.CloudBuild.V1.GitHubEnterpriseConfig)\n- [2.13.0](/dotnet/docs/reference/Google.Cloud.CloudBuild.V1/2.13.0/Google.Cloud.CloudBuild.V1.GitHubEnterpriseConfig)\n- [2.12.0](/dotnet/docs/reference/Google.Cloud.CloudBuild.V1/2.12.0/Google.Cloud.CloudBuild.V1.GitHubEnterpriseConfig)\n- [2.11.0](/dotnet/docs/reference/Google.Cloud.CloudBuild.V1/2.11.0/Google.Cloud.CloudBuild.V1.GitHubEnterpriseConfig)\n- [2.10.0](/dotnet/docs/reference/Google.Cloud.CloudBuild.V1/2.10.0/Google.Cloud.CloudBuild.V1.GitHubEnterpriseConfig)\n- [2.9.0](/dotnet/docs/reference/Google.Cloud.CloudBuild.V1/2.9.0/Google.Cloud.CloudBuild.V1.GitHubEnterpriseConfig)\n- [2.8.0](/dotnet/docs/reference/Google.Cloud.CloudBuild.V1/2.8.0/Google.Cloud.CloudBuild.V1.GitHubEnterpriseConfig)\n- [2.7.0](/dotnet/docs/reference/Google.Cloud.CloudBuild.V1/2.7.0/Google.Cloud.CloudBuild.V1.GitHubEnterpriseConfig)\n- [2.6.0](/dotnet/docs/reference/Google.Cloud.CloudBuild.V1/2.6.0/Google.Cloud.CloudBuild.V1.GitHubEnterpriseConfig)\n- [2.5.0](/dotnet/docs/reference/Google.Cloud.CloudBuild.V1/2.5.0/Google.Cloud.CloudBuild.V1.GitHubEnterpriseConfig)\n- [2.4.0](/dotnet/docs/reference/Google.Cloud.CloudBuild.V1/2.4.0/Google.Cloud.CloudBuild.V1.GitHubEnterpriseConfig)\n- [2.3.0](/dotnet/docs/reference/Google.Cloud.CloudBuild.V1/2.3.0/Google.Cloud.CloudBuild.V1.GitHubEnterpriseConfig)\n- [2.2.0](/dotnet/docs/reference/Google.Cloud.CloudBuild.V1/2.2.0/Google.Cloud.CloudBuild.V1.GitHubEnterpriseConfig)\n- [2.1.0](/dotnet/docs/reference/Google.Cloud.CloudBuild.V1/2.1.0/Google.Cloud.CloudBuild.V1.GitHubEnterpriseConfig)\n- [2.0.0](/dotnet/docs/reference/Google.Cloud.CloudBuild.V1/2.0.0/Google.Cloud.CloudBuild.V1.GitHubEnterpriseConfig)\n- [1.4.0](/dotnet/docs/reference/Google.Cloud.CloudBuild.V1/1.4.0/Google.Cloud.CloudBuild.V1.GitHubEnterpriseConfig)\n- [1.3.0](/dotnet/docs/reference/Google.Cloud.CloudBuild.V1/1.3.0/Google.Cloud.CloudBuild.V1.GitHubEnterpriseConfig)\n- [1.2.0](/dotnet/docs/reference/Google.Cloud.CloudBuild.V1/1.2.0/Google.Cloud.CloudBuild.V1.GitHubEnterpriseConfig)\n- [1.1.0](/dotnet/docs/reference/Google.Cloud.CloudBuild.V1/1.1.0/Google.Cloud.CloudBuild.V1.GitHubEnterpriseConfig)\n- [1.0.0](/dotnet/docs/reference/Google.Cloud.CloudBuild.V1/1.0.0/Google.Cloud.CloudBuild.V1.GitHubEnterpriseConfig) \n\n public sealed class GitHubEnterpriseConfig : IMessage\u003cGitHubEnterpriseConfig\u003e, IEquatable\u003cGitHubEnterpriseConfig\u003e, IDeepCloneable\u003cGitHubEnterpriseConfig\u003e, IBufferMessage, IMessage\n\nReference documentation and code samples for the Cloud Build v1 API class GitHubEnterpriseConfig.\n\nGitHubEnterpriseConfig represents a configuration for a GitHub Enterprise\nserver. \n\nInheritance\n-----------\n\n[object](https://learn.microsoft.com/dotnet/api/system.object) \\\u003e GitHubEnterpriseConfig \n\nImplements\n----------\n\n[IMessage](https://cloud.google.com/dotnet/docs/reference/Google.Protobuf/latest/Google.Protobuf.IMessage-1.html)[GitHubEnterpriseConfig](/dotnet/docs/reference/Google.Cloud.CloudBuild.V1/latest/Google.Cloud.CloudBuild.V1.GitHubEnterpriseConfig), [IEquatable](https://learn.microsoft.com/dotnet/api/system.iequatable-1)[GitHubEnterpriseConfig](/dotnet/docs/reference/Google.Cloud.CloudBuild.V1/latest/Google.Cloud.CloudBuild.V1.GitHubEnterpriseConfig), [IDeepCloneable](https://cloud.google.com/dotnet/docs/reference/Google.Protobuf/latest/Google.Protobuf.IDeepCloneable-1.html)[GitHubEnterpriseConfig](/dotnet/docs/reference/Google.Cloud.CloudBuild.V1/latest/Google.Cloud.CloudBuild.V1.GitHubEnterpriseConfig), [IBufferMessage](https://cloud.google.com/dotnet/docs/reference/Google.Protobuf/latest/Google.Protobuf.IBufferMessage.html), [IMessage](https://cloud.google.com/dotnet/docs/reference/Google.Protobuf/latest/Google.Protobuf.IMessage.html) \n\nInherited Members\n-----------------\n\n[object.GetHashCode()](https://learn.microsoft.com/dotnet/api/system.object.gethashcode) \n[object.GetType()](https://learn.microsoft.com/dotnet/api/system.object.gettype) \n[object.ToString()](https://learn.microsoft.com/dotnet/api/system.object.tostring)\n\nNamespace\n---------\n\n[Google.Cloud.CloudBuild.V1](/dotnet/docs/reference/Google.Cloud.CloudBuild.V1/latest/Google.Cloud.CloudBuild.V1)\n\nAssembly\n--------\n\nGoogle.Cloud.CloudBuild.V1.dll\n\nConstructors\n------------\n\n### GitHubEnterpriseConfig()\n\n public GitHubEnterpriseConfig()\n\n### GitHubEnterpriseConfig(GitHubEnterpriseConfig)\n\n public GitHubEnterpriseConfig(GitHubEnterpriseConfig other)\n\nProperties\n----------\n\n### AppId\n\n public long AppId { get; set; }\n\nRequired. The GitHub app id of the Cloud Build app on the GitHub Enterprise\nserver.\n\n### CreateTime\n\n public Timestamp CreateTime { get; set; }\n\nOutput only. Time when the installation was associated with the project.\n\n### DisplayName\n\n public string DisplayName { get; set; }\n\nName to display for this config.\n\n### GithubEnterpriseConfigName\n\n public GithubEnterpriseConfigName GithubEnterpriseConfigName { get; set; }\n\n[GithubEnterpriseConfigName](/dotnet/docs/reference/Google.Cloud.CloudBuild.V1/latest/Google.Cloud.CloudBuild.V1.GithubEnterpriseConfigName)-typed view over the [Name](/dotnet/docs/reference/Google.Cloud.CloudBuild.V1/latest/Google.Cloud.CloudBuild.V1.GitHubEnterpriseConfig#Google_Cloud_CloudBuild_V1_GitHubEnterpriseConfig_Name) resource name\nproperty.\n\n### HostUrl\n\n public string HostUrl { get; set; }\n\nThe URL of the github enterprise host the configuration is for.\n\n### Name\n\n public string Name { get; set; }\n\nOptional. The full resource name for the GitHubEnterpriseConfig\nFor example:\n\"projects/{$project_id}/locations/{$location_id}/githubEnterpriseConfigs/{$config_id}\"\n\n### PeeredNetwork\n\n public string PeeredNetwork { get; set; }\n\nOptional. The network to be used when reaching out to the GitHub\nEnterprise server. The VPC network must be enabled for private\nservice connection. This should be set if the GitHub Enterprise server is\nhosted on-premises and not reachable by public internet.\nIf this field is left empty, no network peering will occur and calls to\nthe GitHub Enterprise server will be made over the public internet.\nMust be in the format\n`projects/{project}/global/networks/{network}`, where {project}\nis a project number or id and {network} is the name of a\nVPC network in the project.\n\n### PeeredNetworkAsNetworkName\n\n public NetworkName PeeredNetworkAsNetworkName { get; set; }\n\n[NetworkName](/dotnet/docs/reference/Google.Cloud.CloudBuild.V1/latest/Google.Cloud.CloudBuild.V1.NetworkName)-typed view over the [PeeredNetwork](/dotnet/docs/reference/Google.Cloud.CloudBuild.V1/latest/Google.Cloud.CloudBuild.V1.GitHubEnterpriseConfig#Google_Cloud_CloudBuild_V1_GitHubEnterpriseConfig_PeeredNetwork) resource name property.\n\n### Secrets\n\n public GitHubEnterpriseSecrets Secrets { get; set; }\n\nNames of secrets in Secret Manager.\n\n### SslCa\n\n public string SslCa { get; set; }\n\nOptional. SSL certificate to use for requests to GitHub Enterprise.\n\n### WebhookKey\n\n public string WebhookKey { get; set; }\n\nThe key that should be attached to webhook calls to the ReceiveWebhook\nendpoint."]]