Class: Google::Apis::CloudbuildV1::RepositoryEventConfig
- Inherits:
-
Object
- Object
- Google::Apis::CloudbuildV1::RepositoryEventConfig
- 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
The configuration of a trigger that creates a build whenever an event from Repo API is received.
Instance Attribute Summary collapse
-
#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.
-
#repository ⇒ String
The resource name of the Repo API resource.
-
#repository_type ⇒ String
Output only.
Instance Method Summary collapse
-
#initialize(**args) ⇒ RepositoryEventConfig
constructor
A new instance of RepositoryEventConfig.
-
#update!(**args) ⇒ Object
Update properties of this object.
Constructor Details
#initialize(**args) ⇒ RepositoryEventConfig
Returns a new instance of RepositoryEventConfig.
3418 3419 3420 |
# File 'lib/google/apis/cloudbuild_v1/classes.rb', line 3418 def initialize(**args) update!(**args) end |
Instance Attribute Details
#pull_request ⇒ Google::Apis::CloudbuildV1::PullRequestFilter
PullRequestFilter contains filter properties for matching GitHub Pull Requests.
Corresponds to the JSON property pullRequest
3401 3402 3403 |
# File 'lib/google/apis/cloudbuild_v1/classes.rb', line 3401 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
3406 3407 3408 |
# File 'lib/google/apis/cloudbuild_v1/classes.rb', line 3406 def push @push end |
#repository ⇒ String
The resource name of the Repo API resource.
Corresponds to the JSON property repository
3411 3412 3413 |
# File 'lib/google/apis/cloudbuild_v1/classes.rb', line 3411 def repository @repository end |
#repository_type ⇒ String
Output only. The type of the SCM vendor the repository points to.
Corresponds to the JSON property repositoryType
3416 3417 3418 |
# File 'lib/google/apis/cloudbuild_v1/classes.rb', line 3416 def repository_type @repository_type end |
Instance Method Details
#update!(**args) ⇒ Object
Update properties of this object
3423 3424 3425 3426 3427 3428 |
# File 'lib/google/apis/cloudbuild_v1/classes.rb', line 3423 def update!(**args) @pull_request = args[:pull_request] if args.key?(:pull_request) @push = args[:push] if args.key?(:push) @repository = args[:repository] if args.key?(:repository) @repository_type = args[:repository_type] if args.key?(:repository_type) end |