Class RepoSource (3.26.0)

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

Location of the source in a Google Cloud Source Repository.

This message has oneof_ fields (mutually exclusive fields). For each oneof, at most one member field can be set at the same time. Setting any member of the oneof automatically clears all other members.

.. _oneof: https://proto-plus-python.readthedocs.io/en/stable/fields.html#oneofs-mutually-exclusive-fields

Attributes

Name Description
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 This field is a member of oneof_ revision.
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 This field is a member of oneof_ revision.
commit_sha str
Explicit commit SHA to build. This field is a member of oneof_ revision.
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 MutableMapping[str, str]
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
Name Description
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.