Class: Google::Apis::CloudbuildV1::PullRequestFilter
- Inherits:
-
Object
- Object
- Google::Apis::CloudbuildV1::PullRequestFilter
- 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
PullRequestFilter contains filter properties for matching GitHub Pull Requests.
Instance Attribute Summary collapse
-
#branch ⇒ String
Regex of branches to match.
-
#comment_control ⇒ String
Configure builds to run whether a repository owner or collaborator need to comment
/gcbrun. -
#invert_regex ⇒ Boolean
(also: #invert_regex?)
If true, branches that do NOT match the git_ref will trigger a build.
Instance Method Summary collapse
-
#initialize(**args) ⇒ PullRequestFilter
constructor
A new instance of PullRequestFilter.
-
#update!(**args) ⇒ Object
Update properties of this object.
Constructor Details
#initialize(**args) ⇒ PullRequestFilter
Returns a new instance of PullRequestFilter.
2899 2900 2901 |
# File 'lib/google/apis/cloudbuild_v1/classes.rb', line 2899 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
2885 2886 2887 |
# File 'lib/google/apis/cloudbuild_v1/classes.rb', line 2885 def branch @branch end |
#comment_control ⇒ String
Configure builds to run whether a repository owner or collaborator need to
comment /gcbrun.
Corresponds to the JSON property commentControl
2891 2892 2893 |
# File 'lib/google/apis/cloudbuild_v1/classes.rb', line 2891 def comment_control @comment_control end |
#invert_regex ⇒ Boolean Also known as: invert_regex?
If true, branches that do NOT match the git_ref will trigger a build.
Corresponds to the JSON property invertRegex
2896 2897 2898 |
# File 'lib/google/apis/cloudbuild_v1/classes.rb', line 2896 def invert_regex @invert_regex end |
Instance Method Details
#update!(**args) ⇒ Object
Update properties of this object
2904 2905 2906 2907 2908 |
# File 'lib/google/apis/cloudbuild_v1/classes.rb', line 2904 def update!(**args) @branch = args[:branch] if args.key?(:branch) @comment_control = args[:comment_control] if args.key?(:comment_control) @invert_regex = args[:invert_regex] if args.key?(:invert_regex) end |