Class: Google::Apis::CloudbuildV1::PushFilter

Inherits:
Object
  • Object
show all
Includes:
Google::Apis::Core::Hashable, Google::Apis::Core::JsonObjectSupport
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

Instance Method Summary collapse

Methods included from Google::Apis::Core::JsonObjectSupport

#to_json

Methods included from Google::Apis::Core::Hashable

process_value, #to_h

Constructor Details

#initialize(**args) ⇒ PushFilter

Returns a new instance of PushFilter



1091
1092
1093
# File 'generated/google/apis/cloudbuild_v1/classes.rb', line 1091

def initialize(**args)
   update!(**args)
end

Instance Attribute Details

#branchString

Regexes 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

Returns:

  • (String)


1082
1083
1084
# File 'generated/google/apis/cloudbuild_v1/classes.rb', line 1082

def branch
  @branch
end

#tagString

Regexes of tags 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 tag

Returns:

  • (String)


1089
1090
1091
# File 'generated/google/apis/cloudbuild_v1/classes.rb', line 1089

def tag
  @tag
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



1096
1097
1098
1099
# File 'generated/google/apis/cloudbuild_v1/classes.rb', line 1096

def update!(**args)
  @branch = args[:branch] if args.key?(:branch)
  @tag = args[:tag] if args.key?(:tag)
end