Types for Google Cloud Source Context v1 API¶
- class google.cloud.source_context_v1.types.AliasContext(mapping=None, *, ignore_unknown_fields=False, **kwargs)[source]¶
Bases:
proto.message.Message
An alias to a repo revision.
- kind¶
The alias kind.
- class Kind(value)[source]¶
Bases:
proto.enums.Enum
The type of an Alias.
- Values:
- ANY (0):
Do not use.
- FIXED (1):
Git tag
- MOVABLE (2):
Git branch
- OTHER (4):
OTHER is used to specify non-standard aliases, those not of the kinds above. For example, if a Git repo has a ref named “refs/foo/bar”, it is considered to be of kind OTHER.
- class google.cloud.source_context_v1.types.CloudRepoSourceContext(mapping=None, *, ignore_unknown_fields=False, **kwargs)[source]¶
Bases:
proto.message.Message
A CloudRepoSourceContext denotes a particular revision in a cloud repo (a repo hosted by the Google Cloud Platform).
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.
- repo_id¶
The ID of the repo.
- alias_name¶
The name of an alias (branch, tag, etc.).
This field is a member of oneof
revision
.- Type
- class google.cloud.source_context_v1.types.CloudWorkspaceId(mapping=None, *, ignore_unknown_fields=False, **kwargs)[source]¶
Bases:
proto.message.Message
A CloudWorkspaceId is a unique identifier for a cloud workspace. A cloud workspace is a place associated with a repo where modified files can be stored before they are committed.
- repo_id¶
The ID of the repo containing the workspace.
- class google.cloud.source_context_v1.types.CloudWorkspaceSourceContext(mapping=None, *, ignore_unknown_fields=False, **kwargs)[source]¶
Bases:
proto.message.Message
A CloudWorkspaceSourceContext denotes a workspace at a particular snapshot.
- workspace_id¶
The ID of the workspace.
- class google.cloud.source_context_v1.types.ExtendedSourceContext(mapping=None, *, ignore_unknown_fields=False, **kwargs)[source]¶
Bases:
proto.message.Message
An ExtendedSourceContext is a SourceContext combined with additional details describing the context.
- context¶
Any source context.
- class LabelsEntry(mapping=None, *, ignore_unknown_fields=False, **kwargs)¶
Bases:
proto.message.Message
- class google.cloud.source_context_v1.types.GerritSourceContext(mapping=None, *, ignore_unknown_fields=False, **kwargs)[source]¶
Bases:
proto.message.Message
A SourceContext referring to a Gerrit project.
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.
- gerrit_project¶
The full project name within the host. Projects may be nested, so “project/subproject” is a valid project name. The “repo name” is hostURI/project.
- Type
- alias_name¶
The name of an alias (branch, tag, etc.).
This field is a member of oneof
revision
.- Type
- class google.cloud.source_context_v1.types.GitSourceContext(mapping=None, *, ignore_unknown_fields=False, **kwargs)[source]¶
Bases:
proto.message.Message
A GitSourceContext denotes a particular revision in a third party Git repository (e.g. GitHub).
- class google.cloud.source_context_v1.types.ProjectRepoId(mapping=None, *, ignore_unknown_fields=False, **kwargs)[source]¶
Bases:
proto.message.Message
Selects a repo using a Google Cloud Platform project ID (e.g. winged-cargo-31) and a repo name within that project.
- class google.cloud.source_context_v1.types.RepoId(mapping=None, *, ignore_unknown_fields=False, **kwargs)[source]¶
Bases:
proto.message.Message
A unique identifier for a cloud repo.
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.
- class google.cloud.source_context_v1.types.SourceContext(mapping=None, *, ignore_unknown_fields=False, **kwargs)[source]¶
Bases:
proto.message.Message
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.
- cloud_repo¶
A SourceContext referring to a revision in a cloud repo.
This field is a member of oneof
context
.
- cloud_workspace¶
A SourceContext referring to a snapshot in a cloud workspace.
This field is a member of oneof
context
.