class Google::Apis::CloudbuildV1::PushFilter
Push contains filter properties for matching GitHub git pushes.
Attributes
Regexes matching branches to build. The syntax of the regular expressions accepted is the syntax accepted by RE2 and described at github.com/ google/re2/wiki/Syntax Corresponds to the JSON property `branch` @return [String]
When true, only trigger a build if the revision regex does NOT match the git_ref regex. Corresponds to the JSON property `invertRegex` @return [Boolean]
When true, only trigger a build if the revision regex does NOT match the git_ref regex. Corresponds to the JSON property `invertRegex` @return [Boolean]
Regexes matching tags to build. The syntax of the regular expressions accepted is the syntax accepted by RE2 and described at github.com/google/re2/ wiki/Syntax Corresponds to the JSON property `tag` @return [String]
Public Class Methods
# File lib/google/apis/cloudbuild_v1/classes.rb, line 2267 def initialize(**args) update!(**args) end
Public Instance Methods
Update properties of this object
# File lib/google/apis/cloudbuild_v1/classes.rb, line 2272 def update!(**args) @branch = args[:branch] if args.key?(:branch) @invert_regex = args[:invert_regex] if args.key?(:invert_regex) @tag = args[:tag] if args.key?(:tag) end