Members
(static) Kind :number
The type of an alias.
Properties:
Name | Type | Description |
---|---|---|
KIND_UNSPECIFIED |
number |
Unknown. |
FIXED |
number |
Git tag. |
MOVABLE |
number |
Git branch. |
OTHER |
number |
Used to specify non-standard aliases. For example, if a Git repo has a ref named "refs/foo/bar". |
Type Definitions
AliasContext
An alias to a repo revision.
Properties:
Name | Type | Description |
---|---|---|
kind |
number |
The alias kind. The number should be among the values of Kind |
name |
string |
The alias name. |
- Source:
- See:
CloudRepoSourceContext
A CloudRepoSourceContext denotes a particular revision in a Google Cloud Source Repo.
Properties:
Name | Type | Description |
---|---|---|
repoId |
Object |
The ID of the repo. This object should have the same structure as RepoId |
revisionId |
string |
A revision ID. |
aliasContext |
Object |
An alias, which may be a branch or tag. This object should have the same structure as AliasContext |
- Source:
- See:
GerritSourceContext
A SourceContext referring to a Gerrit project.
Properties:
Name | Type | Description |
---|---|---|
hostUri |
string |
The URI of a running Gerrit instance. |
gerritProject |
string |
The full project name within the host. Projects may be nested, so "project/subproject" is a valid project name. The "repo name" is the hostURI/project. |
revisionId |
string |
A revision (commit) ID. |
aliasContext |
Object |
An alias, which may be a branch or tag. This object should have the same structure as AliasContext |
- Source:
- See:
GitSourceContext
A GitSourceContext denotes a particular revision in a third party Git repository (e.g., GitHub).
Properties:
Name | Type | Description |
---|---|---|
url |
string |
Git repository URL. |
revisionId |
string |
Git commit hash. |
- Source:
- See:
ProjectRepoId
Selects a repo using a Google Cloud Platform project ID (e.g., winged-cargo-31) and a repo name within that project.
Properties:
Name | Type | Description |
---|---|---|
projectId |
string |
The ID of the project. |
repoName |
string |
The name of the repo. Leave empty for the default repo. |
- Source:
- See:
RepoId
A unique identifier for a Cloud Repo.
Properties:
Name | Type | Description |
---|---|---|
projectRepoId |
Object |
A combination of a project ID and a repo name. This object should have the same structure as ProjectRepoId |
uid |
string |
A server-assigned, globally unique identifier. |
- Source:
- See:
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.
Properties:
Name | Type | Description |
---|---|---|
cloudRepo |
Object |
A SourceContext referring to a revision in a Google Cloud Source Repo. This object should have the same structure as CloudRepoSourceContext |
gerrit |
Object |
A SourceContext referring to a Gerrit project. This object should have the same structure as GerritSourceContext |
git |
Object |
A SourceContext referring to any third party Git repo (e.g., GitHub). This object should have the same structure as GitSourceContext |
labels |
Object.<string, string> |
Labels with user defined metadata. |