o
    ëÉ¶dO  ã                   @   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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ed)d*„ ƒZejd+d*„ ƒZed,d-„ ƒZejd.d-„ ƒZed/d0„ ƒZejd1d0„ ƒZed2d3„ ƒZejd4d3„ ƒZed5d6„ ƒZejd7d6„ ƒZed8d9„ ƒZejd:d9„ ƒZed;d<„ ƒZejd=d<„ ƒZed>d?„ ƒZejd@d?„ ƒZdAdB„ Z dCdD„ Z!dEdF„ Z"dGS )HÚPatchzb
    The patch object contains the audit summary information and the definition of the patch.
    ÚPUBLISHÚREFRESHÚ	UNPUBLISHÚQUEUEDÚ
SUCCESSFULÚFAILEDÚIN_PROGRESSc                 K   sX  i 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d“ddi¥| _ i 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d“dd&i¥| _d'| _d'| _d'| _d'| _d'| _d'| _d'| _d'| _	d'| _
d'| _d'| _d'| _d'| _d'| _d'| _d'| _d'| _d'| _d'S )(aë  
        Initializes a new Patch object with values from keyword arguments.
        The following keyword arguments are supported (corresponding to the getters/setters of this class):

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

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

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

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

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

        :param object_version:
            The value to assign to the object_version property of this Patch.
        :type object_version: int

        :param object_status:
            The value to assign to the object_status property of this Patch.
        :type object_status: int

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

        :param time_patched:
            The value to assign to the time_patched property of this Patch.
        :type time_patched: datetime

        :param error_messages:
            The value to assign to the error_messages property of this Patch.
        :type error_messages: dict(str, str)

        :param application_version:
            The value to assign to the application_version property of this Patch.
        :type application_version: int

        :param patch_type:
            The value to assign to the patch_type property of this Patch.
            Allowed values for this property are: "PUBLISH", "REFRESH", "UNPUBLISH", 'UNKNOWN_ENUM_VALUE'.
            Any unrecognized values returned by a service will be mapped to 'UNKNOWN_ENUM_VALUE'.
        :type patch_type: str

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

        :param dependent_object_metadata:
            The value to assign to the dependent_object_metadata property of this Patch.
        :type dependent_object_metadata: list[oci.data_integration.models.PatchObjectMetadata]

        :param patch_object_metadata:
            The value to assign to the patch_object_metadata property of this Patch.
        :type patch_object_metadata: list[oci.data_integration.models.PatchObjectMetadata]

        :param parent_ref:
            The value to assign to the parent_ref property of this Patch.
        :type parent_ref: oci.data_integration.models.ParentReference

        :param metadata:
            The value to assign to the metadata property of this Patch.
        :type metadata: oci.data_integration.models.ObjectMetadata

        :param key_map:
            The value to assign to the key_map property of this Patch.
        :type key_map: dict(str, str)

        ÚkeyÚstrÚ
model_typeÚmodel_versionÚnameÚdescriptionÚobject_versionÚintÚobject_statusÚ
identifierÚtime_patchedÚdatetimeÚerror_messageszdict(str, str)Úapplication_versionÚ
patch_typeÚpatch_statusÚdependent_object_metadatazlist[PatchObjectMetadata]Úpatch_object_metadataÚ
parent_refZParentReferenceÚmetadataZObjectMetadataÚkey_mapZ	modelTypeZmodelVersionZobjectVersionZobjectStatusZtimePatchedZerrorMessagesZapplicationVersionZ	patchTypeZpatchStatusZdependentObjectMetadataZpatchObjectMetadataZ	parentRefZkeyMapN)Zswagger_typesZattribute_mapÚ_keyÚ_model_typeÚ_model_versionÚ_nameÚ_descriptionÚ_object_versionÚ_object_statusÚ_identifierÚ_time_patchedÚ_error_messagesÚ_application_versionÚ_patch_typeÚ_patch_statusÚ_dependent_object_metadataÚ_patch_object_metadataÚ_parent_refÚ	_metadataÚ_key_map)ÚselfÚkwargs© r7   úEusr/lib/python3.10/site-packages/oci/data_integration/models/patch.pyÚ__init__.   s¸   Rÿþýüûúùø	÷
öõôóòñðïîÿþýüûúùø	÷
öõôóòñðïî
zPatch.__init__c                 C   ó   | j S )zƒ
        Gets the key of this Patch.
        The object key.


        :return: The key of this Patch.
        :rtype: str
        ©r#   ©r5   r7   r7   r8   r   ½   ó   
