Property

Property

static

Kind  number

The type of an alias.

Properties

Name Type Optional Description

KIND_UNSPECIFIED

 

 

Unknown.

FIXED

 

 

Git tag.

MOVABLE

 

 

Git branch.

OTHER

 

 

Used to specify non-standard aliases. For example, if a Git repo has a ref named "refs/foo/bar".

Abstract types

static

AliasContext

An alias to a repo revision.

Properties

Name Type Optional Description

kind

number

 

The alias kind.

The number should be among the values of Kind

name

string

 

The alias name.

See also

grafeas.v1beta1.source.AliasContext definition in proto format

static

CloudRepoSourceContext

A CloudRepoSourceContext denotes a particular revision in a Google Cloud Source Repo.

Properties

Name Type Optional 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

See also

grafeas.v1beta1.source.CloudRepoSourceContext definition in proto format

static

GerritSourceContext

A SourceContext referring to a Gerrit project.

Properties

Name Type Optional 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

See also

grafeas.v1beta1.source.GerritSourceContext definition in proto format

static

GitSourceContext

A GitSourceContext denotes a particular revision in a third party Git repository (e.g., GitHub).

Properties

Name Type Optional Description

url

string

 

Git repository URL.

revisionId

string

 

Git commit hash.

See also

grafeas.v1beta1.source.GitSourceContext definition in proto format

static

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 Optional Description

projectId

string

 

The ID of the project.

repoName

string

 

The name of the repo. Leave empty for the default repo.

See also

grafeas.v1beta1.source.ProjectRepoId definition in proto format

static

RepoId

A unique identifier for a Cloud Repo.

Properties

Name Type Optional 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.

See also

grafeas.v1beta1.source.RepoId definition in proto format

static

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 Optional 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 with string properties

 

Labels with user defined metadata.

See also

grafeas.v1beta1.source.SourceContext definition in proto format