Class: Google::Apis::CloudbuildV1::PullRequestFilter
- Inherits:
-
Object
- Object
- Google::Apis::CloudbuildV1::PullRequestFilter
- Defined in:
- generated/google/apis/cloudbuild_v1/classes.rb,
generated/google/apis/cloudbuild_v1/representations.rb,
generated/google/apis/cloudbuild_v1/representations.rb
Overview
PullRequestFilter contains filter properties for matching GitHub Pull Requests.
Instance Attribute Summary collapse
-
#branch ⇒ String
Regex of branches to match.
-
#comment_control ⇒ String
Whether to block builds on a "/gcbrun" comment from a repository owner or collaborator.
Instance Method Summary collapse
-
#initialize(**args) ⇒ PullRequestFilter
constructor
A new instance of PullRequestFilter.
-
#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) ⇒ PullRequestFilter
Returns a new instance of PullRequestFilter
1023 1024 1025 |
# File 'generated/google/apis/cloudbuild_v1/classes.rb', line 1023 def initialize(**args) update!(**args) end |
Instance Attribute Details
#branch ⇒ String
Regex of branches to match.
The syntax of the regular expressions accepted is the syntax accepted by
RE2 and described at https://github.com/google/re2/wiki/Syntax
Corresponds to the JSON property branch
1015 1016 1017 |
# File 'generated/google/apis/cloudbuild_v1/classes.rb', line 1015 def branch @branch end |
#comment_control ⇒ String
Whether to block builds on a "/gcbrun" comment from a repository owner or
collaborator.
Corresponds to the JSON property commentControl
1021 1022 1023 |
# File 'generated/google/apis/cloudbuild_v1/classes.rb', line 1021 def comment_control @comment_control end |
Instance Method Details
#update!(**args) ⇒ Object
Update properties of this object
1028 1029 1030 1031 |
# File 'generated/google/apis/cloudbuild_v1/classes.rb', line 1028 def update!(**args) @branch = args[:branch] if args.key?(:branch) @comment_control = args[:comment_control] if args.key?(:comment_control) end |