o
    ɶd1                     @   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                   @   sL  e Zd Zd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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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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 )/AutonomousPatchz 
    AutonomousPatch model.
    	AVAILABLESUCCESSIN_PROGRESSFAILEDRELEASE_UPDATESRELEASE_UPDATE_REVISIONSc                 K   sx   ddddddddddd
| _ dddddd	d
dddd
| _d| _d| _d| _d| _d| _d| _d| _d| _	d| _
d| _dS )a  
        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

        strdatetime)
iddescriptiontypelifecycle_detailslifecycle_statetime_releasedversionpatch_modelquarteryearr   r   r   ZlifecycleDetailsZlifecycleStateZtimeReleasedr   Z
patchModelr   r   N)Zswagger_typesZattribute_map_id_description_type_lifecycle_details_lifecycle_state_time_released_version_patch_model_quarter_year)selfkwargs r%   Husr/lib/python3.10/site-packages/oci/database/models/autonomous_patch.py__init__*   s@   3
zAutonomousPatch.__init__c                 C      | j S )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   zAutonomousPatch.idc                 C   
   || _ dS )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#   r   r%   r%   r&   r      s   
c                 C   r(   )z
        **[Required]** Gets the description of this AutonomousPatch.
        The text describing this patch package.


        :return: The description of this AutonomousPatch.
        :rtype: str
        r   r*   r%   r%   r&   r         
zAutonomousPatch.descriptionc                 C   r+   )z
        Sets the description of this AutonomousPatch.
        The text describing this patch package.


        :param description: The description of this AutonomousPatch.
        :type: str
        Nr,   )r#   r   r%   r%   r&   r         

c                 C   r(   )z
        **[Required]** Gets the type of this AutonomousPatch.
        The type of patch. BUNDLE is one example.


        :return: The type of this AutonomousPatch.
        :rtype: str
        r   r*   r%   r%   r&   r      r-   zAutonomousPatch.typec                 C   r+   )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#   r   r%   r%   r&   r      r.   c                 C   r(   )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
        r   r*   r%   r%   r&   r      s   z!AutonomousPatch.lifecycle_detailsc                 C   r+   )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
        Nr0   )r#   r   r%   r%   r&   r      s   
c                 C   r(   )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
        )r   r*   r%   r%   r&   r      s   zAutonomousPatch.lifecycle_statec                 C   s    g d}t ||sd}|| _dS )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
        )r   r   r	   r
   UNKNOWN_ENUM_VALUEN)r   r   )r#   r   allowed_valuesr%   r%   r&   r      s   


c                 C   r(   )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&   r     r-   zAutonomousPatch.time_releasedc                 C   r+   )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
        Nr3   )r#   r   r%   r%   r&   r     r.   c                 C   r(   )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     r-   zAutonomousPatch.versionc                 C   r+   )z
        Sets the version of this AutonomousPatch.
        The version of this patch package.


        :param version: The version of this AutonomousPatch.
        :type: str
        Nr4   )r#   r   r%   r%   r&   r   )  r.   c                 C   r(   )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&   r   5  s   zAutonomousPatch.patch_modelc                 C   s    ddg}t ||sd}|| _dS )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
        r   r   r1   N)r   r    )r#   r   r2   r%   r%   r&   r   F  s   

c                 C   r(   )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&   r   W  r-   zAutonomousPatch.quarterc                 C   r+   )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
        Nr5   )r#   r   r%   r%   r&   r   c  r.   c                 C   r(   )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   o  r-   zAutonomousPatch.yearc                 C   r+   )z
        Sets the year of this AutonomousPatch.
        Year in which the patch was released.


        :param year: The year of this AutonomousPatch.
        :type: str
        Nr6   )r#   r   r%   r%   r&   r   {  r.   c                 C   s   t | S N)r   r*   r%   r%   r&   __repr__  s   zAutonomousPatch.__repr__c                 C   s   |d u rdS | j |j kS )NF)__dict__r#   otherr%   r%   r&   __eq__  s   zAutonomousPatch.__eq__c                 C   s
   | |k S r7   r%   r:   r%   r%   r&   __ne__  s   
zAutonomousPatch.__ne__N)__name__
__module____qualname____doc__ZLIFECYCLE_STATE_AVAILABLEZLIFECYCLE_STATE_SUCCESSZLIFECYCLE_STATE_IN_PROGRESSZLIFECYCLE_STATE_FAILEDZPATCH_MODEL_RELEASE_UPDATESZ$PATCH_MODEL_RELEASE_UPDATE_REVISIONSr'   propertyr   setterr   r   r   r   r   r   r   r   r   r8   r<   r=   r%   r%   r%   r&   r      sh    W



















r   N)Zoci.utilr   r   r   Zoci.decoratorsr   objectr   r%   r%   r%   r&   <module>   s   