HEX
Server: Apache
System: Linux box5936.bluehost.com 5.14.0-162.23.1.9991722448259.nf.el9.x86_64 #1 SMP PREEMPT_DYNAMIC Wed Jul 31 18:11:45 UTC 2024 x86_64
User: aviatjd3 (1318)
PHP: 8.3.32
Disabled: NONE
Upload Files
File: //lib/python3.9/site-packages/oci/database/models/__pycache__/autonomous_patch.cpython-39.opt-1.pyc
a

���f�9�@s8ddlmZmZmZddlmZeGdd�de��ZdS)�)�formatted_flat_dict�
NONE_SENTINEL�#value_allowed_none_or_none_sentinel)�init_model_state_from_kwargsc@sneZdZdZdZdZdZdZdZdZ	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"��Ze
d$d%��Zejd&d%��Ze
d'd(��Zejd)d(��Ze
d*d+��Zejd,d+��Zd-d.�Zd/d0�Zd1d2�Zd3S)4�AutonomousPatchz 
    AutonomousPatch model.
    �	AVAILABLE�SUCCESS�IN_PROGRESS�FAILED�RELEASE_UPDATES�RELEASE_UPDATE_REVISIONS�	QUARTERLY�TIMEZONEcKs�dddddddddddd�|_dddddd	d
ddd
dd�|_d|_d|_d|_d|_d|_d|_d|_d|_	d|_
d|_d|_dS)ag	
        Initializes a new AutonomousPatch 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 AutonomousPatch.
        :type id: str

        :param description:
            The value to assign to the description property of this AutonomousPatch.
        :type description: str

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

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

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

        :param time_released:
            The value to assign to the time_released property of this AutonomousPatch.
        :type time_released: datetime

        :param version:
            The value to assign to the version property of this AutonomousPatch.
        :type version: str

        :param patch_model:
            The value to assign to the patch_model property of this AutonomousPatch.
            Allowed values for this property are: "RELEASE_UPDATES", "RELEASE_UPDATE_REVISIONS", 'UNKNOWN_ENUM_VALUE'.
            Any unrecognized values returned by a service will be mapped to 'UNKNOWN_ENUM_VALUE'.
        :type patch_model: str

        :param quarter:
            The value to assign to the quarter property of this AutonomousPatch.
        :type quarter: str

        :param year:
            The value to assign to the year property of this AutonomousPatch.
        :type year: str

        :param autonomous_patch_type:
            The value to assign to the autonomous_patch_type property of this AutonomousPatch.
            Allowed values for this property are: "QUARTERLY", "TIMEZONE", 'UNKNOWN_ENUM_VALUE'.
            Any unrecognized values returned by a service will be mapped to 'UNKNOWN_ENUM_VALUE'.
        :type autonomous_patch_type: str

        �strZdatetime)�id�description�type�lifecycle_details�lifecycle_state�
time_released�version�patch_model�quarter�year�autonomous_patch_typerrrZlifecycleDetailsZlifecycleStateZtimeReleasedrZ
patchModelrrZautonomousPatchTypeN)
Z
swagger_typesZ
attribute_map�_id�_description�_type�_lifecycle_details�_lifecycle_state�_time_released�_version�_patch_model�_quarter�_year�_autonomous_patch_type)�self�kwargs�r(�H/usr/lib/python3.9/site-packages/oci/database/models/autonomous_patch.py�__init__2sF9��zAutonomousPatch.__init__cCs|jS)a
        **[Required]** Gets the id of this AutonomousPatch.
        The `OCID`__ of the patch.

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


        :return: The id of this AutonomousPatch.
        :rtype: str
        �r�r&r(r(r)r�szAutonomousPatch.idcCs
||_dS)z�
        Sets the id of this AutonomousPatch.
        The `OCID`__ of the patch.

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


        :param id: The id of this AutonomousPatch.
        :type: str
        Nr+)r&rr(r(r)r�scCs|jS)z�
        **[Required]** Gets the description of this AutonomousPatch.
        The text describing this patch package.


        :return: The description of this AutonomousPatch.
        :rtype: str
        �rr,r(r(r)r�s
zAutonomousPatch.descriptioncCs
||_dS)z�
        Sets the description of this AutonomousPatch.
        The text describing this patch package.


        :param description: The description of this AutonomousPatch.
        :type: str
        Nr-)r&rr(r(r)r�s
cCs|jS)z�
        **[Required]** Gets the type of this AutonomousPatch.
        The type of patch. BUNDLE is one example.


        :return: The type of this AutonomousPatch.
        :rtype: str
        �rr,r(r(r)r�s
zAutonomousPatch.typecCs
||_dS)z�
        Sets the type of this AutonomousPatch.
        The type of patch. BUNDLE is one example.


        :param type: The type of this AutonomousPatch.
        :type: str
        Nr.)r&rr(r(r)r�s
cCs|jS)a
        Gets the lifecycle_details of this AutonomousPatch.
        A descriptive text associated with the lifecycleState.
        Typically can contain additional displayable text.


        :return: The lifecycle_details of this AutonomousPatch.
        :rtype: str
        �rr,r(r(r)r�sz!AutonomousPatch.lifecycle_detailscCs
||_dS)a%
        Sets the lifecycle_details of this AutonomousPatch.
        A descriptive text associated with the lifecycleState.
        Typically can contain additional displayable text.


        :param lifecycle_details: The lifecycle_details of this AutonomousPatch.
        :type: str
        Nr/)r&rr(r(r)r�scCs|jS)a�
        Gets the lifecycle_state of this AutonomousPatch.
        The current state of the patch as a result of lastAction.

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


        :return: The lifecycle_state of this AutonomousPatch.
        :rtype: str
        )rr,r(r(r)r�s
zAutonomousPatch.lifecycle_statecCs gd�}t||�sd}||_dS)z�
        Sets the lifecycle_state of this AutonomousPatch.
        The current state of the patch as a result of lastAction.


        :param lifecycle_state: The lifecycle_state of this AutonomousPatch.
        :type: str
        )rrr	r
