class Google::Apis::CloudbuildV1::GitHubEnterpriseConfig

GitHubEnterpriseConfig represents a configuration for a GitHub Enterprise server.

Attributes

app_id[RW]

Required. The GitHub app id of the Cloud Build app on the GitHub Enterprise server. Corresponds to the JSON property `appId` @return [Fixnum]

create_time[RW]

Output only. Time when the installation was associated with the project. Corresponds to the JSON property `createTime` @return [String]

display_name[RW]

Name to display for this config. Corresponds to the JSON property `displayName` @return [String]

host_url[RW]

The URL of the github enterprise host the configuration is for. Corresponds to the JSON property `hostUrl` @return [String]

name[RW]

Optional. The full resource name for the GitHubEnterpriseConfig For example: “ projects/`$project_id`/githubEnterpriseConfigs/`$config_id`” Corresponds to the JSON property `name` @return [String]

peered_network[RW]

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. Corresponds to the JSON property `peeredNetwork` @return [String]

secrets[RW]

GitHubEnterpriseSecrets represents the names of all necessary secrets in Secret Manager for a GitHub Enterprise server. Format is: projects//secrets/. Corresponds to the JSON property `secrets` @return [Google::Apis::CloudbuildV1::GitHubEnterpriseSecrets]

ssl_ca[RW]

Optional. SSL certificate to use for requests to GitHub Enterprise. Corresponds to the JSON property `sslCa` @return [String]

webhook_key[RW]

The key that should be attached to webhook calls to the ReceiveWebhook endpoint. Corresponds to the JSON property `webhookKey` @return [String]

Public Class Methods

new(**args) click to toggle source
# File lib/google/apis/cloudbuild_v1/classes.rb, line 1299
def initialize(**args)
   update!(**args)
end

Public Instance Methods

update!(**args) click to toggle source

Update properties of this object

# File lib/google/apis/cloudbuild_v1/classes.rb, line 1304
def update!(**args)
  @app_id = args[:app_id] if args.key?(:app_id)
  @create_time = args[:create_time] if args.key?(:create_time)
  @display_name = args[:display_name] if args.key?(:display_name)
  @host_url = args[:host_url] if args.key?(:host_url)
  @name = args[:name] if args.key?(:name)
  @peered_network = args[:peered_network] if args.key?(:peered_network)
  @secrets = args[:secrets] if args.key?(:secrets)
  @ssl_ca = args[:ssl_ca] if args.key?(:ssl_ca)
  @webhook_key = args[:webhook_key] if args.key?(:webhook_key)
end