Class: Google::Apis::CloudbuildV1::PushFilter
- Inherits:
-
Object
- Object
- Google::Apis::CloudbuildV1::PushFilter
- Defined in:
- generated/google/apis/cloudbuild_v1/classes.rb,
generated/google/apis/cloudbuild_v1/representations.rb,
generated/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.
-
#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.
Methods included from Google::Apis::Core::JsonObjectSupport
Methods included from Google::Apis::Core::Hashable
Constructor Details
#initialize(**args) ⇒ PushFilter
Returns a new instance of PushFilter
1052 1053 1054 |
# File 'generated/google/apis/cloudbuild_v1/classes.rb', line 1052 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
1043 1044 1045 |
# File 'generated/google/apis/cloudbuild_v1/classes.rb', line 1043 def branch @branch 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
1050 1051 1052 |
# File 'generated/google/apis/cloudbuild_v1/classes.rb', line 1050 def tag @tag end |
Instance Method Details
#update!(**args) ⇒ Object
Update properties of this object
1057 1058 1059 1060 |
# File 'generated/google/apis/cloudbuild_v1/classes.rb', line 1057 def update!(**args) @branch = args[:branch] if args.key?(:branch) @tag = args[:tag] if args.key?(:tag) end |