class Google::Apis::ContaineranalysisV1alpha1::Version

Version contains structured information about the version of the package. For a discussion of this in Debian/Ubuntu: serverfault.com/questions/604541/ debian-packages-version-convention For a discussion of this in Redhat/Fedora/ Centos: blog.jasonantman.com/2014/07/how-yum-and-rpm-compare-versions/

Attributes

epoch[RW]

Used to correct mistakes in the version numbering scheme. Corresponds to the JSON property `epoch` @return [Fixnum]

inclusive[RW]

Whether this version is vulnerable, when defining the version bounds. For example, if the minimum version is 2.0, inclusive=true would say 2.0 is vulnerable, while inclusive=false would say it's not Corresponds to the JSON property `inclusive` @return [Boolean]

inclusive?[RW]

Whether this version is vulnerable, when defining the version bounds. For example, if the minimum version is 2.0, inclusive=true would say 2.0 is vulnerable, while inclusive=false would say it's not Corresponds to the JSON property `inclusive` @return [Boolean]

kind[RW]

Distinguish between sentinel MIN/MAX versions and normal versions. If kind is not NORMAL, then the other fields are ignored. Corresponds to the JSON property `kind` @return [String]

name[RW]

The main part of the version name. Corresponds to the JSON property `name` @return [String]

revision[RW]

The iteration of the package build from the above version. Corresponds to the JSON property `revision` @return [String]

Public Class Methods

new(**args) click to toggle source
# File lib/google/apis/containeranalysis_v1alpha1/classes.rb, line 3775
def initialize(**args)
   update!(**args)
end

Public Instance Methods

update!(**args) click to toggle source

Update properties of this object

# File lib/google/apis/containeranalysis_v1alpha1/classes.rb, line 3780
def update!(**args)
  @epoch = args[:epoch] if args.key?(:epoch)
  @inclusive = args[:inclusive] if args.key?(:inclusive)
  @kind = args[:kind] if args.key?(:kind)
  @name = args[:name] if args.key?(:name)
  @revision = args[:revision] if args.key?(:revision)
end