HEX
Server: Apache
System: Linux sh00085.hostgator.com 5.14.0-687.29.1.el9_8.x86_64 #1 SMP PREEMPT_DYNAMIC Thu Jul 23 16:18:48 EDT 2026 x86_64
User: yqegzjte (1064)
PHP: 8.5.8
Disabled: NONE
Upload Files
File: //lib/python3.9/site-packages/oci/database/models/__pycache__/patch_history_entry.cpython-39.pyc
a

���f�-�@s8ddlmZmZmZddlmZeGdd�de��ZdS)�)�formatted_flat_dict�
NONE_SENTINEL�#value_allowed_none_or_none_sentinel)�init_model_state_from_kwargsc@s eZdZdZdZdZdZdZdZdZ	dZ
d	Zd
d�Ze
dd
��Zejdd
��Ze
dd��Zejdd��Ze
dd��Zejdd��Ze
dd��Zejdd��Ze
dd��Zejdd��Ze
dd��Zejdd��Ze
dd��Zejd d��Ze
d!d"��Zejd#d"��Zd$d%�Zd&d'�Zd(d)�Zd*S)+�PatchHistoryEntryz"
    PatchHistoryEntry model.
    �APPLY�PRECHECK�IN_PROGRESS�	SUCCEEDED�FAILED�OS�DB�GIc	Ksdddddddddd�|_dddddd	d
dd�|_d|_d|_d|_d|_d|_d|_d|_d|_	dS)
a�
        Initializes a new PatchHistoryEntry 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 PatchHistoryEntry.
        :type id: str

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

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

        :param lifecycle_state:
            The value to assign to the lifecycle_state property of this PatchHistoryEntry.
            Allowed values for this property are: "IN_PROGRESS", "SUCCEEDED", "FAILED", 'UNKNOWN_ENUM_VALUE'.
            Any unrecognized values returned by a service will be mapped to 'UNKNOWN_ENUM_VALUE'.
        :type lifecycle_state: str

        :param lifecycle_details:
            The value to assign to the lifecycle_details property of this PatchHistoryEntry.
        :type lifecycle_details: str

        :param time_started:
            The value to assign to the time_started property of this PatchHistoryEntry.
        :type time_started: datetime

        :param time_ended:
            The value to assign to the time_ended property of this PatchHistoryEntry.
        :type time_ended: datetime

        :param patch_type:
            The value to assign to the patch_type property of this PatchHistoryEntry.
            Allowed values for this property are: "OS", "DB", "GI", 'UNKNOWN_ENUM_VALUE'.
            Any unrecognized values returned by a service will be mapped to 'UNKNOWN_ENUM_VALUE'.
        :type patch_type: str

        �strZdatetime)�id�patch_id�action�lifecycle_state�lifecycle_details�time_started�
time_ended�
patch_typerZpatchIdrZlifecycleStateZlifecycleDetailsZtimeStartedZ	timeEndedZ	patchTypeN)
Z
swagger_typesZ
attribute_map�_id�	_patch_id�_action�_lifecycle_state�_lifecycle_details�
_time_started�_time_ended�_patch_type)�self�kwargs�r"�K/usr/lib/python3.9/site-packages/oci/database/models/patch_history_entry.py�__init__2s4-��zPatchHistoryEntry.__init__cCs|jS)a
        **[Required]** Gets the id of this PatchHistoryEntry.
        The `OCID`__ of the patch history entry.

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


        :return: The id of this PatchHistoryEntry.
        :rtype: str
        �r�r r"r"r#r}szPatchHistoryEntry.idcCs
||_dS)a
        Sets the id of this PatchHistoryEntry.
        The `OCID`__ of the patch history entry.

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


        :param id: The id of this PatchHistoryEntry.
        :type: str
        Nr%)r rr"r"r#r�scCs|jS)a
        **[Required]** Gets the patch_id of this PatchHistoryEntry.
        The `OCID`__ of the patch.

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


        :return: The patch_id of this PatchHistoryEntry.
        :rtype: str
        �rr&r"r"r#r�szPatchHistoryEntry.patch_idcCs
||_dS)a

        Sets the patch_id of this PatchHistoryEntry.
        The `OCID`__ of the patch.

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


        :param patch_id: The patch_id of this PatchHistoryEntry.
        :type: str
        Nr')r rr"r"r#r�scCs|jS)av
        Gets the action of this PatchHistoryEntry.
        The action being performed or was completed.

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


        :return: The action of this PatchHistoryEntry.
        :rtype: str
        )rr&r"r"r#r�s
