Class: Google::Apis::ContaineranalysisV1alpha1::Detail

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

Overview

Identifies all occurrences of this vulnerability in the package for a specific distro/location For example: glibc in cpe:/o:debian:debian_linux:8 for versions 2.1 - 2.2

Instance Attribute Summary collapse

Instance Method Summary collapse

Methods included from Google::Apis::Core::JsonObjectSupport

#to_json

Methods included from Google::Apis::Core::Hashable

process_value, #to_h

Constructor Details

#initialize(**args) ⇒ Detail

Returns a new instance of Detail



822
823
824
# File 'generated/google/apis/containeranalysis_v1alpha1/classes.rb', line 822

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

Instance Attribute Details

#cpe_uriString

The cpe_uri in cpe format in which the vulnerability manifests. Examples include distro or storage location for vulnerable jar. This field can be used as a filter in list requests. Corresponds to the JSON property cpeUri

Returns:

  • (String)


768
769
770
# File 'generated/google/apis/containeranalysis_v1alpha1/classes.rb', line 768

def cpe_uri
  @cpe_uri
end

#descriptionString

A vendor-specific description of this note. Corresponds to the JSON property description

Returns:

  • (String)


773
774
775
# File 'generated/google/apis/containeranalysis_v1alpha1/classes.rb', line 773

def description
  @description
end

#fixed_locationGoogle::Apis::ContaineranalysisV1alpha1::VulnerabilityLocation

The location of the vulnerability Corresponds to the JSON property fixedLocation



778
779
780
# File 'generated/google/apis/containeranalysis_v1alpha1/classes.rb', line 778

def fixed_location
  @fixed_location
end

#is_obsoleteBoolean Also known as: is_obsolete?

Whether this Detail is obsolete. Occurrences are expected not to point to obsolete details. Corresponds to the JSON property isObsolete

Returns:

  • (Boolean)


784
785
786
# File 'generated/google/apis/containeranalysis_v1alpha1/classes.rb', line 784

def is_obsolete
  @is_obsolete
end

#max_affected_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 maxAffectedVersion



794
795
796
# File 'generated/google/apis/containeranalysis_v1alpha1/classes.rb', line 794

def max_affected_version
  @max_affected_version
end

#min_affected_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 minAffectedVersion



803
804
805
# File 'generated/google/apis/containeranalysis_v1alpha1/classes.rb', line 803

def min_affected_version
  @min_affected_version
end

#packageString

The name of the package where the vulnerability was found. This field can be used as a filter in list requests. Corresponds to the JSON property package

Returns:

  • (String)


809
810
811
# File 'generated/google/apis/containeranalysis_v1alpha1/classes.rb', line 809

def package
  @package
end

#package_typeString

The type of package; whether native or non native(ruby gems, node.js packages etc) Corresponds to the JSON property packageType

Returns:

  • (String)


815
816
817
# File 'generated/google/apis/containeranalysis_v1alpha1/classes.rb', line 815

def package_type
  @package_type
end

#severity_nameString

The severity (eg: distro assigned severity) for this vulnerability. Corresponds to the JSON property severityName

Returns:

  • (String)


820
821
822
# File 'generated/google/apis/containeranalysis_v1alpha1/classes.rb', line 820

def severity_name
  @severity_name
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



827
828
829
830
831
832
833
834
835
836
837
# File 'generated/google/apis/containeranalysis_v1alpha1/classes.rb', line 827

def update!(**args)
  @cpe_uri = args[:cpe_uri] if args.key?(:cpe_uri)
  @description = args[:description] if args.key?(:description)
  @fixed_location = args[:fixed_location] if args.key?(:fixed_location)
  @is_obsolete = args[:is_obsolete] if args.key?(:is_obsolete)
  @max_affected_version = args[:max_affected_version] if args.key?(:max_affected_version)
  @min_affected_version = args[:min_affected_version] if args.key?(:min_affected_version)
  @package = args[:package] if args.key?(:package)
  @package_type = args[:package_type] if args.key?(:package_type)
  @severity_name = args[:severity_name] if args.key?(:severity_name)
end