Server IP : 103.119.228.120 / Your IP : 3.136.19.203 Web Server : Apache System : Linux v8.techscape8.com 3.10.0-1160.119.1.el7.tuxcare.els2.x86_64 #1 SMP Mon Jul 15 12:09:18 UTC 2024 x86_64 User : nobody ( 99) PHP Version : 5.6.40 Disable Function : shell_exec,symlink,system,exec,proc_get_status,proc_nice,proc_terminate,define_syslog_variables,syslog,openlog,closelog,escapeshellcmd,passthru,ocinum cols,ini_alter,leak,listen,chgrp,apache_note,apache_setenv,debugger_on,debugger_off,ftp_exec,dl,dll,myshellexec,proc_open,socket_bind,proc_close,escapeshellarg,parse_ini_filepopen,fpassthru,exec,passthru,escapeshellarg,escapeshellcmd,proc_close,proc_open,ini_alter,popen,show_source,proc_nice,proc_terminate,proc_get_status,proc_close,pfsockopen,leak,apache_child_terminate,posix_kill,posix_mkfifo,posix_setpgid,posix_setsid,posix_setuid,dl,symlink,shell_exec,system,dl,passthru,escapeshellarg,escapeshellcmd,myshellexec,c99_buff_prepare,c99_sess_put,fpassthru,getdisfunc,fx29exec,fx29exec2,is_windows,disp_freespace,fx29sh_getupdate,fx29_buff_prepare,fx29_sess_put,fx29shexit,fx29fsearch,fx29ftpbrutecheck,fx29sh_tools,fx29sh_about,milw0rm,imagez,sh_name,myshellexec,checkproxyhost,dosyayicek,c99_buff_prepare,c99_sess_put,c99getsource,c99sh_getupdate,c99fsearch,c99shexit,view_perms,posix_getpwuid,posix_getgrgid,posix_kill,parse_perms,parsesort,view_perms_color,set_encoder_input,ls_setcheckboxall,ls_reverse_all,rsg_read,rsg_glob,selfURL,dispsecinfo,unix2DosTime,addFile,system,get_users,view_size,DirFiles,DirFilesWide,DirPrintHTMLHeaders,GetFilesTotal,GetTitles,GetTimeTotal,GetMatchesCount,GetFileMatchesCount,GetResultFiles,fs_copy_dir,fs_copy_obj,fs_move_dir,fs_move_obj,fs_rmdir,SearchText,getmicrotime MySQL : ON | cURL : ON | WGET : ON | Perl : ON | Python : ON | Sudo : ON | Pkexec : ON Directory : /lib/mysqlsh/lib/python3.9/site-packages/oci/vulnerability_scanning/models/ |
Upload File : |
# coding: utf-8 # Copyright (c) 2016, 2024, Oracle and/or its affiliates. All rights reserved. # This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. # NOTE: This class is auto generated by OracleSDKGenerator. DO NOT EDIT. API Version: 20210215 from oci.util import formatted_flat_dict, NONE_SENTINEL, value_allowed_none_or_none_sentinel # noqa: F401 from oci.decorators import init_model_state_from_kwargs @init_model_state_from_kwargs class ContainerScanResult(object): """ A scan result for a container scan """ #: A constant which can be used with the highest_problem_severity property of a ContainerScanResult. #: This constant has a value of "NONE" HIGHEST_PROBLEM_SEVERITY_NONE = "NONE" #: A constant which can be used with the highest_problem_severity property of a ContainerScanResult. #: This constant has a value of "LOW" HIGHEST_PROBLEM_SEVERITY_LOW = "LOW" #: A constant which can be used with the highest_problem_severity property of a ContainerScanResult. #: This constant has a value of "MEDIUM" HIGHEST_PROBLEM_SEVERITY_MEDIUM = "MEDIUM" #: A constant which can be used with the highest_problem_severity property of a ContainerScanResult. #: This constant has a value of "HIGH" HIGHEST_PROBLEM_SEVERITY_HIGH = "HIGH" #: A constant which can be used with the highest_problem_severity property of a ContainerScanResult. #: This constant has a value of "CRITICAL" HIGHEST_PROBLEM_SEVERITY_CRITICAL = "CRITICAL" def __init__(self, **kwargs): """ Initializes a new ContainerScanResult object with values from keyword arguments. The following keyword arguments are supported (corresponding to the getters/setters of this class): :param id: The value to assign to the id property of this ContainerScanResult. :type id: str :param registry_url: The value to assign to the registry_url property of this ContainerScanResult. :type registry_url: str :param repository: The value to assign to the repository property of this ContainerScanResult. :type repository: str :param image: The value to assign to the image property of this ContainerScanResult. :type image: str :param compartment_id: The value to assign to the compartment_id property of this ContainerScanResult. :type compartment_id: str :param target_compartment_id: The value to assign to the target_compartment_id property of this ContainerScanResult. :type target_compartment_id: str :param container_scan_target_id: The value to assign to the container_scan_target_id property of this ContainerScanResult. :type container_scan_target_id: str :param highest_problem_severity: The value to assign to the highest_problem_severity property of this ContainerScanResult. 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'. :type highest_problem_severity: str :param problem_count: The value to assign to the problem_count property of this ContainerScanResult. :type problem_count: int :param time_started: The value to assign to the time_started property of this ContainerScanResult. :type time_started: datetime :param time_finished: The value to assign to the time_finished property of this ContainerScanResult. :type time_finished: datetime :param problems: The value to assign to the problems property of this ContainerScanResult. :type problems: list[oci.vulnerability_scanning.models.ContainerScanResultProblem] """ self.swagger_types = { 'id': 'str', 'registry_url': 'str', 'repository': 'str', 'image': 'str', 'compartment_id': 'str', 'target_compartment_id': 'str', 'container_scan_target_id': 'str', 'highest_problem_severity': 'str', 'problem_count': 'int', 'time_started': 'datetime', 'time_finished': 'datetime', 'problems': 'list[ContainerScanResultProblem]' } self.attribute_map = { 'id': 'id', 'registry_url': 'registryUrl', 'repository': 'repository', 'image': 'image', 'compartment_id': 'compartmentId', 'target_compartment_id': 'targetCompartmentId', 'container_scan_target_id': 'containerScanTargetId', 'highest_problem_severity': 'highestProblemSeverity', 'problem_count': 'problemCount', 'time_started': 'timeStarted', 'time_finished': 'timeFinished', 'problems': 'problems' } self._id = None self._registry_url = None self._repository = None self._image = None self._compartment_id = None self._target_compartment_id = None self._container_scan_target_id = None self._highest_problem_severity = None self._problem_count = None self._time_started = None self._time_finished = None self._problems = None @property def id(self): """ **[Required]** Gets the id of this ContainerScanResult. The `OCID`__ of container scan result. Immutable and generated on creation. __ https://docs.cloud.oracle.com/iaas/Content/General/Concepts/identifiers.htm :return: The id of this ContainerScanResult. :rtype: str """ return self._id @id.setter def id(self, id): """ Sets the id of this ContainerScanResult. The `OCID`__ of container scan result. Immutable and generated on creation. __ https://docs.cloud.oracle.com/iaas/Content/General/Concepts/identifiers.htm :param id: The id of this ContainerScanResult. :type: str """ self._id = id @property def registry_url(self): """ Gets the registry_url of this ContainerScanResult. The URL of the docker registry the repository is located in. :return: The registry_url of this ContainerScanResult. :rtype: str """ return self._registry_url @registry_url.setter def registry_url(self, registry_url): """ Sets the registry_url of this ContainerScanResult. The URL of the docker registry the repository is located in. :param registry_url: The registry_url of this ContainerScanResult. :type: str """ self._registry_url = registry_url @property def repository(self): """ **[Required]** Gets the repository of this ContainerScanResult. Repository in which the container image scanned is located :return: The repository of this ContainerScanResult. :rtype: str """ return self._repository @repository.setter def repository(self, repository): """ Sets the repository of this ContainerScanResult. Repository in which the container image scanned is located :param repository: The repository of this ContainerScanResult. :type: str """ self._repository = repository @property def image(self): """ **[Required]** Gets the image of this ContainerScanResult. Image name :return: The image of this ContainerScanResult. :rtype: str """ return self._image @image.setter def image(self, image): """ Sets the image of this ContainerScanResult. Image name :param image: The image of this ContainerScanResult. :type: str """ self._image = image @property def compartment_id(self): """ **[Required]** Gets the compartment_id of this ContainerScanResult. The `OCID`__ of the container scan result's compartment. This is set to the same as the compartmentId of the container scan target __ https://docs.cloud.oracle.com/iaas/Content/General/Concepts/identifiers.htm :return: The compartment_id of this ContainerScanResult. :rtype: str """ return self._compartment_id @compartment_id.setter def compartment_id(self, compartment_id): """ Sets the compartment_id of this ContainerScanResult. The `OCID`__ of the container scan result's compartment. This is set to the same as the compartmentId of the container scan target __ https://docs.cloud.oracle.com/iaas/Content/General/Concepts/identifiers.htm :param compartment_id: The compartment_id of this ContainerScanResult. :type: str """ self._compartment_id = compartment_id @property def target_compartment_id(self): """ Gets the target_compartment_id of this ContainerScanResult. The `OCID`__ of the compartment to where scan was performed. __ https://docs.cloud.oracle.com/iaas/Content/General/Concepts/identifiers.htm :return: The target_compartment_id of this ContainerScanResult. :rtype: str """ return self._target_compartment_id @target_compartment_id.setter def target_compartment_id(self, target_compartment_id): """ Sets the target_compartment_id of this ContainerScanResult. The `OCID`__ of the compartment to where scan was performed. __ https://docs.cloud.oracle.com/iaas/Content/General/Concepts/identifiers.htm :param target_compartment_id: The target_compartment_id of this ContainerScanResult. :type: str """ self._target_compartment_id = target_compartment_id @property def container_scan_target_id(self): """ Gets the container_scan_target_id of this ContainerScanResult. The `OCID`__ of container scan target. __ https://docs.cloud.oracle.com/iaas/Content/General/Concepts/identifiers.htm :return: The container_scan_target_id of this ContainerScanResult. :rtype: str """ return self._container_scan_target_id @container_scan_target_id.setter def container_scan_target_id(self, container_scan_target_id): """ Sets the container_scan_target_id of this ContainerScanResult. The `OCID`__ of container scan target. __ https://docs.cloud.oracle.com/iaas/Content/General/Concepts/identifiers.htm :param container_scan_target_id: The container_scan_target_id of this ContainerScanResult. :type: str """ self._container_scan_target_id = container_scan_target_id @property def highest_problem_severity(self): """ **[Required]** Gets the highest_problem_severity of this ContainerScanResult. 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'. :return: The highest_problem_severity of this ContainerScanResult. :rtype: str """ return self._highest_problem_severity @highest_problem_severity.setter def highest_problem_severity(self, highest_problem_severity): """ Sets the highest_problem_severity of this ContainerScanResult. Highest problem severity in this report :param highest_problem_severity: The highest_problem_severity of this ContainerScanResult. :type: str """ allowed_values = ["NONE", "LOW", "MEDIUM", "HIGH", "CRITICAL"] if not value_allowed_none_or_none_sentinel(highest_problem_severity, allowed_values): highest_problem_severity = 'UNKNOWN_ENUM_VALUE' self._highest_problem_severity = highest_problem_severity @property def problem_count(self): """ Gets the problem_count of this ContainerScanResult. Total number of problems found in this scan :return: The problem_count of this ContainerScanResult. :rtype: int """ return self._problem_count @problem_count.setter def problem_count(self, problem_count): """ Sets the problem_count of this ContainerScanResult. Total number of problems found in this scan :param problem_count: The problem_count of this ContainerScanResult. :type: int """ self._problem_count = problem_count @property def time_started(self): """ **[Required]** Gets the time_started of this ContainerScanResult. Date and time the scan was started, as described in `RFC 3339`__ __ https://tools.ietf.org/rfc/rfc3339 :return: The time_started of this ContainerScanResult. :rtype: datetime """ return self._time_started @time_started.setter def time_started(self, time_started): """ Sets the time_started of this ContainerScanResult. Date and time the scan was started, as described in `RFC 3339`__ __ https://tools.ietf.org/rfc/rfc3339 :param time_started: The time_started of this ContainerScanResult. :type: datetime """ self._time_started = time_started @property def time_finished(self): """ **[Required]** Gets the time_finished of this ContainerScanResult. Date and time the scan was completed, as described in `RFC 3339`__ __ https://tools.ietf.org/rfc/rfc3339 :return: The time_finished of this ContainerScanResult. :rtype: datetime """ return self._time_finished @time_finished.setter def time_finished(self, time_finished): """ Sets the time_finished of this ContainerScanResult. Date and time the scan was completed, as described in `RFC 3339`__ __ https://tools.ietf.org/rfc/rfc3339 :param time_finished: The time_finished of this ContainerScanResult. :type: datetime """ self._time_finished = time_finished @property def problems(self): """ **[Required]** Gets the problems of this ContainerScanResult. List of problems found in this scan :return: The problems of this ContainerScanResult. :rtype: list[oci.vulnerability_scanning.models.ContainerScanResultProblem] """ return self._problems @problems.setter def problems(self, problems): """ Sets the problems of this ContainerScanResult. List of problems found in this scan :param problems: The problems of this ContainerScanResult. :type: list[oci.vulnerability_scanning.models.ContainerScanResultProblem] """ self._problems = problems def __repr__(self): return formatted_flat_dict(self) def __eq__(self, other): if other is None: return False return self.__dict__ == other.__dict__ def __ne__(self, other): return not self == other