Class: Google::Apis::OsconfigV1alpha::VulnerabilityReportVulnerabilityDetails
- Inherits:
-
Object
- Object
- Google::Apis::OsconfigV1alpha::VulnerabilityReportVulnerabilityDetails
- Includes:
- Core::Hashable, Core::JsonObjectSupport
- Defined in:
- lib/google/apis/osconfig_v1alpha/classes.rb,
lib/google/apis/osconfig_v1alpha/representations.rb,
lib/google/apis/osconfig_v1alpha/representations.rb
Overview
Contains metadata information for the vulnerability. This information is collected from the upstream feed of the operating system.
Instance Attribute Summary collapse
-
#cve ⇒ String
The CVE of the vulnerability.
-
#cvss_v2_score ⇒ Float
The CVSS V2 score of this vulnerability.
-
#cvss_v3 ⇒ Google::Apis::OsconfigV1alpha::CvsSv3
Common Vulnerability Scoring System version 3.
-
#description ⇒ String
The note or description describing the vulnerability from the distro.
-
#references ⇒ Array<Google::Apis::OsconfigV1alpha::VulnerabilityReportVulnerabilityDetailsReference>
Corresponds to the references attached to the
VulnerabilityDetails
. -
#severity ⇒ String
Assigned severity/impact ranking from the distro.
Instance Method Summary collapse
-
#initialize(**args) ⇒ VulnerabilityReportVulnerabilityDetails
constructor
A new instance of VulnerabilityReportVulnerabilityDetails.
-
#update!(**args) ⇒ Object
Update properties of this object.
Constructor Details
#initialize(**args) ⇒ VulnerabilityReportVulnerabilityDetails
Returns a new instance of VulnerabilityReportVulnerabilityDetails.
2740 2741 2742 |
# File 'lib/google/apis/osconfig_v1alpha/classes.rb', line 2740 def initialize(**args) update!(**args) end |
Instance Attribute Details
#cve ⇒ String
The CVE of the vulnerability. CVE cannot be empty and the combination of
should be unique across vulnerabilities for a VM.
Corresponds to the JSON property cve
2711 2712 2713 |
# File 'lib/google/apis/osconfig_v1alpha/classes.rb', line 2711 def cve @cve end |
#cvss_v2_score ⇒ Float
The CVSS V2 score of this vulnerability. CVSS V2 score is on a scale of 0 - 10
where 0 indicates low severity and 10 indicates high severity.
Corresponds to the JSON property cvssV2Score
2717 2718 2719 |
# File 'lib/google/apis/osconfig_v1alpha/classes.rb', line 2717 def cvss_v2_score @cvss_v2_score end |
#cvss_v3 ⇒ Google::Apis::OsconfigV1alpha::CvsSv3
Common Vulnerability Scoring System version 3. For details, see https://www.
first.org/cvss/specification-document
Corresponds to the JSON property cvssV3
2723 2724 2725 |
# File 'lib/google/apis/osconfig_v1alpha/classes.rb', line 2723 def cvss_v3 @cvss_v3 end |
#description ⇒ String
The note or description describing the vulnerability from the distro.
Corresponds to the JSON property description
2728 2729 2730 |
# File 'lib/google/apis/osconfig_v1alpha/classes.rb', line 2728 def description @description end |
#references ⇒ Array<Google::Apis::OsconfigV1alpha::VulnerabilityReportVulnerabilityDetailsReference>
Corresponds to the references attached to the VulnerabilityDetails
.
Corresponds to the JSON property references
2733 2734 2735 |
# File 'lib/google/apis/osconfig_v1alpha/classes.rb', line 2733 def references @references end |
#severity ⇒ String
Assigned severity/impact ranking from the distro.
Corresponds to the JSON property severity
2738 2739 2740 |
# File 'lib/google/apis/osconfig_v1alpha/classes.rb', line 2738 def severity @severity end |
Instance Method Details
#update!(**args) ⇒ Object
Update properties of this object
2745 2746 2747 2748 2749 2750 2751 2752 |
# File 'lib/google/apis/osconfig_v1alpha/classes.rb', line 2745 def update!(**args) @cve = args[:cve] if args.key?(:cve) @cvss_v2_score = args[:cvss_v2_score] if args.key?(:cvss_v2_score) @cvss_v3 = args[:cvss_v3] if args.key?(:cvss_v3) @description = args[:description] if args.key?(:description) @references = args[:references] if args.key?(:references) @severity = args[:severity] if args.key?(:severity) end |