ContainerScanResultProblem

class oci.vulnerability_scanning.models.ContainerScanResultProblem(**kwargs)

Bases: object

A problem found in a container scan

Attributes:

SEVERITY_CRITICAL

A constant which can be used with the severity property of a ContainerScanResultProblem.

SEVERITY_HIGH

A constant which can be used with the severity property of a ContainerScanResultProblem.

SEVERITY_LOW

A constant which can be used with the severity property of a ContainerScanResultProblem.

SEVERITY_MEDIUM

A constant which can be used with the severity property of a ContainerScanResultProblem.

SEVERITY_NONE

A constant which can be used with the severity property of a ContainerScanResultProblem.

STATE_FIXED

A constant which can be used with the state property of a ContainerScanResultProblem.

STATE_NOT_APPLICABLE

A constant which can be used with the state property of a ContainerScanResultProblem.

STATE_OPEN

A constant which can be used with the state property of a ContainerScanResultProblem.

cve_reference

Gets the cve_reference of this ContainerScanResultProblem.

description

Gets the description of this ContainerScanResultProblem.

name

[Required] Gets the name of this ContainerScanResultProblem.

severity

[Required] Gets the severity of this ContainerScanResultProblem.

state

Gets the state of this ContainerScanResultProblem.

time_first_detected

Gets the time_first_detected of this ContainerScanResultProblem.

time_last_detected

Gets the time_last_detected of this ContainerScanResultProblem.

vulnerable_packages

Gets the vulnerable_packages of this ContainerScanResultProblem.

Methods:

__init__(**kwargs)

Initializes a new ContainerScanResultProblem object with values from keyword arguments.

SEVERITY_CRITICAL = 'CRITICAL'

A constant which can be used with the severity property of a ContainerScanResultProblem. This constant has a value of “CRITICAL”

SEVERITY_HIGH = 'HIGH'

A constant which can be used with the severity property of a ContainerScanResultProblem. This constant has a value of “HIGH”

SEVERITY_LOW = 'LOW'

A constant which can be used with the severity property of a ContainerScanResultProblem. This constant has a value of “LOW”

SEVERITY_MEDIUM = 'MEDIUM'

A constant which can be used with the severity property of a ContainerScanResultProblem. This constant has a value of “MEDIUM”

SEVERITY_NONE = 'NONE'

A constant which can be used with the severity property of a ContainerScanResultProblem. This constant has a value of “NONE”

STATE_FIXED = 'FIXED'

A constant which can be used with the state property of a ContainerScanResultProblem. This constant has a value of “FIXED”

STATE_NOT_APPLICABLE = 'NOT_APPLICABLE'

A constant which can be used with the state property of a ContainerScanResultProblem. This constant has a value of “NOT_APPLICABLE”

STATE_OPEN = 'OPEN'

A constant which can be used with the state property of a ContainerScanResultProblem. This constant has a value of “OPEN”

__init__(**kwargs)

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

Parameters
  • name (str) – The value to assign to the name property of this ContainerScanResultProblem.

  • description (str) – The value to assign to the description property of this ContainerScanResultProblem.

  • severity (str) – The value to assign to the severity property of this ContainerScanResultProblem. Allowed values for this property are: “NONE”, “LOW”, “MEDIUM”, “HIGH”, “CRITICAL”, ‘UNKNOWN_ENUM_VALUE’. Any unrecognized values returned by a service will be mapped to ‘UNKNOWN_ENUM_VALUE’.

  • state (str) – The value to assign to the state property of this ContainerScanResultProblem. Allowed values for this property are: “OPEN”, “FIXED”, “NOT_APPLICABLE”, ‘UNKNOWN_ENUM_VALUE’. Any unrecognized values returned by a service will be mapped to ‘UNKNOWN_ENUM_VALUE’.

  • cve_reference (str) – The value to assign to the cve_reference property of this ContainerScanResultProblem.

  • time_first_detected (datetime) – The value to assign to the time_first_detected property of this ContainerScanResultProblem.

  • time_last_detected (datetime) – The value to assign to the time_last_detected property of this ContainerScanResultProblem.

  • vulnerable_packages (list[oci.vulnerability_scanning.models.Package]) – The value to assign to the vulnerable_packages property of this ContainerScanResultProblem.

property cve_reference

Gets the cve_reference of this ContainerScanResultProblem. Reference to problem MITRE CVE ID

Returns

The cve_reference of this ContainerScanResultProblem.

Return type

str

property description

Gets the description of this ContainerScanResultProblem. Problem description

Returns

The description of this ContainerScanResultProblem.

Return type

str

property name

[Required] Gets the name of this ContainerScanResultProblem. Name of the problem

Returns

The name of this ContainerScanResultProblem.

Return type

str

property severity

[Required] Gets the severity of this ContainerScanResultProblem. Problem severity

Allowed values for this property are: “NONE”, “LOW”, “MEDIUM”, “HIGH”, “CRITICAL”, ‘UNKNOWN_ENUM_VALUE’. Any unrecognized values returned by a service will be mapped to ‘UNKNOWN_ENUM_VALUE’.

Returns

The severity of this ContainerScanResultProblem.

Return type

str

property state

Gets the state of this ContainerScanResultProblem. State of the vulnerability

Allowed values for this property are: “OPEN”, “FIXED”, “NOT_APPLICABLE”, ‘UNKNOWN_ENUM_VALUE’. Any unrecognized values returned by a service will be mapped to ‘UNKNOWN_ENUM_VALUE’.

Returns

The state of this ContainerScanResultProblem.

Return type

str

property time_first_detected

Gets the time_first_detected of this ContainerScanResultProblem. Date of scan result that first reported the vulnerability

Returns

The time_first_detected of this ContainerScanResultProblem.

Return type

datetime

property time_last_detected

Gets the time_last_detected of this ContainerScanResultProblem. Date of scan result that most recently reported the vulnerability

Returns

The time_last_detected of this ContainerScanResultProblem.

Return type

datetime

property vulnerable_packages

Gets the vulnerable_packages of this ContainerScanResultProblem. Packages in which the problem is detected

Returns

The vulnerable_packages of this ContainerScanResultProblem.

Return type

list[oci.vulnerability_scanning.models.Package]