Grafeas v1 API - Class Version (3.7.0)

public sealed class Version : IMessage<Version>, IEquatable<Version>, IDeepCloneable<Version>, IBufferMessage, IMessage

Reference documentation and code samples for the Grafeas v1 API class Version.

Version contains structured information about the version of a package.

Inheritance

object > Version

Namespace

Grafeas.V1

Assembly

Grafeas.V1.dll

Constructors

Version()

public Version()

Version(Version)

public Version(Version other)
Parameter
Name Description
other Version

Properties

Epoch

public int Epoch { get; set; }

Used to correct mistakes in the version numbering scheme.

Property Value
Type Description
int

FullName

public string FullName { get; set; }

Human readable version string. This string is of the form <epoch>:<name>-<revision> and is only set when kind is NORMAL.

Property Value
Type Description
string

Inclusive

public bool Inclusive { get; set; }

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.

Property Value
Type Description
bool

Kind

public Version.Types.VersionKind Kind { get; set; }

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

Property Value
Type Description
VersionTypesVersionKind

Name

public string Name { get; set; }

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

Property Value
Type Description
string

Revision

public string Revision { get; set; }

The iteration of the package build from the above version.

Property Value
Type Description
string