public sealed class GitHubEnterpriseConfig : IMessage<GitHubEnterpriseConfig>, IEquatable<GitHubEnterpriseConfig>, IDeepCloneable<GitHubEnterpriseConfig>, IBufferMessage, IMessage
Reference documentation and code samples for the Cloud Build v2 API class GitHubEnterpriseConfig.
Configuration for connections to an instance of GitHub Enterprise.
public ServiceDirectoryConfig ServiceDirectoryConfig { get; set; }
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"]],[["Hard to understand","hardToUnderstand","thumb-down"],["Incorrect information or sample code","incorrectInformationOrSampleCode","thumb-down"],["Missing the information/samples I need","missingTheInformationSamplesINeed","thumb-down"],["Other","otherDown","thumb-down"]],["Last updated 2025-09-04 UTC."],[[["\u003cp\u003eThe \u003ccode\u003eGitHubEnterpriseConfig\u003c/code\u003e class in the Cloud Build v2 API provides configuration details for connecting to a GitHub Enterprise instance.\u003c/p\u003e\n"],["\u003cp\u003eThis class implements multiple interfaces, including \u003ccode\u003eIMessage\u003c/code\u003e, \u003ccode\u003eIEquatable\u003c/code\u003e, \u003ccode\u003eIDeepCloneable\u003c/code\u003e, and \u003ccode\u003eIBufferMessage\u003c/code\u003e, demonstrating its integration with the Google Protobuf library and .NET functionalities.\u003c/p\u003e\n"],["\u003cp\u003eKey properties of \u003ccode\u003eGitHubEnterpriseConfig\u003c/code\u003e include settings for the API key, GitHub App details, host URI, private key and webhook secrets, as well as Service Directory configuration for private connections.\u003c/p\u003e\n"],["\u003cp\u003eThe document shows that the latest version of the \u003ccode\u003eGitHubEnterpriseConfig\u003c/code\u003e class is version 1.4.0, with older versions going back to version 1.0.0 being accessible.\u003c/p\u003e\n"],["\u003cp\u003eThe \u003ccode\u003eGitHubEnterpriseConfig\u003c/code\u003e class offers constructors to create new configurations, either default or by copying an existing configuration, enabling flexible object initialization.\u003c/p\u003e\n"]]],[],null,["# Cloud Build v2 API - Class GitHubEnterpriseConfig (1.4.0)\n\nVersion latestkeyboard_arrow_down\n\n- [1.4.0 (latest)](/dotnet/docs/reference/Google.Cloud.CloudBuild.V2/latest/Google.Cloud.CloudBuild.V2.GitHubEnterpriseConfig)\n- [1.3.0](/dotnet/docs/reference/Google.Cloud.CloudBuild.V2/1.3.0/Google.Cloud.CloudBuild.V2.GitHubEnterpriseConfig)\n- [1.2.0](/dotnet/docs/reference/Google.Cloud.CloudBuild.V2/1.2.0/Google.Cloud.CloudBuild.V2.GitHubEnterpriseConfig)\n- [1.1.0](/dotnet/docs/reference/Google.Cloud.CloudBuild.V2/1.1.0/Google.Cloud.CloudBuild.V2.GitHubEnterpriseConfig)\n- [1.0.0](/dotnet/docs/reference/Google.Cloud.CloudBuild.V2/1.0.0/Google.Cloud.CloudBuild.V2.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 v2 API class GitHubEnterpriseConfig.\n\nConfiguration for connections to an instance of GitHub Enterprise. \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.V2/latest/Google.Cloud.CloudBuild.V2.GitHubEnterpriseConfig), [IEquatable](https://learn.microsoft.com/dotnet/api/system.iequatable-1)[GitHubEnterpriseConfig](/dotnet/docs/reference/Google.Cloud.CloudBuild.V2/latest/Google.Cloud.CloudBuild.V2.GitHubEnterpriseConfig), [IDeepCloneable](https://cloud.google.com/dotnet/docs/reference/Google.Protobuf/latest/Google.Protobuf.IDeepCloneable-1.html)[GitHubEnterpriseConfig](/dotnet/docs/reference/Google.Cloud.CloudBuild.V2/latest/Google.Cloud.CloudBuild.V2.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.V2](/dotnet/docs/reference/Google.Cloud.CloudBuild.V2/latest/Google.Cloud.CloudBuild.V2)\n\nAssembly\n--------\n\nGoogle.Cloud.CloudBuild.V2.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### ApiKey\n\n public string ApiKey { get; set; }\n\nRequired. API Key used for authentication of webhook events.\n\n### AppId\n\n public long AppId { get; set; }\n\nId of the GitHub App created from the manifest.\n\n### AppInstallationId\n\n public long AppInstallationId { get; set; }\n\nID of the installation of the GitHub App.\n\n### AppSlug\n\n public string AppSlug { get; set; }\n\nThe URL-friendly name of the GitHub App.\n\n### HostUri\n\n public string HostUri { get; set; }\n\nRequired. The URI of the GitHub Enterprise host this connection is for.\n\n### PrivateKeySecretVersion\n\n public string PrivateKeySecretVersion { get; set; }\n\nSecretManager resource containing the private key of the GitHub App,\nformatted as `projects/*/secrets/*/versions/*`.\n\n### PrivateKeySecretVersionAsSecretVersionName\n\n public SecretVersionName PrivateKeySecretVersionAsSecretVersionName { get; set; }\n\n[SecretVersionName](/dotnet/docs/reference/Google.Cloud.CloudBuild.V2/latest/Google.Cloud.CloudBuild.V2.SecretVersionName)-typed view over the [PrivateKeySecretVersion](/dotnet/docs/reference/Google.Cloud.CloudBuild.V2/latest/Google.Cloud.CloudBuild.V2.GitHubEnterpriseConfig#Google_Cloud_CloudBuild_V2_GitHubEnterpriseConfig_PrivateKeySecretVersion) resource name\nproperty.\n\n### ServerVersion\n\n public string ServerVersion { get; set; }\n\nOutput only. GitHub Enterprise version installed at the host_uri.\n\n### ServiceDirectoryConfig\n\n public ServiceDirectoryConfig ServiceDirectoryConfig { get; set; }\n\nConfiguration for using Service Directory to privately connect to a GitHub\nEnterprise server. This should only be set if the GitHub Enterprise server\nis hosted on-premises and not reachable by public internet. If this field\nis left empty, calls to the GitHub Enterprise server will be made over the\npublic internet.\n\n### SslCa\n\n public string SslCa { get; set; }\n\nSSL certificate to use for requests to GitHub Enterprise.\n\n### WebhookSecretSecretVersion\n\n public string WebhookSecretSecretVersion { get; set; }\n\nSecretManager resource containing the webhook secret of the GitHub App,\nformatted as `projects/*/secrets/*/versions/*`.\n\n### WebhookSecretSecretVersionAsSecretVersionName\n\n public SecretVersionName WebhookSecretSecretVersionAsSecretVersionName { get; set; }\n\n[SecretVersionName](/dotnet/docs/reference/Google.Cloud.CloudBuild.V2/latest/Google.Cloud.CloudBuild.V2.SecretVersionName)-typed view over the [WebhookSecretSecretVersion](/dotnet/docs/reference/Google.Cloud.CloudBuild.V2/latest/Google.Cloud.CloudBuild.V2.GitHubEnterpriseConfig#Google_Cloud_CloudBuild_V2_GitHubEnterpriseConfig_WebhookSecretSecretVersion) resource name\nproperty."]]