class Google::Apis::CloudbuildV1beta1::RepoSource

Location of the source in a Google Cloud Source Repository.

Attributes

branch_name[RW]

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]

commit_sha[RW]

Explicit commit SHA to build. Corresponds to the JSON property `commitSha` @return [String]

dir[RW]

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]

invert_regex[RW]

Only trigger a build if the revision regex does NOT match the revision regex. Corresponds to the JSON property `invertRegex` @return [Boolean]

invert_regex?[RW]

Only trigger a build if the revision regex does NOT match the revision regex. Corresponds to the JSON property `invertRegex` @return [Boolean]

project_id[RW]

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]

repo_name[RW]

Name of the Cloud Source Repository. Corresponds to the JSON property `repoName` @return [String]

substitutions[RW]

Substitutions to use in a triggered build. Should only be used with RunBuildTrigger Corresponds to the JSON property `substitutions` @return [Hash<String,String>]

tag_name[RW]

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

new(**args) click to toggle source
# File lib/google/apis/cloudbuild_v1beta1/classes.rb, line 1559
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_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