Class: Google::Apis::ContaineranalysisV1::Detail
- Inherits:
-
Object
- Object
- Google::Apis::ContaineranalysisV1::Detail
- Includes:
- Google::Apis::Core::Hashable, Google::Apis::Core::JsonObjectSupport
- Defined in:
- lib/google/apis/containeranalysis_v1/classes.rb,
lib/google/apis/containeranalysis_v1/representations.rb,
lib/google/apis/containeranalysis_v1/representations.rb
Overview
A detail for a distro and package affected by this vulnerability and its associated fix (if one is available).
Instance Attribute Summary collapse
-
#affected_cpe_uri ⇒ String
Required.
-
#affected_package ⇒ String
Required.
-
#affected_version_end ⇒ Google::Apis::ContaineranalysisV1::Version
Version contains structured information about the version of a package.
-
#affected_version_start ⇒ Google::Apis::ContaineranalysisV1::Version
Version contains structured information about the version of a package.
-
#description ⇒ String
A vendor-specific description of this vulnerability.
-
#fixed_cpe_uri ⇒ String
The distro recommended CPE URI to update to that contains a fix for this vulnerability.
-
#fixed_package ⇒ String
The distro recommended package to update to that contains a fix for this vulnerability.
-
#fixed_version ⇒ Google::Apis::ContaineranalysisV1::Version
Version contains structured information about the version of a package.
-
#is_obsolete ⇒ Boolean
(also: #is_obsolete?)
Whether this detail is obsolete.
-
#package_type ⇒ String
The type of package; whether native or non native (e.g., ruby gems, node.js packages, etc.).
-
#severity_name ⇒ String
The distro assigned severity of this vulnerability.
-
#source ⇒ String
The source from which the information in this Detail was obtained.
-
#source_update_time ⇒ String
The time this information was last changed at the source.
-
#vendor ⇒ String
The name of 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.
2650 2651 2652 |
# File 'lib/google/apis/containeranalysis_v1/classes.rb', line 2650 def initialize(**args) update!(**args) end |
Instance Attribute Details
#affected_cpe_uri ⇒ String
Required. The CPE URI this
vulnerability affects.
Corresponds to the JSON property affectedCpeUri
2574 2575 2576 |
# File 'lib/google/apis/containeranalysis_v1/classes.rb', line 2574 def affected_cpe_uri @affected_cpe_uri end |
#affected_package ⇒ String
Required. The package this vulnerability affects.
Corresponds to the JSON property affectedPackage
2579 2580 2581 |
# File 'lib/google/apis/containeranalysis_v1/classes.rb', line 2579 def affected_package @affected_package end |
#affected_version_end ⇒ Google::Apis::ContaineranalysisV1::Version
Version contains structured information about the version of a package.
Corresponds to the JSON property affectedVersionEnd
2584 2585 2586 |
# File 'lib/google/apis/containeranalysis_v1/classes.rb', line 2584 def affected_version_end @affected_version_end end |
#affected_version_start ⇒ Google::Apis::ContaineranalysisV1::Version
Version contains structured information about the version of a package.
Corresponds to the JSON property affectedVersionStart
2589 2590 2591 |
# File 'lib/google/apis/containeranalysis_v1/classes.rb', line 2589 def affected_version_start @affected_version_start end |
#description ⇒ String
A vendor-specific description of this vulnerability.
Corresponds to the JSON property description
2594 2595 2596 |
# File 'lib/google/apis/containeranalysis_v1/classes.rb', line 2594 def description @description end |
#fixed_cpe_uri ⇒ String
The distro recommended CPE URI to
update to that contains a fix for this vulnerability. It is possible for this
to be different from the affected_cpe_uri.
Corresponds to the JSON property fixedCpeUri
2601 2602 2603 |
# File 'lib/google/apis/containeranalysis_v1/classes.rb', line 2601 def fixed_cpe_uri @fixed_cpe_uri end |
#fixed_package ⇒ String
The distro recommended package to update to that contains a fix for this
vulnerability. It is possible for this to be different from the
affected_package.
Corresponds to the JSON property fixedPackage
2608 2609 2610 |
# File 'lib/google/apis/containeranalysis_v1/classes.rb', line 2608 def fixed_package @fixed_package end |
#fixed_version ⇒ Google::Apis::ContaineranalysisV1::Version
Version contains structured information about the version of a package.
Corresponds to the JSON property fixedVersion
2613 2614 2615 |
# File 'lib/google/apis/containeranalysis_v1/classes.rb', line 2613 def fixed_version @fixed_version 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
2619 2620 2621 |
# File 'lib/google/apis/containeranalysis_v1/classes.rb', line 2619 def is_obsolete @is_obsolete end |
#package_type ⇒ String
The type of package; whether native or non native (e.g., ruby gems, node.js
packages, etc.).
Corresponds to the JSON property packageType
2626 2627 2628 |
# File 'lib/google/apis/containeranalysis_v1/classes.rb', line 2626 def package_type @package_type end |
#severity_name ⇒ String
The distro assigned severity of this vulnerability.
Corresponds to the JSON property severityName
2631 2632 2633 |
# File 'lib/google/apis/containeranalysis_v1/classes.rb', line 2631 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
2636 2637 2638 |
# File 'lib/google/apis/containeranalysis_v1/classes.rb', line 2636 def source @source end |
#source_update_time ⇒ String
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
2643 2644 2645 |
# File 'lib/google/apis/containeranalysis_v1/classes.rb', line 2643 def source_update_time @source_update_time end |
#vendor ⇒ String
The name of the vendor of the product.
Corresponds to the JSON property vendor
2648 2649 2650 |
# File 'lib/google/apis/containeranalysis_v1/classes.rb', line 2648 def vendor @vendor end |
Instance Method Details
#update!(**args) ⇒ Object
Update properties of this object
2655 2656 2657 2658 2659 2660 2661 2662 2663 2664 2665 2666 2667 2668 2669 2670 |
# File 'lib/google/apis/containeranalysis_v1/classes.rb', line 2655 def update!(**args) @affected_cpe_uri = args[:affected_cpe_uri] if args.key?(:affected_cpe_uri) @affected_package = args[:affected_package] if args.key?(:affected_package) @affected_version_end = args[:affected_version_end] if args.key?(:affected_version_end) @affected_version_start = args[:affected_version_start] if args.key?(:affected_version_start) @description = args[:description] if args.key?(:description) @fixed_cpe_uri = args[:fixed_cpe_uri] if args.key?(:fixed_cpe_uri) @fixed_package = args[:fixed_package] if args.key?(:fixed_package) @fixed_version = args[:fixed_version] if args.key?(:fixed_version) @is_obsolete = args[:is_obsolete] if args.key?(:is_obsolete) @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) @source_update_time = args[:source_update_time] if args.key?(:source_update_time) @vendor = args[:vendor] if args.key?(:vendor) end |