Server IP : 103.119.228.120 / Your IP : 3.16.69.243 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 Sighting(object): """ Sighting details. """ #: A constant which can be used with the classification_status property of a Sighting. #: This constant has a value of "FALSE_NEGATIVE" CLASSIFICATION_STATUS_FALSE_NEGATIVE = "FALSE_NEGATIVE" #: A constant which can be used with the classification_status property of a Sighting. #: This constant has a value of "TRUE_NEGATIVE" CLASSIFICATION_STATUS_TRUE_NEGATIVE = "TRUE_NEGATIVE" #: A constant which can be used with the classification_status property of a Sighting. #: This constant has a value of "FALSE_POSITIVE" CLASSIFICATION_STATUS_FALSE_POSITIVE = "FALSE_POSITIVE" #: A constant which can be used with the classification_status property of a Sighting. #: This constant has a value of "TRUE_POSITIVE" CLASSIFICATION_STATUS_TRUE_POSITIVE = "TRUE_POSITIVE" #: A constant which can be used with the classification_status property of a Sighting. #: This constant has a value of "NOT_CLASSIFIED" CLASSIFICATION_STATUS_NOT_CLASSIFIED = "NOT_CLASSIFIED" #: A constant which can be used with the severity property of a Sighting. #: This constant has a value of "CRITICAL" SEVERITY_CRITICAL = "CRITICAL" #: A constant which can be used with the severity property of a Sighting. #: This constant has a value of "HIGH" SEVERITY_HIGH = "HIGH" #: A constant which can be used with the severity property of a Sighting. #: This constant has a value of "MEDIUM" SEVERITY_MEDIUM = "MEDIUM" #: A constant which can be used with the severity property of a Sighting. #: This constant has a value of "LOW" SEVERITY_LOW = "LOW" #: A constant which can be used with the severity property of a Sighting. #: This constant has a value of "MINOR" SEVERITY_MINOR = "MINOR" #: A constant which can be used with the confidence property of a Sighting. #: This constant has a value of "CRITICAL" CONFIDENCE_CRITICAL = "CRITICAL" #: A constant which can be used with the confidence property of a Sighting. #: This constant has a value of "HIGH" CONFIDENCE_HIGH = "HIGH" #: A constant which can be used with the confidence property of a Sighting. #: This constant has a value of "MEDIUM" CONFIDENCE_MEDIUM = "MEDIUM" #: A constant which can be used with the confidence property of a Sighting. #: This constant has a value of "LOW" CONFIDENCE_LOW = "LOW" #: A constant which can be used with the confidence property of a Sighting. #: This constant has a value of "MINOR" CONFIDENCE_MINOR = "MINOR" def __init__(self, **kwargs): """ Initializes a new Sighting 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 Sighting. :type id: str :param description: The value to assign to the description property of this Sighting. :type description: str :param problem_id: The value to assign to the problem_id property of this Sighting. :type problem_id: str :param compartment_id: The value to assign to the compartment_id property of this Sighting. :type compartment_id: str :param actor_principal_id: The value to assign to the actor_principal_id property of this Sighting. :type actor_principal_id: str :param actor_principal_name: The value to assign to the actor_principal_name property of this Sighting. :type actor_principal_name: str :param actor_principal_type: The value to assign to the actor_principal_type property of this Sighting. :type actor_principal_type: str :param classification_status: The value to assign to the classification_status property of this Sighting. Allowed values for this property are: "FALSE_NEGATIVE", "TRUE_NEGATIVE", "FALSE_POSITIVE", "TRUE_POSITIVE", "NOT_CLASSIFIED", 'UNKNOWN_ENUM_VALUE'. Any unrecognized values returned by a service will be mapped to 'UNKNOWN_ENUM_VALUE'. :type classification_status: str :param sighting_type: The value to assign to the sighting_type property of this Sighting. :type sighting_type: str :param sighting_type_display_name: The value to assign to the sighting_type_display_name property of this Sighting. :type sighting_type_display_name: str :param tactic_name: The value to assign to the tactic_name property of this Sighting. :type tactic_name: str :param technique_name: The value to assign to the technique_name property of this Sighting. :type technique_name: str :param sighting_score: The value to assign to the sighting_score property of this Sighting. :type sighting_score: int :param severity: The value to assign to the severity property of this Sighting. 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 severity: str :param confidence: The value to assign to the confidence property of this Sighting. 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 confidence: str :param time_first_detected: The value to assign to the time_first_detected property of this Sighting. :type time_first_detected: datetime :param time_last_detected: The value to assign to the time_last_detected property of this Sighting. :type time_last_detected: datetime :param time_first_occurred: The value to assign to the time_first_occurred property of this Sighting. :type time_first_occurred: datetime :param time_last_occurred: The value to assign to the time_last_occurred property of this Sighting. :type time_last_occurred: datetime :param regions: The value to assign to the regions property of this Sighting. :type regions: list[str] :param additional_details: The value to assign to the additional_details property of this Sighting. :type additional_details: dict(str, str) :param locks: The value to assign to the locks property of this Sighting. :type locks: list[oci.cloud_guard.models.ResourceLock] """ self.swagger_types = { 'id': 'str', 'description': 'str', 'problem_id': 'str', 'compartment_id': 'str', 'actor_principal_id': 'str', 'actor_principal_name': 'str', 'actor_principal_type': 'str', 'classification_status': 'str', 'sighting_type': 'str', 'sighting_type_display_name': 'str', 'tactic_name': 'str', 'technique_name': 'str', 'sighting_score': 'int', 'severity': 'str', 'confidence': 'str', 'time_first_detected': 'datetime', 'time_last_detected': 'datetime', 'time_first_occurred': 'datetime', 'time_last_occurred': 'datetime', 'regions': 'list[str]', 'additional_details': 'dict(str, str)', 'locks': 'list[ResourceLock]' } self.attribute_map = { 'id': 'id', 'description': 'description', 'problem_id': 'problemId', 'compartment_id': 'compartmentId', 'actor_principal_id': 'actorPrincipalId', 'actor_principal_name': 'actorPrincipalName', 'actor_principal_type': 'actorPrincipalType', 'classification_status': 'classificationStatus', 'sighting_type': 'sightingType', 'sighting_type_display_name': 'sightingTypeDisplayName', 'tactic_name': 'tacticName', 'technique_name': 'techniqueName', 'sighting_score': 'sightingScore', 'severity': 'severity', 'confidence': 'confidence', 'time_first_detected': 'timeFirstDetected', 'time_last_detected': 'timeLastDetected', 'time_first_occurred': 'timeFirstOccurred', 'time_last_occurred': 'timeLastOccurred', 'regions': 'regions', 'additional_details': 'additionalDetails', 'locks': 'locks' } self._id = None self._description = None self._problem_id = None self._compartment_id = None self._actor_principal_id = None self._actor_principal_name = None self._actor_principal_type = None self._classification_status = None self._sighting_type = None self._sighting_type_display_name = None self._tactic_name = None self._technique_name = None self._sighting_score = None self._severity = None self._confidence = None self._time_first_detected = None self._time_last_detected = None self._time_first_occurred = None self._time_last_occurred = None self._regions = None self._additional_details = None self._locks = None @property def id(self): """ **[Required]** Gets the id of this Sighting. Unique identifier for the sighting :return: The id of this Sighting. :rtype: str """ return self._id @id.setter def id(self, id): """ Sets the id of this Sighting. Unique identifier for the sighting :param id: The id of this Sighting. :type: str """ self._id = id @property def description(self): """ **[Required]** Gets the description of this Sighting. Description of the sighting :return: The description of this Sighting. :rtype: str """ return self._description @description.setter def description(self, description): """ Sets the description of this Sighting. Description of the sighting :param description: The description of this Sighting. :type: str """ self._description = description @property def problem_id(self): """ Gets the problem_id of this Sighting. Problem ID associated the sighting :return: The problem_id of this Sighting. :rtype: str """ return self._problem_id @problem_id.setter def problem_id(self, problem_id): """ Sets the problem_id of this Sighting. Problem ID associated the sighting :param problem_id: The problem_id of this Sighting. :type: str """ self._problem_id = problem_id @property def compartment_id(self): """ **[Required]** Gets the compartment_id of this Sighting. Compartment OCID where the resource is created :return: The compartment_id of this Sighting. :rtype: str """ return self._compartment_id @compartment_id.setter def compartment_id(self, compartment_id): """ Sets the compartment_id of this Sighting. Compartment OCID where the resource is created :param compartment_id: The compartment_id of this Sighting. :type: str """ self._compartment_id = compartment_id @property def actor_principal_id(self): """ Gets the actor_principal_id of this Sighting. Unique identifier for principal actor :return: The actor_principal_id of this Sighting. :rtype: str """ return self._actor_principal_id @actor_principal_id.setter def actor_principal_id(self, actor_principal_id): """ Sets the actor_principal_id of this Sighting. Unique identifier for principal actor :param actor_principal_id: The actor_principal_id of this Sighting. :type: str """ self._actor_principal_id = actor_principal_id @property def actor_principal_name(self): """ Gets the actor_principal_name of this Sighting. Name of the principal actor :return: The actor_principal_name of this Sighting. :rtype: str """ return self._actor_principal_name @actor_principal_name.setter def actor_principal_name(self, actor_principal_name): """ Sets the actor_principal_name of this Sighting. Name of the principal actor :param actor_principal_name: The actor_principal_name of this Sighting. :type: str """ self._actor_principal_name = actor_principal_name @property def actor_principal_type(self): """ Gets the actor_principal_type of this Sighting. Type of the principal actor :return: The actor_principal_type of this Sighting. :rtype: str """ return self._actor_principal_type @actor_principal_type.setter def actor_principal_type(self, actor_principal_type): """ Sets the actor_principal_type of this Sighting. Type of the principal actor :param actor_principal_type: The actor_principal_type of this Sighting. :type: str """ self._actor_principal_type = actor_principal_type @property def classification_status(self): """ **[Required]** Gets the classification_status of this Sighting. Classification status of the sighting Allowed values for this property are: "FALSE_NEGATIVE", "TRUE_NEGATIVE", "FALSE_POSITIVE", "TRUE_POSITIVE", "NOT_CLASSIFIED", 'UNKNOWN_ENUM_VALUE'. Any unrecognized values returned by a service will be mapped to 'UNKNOWN_ENUM_VALUE'. :return: The classification_status of this Sighting. :rtype: str """ return self._classification_status @classification_status.setter def classification_status(self, classification_status): """ Sets the classification_status of this Sighting. Classification status of the sighting :param classification_status: The classification_status of this Sighting. :type: str """ allowed_values = ["FALSE_NEGATIVE", "TRUE_NEGATIVE", "FALSE_POSITIVE", "TRUE_POSITIVE", "NOT_CLASSIFIED"] if not value_allowed_none_or_none_sentinel(classification_status, allowed_values): classification_status = 'UNKNOWN_ENUM_VALUE' self._classification_status = classification_status @property def sighting_type(self): """ **[Required]** Gets the sighting_type of this Sighting. Type of sighting :return: The sighting_type of this Sighting. :rtype: str """ return self._sighting_type @sighting_type.setter def sighting_type(self, sighting_type): """ Sets the sighting_type of this Sighting. Type of sighting :param sighting_type: The sighting_type of this Sighting. :type: str """ self._sighting_type = sighting_type @property def sighting_type_display_name(self): """ **[Required]** Gets the sighting_type_display_name of this Sighting. Display name of the sighting type :return: The sighting_type_display_name of this Sighting. :rtype: str """ return self._sighting_type_display_name @sighting_type_display_name.setter def sighting_type_display_name(self, sighting_type_display_name): """ Sets the sighting_type_display_name of this Sighting. Display name of the sighting type :param sighting_type_display_name: The sighting_type_display_name of this Sighting. :type: str """ self._sighting_type_display_name = sighting_type_display_name @property def tactic_name(self): """ **[Required]** Gets the tactic_name of this Sighting. Name of the MITRE ATT@CK framework tactic :return: The tactic_name of this Sighting. :rtype: str """ return self._tactic_name @tactic_name.setter def tactic_name(self, tactic_name): """ Sets the tactic_name of this Sighting. Name of the MITRE ATT@CK framework tactic :param tactic_name: The tactic_name of this Sighting. :type: str """ self._tactic_name = tactic_name @property def technique_name(self): """ **[Required]** Gets the technique_name of this Sighting. Name of the MITRE ATT@CK framework technique :return: The technique_name of this Sighting. :rtype: str """ return self._technique_name @technique_name.setter def technique_name(self, technique_name): """ Sets the technique_name of this Sighting. Name of the MITRE ATT@CK framework technique :param technique_name: The technique_name of this Sighting. :type: str """ self._technique_name = technique_name @property def sighting_score(self): """ **[Required]** Gets the sighting_score of this Sighting. Score for the sighting :return: The sighting_score of this Sighting. :rtype: int """ return self._sighting_score @sighting_score.setter def sighting_score(self, sighting_score): """ Sets the sighting_score of this Sighting. Score for the sighting :param sighting_score: The sighting_score of this Sighting. :type: int """ self._sighting_score = sighting_score @property def severity(self): """ **[Required]** Gets the severity of this Sighting. Severity of the sighting 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 severity of this Sighting. :rtype: str """ return self._severity @severity.setter def severity(self, severity): """ Sets the severity of this Sighting. Severity of the sighting :param severity: The severity of this Sighting. :type: str """ allowed_values = ["CRITICAL", "HIGH", "MEDIUM", "LOW", "MINOR"] if not value_allowed_none_or_none_sentinel(severity, allowed_values): severity = 'UNKNOWN_ENUM_VALUE' self._severity = severity @property def confidence(self): """ **[Required]** Gets the confidence of this Sighting. Level of confidence that the sighting is not a false positive 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 confidence of this Sighting. :rtype: str """ return self._confidence @confidence.setter def confidence(self, confidence): """ Sets the confidence of this Sighting. Level of confidence that the sighting is not a false positive :param confidence: The confidence of this Sighting. :type: str """ allowed_values = ["CRITICAL", "HIGH", "MEDIUM", "LOW", "MINOR"] if not value_allowed_none_or_none_sentinel(confidence, allowed_values): confidence = 'UNKNOWN_ENUM_VALUE' self._confidence = confidence @property def time_first_detected(self): """ **[Required]** Gets the time_first_detected of this Sighting. Time the activities were first detected. Format defined by RFC3339. :return: The time_first_detected of this Sighting. :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 Sighting. Time the activities were first detected. Format defined by RFC3339. :param time_first_detected: The time_first_detected of this Sighting. :type: datetime """ self._time_first_detected = time_first_detected @property def time_last_detected(self): """ **[Required]** Gets the time_last_detected of this Sighting. Time the activities were last detected. Format defined by RFC3339. :return: The time_last_detected of this Sighting. :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 Sighting. Time the activities were last detected. Format defined by RFC3339. :param time_last_detected: The time_last_detected of this Sighting. :type: datetime """ self._time_last_detected = time_last_detected @property def time_first_occurred(self): """ Gets the time_first_occurred of this Sighting. Time the activities were first performed. Format defined by RFC3339. :return: The time_first_occurred of this Sighting. :rtype: datetime """ return self._time_first_occurred @time_first_occurred.setter def time_first_occurred(self, time_first_occurred): """ Sets the time_first_occurred of this Sighting. Time the activities were first performed. Format defined by RFC3339. :param time_first_occurred: The time_first_occurred of this Sighting. :type: datetime """ self._time_first_occurred = time_first_occurred @property def time_last_occurred(self): """ Gets the time_last_occurred of this Sighting. Time the activities were last performed. Format defined by RFC3339. :return: The time_last_occurred of this Sighting. :rtype: datetime """ return self._time_last_occurred @time_last_occurred.setter def time_last_occurred(self, time_last_occurred): """ Sets the time_last_occurred of this Sighting. Time the activities were last performed. Format defined by RFC3339. :param time_last_occurred: The time_last_occurred of this Sighting. :type: datetime """ self._time_last_occurred = time_last_occurred @property def regions(self): """ **[Required]** Gets the regions of this Sighting. List of regions involved in the sighting :return: The regions of this Sighting. :rtype: list[str] """ return self._regions @regions.setter def regions(self, regions): """ Sets the regions of this Sighting. List of regions involved in the sighting :param regions: The regions of this Sighting. :type: list[str] """ self._regions = regions @property def additional_details(self): """ Gets the additional_details of this Sighting. The additional details for the sighting :return: The additional_details of this Sighting. :rtype: dict(str, str) """ return self._additional_details @additional_details.setter def additional_details(self, additional_details): """ Sets the additional_details of this Sighting. The additional details for the sighting :param additional_details: The additional_details of this Sighting. :type: dict(str, str) """ self._additional_details = additional_details @property def locks(self): """ Gets the locks of this Sighting. Locks associated with this resource. :return: The locks of this Sighting. :rtype: list[oci.cloud_guard.models.ResourceLock] """ return self._locks @locks.setter def locks(self, locks): """ Sets the locks of this Sighting. Locks associated with this resource. :param locks: The locks of this Sighting. :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