Reference documentation and code samples for the Grafeas V1 API class Grafeas::V1::VulnerabilityOccurrence.
An occurrence of a severity vulnerability on a resource.
Inherits
- Object
Extended By
- Google::Protobuf::MessageExts::ClassMethods
Includes
- Google::Protobuf::MessageExts
Methods
#cvss_score
def cvss_score() -> ::Float
- (::Float) — Output only. The CVSS score of this vulnerability. CVSS score is on a scale of 0 - 10 where 0 indicates low severity and 10 indicates high severity.
#cvss_score=
def cvss_score=(value) -> ::Float
- value (::Float) — Output only. The CVSS score of this vulnerability. CVSS score is on a scale of 0 - 10 where 0 indicates low severity and 10 indicates high severity.
- (::Float) — Output only. The CVSS score of this vulnerability. CVSS score is on a scale of 0 - 10 where 0 indicates low severity and 10 indicates high severity.
#cvss_v2
def cvss_v2() -> ::Grafeas::V1::CVSS
- (::Grafeas::V1::CVSS) — The cvss v2 score for the vulnerability.
#cvss_v2=
def cvss_v2=(value) -> ::Grafeas::V1::CVSS
- value (::Grafeas::V1::CVSS) — The cvss v2 score for the vulnerability.
- (::Grafeas::V1::CVSS) — The cvss v2 score for the vulnerability.
#cvss_version
def cvss_version() -> ::Grafeas::V1::CVSSVersion
- (::Grafeas::V1::CVSSVersion) — Output only. CVSS version used to populate cvss_score and severity.
#cvss_version=
def cvss_version=(value) -> ::Grafeas::V1::CVSSVersion
- value (::Grafeas::V1::CVSSVersion) — Output only. CVSS version used to populate cvss_score and severity.
- (::Grafeas::V1::CVSSVersion) — Output only. CVSS version used to populate cvss_score and severity.
#cvssv3
def cvssv3() -> ::Grafeas::V1::CVSS
- (::Grafeas::V1::CVSS) — The cvss v3 score for the vulnerability.
#cvssv3=
def cvssv3=(value) -> ::Grafeas::V1::CVSS
- value (::Grafeas::V1::CVSS) — The cvss v3 score for the vulnerability.
- (::Grafeas::V1::CVSS) — The cvss v3 score for the vulnerability.
#effective_severity
def effective_severity() -> ::Grafeas::V1::Severity
-
(::Grafeas::V1::Severity) — The distro assigned severity for this vulnerability when it is available,
otherwise this is the note provider assigned severity.
When there are multiple PackageIssues for this vulnerability, they can have different effective severities because some might be provided by the distro while others are provided by the language ecosystem for a language pack. For this reason, it is advised to use the effective severity on the PackageIssue level. In the case where multiple PackageIssues have differing effective severities, this field should be the highest severity for any of the PackageIssues.
#effective_severity=
def effective_severity=(value) -> ::Grafeas::V1::Severity
-
value (::Grafeas::V1::Severity) — The distro assigned severity for this vulnerability when it is available,
otherwise this is the note provider assigned severity.
When there are multiple PackageIssues for this vulnerability, they can have different effective severities because some might be provided by the distro while others are provided by the language ecosystem for a language pack. For this reason, it is advised to use the effective severity on the PackageIssue level. In the case where multiple PackageIssues have differing effective severities, this field should be the highest severity for any of the PackageIssues.
-
(::Grafeas::V1::Severity) — The distro assigned severity for this vulnerability when it is available,
otherwise this is the note provider assigned severity.
When there are multiple PackageIssues for this vulnerability, they can have different effective severities because some might be provided by the distro while others are provided by the language ecosystem for a language pack. For this reason, it is advised to use the effective severity on the PackageIssue level. In the case where multiple PackageIssues have differing effective severities, this field should be the highest severity for any of the PackageIssues.
#fix_available
def fix_available() -> ::Boolean
- (::Boolean) — Output only. Whether at least one of the affected packages has a fix available.
#fix_available=
def fix_available=(value) -> ::Boolean
- value (::Boolean) — Output only. Whether at least one of the affected packages has a fix available.
- (::Boolean) — Output only. Whether at least one of the affected packages has a fix available.
#long_description
def long_description() -> ::String
- (::String) — Output only. A detailed description of this vulnerability.
#long_description=
def long_description=(value) -> ::String
- value (::String) — Output only. A detailed description of this vulnerability.
- (::String) — Output only. A detailed description of this vulnerability.
#package_issue
def package_issue() -> ::Array<::Grafeas::V1::VulnerabilityOccurrence::PackageIssue>
- (::Array<::Grafeas::V1::VulnerabilityOccurrence::PackageIssue>) — Required. The set of affected locations and their fixes (if available) within the associated resource.
#package_issue=
def package_issue=(value) -> ::Array<::Grafeas::V1::VulnerabilityOccurrence::PackageIssue>
- value (::Array<::Grafeas::V1::VulnerabilityOccurrence::PackageIssue>) — Required. The set of affected locations and their fixes (if available) within the associated resource.
- (::Array<::Grafeas::V1::VulnerabilityOccurrence::PackageIssue>) — Required. The set of affected locations and their fixes (if available) within the associated resource.
#related_urls
def related_urls() -> ::Array<::Grafeas::V1::RelatedUrl>
- (::Array<::Grafeas::V1::RelatedUrl>) — Output only. URLs related to this vulnerability.
#related_urls=
def related_urls=(value) -> ::Array<::Grafeas::V1::RelatedUrl>
- value (::Array<::Grafeas::V1::RelatedUrl>) — Output only. URLs related to this vulnerability.
- (::Array<::Grafeas::V1::RelatedUrl>) — Output only. URLs related to this vulnerability.
#severity
def severity() -> ::Grafeas::V1::Severity
- (::Grafeas::V1::Severity) — Output only. The note provider assigned severity of this vulnerability.
#severity=
def severity=(value) -> ::Grafeas::V1::Severity
- value (::Grafeas::V1::Severity) — Output only. The note provider assigned severity of this vulnerability.
- (::Grafeas::V1::Severity) — Output only. The note provider assigned severity of this vulnerability.
#short_description
def short_description() -> ::String
- (::String) — Output only. A one sentence description of this vulnerability.
#short_description=
def short_description=(value) -> ::String
- value (::String) — Output only. A one sentence description of this vulnerability.
- (::String) — Output only. A one sentence description of this vulnerability.
#type
def type() -> ::String
- (::String) — The type of package; whether native or non native (e.g., ruby gems, node.js packages, etc.).
#type=
def type=(value) -> ::String
- value (::String) — The type of package; whether native or non native (e.g., ruby gems, node.js packages, etc.).
- (::String) — The type of package; whether native or non native (e.g., ruby gems, node.js packages, etc.).
#vex_assessment
def vex_assessment() -> ::Grafeas::V1::VulnerabilityOccurrence::VexAssessment
#vex_assessment=
def vex_assessment=(value) -> ::Grafeas::V1::VulnerabilityOccurrence::VexAssessment