o
    ɶdl                     @   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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 )ApprovalActionzL
    Information about the approval action of DevOps deployment stages.
    APPROVEREJECTc                 K   s2   dddd| _ dddd| _d| _d| _d| _dS )a  
        Initializes a new ApprovalAction object with values from keyword arguments.
        The following keyword arguments are supported (corresponding to the getters/setters of this class):

        :param subject_id:
            The value to assign to the subject_id property of this ApprovalAction.
        :type subject_id: str

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

        :param reason:
            The value to assign to the reason property of this ApprovalAction.
        :type reason: str

        str)
subject_idactionreasonZ	subjectIdr   r   N)Zswagger_typesZattribute_map_subject_id_action_reason)selfkwargs r   Eusr/lib/python3.10/site-packages/oci/devops/models/approval_action.py__init__   s   
zApprovalAction.__init__c                 C      | j S )z
        **[Required]** Gets the subject_id of this ApprovalAction.
        The subject ID of the user who approves or disapproves a DevOps deployment stage.


        :return: The subject_id of this ApprovalAction.
        :rtype: str
        r   r   r   r   r   r
   >      
zApprovalAction.subject_idc                 C   
   || _ dS )z
        Sets the subject_id of this ApprovalAction.
        The subject ID of the user who approves or disapproves a DevOps deployment stage.


        :param subject_id: The subject_id of this ApprovalAction.
        :type: str
        Nr   )r   r
   r   r   r   r
   J      

c                 C   r   )a  
        **[Required]** Gets the action of this ApprovalAction.
        The action of the user on the DevOps deployment stage.

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


        :return: The action of this ApprovalAction.
        :rtype: str
        )r   r   r   r   r   r   V   s   zApprovalAction.actionc                 C   s    ddg}t ||sd}|| _dS )z
        Sets the action of this ApprovalAction.
        The action of the user on the DevOps deployment stage.


        :param action: The action of this ApprovalAction.
        :type: str
        r   r   ZUNKNOWN_ENUM_VALUEN)r   r   )r   r   Zallowed_valuesr   r   r   r   e   s   


c                 C   r   )z
        Gets the reason of this ApprovalAction.
        The reason for approving or rejecting the deployment.


        :return: The reason of this ApprovalAction.
        :rtype: str
        r   r   r   r   r   r   t   r   zApprovalAction.reasonc                 C   r   )z
        Sets the reason of this ApprovalAction.
        The reason for approving or rejecting the deployment.


        :param reason: The reason of this ApprovalAction.
        :type: str
        Nr   )r   r   r   r   r   r      r   c                 C   s   t | S N)r   r   r   r   r   __repr__   s   zApprovalAction.__repr__c                 C   s   |d u rdS | j |j kS )NF)__dict__r   otherr   r   r   __eq__   s   zApprovalAction.__eq__c                 C   s
   | |k S r   r   r   r   r   r   __ne__   s   
zApprovalAction.__ne__N)__name__
__module____qualname____doc__ZACTION_APPROVEZACTION_REJECTr   propertyr
   setterr   r   r   r!   r"   r   r   r   r   r      s(    $





r   N)Zoci.utilr   r   r   Zoci.decoratorsr   objectr   r   r   r   r   <module>   s   