LibraryVulnerability

class oci.jms.models.LibraryVulnerability(**kwargs)

Bases: object

A library vulnerability.

Methods:

__init__(**kwargs)

Initializes a new LibraryVulnerability object with values from keyword arguments.

Attributes:

cvss_score

[Required] Gets the cvss_score of this LibraryVulnerability.

vulnerability_key

[Required] Gets the vulnerability_key of this LibraryVulnerability.

__init__(**kwargs)

Initializes a new LibraryVulnerability object with values from keyword arguments. The following keyword arguments are supported (corresponding to the getters/setters of this class):

Parameters
  • vulnerability_key (str) – The value to assign to the vulnerability_key property of this LibraryVulnerability.

  • cvss_score (float) – The value to assign to the cvss_score property of this LibraryVulnerability.

property cvss_score

[Required] Gets the cvss_score of this LibraryVulnerability. The Common Vulnerability Scoring System (CVSS) score. If cvssScore is not available, it will be set to -1.

Returns

The cvss_score of this LibraryVulnerability.

Return type

float

property vulnerability_key

[Required] Gets the vulnerability_key of this LibraryVulnerability. The Vulnerability Key, could be CVE or GitHub Security Advisory or others e.g. GHSA-1234-abcd-5678 or CVE-2019-1234

Returns

The vulnerability_key of this LibraryVulnerability.

Return type

str