Class: Google::Apis::CloudbuildV1::PushFilter
- Inherits:
-
Object
- Object
- Google::Apis::CloudbuildV1::PushFilter
- 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
Push contains filter properties for matching GitHub git pushes.
Instance Attribute Summary collapse
-
#branch ⇒ String
Regexes matching branches to build.
-
#invert_regex ⇒ Boolean
(also: #invert_regex?)
When true, only trigger a build if the revision regex does NOT match the git_ref regex.
-
#tag ⇒ String
Regexes matching tags to build.
Instance Method Summary collapse
-
#initialize(**args) ⇒ PushFilter
constructor
A new instance of PushFilter.
-
#update!(**args) ⇒ Object
Update properties of this object.
Constructor Details
#initialize(**args) ⇒ PushFilter
Returns a new instance of PushFilter.
3457 3458 3459 |
# File 'lib/google/apis/cloudbuild_v1/classes.rb', line 3457 def initialize(**args) update!(**args) end |
Instance Attribute Details
#branch ⇒ String
Regexes matching branches to build. 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
3441 3442 3443 |
# File 'lib/google/apis/cloudbuild_v1/classes.rb', line 3441 def branch @branch end |
#invert_regex ⇒ Boolean Also known as: invert_regex?
When true, only trigger a build if the revision regex does NOT match the
git_ref regex.
Corresponds to the JSON property invertRegex
3447 3448 3449 |
# File 'lib/google/apis/cloudbuild_v1/classes.rb', line 3447 def invert_regex @invert_regex end |
#tag ⇒ String
Regexes matching tags to build. 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 tag
3455 3456 3457 |
# File 'lib/google/apis/cloudbuild_v1/classes.rb', line 3455 def tag @tag end |
Instance Method Details
#update!(**args) ⇒ Object
Update properties of this object
3462 3463 3464 3465 3466 |
# File 'lib/google/apis/cloudbuild_v1/classes.rb', line 3462 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 |