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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 )ÚPatchDetailszã
    The details about what actions to perform and using what patch to the specified target.
    This is part of an update request that is applied to a version field on the target such
    as DB system, Database Home, etc.
    ÚAPPLYÚPRECHECKc                 K   s2   ddddœ| _ ddddœ| _d| _d| _d| _dS )aÍ  
        Initializes a new PatchDetails object with values from keyword arguments.
        The following keyword arguments are supported (corresponding to the getters/setters of this class):

        :param patch_id:
            The value to assign to the patch_id property of this PatchDetails.
        :type patch_id: str

        :param database_software_image_id:
            The value to assign to the database_software_image_id property of this PatchDetails.
        :type database_software_image_id: str

        :param action:
            The value to assign to the action property of this PatchDetails.
            Allowed values for this property are: "APPLY", "PRECHECK"
        :type action: str

        Ústr)Úpatch_idÚdatabase_software_image_idÚactionZpatchIdZdatabaseSoftwareImageIdr   N)Zswagger_typesZattribute_mapÚ	_patch_idÚ_database_software_image_idÚ_action)ÚselfÚkwargs© r   úEusr/lib/python3.10/site-packages/oci/database/models/patch_details.pyÚ__init__   s   ýý
zPatchDetails.__init__c                 C   ó   | j S )zù
        Gets the patch_id of this PatchDetails.
        The `OCID`__ of the patch.

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


        :return: The patch_id of this PatchDetails.
        :rtype: str
        ©r   ©r   r   r   r   r
   ?   ó   zPatchDetails.patch_idc                 C   ó
   || _ dS )a   
        Sets the patch_id of this PatchDetails.
        The `OCID`__ of the patch.

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


        :param patch_id: The patch_id of this PatchDetails.
        :type: str
        Nr   )r   r
   r   r   r   r
   M   ó   
c                 C   r   )a/  
        Gets the database_software_image_id of this PatchDetails.
        The `OCID`__ of the database software image.

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


        :return: The database_software_image_id of this PatchDetails.
        :rtype: str
        ©r   r   r   r   r   r   [   r   z'PatchDetails.database_software_image_idc                 C   r   )aH  
        Sets the database_software_image_id of this PatchDetails.
        The `OCID`__ of the database software image.

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


        :param database_software_image_id: The database_software_image_id of this PatchDetails.
        :type: str
        Nr   )r   r   r   r   r   r   i   r   c                 C   r   )zî
        Gets the action of this PatchDetails.
        The action to perform on the patch.

        Allowed values for this property are: "APPLY", "PRECHECK"


        :return: The action of this PatchDetails.
        :rtype: str
        )r   r   r   r   r   r   w   r   zPatchDetails.actionc                 C   s*   ddg}t ||ƒstd |¡ƒ‚|| _dS )z°
        Sets the action of this PatchDetails.
        The action to perform on the patch.


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

þ
c                 C   s   t | ƒS ©N)r   r   r   r   r   Ú__repr__—   s   zPatchDetails.__repr__c                 C   s   |d u rdS | j |j kS )NF)Ú__dict__©r   Úotherr   r   r   Ú__eq__š   s   zPatchDetails.__eq__c                 C   s
   | |k S r   r   r!   r   r   r   Ú__ne__    s   
zPatchDetails.__ne__N)Ú__name__Ú
__module__Ú__qualname__Ú__doc__ZACTION_APPLYZACTION_PRECHECKr   Ú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   