Class SourceContext (1.2.6)

Stay organized with collections Save and categorize content based on your preferences.
SourceContext(mapping=None, *, ignore_unknown_fields=False, **kwargs)

A SourceContext is a reference to a tree of files. A SourceContext together with a path point to a unique revision of a single file or directory.

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

NameDescription
cloud_repo google.cloud.source_context_v1.types.CloudRepoSourceContext
A SourceContext referring to a revision in a cloud repo. This field is a member of `oneof`_ ``context``.
cloud_workspace google.cloud.source_context_v1.types.CloudWorkspaceSourceContext
A SourceContext referring to a snapshot in a cloud workspace. This field is a member of `oneof`_ ``context``.
gerrit google.cloud.source_context_v1.types.GerritSourceContext
A SourceContext referring to a Gerrit project. This field is a member of `oneof`_ ``context``.
git google.cloud.source_context_v1.types.GitSourceContext
A SourceContext referring to any third party Git repo (e.g. GitHub). This field is a member of `oneof`_ ``context``.

Inheritance

builtins.object > proto.message.Message > SourceContext