Class: Google::Apis::CloudbuildV1::GitHubEventsConfig
- Inherits:
-
Object
- Object
- Google::Apis::CloudbuildV1::GitHubEventsConfig
- Defined in:
- generated/google/apis/cloudbuild_v1/classes.rb,
generated/google/apis/cloudbuild_v1/representations.rb,
generated/google/apis/cloudbuild_v1/representations.rb
Overview
GitHubEventsConfig describes the configuration of a trigger that creates a build whenever a GitHub event is received. This message is experimental.
Instance Attribute Summary collapse
-
#check_suite ⇒ Google::Apis::CloudbuildV1::CheckSuiteFilter
A CheckSuiteFilter is a filter that indicates that we should build on all check suite events.
-
#installation_id ⇒ Fixnum
The installationID that emmits the GitHub event.
-
#name ⇒ String
Name of the repository.
-
#owner ⇒ String
Owner of the repository.
-
#pull_request ⇒ Google::Apis::CloudbuildV1::PullRequestFilter
PullRequestFilter contains filter properties for matching GitHub Pull Requests.
-
#push ⇒ Google::Apis::CloudbuildV1::PushFilter
Push contains filter properties for matching GitHub git pushes.
Instance Method Summary collapse
-
#initialize(**args) ⇒ GitHubEventsConfig
constructor
A new instance of GitHubEventsConfig.
-
#update!(**args) ⇒ Object
Update properties of this object.
Methods included from Google::Apis::Core::JsonObjectSupport
Methods included from Google::Apis::Core::Hashable
Constructor Details
#initialize(**args) ⇒ GitHubEventsConfig
Returns a new instance of GitHubEventsConfig
831 832 833 |
# File 'generated/google/apis/cloudbuild_v1/classes.rb', line 831 def initialize(**args) update!(**args) end |
Instance Attribute Details
#check_suite ⇒ Google::Apis::CloudbuildV1::CheckSuiteFilter
A CheckSuiteFilter is a filter that indicates that we should build on all
check suite events.
Corresponds to the JSON property checkSuite
803 804 805 |
# File 'generated/google/apis/cloudbuild_v1/classes.rb', line 803 def check_suite @check_suite end |
#installation_id ⇒ Fixnum
The installationID that emmits the GitHub event.
Corresponds to the JSON property installationId
808 809 810 |
# File 'generated/google/apis/cloudbuild_v1/classes.rb', line 808 def installation_id @installation_id end |
#name ⇒ String
Name of the repository.
Corresponds to the JSON property name
813 814 815 |
# File 'generated/google/apis/cloudbuild_v1/classes.rb', line 813 def name @name end |
#owner ⇒ String
Owner of the repository.
Corresponds to the JSON property owner
818 819 820 |
# File 'generated/google/apis/cloudbuild_v1/classes.rb', line 818 def owner @owner end |
#pull_request ⇒ Google::Apis::CloudbuildV1::PullRequestFilter
PullRequestFilter contains filter properties for matching GitHub Pull
Requests.
Corresponds to the JSON property pullRequest
824 825 826 |
# File 'generated/google/apis/cloudbuild_v1/classes.rb', line 824 def pull_request @pull_request end |
#push ⇒ Google::Apis::CloudbuildV1::PushFilter
Push contains filter properties for matching GitHub git pushes.
Corresponds to the JSON property push
829 830 831 |
# File 'generated/google/apis/cloudbuild_v1/classes.rb', line 829 def push @push end |
Instance Method Details
#update!(**args) ⇒ Object
Update properties of this object
836 837 838 839 840 841 842 843 |
# File 'generated/google/apis/cloudbuild_v1/classes.rb', line 836 def update!(**args) @check_suite = args[:check_suite] if args.key?(:check_suite) @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 |