Class RepoSource (3.4.0)

RepoSource(mapping=None, *, ignore_unknown_fields=False, **kwargs)

Location of the source in a Google Cloud Source Repository.

Attributes

NameDescription
project_id str
ID of the project that owns the Cloud Source Repository. If omitted, the project ID requesting the build is assumed.
repo_name str
Name of the Cloud Source Repository.
branch_name str
Regex 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
tag_name str
Regex 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
commit_sha str
Explicit commit SHA to build.
dir_ str
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.
invert_regex bool
Only trigger a build if the revision regex does NOT match the revision regex.
substitutions Sequence[google.cloud.devtools.cloudbuild_v1.types.RepoSource.SubstitutionsEntry]
Substitutions to use in a triggered build. Should only be used with RunBuildTrigger

Classes

SubstitutionsEntry

SubstitutionsEntry(mapping=None, *, ignore_unknown_fields=False, **kwargs)

The abstract base class for a message.

Parameters
NameDescription
kwargs dict

Keys and values corresponding to the fields of the message.

mapping Union[dict, .Message]

A dictionary or message to be used to determine the values for this message.

ignore_unknown_fields Optional(bool)

If True, do not raise errors for unknown fields. Only applied if mapping is a mapping type or there are keyword parameters.