Class: Grafeas::V1::Version
- Inherits:
-
Object
- Object
- Grafeas::V1::Version
- 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
-
#epoch ⇒ Integer
Used to correct mistakes in the version numbering scheme.
-
#full_name ⇒ String
Human readable version string.
-
#kind ⇒ Grafeas::V1::Version::VersionKind
Required.
-
#name ⇒ String
Required only when version kind is NORMAL.
-
#revision ⇒ String
The iteration of the package build from the above version.
Instance Attribute Details
#epoch ⇒ Integer
Returns 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_name ⇒ String
Returns Human readable version string. This string is of the form
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 |
#kind ⇒ Grafeas::V1::Version::VersionKind
Returns Required. Distinguishes between sentinel MIN/MAX versions and normal versions.
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 |
#name ⇒ String
Returns 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 |
#revision ⇒ String
Returns 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 |