Grafeas V1 API - Class Grafeas::V1::VulnerabilityOccurrence (v1.0.0)

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
Returns
  • (::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
Parameter
  • 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.
Returns
  • (::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
Returns

#cvss_v2=

def cvss_v2=(value) -> ::Grafeas::V1::CVSS
Parameter
Returns

#cvss_version

def cvss_version() -> ::Grafeas::V1::CVSSVersion
Returns

#cvss_version=

def cvss_version=(value) -> ::Grafeas::V1::CVSSVersion
Parameter
Returns

#cvssv3

def cvssv3() -> ::Grafeas::V1::CVSS
Returns

#cvssv3=

def cvssv3=(value) -> ::Grafeas::V1::CVSS
Parameter
Returns

#effective_severity

def effective_severity() -> ::Grafeas::V1::Severity
Returns
  • (::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
Parameter
  • 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.

Returns
  • (::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.

#extra_details

def extra_details() -> ::String
Returns
  • (::String) — Occurrence-specific extra details about the vulnerability.

#extra_details=

def extra_details=(value) -> ::String
Parameter
  • value (::String) — Occurrence-specific extra details about the vulnerability.
Returns
  • (::String) — Occurrence-specific extra details about the vulnerability.

#fix_available

def fix_available() -> ::Boolean
Returns
  • (::Boolean) — Output only. Whether at least one of the affected packages has a fix available.

#fix_available=

def fix_available=(value) -> ::Boolean
Parameter
  • value (::Boolean) — Output only. Whether at least one of the affected packages has a fix available.
Returns
  • (::Boolean) — Output only. Whether at least one of the affected packages has a fix available.

#long_description

def long_description() -> ::String
Returns
  • (::String) — Output only. A detailed description of this vulnerability.

#long_description=

def long_description=(value) -> ::String
Parameter
  • value (::String) — Output only. A detailed description of this vulnerability.
Returns
  • (::String) — Output only. A detailed description of this vulnerability.

#package_issue

def package_issue() -> ::Array<::Grafeas::V1::VulnerabilityOccurrence::PackageIssue>
Returns

#package_issue=

def package_issue=(value) -> ::Array<::Grafeas::V1::VulnerabilityOccurrence::PackageIssue>
Parameter
Returns
def related_urls() -> ::Array<::Grafeas::V1::RelatedUrl>
Returns
def related_urls=(value) -> ::Array<::Grafeas::V1::RelatedUrl>
Parameter
Returns

#severity

def severity() -> ::Grafeas::V1::Severity
Returns

#severity=

def severity=(value) -> ::Grafeas::V1::Severity
Parameter
Returns

#short_description

def short_description() -> ::String
Returns
  • (::String) — Output only. A one sentence description of this vulnerability.

#short_description=

def short_description=(value) -> ::String
Parameter
  • value (::String) — Output only. A one sentence description of this vulnerability.
Returns
  • (::String) — Output only. A one sentence description of this vulnerability.

#type

def type() -> ::String
Returns
  • (::String) — The type of package; whether native or non native (e.g., ruby gems, node.js packages, etc.).

#type=

def type=(value) -> ::String
Parameter
  • value (::String) — The type of package; whether native or non native (e.g., ruby gems, node.js packages, etc.).
Returns
  • (::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