class Google::Apis::CloudbuildV1::GitHubEventsConfig
GitHubEventsConfig
describes the configuration of a trigger that creates a build whenever a GitHub event is received.
Attributes
Optional. The resource name of the github enterprise config that should be applied to this installation. For example: “projects/`$project_id`/ githubEnterpriseConfigs/`$config_id`” Corresponds to the JSON property `enterpriseConfigResourceName` @return [String]
The installationID that emits the GitHub event. Corresponds to the JSON property `installationId` @return [Fixnum]
Name of the repository. For example: The name for github.com/ googlecloudplatform/cloud-builders is “cloud-builders”. Corresponds to the JSON property `name` @return [String]
Owner of the repository. For example: The owner for github.com/ googlecloudplatform/cloud-builders is “googlecloudplatform”. Corresponds to the JSON property `owner` @return [String]
PullRequestFilter
contains filter properties for matching GitHub Pull Requests. Corresponds to the JSON property `pullRequest` @return [Google::Apis::CloudbuildV1::PullRequestFilter]
Push contains filter properties for matching GitHub git pushes. Corresponds to the JSON property `push` @return [Google::Apis::CloudbuildV1::PushFilter]
Public Class Methods
# File lib/google/apis/cloudbuild_v1/classes.rb, line 1418 def initialize(**args) update!(**args) end
Public Instance Methods
Update properties of this object
# File lib/google/apis/cloudbuild_v1/classes.rb, line 1423 def update!(**args) @enterprise_config_resource_name = args[:enterprise_config_resource_name] if args.key?(:enterprise_config_resource_name) @installation_id = args[:installation_id] if args.key?(:installation_id) @name = args[:name] if args.key?(:name) @owner = args[:owner] if args.key?(:owner) @pull_request = args[:pull_request] if args.key?(:pull_request) @push = args[:push] if args.key?(:push) end