Class: Grafeas::V1::Version

Inherits:
Object
  • Object
show all
Defined in:
lib/grafeas/v1/doc/grafeas/v1/package.rb

Overview

Version contains structured information about the version of a package.

Defined Under Namespace

Modules: VersionKind

Instance Attribute Summary collapse

Instance Attribute Details

#epochInteger

Returns Used to correct mistakes in the version numbering scheme.

Returns:

  • (Integer)

    Used to correct mistakes in the version numbering scheme.



96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
# File 'lib/grafeas/v1/doc/grafeas/v1/package.rb', line 96

class Version
  # Whether this is an ordinary package version or a sentinel MIN/MAX version.
  module VersionKind
    # Unknown.
    VERSION_KIND_UNSPECIFIED = 0

    # A standard package version.
    NORMAL = 1

    # A special version representing negative infinity.
    MINIMUM = 2

    # A special version representing positive infinity.
    MAXIMUM = 3
  end
end

#full_nameString

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

Returns:

  • (String)

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



96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
# File 'lib/grafeas/v1/doc/grafeas/v1/package.rb', line 96

class Version
  # Whether this is an ordinary package version or a sentinel MIN/MAX version.
  module VersionKind
    # Unknown.
    VERSION_KIND_UNSPECIFIED = 0

    # A standard package version.
    NORMAL = 1

    # A special version representing negative infinity.
    MINIMUM = 2

    # A special version representing positive infinity.
    MAXIMUM = 3
  end
end

#kindGrafeas::V1::Version::VersionKind

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

Returns:



96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
# File 'lib/grafeas/v1/doc/grafeas/v1/package.rb', line 96

class Version
  # Whether this is an ordinary package version or a sentinel MIN/MAX version.
  module VersionKind
    # Unknown.
    VERSION_KIND_UNSPECIFIED = 0

    # A standard package version.
    NORMAL = 1

    # A special version representing negative infinity.
    MINIMUM = 2

    # A special version representing positive infinity.
    MAXIMUM = 3
  end
end

#nameString

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

Returns:

  • (String)

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



96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
# File 'lib/grafeas/v1/doc/grafeas/v1/package.rb', line 96

class Version
  # Whether this is an ordinary package version or a sentinel MIN/MAX version.
  module VersionKind
    # Unknown.
    VERSION_KIND_UNSPECIFIED = 0

    # A standard package version.
    NORMAL = 1

    # A special version representing negative infinity.
    MINIMUM = 2

    # A special version representing positive infinity.
    MAXIMUM = 3
  end
end

#revisionString

Returns The iteration of the package build from the above version.

Returns:

  • (String)

    The iteration of the package build from the above version.



96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
# File 'lib/grafeas/v1/doc/grafeas/v1/package.rb', line 96

class Version
  # Whether this is an ordinary package version or a sentinel MIN/MAX version.
  module VersionKind
    # Unknown.
    VERSION_KIND_UNSPECIFIED = 0

    # A standard package version.
    NORMAL = 1

    # A special version representing negative infinity.
    MINIMUM = 2

    # A special version representing positive infinity.
    MAXIMUM = 3
  end
end