Class: Google::Apis::ContaineranalysisV1beta1::Detail

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

Overview

Identifies all appearances 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.



925
926
927
# File 'generated/google/apis/containeranalysis_v1beta1/classes.rb', line 925

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

Instance Attribute Details

#cpe_uriString

Required. The CPE URI in cpe format in which the vulnerability manifests. Examples include distro or storage location for vulnerable jar. Corresponds to the JSON property cpeUri

Returns:

  • (String)


873
874
875
# File 'generated/google/apis/containeranalysis_v1beta1/classes.rb', line 873

def cpe_uri
  @cpe_uri
end

#descriptionString

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

Returns:

  • (String)


878
879
880
# File 'generated/google/apis/containeranalysis_v1beta1/classes.rb', line 878

def description
  @description
end

#fixed_locationGoogle::Apis::ContaineranalysisV1beta1::VulnerabilityLocation

The location of the vulnerability. Corresponds to the JSON property fixedLocation



883
884
885
# File 'generated/google/apis/containeranalysis_v1beta1/classes.rb', line 883

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)


889
890
891
# File 'generated/google/apis/containeranalysis_v1beta1/classes.rb', line 889

def is_obsolete
  @is_obsolete
end

#max_affected_versionGoogle::Apis::ContaineranalysisV1beta1::Version

Version contains structured information about the version of a package. Corresponds to the JSON property maxAffectedVersion



895
896
897
# File 'generated/google/apis/containeranalysis_v1beta1/classes.rb', line 895

def max_affected_version
  @max_affected_version
end

#min_affected_versionGoogle::Apis::ContaineranalysisV1beta1::Version

Version contains structured information about the version of a package. Corresponds to the JSON property minAffectedVersion



900
901
902
# File 'generated/google/apis/containeranalysis_v1beta1/classes.rb', line 900

def min_affected_version
  @min_affected_version
end

#packageString

Required. The name of the package where the vulnerability was found. Corresponds to the JSON property package

Returns:

  • (String)


905
906
907
# File 'generated/google/apis/containeranalysis_v1beta1/classes.rb', line 905

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)


911
912
913
# File 'generated/google/apis/containeranalysis_v1beta1/classes.rb', line 911

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)


916
917
918
# File 'generated/google/apis/containeranalysis_v1beta1/classes.rb', line 916

def severity_name
  @severity_name
end

#source_update_timeString

The time this information was last changed at the source. This is an upstream timestamp from the underlying information source - e.g. Ubuntu security tracker. Corresponds to the JSON property sourceUpdateTime

Returns:

  • (String)


923
924
925
# File 'generated/google/apis/containeranalysis_v1beta1/classes.rb', line 923

def source_update_time
  @source_update_time
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



930
931
932
933
934
935
936
937
938
939
940
941
# File 'generated/google/apis/containeranalysis_v1beta1/classes.rb', line 930

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_update_time = args[:source_update_time] if args.key?(:source_update_time)
end