zPatchHistoryEntry.actioncCs ddg}t||�sd}||_dS)z�
        Sets the action of this PatchHistoryEntry.
        The action being performed or was completed.


        :param action: The action of this PatchHistoryEntry.
        :type: str
        rr�UNKNOWN_ENUM_VALUEN)rr)r r�allowed_valuesr"r"r#r�s

cCs|jS)a�
        **[Required]** Gets the lifecycle_state of this PatchHistoryEntry.
        The current state of the action.

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


        :return: The lifecycle_state of this PatchHistoryEntry.
        :rtype: str
        )rr&r"r"r#r�s
z!PatchHistoryEntry.lifecycle_statecCs gd�}t||�sd}||_dS)z�
        Sets the lifecycle_state of this PatchHistoryEntry.
        The current state of the action.


        :param lifecycle_state: The lifecycle_state of this PatchHistoryEntry.
        :type: str
        )r	r
rr(N)rr)r rr)r"r"r#r�s

cCs|jS)a
        Gets the lifecycle_details of this PatchHistoryEntry.
        A descriptive text associated with the lifecycleState.
        Typically contains additional displayable text.


        :return: The lifecycle_details of this PatchHistoryEntry.
        :rtype: str
        �rr&r"r"r#r�sz#PatchHistoryEntry.lifecycle_detailscCs
||_dS)a&
        Sets the lifecycle_details of this PatchHistoryEntry.
        A descriptive text associated with the lifecycleState.
        Typically contains additional displayable text.


        :param lifecycle_details: The lifecycle_details of this PatchHistoryEntry.
        :type: str
        Nr*)r rr"r"r#r�scCs|jS)z�
        **[Required]** Gets the time_started of this PatchHistoryEntry.
        The date and time when the patch action started.


        :return: The time_started of this PatchHistoryEntry.
        :rtype: datetime
        �rr&r"r"r#rs
zPatchHistoryEntry.time_startedcCs
||_dS)z�
        Sets the time_started of this PatchHistoryEntry.
        The date and time when the patch action started.


        :param time_started: The time_started of this PatchHistoryEntry.
        :type: datetime
        Nr+)r rr"r"r#rs
cCs|jS)z�
        Gets the time_ended of this PatchHistoryEntry.
        The date and time when the patch action completed


        :return: The time_ended of this PatchHistoryEntry.
        :rtype: datetime
        �rr&r"r"r#r#s
zPatchHistoryEntry.time_endedcCs
||_dS)z�
        Sets the time_ended of this PatchHistoryEntry.
        The date and time when the patch action completed


        :param time_ended: The time_ended of this PatchHistoryEntry.
        :type: datetime
        Nr,)r rr"r"r#r/s
cCs|jS)ak
        Gets the patch_type of this PatchHistoryEntry.
        The type of Patch operation.

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


        :return: The patch_type of this PatchHistoryEntry.
        :rtype: str
        )rr&r"r"r#r;s
zPatchHistoryEntry.patch_typecCs gd�}t||�sd}||_dS)z�
        Sets the patch_type of this PatchHistoryEntry.
        The type of Patch operation.


        :param patch_type: The patch_type of this PatchHistoryEntry.
        :type: str
        )rr
rr(N)rr)r rr)r"r"r#rJs

cCst|�S�N)rr&r"r"r#�__repr__YszPatchHistoryEntry.__repr__cCs|durdS|j|jkS)NF)�__dict__�r �otherr"r"r#�__eq__\szPatchHistoryEntry.__eq__cCs
||kSr-r"r0r"r"r#�__ne__bszPatchHistoryEntry.__ne__N)�__name__�
__module__�__qualname__�__doc__ZACTION_APPLYZACTION_PRECHECKZLIFECYCLE_STATE_IN_PROGRESSZLIFECYCLE_STATE_SUCCEEDEDZLIFECYCLE_STATE_FAILEDZ
PATCH_TYPE_OSZ
PATCH_TYPE_DBZ
PATCH_TYPE_GIr$�propertyr�setterrrrrrrrr.r2r3r"r"r"r#rsZK



















rN)Zoci.utilrrrZoci.decoratorsr�objectrr"r"r"r#�<module>s