Index
AliasContext
(message)AliasContext.Kind
(enum)CloudRepoSourceContext
(message)CloudWorkspaceId
(message)CloudWorkspaceSourceContext
(message)ExtendedSourceContext
(message)GerritSourceContext
(message)GitSourceContext
(message)ProjectRepoId
(message)RepoId
(message)SourceContext
(message)
AliasContext
An alias to a repo revision.
Fields | |
---|---|
kind |
The alias kind. |
name |
The alias name. |
Kind
The type of an Alias.
Enums | |
---|---|
ANY |
Do not use. |
FIXED |
Git tag |
MOVABLE |
Git branch |
OTHER |
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. |
CloudRepoSourceContext
A CloudRepoSourceContext denotes a particular revision in a cloud repo (a repo hosted by the Google Cloud Platform).
Fields | |
---|---|
repo_id |
The ID of the repo. |
Union field revision . A revision in a cloud repository can be identified by either its revision ID or its Alias. revision can be only one of the following: |
|
revision_id |
A revision ID. |
alias_name |
The name of an alias (branch, tag, etc.). |
alias_context |
An alias, which may be a branch or tag. |
CloudWorkspaceId
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.
Fields | |
---|---|
repo_id |
The ID of the repo containing the workspace. |
name |
The unique name of the workspace within the repo. This is the name chosen by the client in the Source API's CreateWorkspace method. |
CloudWorkspaceSourceContext
A CloudWorkspaceSourceContext denotes a workspace at a particular snapshot.
Fields | |
---|---|
workspace_id |
The ID of the workspace. |
snapshot_id |
The ID of the snapshot. An empty snapshot_id refers to the most recent snapshot. |
ExtendedSourceContext
An ExtendedSourceContext is a SourceContext combined with additional details describing the context.
Fields | |
---|---|
context |
Any source context. |
labels |
Labels with user defined metadata. |
GerritSourceContext
A SourceContext referring to a Gerrit project.
Fields | |
---|---|
host_uri |
The URI of a running Gerrit instance. |
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. |
Union field revision . A revision in a Gerrit project can be identified by either its revision ID or its alias. revision can be only one of the following: |
|
revision_id |
A revision (commit) ID. |
alias_name |
The name of an alias (branch, tag, etc.). |
alias_context |
An alias, which may be a branch or tag. |
GitSourceContext
A GitSourceContext denotes a particular revision in a third party Git repository (e.g. GitHub).
Fields | |
---|---|
url |
Git repository URL. |
revision_id |
Git commit hash. required. |
ProjectRepoId
Selects a repo using a Google Cloud Platform project ID (e.g. winged-cargo-31) and a repo name within that project.
Fields | |
---|---|
project_id |
The ID of the project. |
repo_name |
The name of the repo. Leave empty for the default repo. |
RepoId
A unique identifier for a cloud repo.
Fields | |
---|---|
Union field id . A cloud repository can be identified by either its project ID and repository name combination, or its globally unique identifier. id can be only one of the following: |
|
project_repo_id |
A combination of a project ID and a repo name. |
uid |
A server-assigned, globally unique identifier. |
SourceContext
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.
Fields | |
---|---|
Union field context . A SourceContext can refer any one of the following types of repositories. context can be only one of the following: |
|
cloud_repo |
A SourceContext referring to a revision in a cloud repo. |
cloud_workspace |
A SourceContext referring to a snapshot in a cloud workspace. |
gerrit |
A SourceContext referring to a Gerrit project. |
git |
A SourceContext referring to any third party Git repo (e.g. GitHub). |