class Google::Apis::CloudbuildV1::PushFilter

Push contains filter properties for matching GitHub git pushes.

Attributes

branch[RW]

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]

invert_regex[RW]

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]

invert_regex?[RW]

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]

tag[RW]

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

new(**args) click to toggle source
# File lib/google/apis/cloudbuild_v1/classes.rb, line 2267
def initialize(**args)
   update!(**args)
end

Public Instance Methods

update!(**args) click to toggle source

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