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                   @   st   e 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dd„ Zdd„ Zdd„ ZdS )ÚUpdateDetailszÈ
    Details specifying which maintenance update to apply to the cloud VM cluster and which actions are to be performed by the maintenance update. Applies to Exadata Cloud Service instances only.
    ÚROLLING_APPLYÚNON_ROLLING_APPLYÚPRECHECKÚROLLBACKc                 K   s(   dddœ| _ dddœ| _d| _d| _dS )aV  
        Initializes a new UpdateDetails object with values from keyword arguments.
        The following keyword arguments are supported (corresponding to the getters/setters of this class):

        :param update_id:
            The value to assign to the update_id property of this UpdateDetails.
        :type update_id: str

        :param update_action:
            The value to assign to the update_action property of this UpdateDetails.
            Allowed values for this property are: "ROLLING_APPLY", "NON_ROLLING_APPLY", "PRECHECK", "ROLLBACK"
        :type update_action: str

        Ústr)Ú	update_idÚupdate_actionZupdateIdZupdateActionN)Zswagger_typesZattribute_mapÚ
_update_idÚ_update_action)ÚselfÚkwargs© r   úFusr/lib/python3.10/site-packages/oci/database/models/update_details.pyÚ__init__"   s   þþ
zUpdateDetails.__init__c                 C   ó   | j S )a
  
        Gets the update_id of this UpdateDetails.
        The `OCID`__ of the maintenance update.

        __ https://docs.cloud.oracle.com/Content/General/Concepts/identifiers.htm


        :return: The update_id of this UpdateDetails.
        :rtype: str
        ©r   ©r   r   r   r   r   >   ó   zUpdateDetails.update_idc                 C   s
   || _ dS )a  
        Sets the update_id of this UpdateDetails.
        The `OCID`__ of the maintenance update.

        __ https://docs.cloud.oracle.com/Content/General/Concepts/identifiers.htm


        :param update_id: The update_id of this UpdateDetails.
        :type: str
        Nr   )r   r   r   r   r   r   L   s   
c                 C   r   )a  
        Gets the update_action of this UpdateDetails.
        The update action.

        Allowed values for this property are: "ROLLING_APPLY", "NON_ROLLING_APPLY", "PRECHECK", "ROLLBACK"


        :return: The update_action of this UpdateDetails.
        :rtype: str
        )r   r   r   r   r   r   Z   r   zUpdateDetails.update_actionc                 C   s*   g d¢}t ||ƒstd |¡ƒ‚|| _dS )z¶
        Sets the update_action of this UpdateDetails.
        The update action.


        :param update_action: The update_action of this UpdateDetails.
        :type: str
        )r   r   r	   r
   z=Invalid value for `update_action`, must be None or one of {0}N)r   Ú
ValueErrorÚformatr   )r   r   Zallowed_valuesr   r   r   r   h   s   

þ
c                 C   s   t | ƒS ©N)r   r   r   r   r   Ú__repr__z   s   zUpdateDetails.__repr__c                 C   s   |d u rdS | j |j kS )NF)Ú__dict__©r   Úotherr   r   r   Ú__eq__}   s   zUpdateDetails.__eq__c                 C   s
   | |k S r   r   r   r   r   r   Ú__ne__ƒ   s   
zUpdateDetails.__ne__N)Ú__name__Ú
__module__Ú__qualname__Ú__doc__ZUPDATE_ACTION_ROLLING_APPLYZUPDATE_ACTION_NON_ROLLING_APPLYZUPDATE_ACTION_PRECHECKZUPDATE_ACTION_ROLLBACKr   Úpropertyr   Úsetterr   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   