Class: Google::Apis::ContaineranalysisV1alpha1::Location

Inherits:
Object
  • Object
show all
Includes:
Google::Apis::Core::Hashable, Google::Apis::Core::JsonObjectSupport
Defined in:
lib/google/apis/containeranalysis_v1alpha1/classes.rb,
lib/google/apis/containeranalysis_v1alpha1/representations.rb,
lib/google/apis/containeranalysis_v1alpha1/representations.rb

Overview

An occurrence of a particular package installation found within a system's filesystem. e.g. glibc was found in /var/lib/dpkg/status

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(**args) ⇒ Location

Returns a new instance of Location.



3547
3548
3549
# File 'lib/google/apis/containeranalysis_v1alpha1/classes.rb', line 3547

def initialize(**args)
   update!(**args)
end

Instance Attribute Details

#cpe_uriString

The cpe_uri in cpe format denoting the package manager version distributing a package. Corresponds to the JSON property cpeUri

Returns:

  • (String)


3532
3533
3534
# File 'lib/google/apis/containeranalysis_v1alpha1/classes.rb', line 3532

def cpe_uri
  @cpe_uri
end

#pathString

The path from which we gathered that this package/version is installed. Corresponds to the JSON property path

Returns:

  • (String)


3537
3538
3539
# File 'lib/google/apis/containeranalysis_v1alpha1/classes.rb', line 3537

def path
  @path
end

#versionGoogle::Apis::ContaineranalysisV1alpha1::Version

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



3545
3546
3547
# File 'lib/google/apis/containeranalysis_v1alpha1/classes.rb', line 3545

def version
  @version
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



3552
3553
3554
3555
3556
# File 'lib/google/apis/containeranalysis_v1alpha1/classes.rb', line 3552

def update!(**args)
  @cpe_uri = args[:cpe_uri] if args.key?(:cpe_uri)
  @path = args[:path] if args.key?(:path)
  @version = args[:version] if args.key?(:version)
end