# Cloud Build V1 API - Class Google::Cloud::Build::V1::GitHubEnterpriseConfig (v1.12.0)

1.12.0 (latest) 1.11.0 1.10.0 1.9.1 1.8.0 1.7.0 1.6.1 1.5.1 1.4.0 1.3.0 1.2.0 1.1.0 1.0.1 0.27.1 0.26.2 0.25.0 0.24.0 0.23.0 0.22.0 0.21.0 0.20.0 0.19.0 0.18.0 0.17.0 0.16.0 0.15.0 0.14.0 0.13.0 0.12.0 0.11.3 Reference documentation and code samples for the Cloud Build V1 API class Google::Cloud::Build::V1::GitHubEnterpriseConfig.

GitHubEnterpriseConfig represents a configuration for a GitHub Enterprise
server.

## Inherits

- Object

## Extended By

- Google::Protobuf::MessageExts::ClassMethods

## Includes

- Google::Protobuf::MessageExts

## Methods

### #app_id

    def app_id() -> ::Integer

**Returns**

- (::Integer) --- Required. The GitHub app id of the Cloud Build app on the GitHub Enterprise server.

### #app_id=

    def app_id=(value) -> ::Integer

**Parameter**

- **value** (::Integer) --- Required. The GitHub app id of the Cloud Build app on the GitHub Enterprise server.
**Returns**

- (::Integer) --- Required. The GitHub app id of the Cloud Build app on the GitHub Enterprise server.

### #create_time

    def create_time() -> ::Google::Protobuf::Timestamp

**Returns**

- ([::Google::Protobuf::Timestamp](https://docs.cloud.google.com/ruby/docs/reference/google-cloud-build-v1/latest/Google-Protobuf-Timestamp)) --- Output only. Time when the installation was associated with the project.

### #display_name

    def display_name() -> ::String

**Returns**

- (::String) --- Optional. Name to display for this config.

### #display_name=

    def display_name=(value) -> ::String

**Parameter**

- **value** (::String) --- Optional. Name to display for this config.
**Returns**

- (::String) --- Optional. Name to display for this config.

### #host_url

    def host_url() -> ::String

**Returns**

- (::String) --- The URL of the github enterprise host the configuration is for.

### #host_url=

    def host_url=(value) -> ::String

**Parameter**

- **value** (::String) --- The URL of the github enterprise host the configuration is for.
**Returns**

- (::String) --- The URL of the github enterprise host the configuration is for.

### #name

    def name() -> ::String

**Returns**

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

### #name=

    def name=(value) -> ::String

**Parameter**

- **value** (::String) --- The full resource name for the GitHubEnterpriseConfig For example: "projects/{$project_id}/locations/{$location_id}/githubEnterpriseConfigs/{$config_id}"
**Returns**

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

### #peered_network

    def peered_network() -> ::String

**Returns**

- (::String) --- 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.

### #peered_network=

    def peered_network=(value) -> ::String

**Parameter**

- **value** (::String) --- 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.
**Returns**

- (::String) --- 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.

### #secrets

    def secrets() -> ::Google::Cloud::Build::V1::GitHubEnterpriseSecrets

**Returns**

- ([::Google::Cloud::Build::V1::GitHubEnterpriseSecrets](https://docs.cloud.google.com/ruby/docs/reference/google-cloud-build-v1/latest/Google-Cloud-Build-V1-GitHubEnterpriseSecrets)) --- Optional. Names of secrets in Secret Manager.

### #secrets=

    def secrets=(value) -> ::Google::Cloud::Build::V1::GitHubEnterpriseSecrets

**Parameter**

- **value** ([::Google::Cloud::Build::V1::GitHubEnterpriseSecrets](https://docs.cloud.google.com/ruby/docs/reference/google-cloud-build-v1/latest/Google-Cloud-Build-V1-GitHubEnterpriseSecrets)) --- Optional. Names of secrets in Secret Manager.
**Returns**

- ([::Google::Cloud::Build::V1::GitHubEnterpriseSecrets](https://docs.cloud.google.com/ruby/docs/reference/google-cloud-build-v1/latest/Google-Cloud-Build-V1-GitHubEnterpriseSecrets)) --- Optional. Names of secrets in Secret Manager.

### #ssl_ca

    def ssl_ca() -> ::String

**Returns**

- (::String) --- Optional. SSL certificate to use for requests to GitHub Enterprise.

### #ssl_ca=

    def ssl_ca=(value) -> ::String

**Parameter**

- **value** (::String) --- Optional. SSL certificate to use for requests to GitHub Enterprise.
**Returns**

- (::String) --- Optional. SSL certificate to use for requests to GitHub Enterprise.

### #webhook_key

    def webhook_key() -> ::String

**Returns**

- (::String) --- The key that should be attached to webhook calls to the ReceiveWebhook endpoint.

### #webhook_key=

    def webhook_key=(value) -> ::String

**Parameter**

- **value** (::String) --- The key that should be attached to webhook calls to the ReceiveWebhook endpoint.
**Returns**

- (::String) --- The key that should be attached to webhook calls to the ReceiveWebhook endpoint.