o
    ëÉ¶d®  ã                   @   s8   d dl mZmZmZ d dlmZ eG dd„ deƒƒZdS )é    )Úformatted_flat_dictÚNONE_SENTINELÚ#value_allowed_none_or_none_sentinel)Úinit_model_state_from_kwargsc                   @   sÖ   e Zd ZdZdZdZdZdZdZdZ	dZ
d	Zd
Zdd„ Zedd„ ƒZejdd„ ƒZedd„ ƒZejdd„ ƒZedd„ ƒZejdd„ ƒZedd„ ƒZejdd„ ƒZedd„ ƒZejdd„ ƒZdd„ Zdd„ Zd d!„ Zd"S )#ÚActivityLogzj
    The log of the action taken by different persona on the access request, e.g. approve/deny/revoke
    ÚLEVEL1ÚLEVEL2ÚLEVEL3ÚADMINÚOPERATORÚAPPROVEÚDENYÚREVOKEÚCANCELc                 K   sF   ddddddœ| _ ddddddœ| _d	| _d	| _d	| _d	| _d	| _d	S )
a  
        Initializes a new ActivityLog object with values from keyword arguments.
        The following keyword arguments are supported (corresponding to the getters/setters of this class):

        :param user_id:
            The value to assign to the user_id property of this ActivityLog.
        :type user_id: str

        :param user_level:
            The value to assign to the user_level property of this ActivityLog.
            Allowed values for this property are: "LEVEL1", "LEVEL2", "LEVEL3", "ADMIN", "OPERATOR", 'UNKNOWN_ENUM_VALUE'.
            Any unrecognized values returned by a service will be mapped to 'UNKNOWN_ENUM_VALUE'.
        :type user_level: str

        :param action:
            The value to assign to the action property of this ActivityLog.
            Allowed values for this property are: "APPROVE", "DENY", "REVOKE", "CANCEL", 'UNKNOWN_ENUM_VALUE'.
            Any unrecognized values returned by a service will be mapped to 'UNKNOWN_ENUM_VALUE'.
        :type action: str

        :param message:
            The value to assign to the message property of this ActivityLog.
        :type message: str

        :param time_updated:
            The value to assign to the time_updated property of this ActivityLog.
        :type time_updated: datetime

        ÚstrÚdatetime)Úuser_idÚ
user_levelÚactionÚmessageÚtime_updatedZuserIdZ	userLevelr   r   ZtimeUpdatedN)Zswagger_typesZattribute_mapÚ_user_idÚ_user_levelÚ_actionÚ_messageÚ_time_updated)ÚselfÚkwargs© r   úCusr/lib/python3.10/site-packages/oci/lockbox/models/activity_log.pyÚ__init__6   s"   û	û
zActivityLog.__init__c                 C   ó   | j S )z 
        Gets the user_id of this ActivityLog.
        User OCID of the persona


        :return: The user_id of this ActivityLog.
        :rtype: str
        ©r   ©r   r   r   r   r   j   ó   
zActivityLog.user_idc                 C   ó
   || _ dS )z¦
        Sets the user_id of this ActivityLog.
        User OCID of the persona


        :param user_id: The user_id of this ActivityLog.
        :type: str
        Nr"   )r   r   r   r   r   r   v   ó   

c                 C   r!   )ax  
        Gets the user_level of this ActivityLog.
        Level of the persona

        Allowed values for this property are: "LEVEL1", "LEVEL2", "LEVEL3", "ADMIN", "OPERATOR", 'UNKNOWN_ENUM_VALUE'.
        Any unrecognized values returned by a service will be mapped to 'UNKNOWN_ENUM_VALUE'.


        :return: The user_level of this ActivityLog.
        :rtype: str
        )r   r#   r   r   r   r   ‚   ó   zActivityLog.user_levelc                 C   ó    g d¢}t ||ƒsd}|| _dS )z«
        Sets the user_level of this ActivityLog.
        Level of the persona


        :param user_level: The user_level of this ActivityLog.
        :type: str
        )r   r   r	   r
   r   ÚUNKNOWN_ENUM_VALUEN)r   r   )r   r   Úallowed_valuesr   r   r   r   ‘   ó   


c                 C   r!   )aj  
        Gets the action of this ActivityLog.
        The action take by persona

        Allowed values for this property are: "APPROVE", "DENY", "REVOKE", "CANCEL", 'UNKNOWN_ENUM_VALUE'.
        Any unrecognized values returned by a service will be mapped to 'UNKNOWN_ENUM_VALUE'.


        :return: The action of this ActivityLog.
        :rtype: str
        )r   r#   r   r   r   r       r'   zActivityLog.actionc                 C   r(   )z¥
        Sets the action of this ActivityLog.
        The action take by persona


        :param action: The action of this ActivityLog.
        :type: str
        )r   r   r   r   r)   N)r   r   )r   r   r*   r   r   r   r   ¯   r+   c                 C   r!   )z¬
        Gets the message of this ActivityLog.
        The action justification or details.


        :return: The message of this ActivityLog.
        :rtype: str
        ©r   r#   r   r   r   r   ¾   r$   zActivityLog.messagec                 C   r%   )z²
        Sets the message of this ActivityLog.
        The action justification or details.


        :param message: The message of this ActivityLog.
        :type: str
        Nr,   )r   r   r   r   r   r   Ê   r&   c                 C   r!   )a3  
        Gets the time_updated of this ActivityLog.
        The time the action was taken. Format is defined by `RFC3339`__.
        Example: `2020-01-25T21:10:29.600Z`

        __ https://tools.ietf.org/html/rfc3339


        :return: The time_updated of this ActivityLog.
        :rtype: datetime
        ©r   r#   r   r   r   r   Ö   r'   zActivityLog.time_updatedc                 C   r%   )a>  
        Sets the time_updated of this ActivityLog.
        The time the action was taken. Format is defined by `RFC3339`__.
        Example: `2020-01-25T21:10:29.600Z`

        __ https://tools.ietf.org/html/rfc3339


        :param time_updated: The time_updated of this ActivityLog.
        :type: datetime
        Nr-   )r   r   r   r   r   r   å   s   
c                 C   s   t | ƒS ©N)r   r#   r   r   r   Ú__repr__ô   s   zActivityLog.__repr__c                 C   s   |d u rdS | j |j kS )NF)Ú__dict__©r   Úotherr   r   r   Ú__eq__÷   s   zActivityLog.__eq__c                 C   s
   | |k S r.   r   r1   r   r   r   Ú__ne__ý   s   
zActivityLog.__ne__N)Ú__name__Ú
__module__Ú__qualname__Ú__doc__ZUSER_LEVEL_LEVEL1ZUSER_LEVEL_LEVEL2ZUSER_LEVEL_LEVEL3ZUSER_LEVEL_ADMINZUSER_LEVEL_OPERATORZACTION_APPROVEZACTION_DENYZACTION_REVOKEZACTION_CANCELr    Úpropertyr   Úsetterr   r   r   r   r/   r3   r4   r   r   r   r   r      sF    4









r   N)Zoci.utilr   r   r   Zoci.decoratorsr   Úobjectr   r   r   r   r   Ú<module>   s   