�UNKNOWN_ENUM_VALUEN)rr)r&r�allowed_valuesr(r(r)rs

cCs|jS)z�
        **[Required]** Gets the time_released of this AutonomousPatch.
        The date and time that the patch was released.


        :return: The time_released of this AutonomousPatch.
        :rtype: datetime
        �r r,r(r(r)rs
zAutonomousPatch.time_releasedcCs
||_dS)z�
        Sets the time_released of this AutonomousPatch.
        The date and time that the patch was released.


        :param time_released: The time_released of this AutonomousPatch.
        :type: datetime
        Nr2)r&rr(r(r)r"s
cCs|jS)z�
        **[Required]** Gets the version of this AutonomousPatch.
        The version of this patch package.


        :return: The version of this AutonomousPatch.
        :rtype: str
        �r!r,r(r(r)r.s
zAutonomousPatch.versioncCs
||_dS)z�
        Sets the version of this AutonomousPatch.
        The version of this patch package.


        :param version: The version of this AutonomousPatch.
        :type: str
        Nr3)r&rr(r(r)r:s
cCs|jS)aT
        Gets the patch_model of this AutonomousPatch.
        Database patching model preference. See `My Oracle Support note 2285040.1`__ for information on the Release Update (RU) and Release Update Revision (RUR) patching models.

        __ https://support.oracle.com/rs?type=doc&id=2285040.1

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


        :return: The patch_model of this AutonomousPatch.
        :rtype: str
        )r"r,r(r(r)rFszAutonomousPatch.patch_modelcCs ddg}t||�sd}||_dS)a�
        Sets the patch_model of this AutonomousPatch.
        Database patching model preference. See `My Oracle Support note 2285040.1`__ for information on the Release Update (RU) and Release Update Revision (RUR) patching models.

        __ https://support.oracle.com/rs?type=doc&id=2285040.1


        :param patch_model: The patch_model of this AutonomousPatch.
        :type: str
        rrr0N)rr")r&rr1r(r(r)rWs
cCs|jS)z�
        Gets the quarter of this AutonomousPatch.
        First month of the quarter in which the patch was released.


        :return: The quarter of this AutonomousPatch.
        :rtype: str
        �r#r,r(r(r)rhs
zAutonomousPatch.quartercCs
||_dS)z�
        Sets the quarter of this AutonomousPatch.
        First month of the quarter in which the patch was released.


        :param quarter: The quarter of this AutonomousPatch.
        :type: str
        Nr4)r&rr(r(r)rts
cCs|jS)z�
        Gets the year of this AutonomousPatch.
        Year in which the patch was released.


        :return: The year of this AutonomousPatch.
        :rtype: str
        �r$r,r(r(r)r�s
zAutonomousPatch.yearcCs
||_dS)z�
        Sets the year of this AutonomousPatch.
        Year in which the patch was released.


        :param year: The year of this AutonomousPatch.
        :type: str
        Nr5)r&rr(r(r)r�s
cCs|jS)a�
        Gets the autonomous_patch_type of this AutonomousPatch.
        Maintenance run type, either "QUARTERLY" or "TIMEZONE".

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


        :return: The autonomous_patch_type of this AutonomousPatch.
        :rtype: str
        )r%r,r(r(r)r�s
z%AutonomousPatch.autonomous_patch_typecCs ddg}t||�sd}||_dS)z�
        Sets the autonomous_patch_type of this AutonomousPatch.
        Maintenance run type, either "QUARTERLY" or "TIMEZONE".


        :param autonomous_patch_type: The autonomous_patch_type of this AutonomousPatch.
        :type: str
        r
rr0N)rr%)r&rr1r(r(r)r�s

cCst|�S�N)rr,r(r(r)�__repr__�szAutonomousPatch.__repr__cCs|durdS|j|jkS)NF)�__dict__�r&�otherr(r(r)�__eq__�szAutonomousPatch.__eq__cCs
||kSr6r(r9r(r(r)�__ne__�szAutonomousPatch.__ne__N)�__name__�
__module__�__qualname__�__doc__ZLIFECYCLE_STATE_AVAILABLEZLIFECYCLE_STATE_SUCCESSZLIFECYCLE_STATE_IN_PROGRESSZLIFECYCLE_STATE_FAILEDZPATCH_MODEL_RELEASE_UPDATESZ$PATCH_MODEL_RELEASE_UPDATE_REVISIONSZAUTONOMOUS_PATCH_TYPE_QUARTERLYZAUTONOMOUS_PATCH_TYPE_TIMEZONEr*�propertyr�setterrrrrrrrrrrr7r;r<r(r(r(r)rsr`























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