Version

Version contains structured information about the version of a package.

JSON representation
{
  "epoch": integer,
  "name": string,
  "revision": string,
  "inclusive": boolean,
  "kind": enum (VersionKind),
  "fullName": string
}
Fields
epoch

integer

Used to correct mistakes in the version numbering scheme.

name

string

Required only when version kind is NORMAL. The main part of the version name.

revision

string

The iteration of the package build from the above version.

inclusive

boolean

Whether this version is specifying part of an inclusive range. Grafeas does not have the capability to specify version ranges; instead we have fields that specify start version and end versions. At times this is insufficient - we also need to specify whether the version is included in the range or is excluded from the range. This boolean is expected to be set to true when the version is included in a range.

kind

enum (VersionKind)

Required. Distinguishes between sentinel MIN/MAX versions and normal versions.

fullName

string

Human readable version string. This string is of the form :- and is only set when kind is NORMAL.

VersionKind

Whether this is an ordinary package version or a sentinel MIN/MAX version.

Enums
VERSION_KIND_UNSPECIFIED Unknown.
NORMAL A standard package version.
MINIMUM A special version representing negative infinity.
MAXIMUM A special version representing positive infinity.