Class: Google::Apis::CloudbuildV1::GitHubEventsConfig
- Inherits:
-
Object
- Object
- Google::Apis::CloudbuildV1::GitHubEventsConfig
- Includes:
- Google::Apis::Core::Hashable, Google::Apis::Core::JsonObjectSupport
- Defined in:
- lib/google/apis/cloudbuild_v1/classes.rb,
lib/google/apis/cloudbuild_v1/representations.rb,
lib/google/apis/cloudbuild_v1/representations.rb
Overview
GitHubEventsConfig describes the configuration of a trigger that creates a build whenever a GitHub event is received.
Instance Attribute Summary collapse
-
#enterprise_config_resource_name ⇒ String
The resource name of the github enterprise config that should be applied to this installation.
-
#installation_id ⇒ Fixnum
The installationID that emits 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.
Constructor Details
#initialize(**args) ⇒ GitHubEventsConfig
Returns a new instance of GitHubEventsConfig.
2309 2310 2311 |
# File 'lib/google/apis/cloudbuild_v1/classes.rb', line 2309 def initialize(**args) update!(**args) end |
Instance Attribute Details
#enterprise_config_resource_name ⇒ String
The resource name of the github enterprise config that should be applied to
this installation. For example: "projects/$project_id
/locations/$
location_id
/githubEnterpriseConfigs/$config_id
"
Corresponds to the JSON property enterpriseConfigResourceName
2280 2281 2282 |
# File 'lib/google/apis/cloudbuild_v1/classes.rb', line 2280 def enterprise_config_resource_name @enterprise_config_resource_name end |
#installation_id ⇒ Fixnum
The installationID that emits the GitHub event.
Corresponds to the JSON property installationId
2285 2286 2287 |
# File 'lib/google/apis/cloudbuild_v1/classes.rb', line 2285 def installation_id @installation_id end |
#name ⇒ String
Name of the repository. For example: The name for https://github.com/
googlecloudplatform/cloud-builders is "cloud-builders".
Corresponds to the JSON property name
2291 2292 2293 |
# File 'lib/google/apis/cloudbuild_v1/classes.rb', line 2291 def name @name end |
#owner ⇒ String
Owner of the repository. For example: The owner for https://github.com/
googlecloudplatform/cloud-builders is "googlecloudplatform".
Corresponds to the JSON property owner
2297 2298 2299 |
# File 'lib/google/apis/cloudbuild_v1/classes.rb', line 2297 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
2302 2303 2304 |
# File 'lib/google/apis/cloudbuild_v1/classes.rb', line 2302 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
2307 2308 2309 |
# File 'lib/google/apis/cloudbuild_v1/classes.rb', line 2307 def push @push end |
Instance Method Details
#update!(**args) ⇒ Object
Update properties of this object
2314 2315 2316 2317 2318 2319 2320 2321 |
# File 'lib/google/apis/cloudbuild_v1/classes.rb', line 2314 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 |