ContainerScanResultSummary¶
- class oci.vulnerability_scanning.models.ContainerScanResultSummary(**kwargs)¶
Bases:
objectA summary of a result for a container scan
Attributes:
A constant which can be used with the highest_problem_severity property of a ContainerScanResultSummary.
A constant which can be used with the highest_problem_severity property of a ContainerScanResultSummary.
A constant which can be used with the highest_problem_severity property of a ContainerScanResultSummary.
A constant which can be used with the highest_problem_severity property of a ContainerScanResultSummary.
A constant which can be used with the highest_problem_severity property of a ContainerScanResultSummary.
[Required] Gets the compartment_id of this ContainerScanResultSummary.
Gets the container_scan_target_id of this ContainerScanResultSummary.
[Required] Gets the highest_problem_severity of this ContainerScanResultSummary.
[Required] Gets the id of this ContainerScanResultSummary.
[Required] Gets the image of this ContainerScanResultSummary.
[Required] Gets the problem_count of this ContainerScanResultSummary.
[Required] Gets the repository of this ContainerScanResultSummary.
[Required] Gets the time_finished of this ContainerScanResultSummary.
[Required] Gets the time_started of this ContainerScanResultSummary.
Methods:
__init__(**kwargs)Initializes a new ContainerScanResultSummary object with values from keyword arguments.
- HIGHEST_PROBLEM_SEVERITY_CRITICAL = 'CRITICAL'¶
A constant which can be used with the highest_problem_severity property of a ContainerScanResultSummary. This constant has a value of “CRITICAL”
- HIGHEST_PROBLEM_SEVERITY_HIGH = 'HIGH'¶
A constant which can be used with the highest_problem_severity property of a ContainerScanResultSummary. This constant has a value of “HIGH”
- HIGHEST_PROBLEM_SEVERITY_LOW = 'LOW'¶
A constant which can be used with the highest_problem_severity property of a ContainerScanResultSummary. This constant has a value of “LOW”
- HIGHEST_PROBLEM_SEVERITY_MEDIUM = 'MEDIUM'¶
A constant which can be used with the highest_problem_severity property of a ContainerScanResultSummary. This constant has a value of “MEDIUM”
- HIGHEST_PROBLEM_SEVERITY_NONE = 'NONE'¶
A constant which can be used with the highest_problem_severity property of a ContainerScanResultSummary. This constant has a value of “NONE”
- __init__(**kwargs)¶
Initializes a new ContainerScanResultSummary object with values from keyword arguments. The following keyword arguments are supported (corresponding to the getters/setters of this class):
- Parameters
id (str) – The value to assign to the id property of this ContainerScanResultSummary.
repository (str) – The value to assign to the repository property of this ContainerScanResultSummary.
image (str) – The value to assign to the image property of this ContainerScanResultSummary.
compartment_id (str) – The value to assign to the compartment_id property of this ContainerScanResultSummary.
container_scan_target_id (str) – The value to assign to the container_scan_target_id property of this ContainerScanResultSummary.
highest_problem_severity (str) – The value to assign to the highest_problem_severity property of this ContainerScanResultSummary. 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’.
problem_count (int) – The value to assign to the problem_count property of this ContainerScanResultSummary.
time_started (datetime) – The value to assign to the time_started property of this ContainerScanResultSummary.
time_finished (datetime) – The value to assign to the time_finished property of this ContainerScanResultSummary.
- property compartment_id¶
[Required] Gets the compartment_id of this ContainerScanResultSummary. The OCID of the container scan result’s compartment. This is set to the same as the compartmentId of the container scan target
- Returns
The compartment_id of this ContainerScanResultSummary.
- Return type
str
- property container_scan_target_id¶
Gets the container_scan_target_id of this ContainerScanResultSummary. The OCID of container scan target. Immutable and generated on creation.
- Returns
The container_scan_target_id of this ContainerScanResultSummary.
- Return type
str
- property highest_problem_severity¶
[Required] Gets the highest_problem_severity of this ContainerScanResultSummary. Highest problem severity in this report
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 highest_problem_severity of this ContainerScanResultSummary.
- Return type
str
- property id¶
[Required] Gets the id of this ContainerScanResultSummary. The OCID of container scan result. Immutable and generated on creation.
- Returns
The id of this ContainerScanResultSummary.
- Return type
str
- property image¶
[Required] Gets the image of this ContainerScanResultSummary. Image name
- Returns
The image of this ContainerScanResultSummary.
- Return type
str
- property problem_count¶
[Required] Gets the problem_count of this ContainerScanResultSummary. Total number of problems found in this scan
- Returns
The problem_count of this ContainerScanResultSummary.
- Return type
int
- property repository¶
[Required] Gets the repository of this ContainerScanResultSummary. Repository in which the container image scanned is located
- Returns
The repository of this ContainerScanResultSummary.
- Return type
str