Server IP : 103.119.228.120 / Your IP : 18.117.158.10 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/cloud_guard/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: 20200131 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 ProblemSummary(object): """ Summary information for a problem. """ #: A constant which can be used with the risk_level property of a ProblemSummary. #: This constant has a value of "CRITICAL" RISK_LEVEL_CRITICAL = "CRITICAL" #: A constant which can be used with the risk_level property of a ProblemSummary. #: This constant has a value of "HIGH" RISK_LEVEL_HIGH = "HIGH" #: A constant which can be used with the risk_level property of a ProblemSummary. #: This constant has a value of "MEDIUM" RISK_LEVEL_MEDIUM = "MEDIUM" #: A constant which can be used with the risk_level property of a ProblemSummary. #: This constant has a value of "LOW" RISK_LEVEL_LOW = "LOW" #: A constant which can be used with the risk_level property of a ProblemSummary. #: This constant has a value of "MINOR" RISK_LEVEL_MINOR = "MINOR" #: A constant which can be used with the lifecycle_state property of a ProblemSummary. #: This constant has a value of "ACTIVE" LIFECYCLE_STATE_ACTIVE = "ACTIVE" #: A constant which can be used with the lifecycle_state property of a ProblemSummary. #: This constant has a value of "INACTIVE" LIFECYCLE_STATE_INACTIVE = "INACTIVE" #: A constant which can be used with the lifecycle_detail property of a ProblemSummary. #: This constant has a value of "OPEN" LIFECYCLE_DETAIL_OPEN = "OPEN" #: A constant which can be used with the lifecycle_detail property of a ProblemSummary. #: This constant has a value of "RESOLVED" LIFECYCLE_DETAIL_RESOLVED = "RESOLVED" #: A constant which can be used with the lifecycle_detail property of a ProblemSummary. #: This constant has a value of "DISMISSED" LIFECYCLE_DETAIL_DISMISSED = "DISMISSED" #: A constant which can be used with the lifecycle_detail property of a ProblemSummary. #: This constant has a value of "DELETED" LIFECYCLE_DETAIL_DELETED = "DELETED" #: A constant which can be used with the detector_id property of a ProblemSummary. #: This constant has a value of "IAAS_ACTIVITY_DETECTOR" DETECTOR_ID_IAAS_ACTIVITY_DETECTOR = "IAAS_ACTIVITY_DETECTOR" #: A constant which can be used with the detector_id property of a ProblemSummary. #: This constant has a value of "IAAS_CONFIGURATION_DETECTOR" DETECTOR_ID_IAAS_CONFIGURATION_DETECTOR = "IAAS_CONFIGURATION_DETECTOR" #: A constant which can be used with the detector_id property of a ProblemSummary. #: This constant has a value of "IAAS_THREAT_DETECTOR" DETECTOR_ID_IAAS_THREAT_DETECTOR = "IAAS_THREAT_DETECTOR" #: A constant which can be used with the detector_id property of a ProblemSummary. #: This constant has a value of "IAAS_LOG_INSIGHT_DETECTOR" DETECTOR_ID_IAAS_LOG_INSIGHT_DETECTOR = "IAAS_LOG_INSIGHT_DETECTOR" #: A constant which can be used with the detector_id property of a ProblemSummary. #: This constant has a value of "IAAS_INSTANCE_SECURITY_DETECTOR" DETECTOR_ID_IAAS_INSTANCE_SECURITY_DETECTOR = "IAAS_INSTANCE_SECURITY_DETECTOR" def __init__(self, **kwargs): """ Initializes a new ProblemSummary 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 ProblemSummary. :type id: str :param compartment_id: The value to assign to the compartment_id property of this ProblemSummary. :type compartment_id: str :param detector_rule_id: The value to assign to the detector_rule_id property of this ProblemSummary. :type detector_rule_id: str :param risk_level: The value to assign to the risk_level property of this ProblemSummary. Allowed values for this property are: "CRITICAL", "HIGH", "MEDIUM", "LOW", "MINOR", 'UNKNOWN_ENUM_VALUE'. Any unrecognized values returned by a service will be mapped to 'UNKNOWN_ENUM_VALUE'. :type risk_level: str :param risk_score: The value to assign to the risk_score property of this ProblemSummary. :type risk_score: float :param resource_id: The value to assign to the resource_id property of this ProblemSummary. :type resource_id: str :param resource_name: The value to assign to the resource_name property of this ProblemSummary. :type resource_name: str :param resource_type: The value to assign to the resource_type property of this ProblemSummary. :type resource_type: str :param labels: The value to assign to the labels property of this ProblemSummary. :type labels: list[str] :param time_first_detected: The value to assign to the time_first_detected property of this ProblemSummary. :type time_first_detected: datetime :param time_last_detected: The value to assign to the time_last_detected property of this ProblemSummary. :type time_last_detected: datetime :param lifecycle_state: The value to assign to the lifecycle_state property of this ProblemSummary. Allowed values for this property are: "ACTIVE", "INACTIVE", 'UNKNOWN_ENUM_VALUE'. Any unrecognized values returned by a service will be mapped to 'UNKNOWN_ENUM_VALUE'. :type lifecycle_state: str :param lifecycle_detail: The value to assign to the lifecycle_detail property of this ProblemSummary. Allowed values for this property are: "OPEN", "RESOLVED", "DISMISSED", "DELETED", 'UNKNOWN_ENUM_VALUE'. Any unrecognized values returned by a service will be mapped to 'UNKNOWN_ENUM_VALUE'. :type lifecycle_detail: str :param detector_id: The value to assign to the detector_id property of this ProblemSummary. Allowed values for this property are: "IAAS_ACTIVITY_DETECTOR", "IAAS_CONFIGURATION_DETECTOR", "IAAS_THREAT_DETECTOR", "IAAS_LOG_INSIGHT_DETECTOR", "IAAS_INSTANCE_SECURITY_DETECTOR", 'UNKNOWN_ENUM_VALUE'. Any unrecognized values returned by a service will be mapped to 'UNKNOWN_ENUM_VALUE'. :type detector_id: str :param region: The value to assign to the region property of this ProblemSummary. :type region: str :param regions: The value to assign to the regions property of this ProblemSummary. :type regions: list[str] :param target_id: The value to assign to the target_id property of this ProblemSummary. :type target_id: str :param locks: The value to assign to the locks property of this ProblemSummary. :type locks: list[oci.cloud_guard.models.ResourceLock] """ self.swagger_types = { 'id': 'str', 'compartment_id': 'str', 'detector_rule_id': 'str', 'risk_level': 'str', 'risk_score': 'float', 'resource_id': 'str', 'resource_name': 'str', 'resource_type': 'str', 'labels': 'list[str]', 'time_first_detected': 'datetime', 'time_last_detected': 'datetime', 'lifecycle_state': 'str', 'lifecycle_detail': 'str', 'detector_id': 'str', 'region': 'str', 'regions': 'list[str]', 'target_id': 'str', 'locks': 'list[ResourceLock]' } self.attribute_map = { 'id': 'id', 'compartment_id': 'compartmentId', 'detector_rule_id': 'detectorRuleId', 'risk_level': 'riskLevel', 'risk_score': 'riskScore', 'resource_id': 'resourceId', 'resource_name': 'resourceName', 'resource_type': 'resourceType', 'labels': 'labels', 'time_first_detected': 'timeFirstDetected', 'time_last_detected': 'timeLastDetected', 'lifecycle_state': 'lifecycleState', 'lifecycle_detail': 'lifecycleDetail', 'detector_id': 'detectorId', 'region': 'region', 'regions': 'regions', 'target_id': 'targetId', 'locks': 'locks' } self._id = None self._compartment_id = None self._detector_rule_id = None self._risk_level = None self._risk_score = None self._resource_id = None self._resource_name = None self._resource_type = None self._labels = None self._time_first_detected = None self._time_last_detected = None self._lifecycle_state = None self._lifecycle_detail = None self._detector_id = None self._region = None self._regions = None self._target_id = None self._locks = None @property def id(self): """ **[Required]** Gets the id of this ProblemSummary. Unique identifier that can't be changed after creation :return: The id of this ProblemSummary. :rtype: str """ return self._id @id.setter def id(self, id): """ Sets the id of this ProblemSummary. Unique identifier that can't be changed after creation :param id: The id of this ProblemSummary. :type: str """ self._id = id @property def compartment_id(self): """ **[Required]** Gets the compartment_id of this ProblemSummary. Compartment OCID where the resource is created :return: The compartment_id of this ProblemSummary. :rtype: str """ return self._compartment_id @compartment_id.setter def compartment_id(self, compartment_id): """ Sets the compartment_id of this ProblemSummary. Compartment OCID where the resource is created :param compartment_id: The compartment_id of this ProblemSummary. :type: str """ self._compartment_id = compartment_id @property def detector_rule_id(self): """ Gets the detector_rule_id of this ProblemSummary. Unique identifier of the detector rule :return: The detector_rule_id of this ProblemSummary. :rtype: str """ return self._detector_rule_id @detector_rule_id.setter def detector_rule_id(self, detector_rule_id): """ Sets the detector_rule_id of this ProblemSummary. Unique identifier of the detector rule :param detector_rule_id: The detector_rule_id of this ProblemSummary. :type: str """ self._detector_rule_id = detector_rule_id @property def risk_level(self): """ Gets the risk_level of this ProblemSummary. The risk level of the problem Allowed values for this property are: "CRITICAL", "HIGH", "MEDIUM", "LOW", "MINOR", 'UNKNOWN_ENUM_VALUE'. Any unrecognized values returned by a service will be mapped to 'UNKNOWN_ENUM_VALUE'. :return: The risk_level of this ProblemSummary. :rtype: str """ return self._risk_level @risk_level.setter def risk_level(self, risk_level): """ Sets the risk_level of this ProblemSummary. The risk level of the problem :param risk_level: The risk_level of this ProblemSummary. :type: str """ allowed_values = ["CRITICAL", "HIGH", "MEDIUM", "LOW", "MINOR"] if not value_allowed_none_or_none_sentinel(risk_level, allowed_values): risk_level = 'UNKNOWN_ENUM_VALUE' self._risk_level = risk_level @property def risk_score(self): """ Gets the risk_score of this ProblemSummary. The risk score for the problem :return: The risk_score of this ProblemSummary. :rtype: float """ return self._risk_score @risk_score.setter def risk_score(self, risk_score): """ Sets the risk_score of this ProblemSummary. The risk score for the problem :param risk_score: The risk_score of this ProblemSummary. :type: float """ self._risk_score = risk_score @property def resource_id(self): """ Gets the resource_id of this ProblemSummary. Unique identifier of the resource that's impacted by the problem :return: The resource_id of this ProblemSummary. :rtype: str """ return self._resource_id @resource_id.setter def resource_id(self, resource_id): """ Sets the resource_id of this ProblemSummary. Unique identifier of the resource that's impacted by the problem :param resource_id: The resource_id of this ProblemSummary. :type: str """ self._resource_id = resource_id @property def resource_name(self): """ Gets the resource_name of this ProblemSummary. Display name of the resource impacted by the problem :return: The resource_name of this ProblemSummary. :rtype: str """ return self._resource_name @resource_name.setter def resource_name(self, resource_name): """ Sets the resource_name of this ProblemSummary. Display name of the resource impacted by the problem :param resource_name: The resource_name of this ProblemSummary. :type: str """ self._resource_name = resource_name @property def resource_type(self): """ Gets the resource_type of this ProblemSummary. Type of the resource impacted by the problem :return: The resource_type of this ProblemSummary. :rtype: str """ return self._resource_type @resource_type.setter def resource_type(self, resource_type): """ Sets the resource_type of this ProblemSummary. Type of the resource impacted by the problem :param resource_type: The resource_type of this ProblemSummary. :type: str """ self._resource_type = resource_type @property def labels(self): """ Gets the labels of this ProblemSummary. User-defined labels on the problem :return: The labels of this ProblemSummary. :rtype: list[str] """ return self._labels @labels.setter def labels(self, labels): """ Sets the labels of this ProblemSummary. User-defined labels on the problem :param labels: The labels of this ProblemSummary. :type: list[str] """ self._labels = labels @property def time_first_detected(self): """ Gets the time_first_detected of this ProblemSummary. The date and time the problem was first detected. Format defined by RFC3339. :return: The time_first_detected of this ProblemSummary. :rtype: datetime """ return self._time_first_detected @time_first_detected.setter def time_first_detected(self, time_first_detected): """ Sets the time_first_detected of this ProblemSummary. The date and time the problem was first detected. Format defined by RFC3339. :param time_first_detected: The time_first_detected of this ProblemSummary. :type: datetime """ self._time_first_detected = time_first_detected @property def time_last_detected(self): """ Gets the time_last_detected of this ProblemSummary. The date and time the problem was last detected. Format defined by RFC3339. :return: The time_last_detected of this ProblemSummary. :rtype: datetime """ return self._time_last_detected @time_last_detected.setter def time_last_detected(self, time_last_detected): """ Sets the time_last_detected of this ProblemSummary. The date and time the problem was last detected. Format defined by RFC3339. :param time_last_detected: The time_last_detected of this ProblemSummary. :type: datetime """ self._time_last_detected = time_last_detected @property def lifecycle_state(self): """ Gets the lifecycle_state of this ProblemSummary. The current lifecycle state of the problem Allowed values for this property are: "ACTIVE", "INACTIVE", 'UNKNOWN_ENUM_VALUE'. Any unrecognized values returned by a service will be mapped to 'UNKNOWN_ENUM_VALUE'. :return: The lifecycle_state of this ProblemSummary. :rtype: str """ return self._lifecycle_state @lifecycle_state.setter def lifecycle_state(self, lifecycle_state): """ Sets the lifecycle_state of this ProblemSummary. The current lifecycle state of the problem :param lifecycle_state: The lifecycle_state of this ProblemSummary. :type: str """ allowed_values = ["ACTIVE", "INACTIVE"] if not value_allowed_none_or_none_sentinel(lifecycle_state, allowed_values): lifecycle_state = 'UNKNOWN_ENUM_VALUE' self._lifecycle_state = lifecycle_state @property def lifecycle_detail(self): """ Gets the lifecycle_detail of this ProblemSummary. Additional details on the substate of the lifecycle state Allowed values for this property are: "OPEN", "RESOLVED", "DISMISSED", "DELETED", 'UNKNOWN_ENUM_VALUE'. Any unrecognized values returned by a service will be mapped to 'UNKNOWN_ENUM_VALUE'. :return: The lifecycle_detail of this ProblemSummary. :rtype: str """ return self._lifecycle_detail @lifecycle_detail.setter def lifecycle_detail(self, lifecycle_detail): """ Sets the lifecycle_detail of this ProblemSummary. Additional details on the substate of the lifecycle state :param lifecycle_detail: The lifecycle_detail of this ProblemSummary. :type: str """ allowed_values = ["OPEN", "RESOLVED", "DISMISSED", "DELETED"] if not value_allowed_none_or_none_sentinel(lifecycle_detail, allowed_values): lifecycle_detail = 'UNKNOWN_ENUM_VALUE' self._lifecycle_detail = lifecycle_detail @property def detector_id(self): """ Gets the detector_id of this ProblemSummary. Unique identifier of the detector associated with the problem Allowed values for this property are: "IAAS_ACTIVITY_DETECTOR", "IAAS_CONFIGURATION_DETECTOR", "IAAS_THREAT_DETECTOR", "IAAS_LOG_INSIGHT_DETECTOR", "IAAS_INSTANCE_SECURITY_DETECTOR", 'UNKNOWN_ENUM_VALUE'. Any unrecognized values returned by a service will be mapped to 'UNKNOWN_ENUM_VALUE'. :return: The detector_id of this ProblemSummary. :rtype: str """ return self._detector_id @detector_id.setter def detector_id(self, detector_id): """ Sets the detector_id of this ProblemSummary. Unique identifier of the detector associated with the problem :param detector_id: The detector_id of this ProblemSummary. :type: str """ allowed_values = ["IAAS_ACTIVITY_DETECTOR", "IAAS_CONFIGURATION_DETECTOR", "IAAS_THREAT_DETECTOR", "IAAS_LOG_INSIGHT_DETECTOR", "IAAS_INSTANCE_SECURITY_DETECTOR"] if not value_allowed_none_or_none_sentinel(detector_id, allowed_values): detector_id = 'UNKNOWN_ENUM_VALUE' self._detector_id = detector_id @property def region(self): """ Gets the region of this ProblemSummary. DEPRECATED :return: The region of this ProblemSummary. :rtype: str """ return self._region @region.setter def region(self, region): """ Sets the region of this ProblemSummary. DEPRECATED :param region: The region of this ProblemSummary. :type: str """ self._region = region @property def regions(self): """ Gets the regions of this ProblemSummary. List of regions where the problem is found :return: The regions of this ProblemSummary. :rtype: list[str] """ return self._regions @regions.setter def regions(self, regions): """ Sets the regions of this ProblemSummary. List of regions where the problem is found :param regions: The regions of this ProblemSummary. :type: list[str] """ self._regions = regions @property def target_id(self): """ Gets the target_id of this ProblemSummary. Unique target identifier associated with the problem :return: The target_id of this ProblemSummary. :rtype: str """ return self._target_id @target_id.setter def target_id(self, target_id): """ Sets the target_id of this ProblemSummary. Unique target identifier associated with the problem :param target_id: The target_id of this ProblemSummary. :type: str """ self._target_id = target_id @property def locks(self): """ Gets the locks of this ProblemSummary. Locks associated with this resource. :return: The locks of this ProblemSummary. :rtype: list[oci.cloud_guard.models.ResourceLock] """ return self._locks @locks.setter def locks(self, locks): """ Sets the locks of this ProblemSummary. Locks associated with this resource. :param locks: The locks of this ProblemSummary. :type: list[oci.cloud_guard.models.ResourceLock] """ self._locks = locks 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