Class: Google::Apis::ContaineranalysisV1alpha1::Detail
- Inherits:
 - 
      Object
      
        
- Object
 - Google::Apis::ContaineranalysisV1alpha1::Detail
 
 
- 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
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
- 
  
    
      #cpe_uri  ⇒ String 
    
    
  
  
  
  
    
    
  
  
  
  
  
  
    
The cpe_uri in cpe format in which the vulnerability manifests.
 - 
  
    
      #description  ⇒ String 
    
    
  
  
  
  
    
    
  
  
  
  
  
  
    
A vendor-specific description of this note.
 - 
  
    
      #fixed_location  ⇒ Google::Apis::ContaineranalysisV1alpha1::VulnerabilityLocation 
    
    
  
  
  
  
    
    
  
  
  
  
  
  
    
The location of the vulnerability Corresponds to the JSON property
fixedLocation. - 
  
    
      #is_obsolete  ⇒ Boolean 
    
    
      (also: #is_obsolete?)
    
  
  
  
  
    
    
  
  
  
  
  
  
    
Whether this Detail is obsolete.
 - 
  
    
      #max_affected_version  ⇒ Google::Apis::ContaineranalysisV1alpha1::Version 
    
    
  
  
  
  
    
    
  
  
  
  
  
  
    
Version contains structured information about the version of the package.
 - 
  
    
      #min_affected_version  ⇒ Google::Apis::ContaineranalysisV1alpha1::Version 
    
    
  
  
  
  
    
    
  
  
  
  
  
  
    
Version contains structured information about the version of the package.
 - 
  
    
      #package  ⇒ String 
    
    
  
  
  
  
    
    
  
  
  
  
  
  
    
The name of the package where the vulnerability was found.
 - 
  
    
      #package_type  ⇒ String 
    
    
  
  
  
  
    
    
  
  
  
  
  
  
    
The type of package; whether native or non native(ruby gems, node.js packages etc) Corresponds to the JSON property
packageType. - 
  
    
      #severity_name  ⇒ String 
    
    
  
  
  
  
    
    
  
  
  
  
  
  
    
The severity (eg: distro assigned severity) for this vulnerability.
 - 
  
    
      #source  ⇒ String 
    
    
  
  
  
  
    
    
  
  
  
  
  
  
    
The source from which the information in this Detail was obtained.
 - 
  
    
      #vendor  ⇒ String 
    
    
  
  
  
  
    
    
  
  
  
  
  
  
    
The vendor of the product.
 
Instance Method Summary collapse
- 
  
    
      #initialize(**args)  ⇒ Detail 
    
    
  
  
  
    constructor
  
  
  
  
  
  
  
    
A new instance of Detail.
 - 
  
    
      #update!(**args)  ⇒ Object 
    
    
  
  
  
  
  
  
  
  
  
    
Update properties of this object.
 
Constructor Details
#initialize(**args) ⇒ Detail
Returns a new instance of Detail.
      3251 3252 3253  | 
    
      # File 'lib/google/apis/containeranalysis_v1alpha1/classes.rb', line 3251 def initialize(**args) update!(**args) end  | 
  
Instance Attribute Details
#cpe_uri ⇒ String
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
      3189 3190 3191  | 
    
      # File 'lib/google/apis/containeranalysis_v1alpha1/classes.rb', line 3189 def cpe_uri @cpe_uri end  | 
  
#description ⇒ String
A vendor-specific description of this note.
Corresponds to the JSON property description
      3194 3195 3196  | 
    
      # File 'lib/google/apis/containeranalysis_v1alpha1/classes.rb', line 3194 def description @description end  | 
  
#fixed_location ⇒ Google::Apis::ContaineranalysisV1alpha1::VulnerabilityLocation
The location of the vulnerability
Corresponds to the JSON property fixedLocation
      3199 3200 3201  | 
    
      # File 'lib/google/apis/containeranalysis_v1alpha1/classes.rb', line 3199 def fixed_location @fixed_location end  | 
  
#is_obsolete ⇒ Boolean 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
      3205 3206 3207  | 
    
      # File 'lib/google/apis/containeranalysis_v1alpha1/classes.rb', line 3205 def is_obsolete @is_obsolete end  | 
  
#max_affected_version ⇒ Google::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
      3214 3215 3216  | 
    
      # File 'lib/google/apis/containeranalysis_v1alpha1/classes.rb', line 3214 def max_affected_version @max_affected_version end  | 
  
#min_affected_version ⇒ Google::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
      3222 3223 3224  | 
    
      # File 'lib/google/apis/containeranalysis_v1alpha1/classes.rb', line 3222 def min_affected_version @min_affected_version end  | 
  
#package ⇒ String
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
      3228 3229 3230  | 
    
      # File 'lib/google/apis/containeranalysis_v1alpha1/classes.rb', line 3228 def package @package end  | 
  
#package_type ⇒ String
The type of package; whether native or non native(ruby gems, node.js packages
etc)
Corresponds to the JSON property packageType
      3234 3235 3236  | 
    
      # File 'lib/google/apis/containeranalysis_v1alpha1/classes.rb', line 3234 def package_type @package_type end  | 
  
#severity_name ⇒ String
The severity (eg: distro assigned severity) for this vulnerability.
Corresponds to the JSON property severityName
      3239 3240 3241  | 
    
      # File 'lib/google/apis/containeranalysis_v1alpha1/classes.rb', line 3239 def severity_name @severity_name end  | 
  
#source ⇒ String
The source from which the information in this Detail was obtained.
Corresponds to the JSON property source
      3244 3245 3246  | 
    
      # File 'lib/google/apis/containeranalysis_v1alpha1/classes.rb', line 3244 def source @source end  | 
  
#vendor ⇒ String
The vendor of the product. e.g. "google"
Corresponds to the JSON property vendor
      3249 3250 3251  | 
    
      # File 'lib/google/apis/containeranalysis_v1alpha1/classes.rb', line 3249 def vendor @vendor end  | 
  
Instance Method Details
#update!(**args) ⇒ Object
Update properties of this object
      3256 3257 3258 3259 3260 3261 3262 3263 3264 3265 3266 3267 3268  | 
    
      # File 'lib/google/apis/containeranalysis_v1alpha1/classes.rb', line 3256 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) @source = args[:source] if args.key?(:source) @vendor = args[:vendor] if args.key?(:vendor) end  |