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                   @   sn  e 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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ed*d+ Zejd,d+ Zd-d. Zd/d0 Zd1d2 Zd3S )4ApprovalTemplatezr
    Group/User OCIDs of those who can approve/deny/revoke operator's request to access associated resources.
    ACTIVECREATINGUPDATINGDELETINGDELETEDFAILEDENABLEDDISABLEDc                 K   s   dddddddddddd| _ ddd	d
dddddddd| _d| _d| _d| _d| _d| _d| _d| _d| _	d| _
d| _d| _dS )aU	  
        Initializes a new ApprovalTemplate 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 ApprovalTemplate.
        :type id: str

        :param display_name:
            The value to assign to the display_name property of this ApprovalTemplate.
        :type display_name: str

        :param lifecycle_state:
            The value to assign to the lifecycle_state property of this ApprovalTemplate.
            Allowed values for this property are: "ACTIVE", "CREATING", "UPDATING", "DELETING", "DELETED", "FAILED", 'UNKNOWN_ENUM_VALUE'.
            Any unrecognized values returned by a service will be mapped to 'UNKNOWN_ENUM_VALUE'.
        :type lifecycle_state: str

        :param approver_levels:
            The value to assign to the approver_levels property of this ApprovalTemplate.
        :type approver_levels: oci.lockbox.models.ApproverLevels

        :param compartment_id:
            The value to assign to the compartment_id property of this ApprovalTemplate.
        :type compartment_id: str

        :param auto_approval_state:
            The value to assign to the auto_approval_state property of this ApprovalTemplate.
            Allowed values for this property are: "ENABLED", "DISABLED", 'UNKNOWN_ENUM_VALUE'.
            Any unrecognized values returned by a service will be mapped to 'UNKNOWN_ENUM_VALUE'.
        :type auto_approval_state: str

        :param time_created:
            The value to assign to the time_created property of this ApprovalTemplate.
        :type time_created: datetime

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

        :param freeform_tags:
            The value to assign to the freeform_tags property of this ApprovalTemplate.
        :type freeform_tags: dict(str, str)

        :param defined_tags:
            The value to assign to the defined_tags property of this ApprovalTemplate.
        :type defined_tags: dict(str, dict(str, object))

        :param system_tags:
            The value to assign to the system_tags property of this ApprovalTemplate.
        :type system_tags: dict(str, dict(str, object))

        strZApproverLevelsdatetimezdict(str, str)zdict(str, dict(str, object)))iddisplay_namelifecycle_stateapprover_levelscompartment_idauto_approval_statetime_createdtime_updatedfreeform_tagsdefined_tagssystem_tagsr   ZdisplayNameZlifecycleStateZapproverLevelsZcompartmentIdZautoApprovalStateZtimeCreatedZtimeUpdatedZfreeformTagsZdefinedTagsZ
systemTagsN)Zswagger_typesZattribute_map_id_display_name_lifecycle_state_approver_levels_compartment_id_auto_approval_state_time_created_time_updated_freeform_tags_defined_tags_system_tags)selfkwargs r)   Husr/lib/python3.10/site-packages/oci/lockbox/models/approval_template.py__init__2   sF   7
zApprovalTemplate.__init__c                 C      | j S )z
        **[Required]** Gets the id of this ApprovalTemplate.
        The unique identifier (OCID) of the approval template, which can't be changed after creation.


        :return: The id of this ApprovalTemplate.
        :rtype: str
        r   r'   r)   r)   r*   r         
zApprovalTemplate.idc                 C   
   || _ dS )z
        Sets the id of this ApprovalTemplate.
        The unique identifier (OCID) of the approval template, which can't be changed after creation.


        :param id: The id of this ApprovalTemplate.
        :type: str
        Nr-   )r'   r   r)   r)   r*   r         

