class Google::Apis::CloudbuildV1beta1::RepoSource
Attributes
Regex 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 `branchName` @return [String]
Explicit commit SHA to build. Corresponds to the JSON property `commitSha` @return [String]
Directory, relative to the source root, in which to run the build. This must be a relative path. If a step's `dir` is specified and is an absolute path, this value is ignored for that step's execution. Corresponds to the JSON property `dir` @return [String]
Only trigger a build if the revision regex does NOT match the revision regex. Corresponds to the JSON property `invertRegex` @return [Boolean]
Only trigger a build if the revision regex does NOT match the revision regex. Corresponds to the JSON property `invertRegex` @return [Boolean]
ID of the project that owns the Cloud Source
Repository. If omitted, the project ID requesting the build is assumed. Corresponds to the JSON property `projectId` @return [String]
Name of the Cloud Source
Repository. Corresponds to the JSON property `repoName` @return [String]
Substitutions to use in a triggered build. Should only be used with RunBuildTrigger Corresponds to the JSON property `substitutions` @return [Hash<String,String>]
Regex 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 `tagName` @return [String]
Public Class Methods
# File lib/google/apis/cloudbuild_v1beta1/classes.rb, line 1559 def initialize(**args) update!(**args) end
Public Instance Methods
Update properties of this object
# File lib/google/apis/cloudbuild_v1beta1/classes.rb, line 1564 def update!(**args) @branch_name = args[:branch_name] if args.key?(:branch_name) @commit_sha = args[:commit_sha] if args.key?(:commit_sha) @dir = args[:dir] if args.key?(:dir) @invert_regex = args[:invert_regex] if args.key?(:invert_regex) @project_id = args[:project_id] if args.key?(:project_id) @repo_name = args[:repo_name] if args.key?(:repo_name) @substitutions = args[:substitutions] if args.key?(:substitutions) @tag_name = args[:tag_name] if args.key?(:tag_name) end