z	Patch.keyc                 C   ó
   || _ dS )z…
        Sets the key of this Patch.
        The object key.


        :param key: The key of this Patch.
        :type: str
        Nr;   )r5   r   r7   r7   r8   r   É   ó   

c                 C   r:   )z’
        Gets the model_type of this Patch.
        The object type.


        :return: The model_type of this Patch.
        :rtype: str
        ©r$   r<   r7   r7   r8   r   Õ   r=   zPatch.model_typec                 C   r>   )z›
        Sets the model_type of this Patch.
        The object type.


        :param model_type: The model_type of this Patch.
        :type: str
        Nr@   )r5   r   r7   r7   r8   r   á   r?   c                 C   r:   )z£
        Gets the model_version of this Patch.
        The object's model version.


        :return: The model_version of this Patch.
        :rtype: str
        ©r%   r<   r7   r7   r8   r   í   r=   zPatch.model_versionc                 C   r>   )z¯
        Sets the model_version of this Patch.
        The object's model version.


        :param model_version: The model_version of this Patch.
        :type: str
        NrA   )r5   r   r7   r7   r8   r   ù   r?   c                 C   r:   )a)  
        Gets the name of this Patch.
        Free form text without any restriction on permitted characters. Name can have letters, numbers, and special characters. The value is editable and is restricted to 1000 characters.


        :return: The name of this Patch.
        :rtype: str
        ©r&   r<   r7   r7   r8   r     r=   z
Patch.namec                 C   r>   )a,  
        Sets the name of this Patch.
        Free form text without any restriction on permitted characters. Name can have letters, numbers, and special characters. The value is editable and is restricted to 1000 characters.


        :param name: The name of this Patch.
        :type: str
        NrB   )r5   r   r7   r7   r8   r     r?   c                 C   r:   )z¨
        Gets the description of this Patch.
        Detailed description for the object.


        :return: The description of this Patch.
        :rtype: str
        ©r'   r<   r7   r7   r8   r     r=   zPatch.descriptionc                 C   r>   )z²
        Sets the description of this Patch.
        Detailed description for the object.


        :param description: The description of this Patch.
        :type: str
        NrC   )r5   r   r7   r7   r8   r   )  r?   c                 C   r:   )zÙ
        Gets the object_version of this Patch.
        The version of the object that is used to track changes in the object instance.


        :return: The object_version of this Patch.
        :rtype: int
        ©r(   r<   r7   r7   r8   r   5  r=   zPatch.object_versionc                 C   r>   )zæ
        Sets the object_version of this Patch.
        The version of the object that is used to track changes in the object instance.


        :param object_version: The object_version of this Patch.
        :type: int
        NrD   )r5   r   r7   r7   r8   r   A  r?   c                 C   r:   )zø
        Gets the object_status of this Patch.
        The status of an object that can be set to value 1 for shallow references across objects, other values reserved.


        :return: The object_status of this Patch.
        :rtype: int
        ©r)   r<   r7   r7   r8   r   M  r=   zPatch.object_statusc                 C   r>   )a  
        Sets the object_status of this Patch.
        The status of an object that can be set to value 1 for shallow references across objects, other values reserved.


        :param object_status: The object_status of this Patch.
        :type: int
        NrE   )r5   r   r7   r7   r8   r   Y  r?   c                 C   r:   )a  
        Gets the identifier of this Patch.
        Value can only contain upper case letters, underscore, and numbers. It should begin with upper case letter or underscore. The value can be modified.


        :return: The identifier of this Patch.
        :rtype: str
        ©r*   r<   r7   r7   r8   r   e  r=   zPatch.identifierc                 C   r>   )a  
        Sets the identifier of this Patch.
        Value can only contain upper case letters, underscore, and numbers. It should begin with upper case letter or underscore. The value can be modified.


        :param identifier: The identifier of this Patch.
        :type: str
        NrF   )r5   r   r7   r7   r8   r   q  r?   c                 C   r:   )a  
        Gets the time_patched of this Patch.
        The date and time the patch was applied, in the timestamp format defined by `RFC3339`__.

        __ https://tools.ietf.org/html/rfc3339


        :return: The time_patched of this Patch.
        :rtype: datetime
        ©r+   r<   r7   r7   r8   r   }  s   zPatch.time_patchedc                 C   r>   )a  
        Sets the time_patched of this Patch.
        The date and time the patch was applied, in the timestamp format defined by `RFC3339`__.

        __ https://tools.ietf.org/html/rfc3339


        :param time_patched: The time_patched of this Patch.
        :type: datetime
        NrG   )r5   r   r7   r7   r8   r   ‹  s   