c                 C   r,   )z
        **[Required]** Gets the display_name of this ApprovalTemplate.
        The approval template display name.


        :return: The display_name of this ApprovalTemplate.
        :rtype: str
        r   r.   r)   r)   r*   r      r/   zApprovalTemplate.display_namec                 C   r0   )z
        Sets the display_name of this ApprovalTemplate.
        The approval template display name.


        :param display_name: The display_name of this ApprovalTemplate.
        :type: str
        Nr2   )r'   r   r)   r)   r*   r      r1   c                 C   r,   )a  
        Gets the lifecycle_state of this ApprovalTemplate.
        The current state of the approval template.

        Allowed values for this property are: "ACTIVE", "CREATING", "UPDATING", "DELETING", "DELETED", "FAILED", 'UNKNOWN_ENUM_VALUE'.
        Any unrecognized values returned by a service will be mapped to 'UNKNOWN_ENUM_VALUE'.


        :return: The lifecycle_state of this ApprovalTemplate.
        :rtype: str
        )r   r.   r)   r)   r*   r         z ApprovalTemplate.lifecycle_statec                 C   s    g d}t ||sd}|| _dS )z
        Sets the lifecycle_state of this ApprovalTemplate.
        The current state of the approval template.


        :param lifecycle_state: The lifecycle_state of this ApprovalTemplate.
        :type: str
        )r   r   r	   r
   r   r   UNKNOWN_ENUM_VALUEN)r   r   )r'   r   allowed_valuesr)   r)   r*   r         


c                 C   r,   )z
        **[Required]** Gets the approver_levels of this ApprovalTemplate.

        :return: The approver_levels of this ApprovalTemplate.
        :rtype: oci.lockbox.models.ApproverLevels
        r   r.   r)   r)   r*   r      s   z ApprovalTemplate.approver_levelsc                 C   r0   )z
        Sets the approver_levels of this ApprovalTemplate.

        :param approver_levels: The approver_levels of this ApprovalTemplate.
        :type: oci.lockbox.models.ApproverLevels
        Nr7   )r'   r   r)   r)   r*   r      s   
c                 C   r,   )a  
        **[Required]** Gets the compartment_id of this ApprovalTemplate.
        The unique identifier (OCID) of the customer compartment where the approval template is located.


        :return: The compartment_id of this ApprovalTemplate.
        :rtype: str
        r    r.   r)   r)   r*   r      r/   zApprovalTemplate.compartment_idc                 C   r0   )a  
        Sets the compartment_id of this ApprovalTemplate.
        The unique identifier (OCID) of the customer compartment where the approval template is located.


        :param compartment_id: The compartment_id of this ApprovalTemplate.
        :type: str
        Nr8   )r'   r   r)   r)   r*   r      r1   c                 C   r,   )a  
        Gets the auto_approval_state of this ApprovalTemplate.
        The auto approval state of the lockbox.

        Allowed values for this property are: "ENABLED", "DISABLED", 'UNKNOWN_ENUM_VALUE'.
        Any unrecognized values returned by a service will be mapped to 'UNKNOWN_ENUM_VALUE'.


        :return: The auto_approval_state of this ApprovalTemplate.
        :rtype: str
        )r!   r.   r)   r)   r*   r   
  r3   z$ApprovalTemplate.auto_approval_statec                 C   s    ddg}t ||sd}|| _dS )z
        Sets the auto_approval_state of this ApprovalTemplate.
        The auto approval state of the lockbox.


        :param auto_approval_state: The auto_approval_state of this ApprovalTemplate.
        :type: str
        r   r   r4   N)r   r!   )r'   r   r5   r)   r)   r*   r     r6   c                 C   r,   )a  
        **[Required]** Gets the time_created of this ApprovalTemplate.
        The time the the approval template was created. An RFC3339 formatted datetime string


        :return: The time_created of this ApprovalTemplate.
        :rtype: datetime
        r"   r.   r)   r)   r*   r   (  r/   zApprovalTemplate.time_createdc                 C   r0   )a   
        Sets the time_created of this ApprovalTemplate.
        The time the the approval template was created. An RFC3339 formatted datetime string


        :param time_created: The time_created of this ApprovalTemplate.
        :type: datetime
        Nr9   )r'   r   r)   r)   r*   r   4  r1   c                 C   r,   )z
        Gets the time_updated of this ApprovalTemplate.
        The time the approval template was updated. An RFC3339 formatted datetime string


        :return: The time_updated of this ApprovalTemplate.
        :rtype: datetime
        r#   r.   r)   r)   r*   r   @  r/   zApprovalTemplate.time_updatedc                 C   r0   )z
        Sets the time_updated of this ApprovalTemplate.
        The time the approval template was updated. An RFC3339 formatted datetime string


        :param time_updated: The time_updated of this ApprovalTemplate.
        :type: datetime
        Nr:   )r'   r   r)   r)   r*   r   L  r1   c                 C   r,   )aG  
        Gets the freeform_tags of this ApprovalTemplate.
        Simple key-value pair that is applied without any predefined name, type or scope. Exists for cross-compatibility only.
        Example: `{"bar-key": "value"}`


        :return: The freeform_tags of this ApprovalTemplate.
        :rtype: dict(str, str)
        r$   r.   r)   r)   r*   r   X     zApprovalTemplate.freeform_tagsc                 C   r0   )aS  
        Sets the freeform_tags of this ApprovalTemplate.
        Simple key-value pair that is applied without any predefined name, type or scope. Exists for cross-compatibility only.
        Example: `{"bar-key": "value"}`


        :param freeform_tags: The freeform_tags of this ApprovalTemplate.
        :type: dict(str, str)
        Nr;   )r'   r   r)   r)   r*   r   e     
