2.23.0 (latest) 2.22.0 2.21.0 2.20.0 2.19.0 2.18.0 2.17.0 2.16.0 2.15.0 2.14.0 2.13.0 2.12.0 2.11.0 2.10.0 2.9.0 2.8.0 2.7.0 2.6.0 2.5.0 2.4.0 2.3.0 2.2.0 2.1.0 2.0.0 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 v1 API class GitHubEnterpriseConfig.

GitHubEnterpriseConfig represents a configuration for a GitHub Enterprise
server.

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

## Assembly

Google.Cloud.CloudBuild.V1.dll

## Constructors

### GitHubEnterpriseConfig()

    public GitHubEnterpriseConfig()

### GitHubEnterpriseConfig(GitHubEnterpriseConfig)

    public GitHubEnterpriseConfig(GitHubEnterpriseConfig other)

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

## Properties

### AppId

    public long AppId { get; set; }

Required. The GitHub app id of the Cloud Build app on the GitHub Enterprise
server.

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

### CreateTime

    public Timestamp CreateTime { get; set; }

Output only. Time when the installation was associated with the project.

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

### DisplayName

    public string DisplayName { get; set; }

Optional. Name to display for this config.

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

### GithubEnterpriseConfigName

    public GithubEnterpriseConfigName GithubEnterpriseConfigName { get; set; }

[GithubEnterpriseConfigName](https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.CloudBuild.V1/latest/Google.Cloud.CloudBuild.V1.GithubEnterpriseConfigName.md.txt)-typed view over the [Name](https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.CloudBuild.V1/latest/Google.Cloud.CloudBuild.V1.GitHubEnterpriseConfig.md.txt#Google_Cloud_CloudBuild_V1_GitHubEnterpriseConfig_Name) resource name
property.

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

### HostUrl

    public string HostUrl { get; set; }

The URL of the github enterprise host the configuration is for.

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

### Name

    public string Name { get; set; }

The full resource name for the GitHubEnterpriseConfig
For example:
"projects/{$project_id}/locations/{$location_id}/githubEnterpriseConfigs/{$config_id}"

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

### PeeredNetwork

    public string PeeredNetwork { get; set; }

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.

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

### PeeredNetworkAsNetworkName

    public NetworkName PeeredNetworkAsNetworkName { get; set; }

[NetworkName](https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.CloudBuild.V1/latest/Google.Cloud.CloudBuild.V1.NetworkName.md.txt)-typed view over the [PeeredNetwork](https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.CloudBuild.V1/latest/Google.Cloud.CloudBuild.V1.GitHubEnterpriseConfig.md.txt#Google_Cloud_CloudBuild_V1_GitHubEnterpriseConfig_PeeredNetwork) resource name property.

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

### Secrets

    public GitHubEnterpriseSecrets Secrets { get; set; }

Optional. Names of secrets in Secret Manager.

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

### SslCa

    public string SslCa { get; set; }

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

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

### WebhookKey

    public string WebhookKey { get; set; }

The key that should be attached to webhook calls to the ReceiveWebhook
endpoint.

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