c                 C   r:   )zÍ
        Gets the error_messages of this Patch.
        The errors encountered while applying the patch, if any.


        :return: The error_messages of this Patch.
        :rtype: dict(str, str)
        ©r,   r<   r7   r7   r8   r   ™  r=   zPatch.error_messagesc                 C   r>   )zÚ
        Sets the error_messages of this Patch.
        The errors encountered while applying the patch, if any.


        :param error_messages: The error_messages of this Patch.
        :type: dict(str, str)
        NrH   )r5   r   r7   r7   r8   r   ¥  r?   c                 C   r:   )z¹
        Gets the application_version of this Patch.
        The application version of the patch.


        :return: The application_version of this Patch.
        :rtype: int
        ©r-   r<   r7   r7   r8   r   ±  r=   zPatch.application_versionc                 C   r>   )zË
        Sets the application_version of this Patch.
        The application version of the patch.


        :param application_version: The application_version of this Patch.
        :type: int
        NrI   )r5   r   r7   r7   r8   r   ½  r?   c                 C   r:   )aŠ  
        Gets the patch_type of this Patch.
        The type of the patch applied or being applied on the application.

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


        :return: The patch_type of this Patch.
        :rtype: str
        )r.   r<   r7   r7   r8   r   É  ó   zPatch.patch_typec                 C   ó    g d¢}t ||ƒsd}|| _dS )zÍ
        Sets the patch_type of this Patch.
        The type of the patch applied or being applied on the application.


        :param patch_type: The patch_type of this Patch.
        :type: str
        )r   r   r	   ÚUNKNOWN_ENUM_VALUEN)r   r.   )r5   r   Úallowed_valuesr7   r7   r8   r   Ø  ó   