c                 C   r,   )aA  
        Gets the defined_tags of this ApprovalTemplate.
        Defined tags for this resource. Each key is predefined and scoped to a namespace.
        Example: `{"foo-namespace": {"bar-key": "value"}}`


        :return: The defined_tags of this ApprovalTemplate.
        :rtype: dict(str, dict(str, object))
        r%   r.   r)   r)   r*   r   r  r<   zApprovalTemplate.defined_tagsc                 C   r0   )aL  
        Sets the defined_tags of this ApprovalTemplate.
        Defined tags for this resource. Each key is predefined and scoped to a namespace.
        Example: `{"foo-namespace": {"bar-key": "value"}}`


        :param defined_tags: The defined_tags of this ApprovalTemplate.
        :type: dict(str, dict(str, object))
        Nr>   )r'   r   r)   r)   r*   r     r=   c                 C   r,   )a>  
        Gets the system_tags of this ApprovalTemplate.
        Usage of system tag keys. These predefined keys are scoped to namespaces.
        Example: `{"orcl-cloud": {"free-tier-retained": "true"}}`


        :return: The system_tags of this ApprovalTemplate.
        :rtype: dict(str, dict(str, object))
        r&   r.   r)   r)   r*   r     r<   zApprovalTemplate.system_tagsc                 C   r0   )aH  
        Sets the system_tags of this ApprovalTemplate.
        Usage of system tag keys. These predefined keys are scoped to namespaces.
        Example: `{"orcl-cloud": {"free-tier-retained": "true"}}`


        :param system_tags: The system_tags of this ApprovalTemplate.
        :type: dict(str, dict(str, object))
        Nr?   )r'   r   r)   r)   r*   r     r=   c                 C   s   t | S N)r   r.   r)   r)   r*   __repr__  s   zApprovalTemplate.__repr__c                 C   s   |d u rdS | j |j kS )NF)__dict__r'   otherr)   r)   r*   __eq__  s   zApprovalTemplate.__eq__c                 C   s
   | |k S r@   r)   rC   r)   r)   r*   __ne__  s   
zApprovalTemplate.__ne__N)__name__
__module____qualname____doc__ZLIFECYCLE_STATE_ACTIVEZLIFECYCLE_STATE_CREATINGZLIFECYCLE_STATE_UPDATINGZLIFECYCLE_STATE_DELETINGZLIFECYCLE_STATE_DELETEDZLIFECYCLE_STATE_FAILEDZAUTO_APPROVAL_STATE_ENABLEDZAUTO_APPROVAL_STATE_DISABLEDr+   propertyr   setterr   r   r   r   r   r   r   r   r   r   rA   rE   rF   r)   r)   r)   r*   r      st    ^






	
	













r   N)Zoci.utilr   r   r   Zoci.decoratorsr   objectr   r)   r)   r)   r*   <module>   s   