# Developer Connect v1 API - Class GitHubEnterpriseConfig (1.0.0-beta04)

<button class="button button-with-icon cloud-select-dropdown__button " aria-haspopup="true">Version latest</button>

- [1.0.0-beta04 (latest)](https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.DeveloperConnect.V1/latest/Google.Cloud.DeveloperConnect.V1.GitHubEnterpriseConfig)
- [1.0.0-beta03](https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.DeveloperConnect.V1/1.0.0-beta03/Google.Cloud.DeveloperConnect.V1.GitHubEnterpriseConfig)

    public sealed class GitHubEnterpriseConfig : IMessage<GitHubEnterpriseConfig>, IEquatable<GitHubEnterpriseConfig>, IDeepCloneable<GitHubEnterpriseConfig>, IBufferMessage, IMessage

Reference documentation and code samples for the Developer Connect v1 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://cloud.google.com/dotnet/docs/reference/Google.Protobuf/latest/Google.Protobuf.IMessage-1.html)[GitHubEnterpriseConfig](https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.DeveloperConnect.V1/latest/Google.Cloud.DeveloperConnect.V1.GitHubEnterpriseConfig), [IEquatable](https://learn.microsoft.com/dotnet/api/system.iequatable-1)[GitHubEnterpriseConfig](https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.DeveloperConnect.V1/latest/Google.Cloud.DeveloperConnect.V1.GitHubEnterpriseConfig), [IDeepCloneable](https://cloud.google.com/dotnet/docs/reference/Google.Protobuf/latest/Google.Protobuf.IDeepCloneable-1.html)[GitHubEnterpriseConfig](https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.DeveloperConnect.V1/latest/Google.Cloud.DeveloperConnect.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)

## 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.DeveloperConnect.V1](https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.DeveloperConnect.V1/latest/Google.Cloud.DeveloperConnect.V1)

## Assembly

Google.Cloud.DeveloperConnect.V1.dll

## Constructors

### GitHubEnterpriseConfig()

    public GitHubEnterpriseConfig()

### GitHubEnterpriseConfig(GitHubEnterpriseConfig)

    public GitHubEnterpriseConfig(GitHubEnterpriseConfig other)

| **Parameter** ||
|---|---|
| **Name** | **Description** |
| `other` | `https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.DeveloperConnect.V1/latest/Google.Cloud.DeveloperConnect.V1.GitHubEnterpriseConfig` |

## Properties

### AppId

    public long AppId { get; set; }

Optional. ID of the GitHub App created from the manifest.

| **Property Value** ||
|---|---|
| **Type** | **Description** |
| `https://learn.microsoft.com/dotnet/api/system.int64` |   |

### AppInstallationId

    public long AppInstallationId { get; set; }

Optional. ID of the installation of the GitHub App.

| **Property Value** ||
|---|---|
| **Type** | **Description** |
| `https://learn.microsoft.com/dotnet/api/system.int64` |   |

### AppSlug

    public string AppSlug { get; set; }

Output only. The URL-friendly name of the GitHub App.

| **Property Value** ||
|---|---|
| **Type** | **Description** |
| `https://learn.microsoft.com/dotnet/api/system.string` |   |

### HostUri

    public string HostUri { get; set; }

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

| **Property Value** ||
|---|---|
| **Type** | **Description** |
| `https://learn.microsoft.com/dotnet/api/system.string` |   |

### InstallationUri

    public string InstallationUri { get; set; }

Output only. The URI to navigate to in order to manage the installation
associated with this GitHubEnterpriseConfig.

| **Property Value** ||
|---|---|
| **Type** | **Description** |
| `https://learn.microsoft.com/dotnet/api/system.string` |   |

### Organization

    public string Organization { get; set; }

Optional. Immutable. GitHub Enterprise organization in which the GitHub App
is created.

| **Property Value** ||
|---|---|
| **Type** | **Description** |
| `https://learn.microsoft.com/dotnet/api/system.string` |   |

### PrivateKeySecretVersion

    public string PrivateKeySecretVersion { get; set; }

Optional. SecretManager resource containing the private key of the GitHub
App, formatted as `projects/*/secrets/*/versions/*` or
`projects/*/locations/*/secrets/*/versions/*` (if regional secrets are
supported in that location).

| **Property Value** ||
|---|---|
| **Type** | **Description** |
| `https://learn.microsoft.com/dotnet/api/system.string` |   |

### PrivateKeySecretVersionAsSecretVersionName

    public SecretVersionName PrivateKeySecretVersionAsSecretVersionName { get; set; }

[SecretVersionName](https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.DeveloperConnect.V1/latest/Google.Cloud.DeveloperConnect.V1.SecretVersionName)-typed view over the [PrivateKeySecretVersion](https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.DeveloperConnect.V1/latest/Google.Cloud.DeveloperConnect.V1.GitHubEnterpriseConfig#Google_Cloud_DeveloperConnect_V1_GitHubEnterpriseConfig_PrivateKeySecretVersion) resource name
property.

| **Property Value** ||
|---|---|
| **Type** | **Description** |
| `https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.DeveloperConnect.V1/latest/Google.Cloud.DeveloperConnect.V1.SecretVersionName` |   |

### ServerVersion

    public string ServerVersion { get; set; }

Output only. GitHub Enterprise version installed at the host_uri.

| **Property Value** ||
|---|---|
| **Type** | **Description** |
| `https://learn.microsoft.com/dotnet/api/system.string` |   |

### ServiceDirectoryConfig

    public ServiceDirectoryConfig ServiceDirectoryConfig { get; set; }

Optional. 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** |
| `https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.DeveloperConnect.V1/latest/Google.Cloud.DeveloperConnect.V1.ServiceDirectoryConfig` |   |

### SslCaCertificate

    public string SslCaCertificate { get; set; }

Optional. SSL certificate to use for requests to GitHub Enterprise.

| **Property Value** ||
|---|---|
| **Type** | **Description** |
| `https://learn.microsoft.com/dotnet/api/system.string` |   |

### WebhookSecretSecretVersion

    public string WebhookSecretSecretVersion { get; set; }

Optional. SecretManager resource containing the webhook secret of the
GitHub App, formatted as `projects/*/secrets/*/versions/*` or
`projects/*/locations/*/secrets/*/versions/*` (if regional secrets are
supported in that location).

| **Property Value** ||
|---|---|
| **Type** | **Description** |
| `https://learn.microsoft.com/dotnet/api/system.string` |   |

### WebhookSecretSecretVersionAsSecretVersionName

    public SecretVersionName WebhookSecretSecretVersionAsSecretVersionName { get; set; }

[SecretVersionName](https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.DeveloperConnect.V1/latest/Google.Cloud.DeveloperConnect.V1.SecretVersionName)-typed view over the [WebhookSecretSecretVersion](https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.DeveloperConnect.V1/latest/Google.Cloud.DeveloperConnect.V1.GitHubEnterpriseConfig#Google_Cloud_DeveloperConnect_V1_GitHubEnterpriseConfig_WebhookSecretSecretVersion) resource name
property.

| **Property Value** ||
|---|---|
| **Type** | **Description** |
| `https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.DeveloperConnect.V1/latest/Google.Cloud.DeveloperConnect.V1.SecretVersionName` |   |