c                 C   r:   )a™  
        Gets the patch_status of this Patch.
        Status of the patch applied or being applied on the application

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


        :return: The patch_status of this Patch.
        :rtype: str
        )r/   r<   r7   r7   r8   r   ç  rJ   zPatch.patch_statusc                 C   rK   )zÐ
        Sets the patch_status of this Patch.
        Status of the patch applied or being applied on the application


        :param patch_status: The patch_status of this Patch.
        :type: str
        )r
   r   r   r   rL   N)r   r/   )r5   r   rM   r7   r7   r8   r   ö  rN   c                 C   r:   )zú
        Gets the dependent_object_metadata of this Patch.
        List of dependent objects in this patch.


        :return: The dependent_object_metadata of this Patch.
        :rtype: list[oci.data_integration.models.PatchObjectMetadata]
        ©r0   r<   r7   r7   r8   r     r=   zPatch.dependent_object_metadatac                 C   r>   )a  
        Sets the dependent_object_metadata of this Patch.
        List of dependent objects in this patch.


        :param dependent_object_metadata: The dependent_object_metadata of this Patch.
        :type: list[oci.data_integration.models.PatchObjectMetadata]
        NrO   )r5   r   r7   r7   r8   r     r?   c                 C   r:   )a
  
        Gets the patch_object_metadata of this Patch.
        List of objects that are published or unpublished in this patch.


        :return: The patch_object_metadata of this Patch.
        :rtype: list[oci.data_integration.models.PatchObjectMetadata]
        ©r1   r<   r7   r7   r8   r     r=   zPatch.patch_object_metadatac                 C   r>   )a  
        Sets the patch_object_metadata of this Patch.
        List of objects that are published or unpublished in this patch.


        :param patch_object_metadata: The patch_object_metadata of this Patch.
        :type: list[oci.data_integration.models.PatchObjectMetadata]
        NrP   )r5   r   r7   r7   r8   r   )  r?   c                 C   r:   )z 
        Gets the parent_ref of this Patch.

        :return: The parent_ref of this Patch.
        :rtype: oci.data_integration.models.ParentReference
        ©r2   r<   r7   r7   r8   r    5  ó   zPatch.parent_refc                 C   r>   )z©
        Sets the parent_ref of this Patch.

        :param parent_ref: The parent_ref of this Patch.
        :type: oci.data_integration.models.ParentReference
        NrQ   )r5   r    r7   r7   r8   r    ?  ó   
c                 C   r:   )z›
        Gets the metadata of this Patch.

        :return: The metadata of this Patch.
        :rtype: oci.data_integration.models.ObjectMetadata
        ©r3   r<   r7   r7   r8   r!   I  rR   zPatch.metadatac                 C   r>   )z¢
        Sets the metadata of this Patch.

        :param metadata: The metadata of this Patch.
        :type: oci.data_integration.models.ObjectMetadata
        NrT   )r5   r!   r7   r7   r8   r!   S  rS   c                 C   r:   )a  
        Gets the key_map of this Patch.
        A key map. If provided, key is replaced with generated key. This structure provides mapping between user provided key and generated key.


        :return: The key_map of this Patch.
        :rtype: dict(str, str)
        ©r4   r<   r7   r7   r8   r"   ]  r=   zPatch.key_mapc                 C   r>   )a  
        Sets the key_map of this Patch.
        A key map. If provided, key is replaced with generated key. This structure provides mapping between user provided key and generated key.


        :param key_map: The key_map of this Patch.
        :type: dict(str, str)
        NrU   )r5   r"   r7   r7   r8   r"   i  r?   c                 C   s   t | ƒS ©N)r   r<   r7   r7   r8   Ú__repr__u  s   zPatch.__repr__c                 C   s   |d u rdS | j |j kS )NF)Ú__dict__©r5   Úotherr7   r7   r8   Ú__eq__x  s   zPatch.__eq__c                 C   s
   | |k S rV   r7   rY   r7   r7   r8   Ú__ne__~  s   
zPatch.__ne__N)#Ú__name__Ú
__module__Ú__qualname__Ú__doc__ZPATCH_TYPE_PUBLISHZPATCH_TYPE_REFRESHZPATCH_TYPE_UNPUBLISHZPATCH_STATUS_QUEUEDZPATCH_STATUS_SUCCESSFULZPATCH_STATUS_FAILEDZPATCH_STATUS_IN_PROGRESSr9   Úpropertyr   Úsetterr   r   r   r   r   r   r   r   r   r   r   r   r   r   r    r!   r"   rW   r[   r\   r7   r7   r7   r8   r      s¬     






























	
	
	
	

r   N)Zoci.utilr   r   r   Zoci.decoratorsr   Úobjectr   r7   r7   r7   r8   Ú<module>   s   