1.5.0 (latest) 1.4.0 1.3.0 1.2.0 1.1.0 1.0.0

    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.

## Inheritance

[object](https://learn.microsoft.com/dotnet/api/system.object) \> GitHubEnterpriseConfig

## Implements

[IMessage](https://docs.cloud.google.com/dotnet/docs/reference/Google.Protobuf/latest/Google.Protobuf.IMessage-1.md.txt)[GitHubEnterpriseConfig](https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.CloudBuild.V2/latest/Google.Cloud.CloudBuild.V2.GitHubEnterpriseConfig.md.txt), [IEquatable](https://learn.microsoft.com/dotnet/api/system.iequatable-1)[GitHubEnterpriseConfig](https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.CloudBuild.V2/latest/Google.Cloud.CloudBuild.V2.GitHubEnterpriseConfig.md.txt), [IDeepCloneable](https://docs.cloud.google.com/dotnet/docs/reference/Google.Protobuf/latest/Google.Protobuf.IDeepCloneable-1.md.txt)[GitHubEnterpriseConfig](https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.CloudBuild.V2/latest/Google.Cloud.CloudBuild.V2.GitHubEnterpriseConfig.md.txt), [IBufferMessage](https://docs.cloud.google.com/dotnet/docs/reference/Google.Protobuf/latest/Google.Protobuf.IBufferMessage.md.txt), [IMessage](https://docs.cloud.google.com/dotnet/docs/reference/Google.Protobuf/latest/Google.Protobuf.IMessage.md.txt)

## Inherited Members

[object.GetHashCode()](https://learn.microsoft.com/dotnet/api/system.object.gethashcode) [object.GetType()](https://learn.microsoft.com/dotnet/api/system.object.gettype) [object.ToString()](https://learn.microsoft.com/dotnet/api/system.object.tostring)

## Namespace

[Google.Cloud.CloudBuild.V2](https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.CloudBuild.V2/latest/Google.Cloud.CloudBuild.V2.md.txt)

## Assembly

Google.Cloud.CloudBuild.V2.dll

## Constructors

### GitHubEnterpriseConfig()

    public GitHubEnterpriseConfig()

### GitHubEnterpriseConfig(GitHubEnterpriseConfig)

    public GitHubEnterpriseConfig(GitHubEnterpriseConfig other)

| **Parameter** ||
|---|---|
| **Name** | **Description** |
| `other` | `GitHubEnterpriseConfig` |

## Properties

### ApiKey

    public string ApiKey { get; set; }

Required. API Key used for authentication of webhook events.

| **Property Value** ||
|---|---|
| **Type** | **Description** |
| `string` |   |

### AppId

    public long AppId { get; set; }

Id of the GitHub App created from the manifest.

| **Property Value** ||
|---|---|
| **Type** | **Description** |
| `long` |   |

### AppInstallationId

    public long AppInstallationId { get; set; }

ID of the installation of the GitHub App.

| **Property Value** ||
|---|---|
| **Type** | **Description** |
| `long` |   |

### AppSlug

    public string AppSlug { get; set; }

The URL-friendly name of the GitHub App.

| **Property Value** ||
|---|---|
| **Type** | **Description** |
| `string` |   |

### HostUri

    public string HostUri { get; set; }

Required. The URI of the GitHub Enterprise host this connection is for.

| **Property Value** ||
|---|---|
| **Type** | **Description** |
| `string` |   |

### PrivateKeySecretVersion

    public string PrivateKeySecretVersion { get; set; }

SecretManager resource containing the private key of the GitHub App,
formatted as `projects/*/secrets/*/versions/*`.

| **Property Value** ||
|---|---|
| **Type** | **Description** |
| `string` |   |

### PrivateKeySecretVersionAsSecretVersionName

    public SecretVersionName PrivateKeySecretVersionAsSecretVersionName { get; set; }

[SecretVersionName](https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.CloudBuild.V2/latest/Google.Cloud.CloudBuild.V2.SecretVersionName.md.txt)-typed view over the [PrivateKeySecretVersion](https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.CloudBuild.V2/latest/Google.Cloud.CloudBuild.V2.GitHubEnterpriseConfig.md.txt#Google_Cloud_CloudBuild_V2_GitHubEnterpriseConfig_PrivateKeySecretVersion) resource name
property.

| **Property Value** ||
|---|---|
| **Type** | **Description** |
| `SecretVersionName` |   |

### ServerVersion

    public string ServerVersion { get; set; }

Output only. GitHub Enterprise version installed at the host_uri.

| **Property Value** ||
|---|---|
| **Type** | **Description** |
| `string` |   |

### ServiceDirectoryConfig

    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.

| **Property Value** ||
|---|---|
| **Type** | **Description** |
| `ServiceDirectoryConfig` |   |

### SslCa

    public string SslCa { get; set; }

SSL certificate to use for requests to GitHub Enterprise.

| **Property Value** ||
|---|---|
| **Type** | **Description** |
| `string` |   |

### WebhookSecretSecretVersion

    public string WebhookSecretSecretVersion { get; set; }

SecretManager resource containing the webhook secret of the GitHub App,
formatted as `projects/*/secrets/*/versions/*`.

| **Property Value** ||
|---|---|
| **Type** | **Description** |
| `string` |   |

### WebhookSecretSecretVersionAsSecretVersionName

    public SecretVersionName WebhookSecretSecretVersionAsSecretVersionName { get; set; }

[SecretVersionName](https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.CloudBuild.V2/latest/Google.Cloud.CloudBuild.V2.SecretVersionName.md.txt)-typed view over the [WebhookSecretSecretVersion](https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.CloudBuild.V2/latest/Google.Cloud.CloudBuild.V2.GitHubEnterpriseConfig.md.txt#Google_Cloud_CloudBuild_V2_GitHubEnterpriseConfig_WebhookSecretSecretVersion) resource name
property.

| **Property Value** ||
|---|---|
| **Type** | **Description** |
| `SecretVersionName` |   |