o
    ëÉ¶dKh  ã                   @   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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.d/„ ƒZejd0d/„ ƒZed1d2„ ƒZejd3d2„ ƒZed4d5„ ƒZejd6d5„ ƒZed7d8„ ƒZejd9d8„ ƒZed:d;„ ƒZejd<d;„ ƒZed=d>„ ƒZejd?d>„ ƒZed@dA„ ƒZejdBdA„ ƒZedCdD„ ƒZ e jdEdD„ ƒZ edFdG„ ƒZ!e!jdHdG„ ƒZ!edIdJ„ ƒZ"e"jdKdJ„ ƒZ"edLdM„ ƒZ#e#jdNdM„ ƒZ#edOdP„ ƒZ$e$jdQdP„ ƒZ$dRdS„ Z%dTdU„ Z&dVdW„ Z'dXS )YÚApplicationzl
    The application type contains the audit summary information and the definition of the application.
    ÚCREATINGÚACTIVEÚUPDATINGÚDELETINGÚDELETEDÚFAILEDc              	   K   s”  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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d"“dd#“dd$“dd%“dd&“dd“dd'“dd(“d)d*d+d,d-d.d/dœ¥| _d0| _d0| _d0| _d0| _d0| _d0| _d0| _d0| _	d0| _
d0| _d0| _d0| _d0| _d0| _d0| _d0| _d0| _d0| _d0| _d0| _d0| _d0| _d0| _d0| _d0S )1a]  
        Initializes a new Application 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 Application.
        :type key: str

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

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

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

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

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

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

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

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

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

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

        :param published_object_metadata:
            The value to assign to the published_object_metadata property of this Application.
        :type published_object_metadata: dict(str, PatchObjectMetadata)

        :param source_application_info:
            The value to assign to the source_application_info property of this Application.
        :type source_application_info: oci.data_integration.models.SourceApplicationInfo

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

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

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

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

        :param time_created:
            The value to assign to the time_created property of this Application.
        :type time_created: datetime

        :param time_updated:
            The value to assign to the time_updated property of this Application.
        :type time_updated: datetime

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

        :param defined_tags:
            The value to assign to the defined_tags property of this Application.
        :type defined_tags: dict(str, dict(str, object))

        :param lifecycle_state:
            The value to assign to the lifecycle_state property of this Application.
            Allowed values for this property are: "CREATING", "ACTIVE", "UPDATING", "DELETING", "DELETED", "FAILED", 'UNKNOWN_ENUM_VALUE'.
            Any unrecognized values returned by a service will be mapped to 'UNKNOWN_ENUM_VALUE'.
        :type lifecycle_state: str

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

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

        ÚkeyÚstrÚ
model_typeÚmodel_versionÚnameÚdescriptionÚapplication_versionÚintÚobject_statusÚ
identifierÚ
parent_refZParentReferenceÚobject_versionÚdependent_object_metadatazlist[PatchObjectMetadata]Úpublished_object_metadatazdict(str, PatchObjectMetadata)Úsource_application_infoZSourceApplicationInfoÚtime_patchedÚdatetimeÚidÚcompartment_idÚdisplay_namezdict(str, str)zdict(str, dict(str, object))ZObjectMetadata)Útime_createdÚtime_updatedÚfreeform_tagsÚdefined_tagsÚlifecycle_stateÚmetadataÚkey_mapZ	modelTypeZmodelVersionZapplicationVersionZobjectStatusZ	parentRefZobjectVersionZdependentObjectMetadataZpublishedObjectMetadataZsourceApplicationInfoZtimePatchedZcompartmentIdZdisplayNameZtimeCreatedZtimeUpdatedZfreeformTagsZdefinedTagsZlifecycleStater&   ZkeyMapN)Zswagger_typesZattribute_mapÚ_keyÚ_model_typeÚ_model_versionÚ_nameÚ_descriptionÚ_application_versionÚ_object_statusÚ_identifierÚ_parent_refÚ_object_versionÚ_dependent_object_metadataÚ_published_object_metadataÚ_source_application_infoÚ_time_patchedÚ_idÚ_compartment_idÚ_display_nameÚ_time_createdÚ_time_updatedÚ_freeform_tagsÚ_defined_tagsÚ_lifecycle_stateÚ	_metadataÚ_key_map)ÚselfÚkwargs© rB   úKusr/lib/python3.10/site-packages/oci/data_integration/models/application.pyÚ__init__*   sÜ   hÿþýüûúùø	÷
öõôóòñðï
èÿþýüûúùø	÷
öõôóòñðï
è
zApplication.__init__c                 C   ó   | j S )zÄ
        Gets the key of this Application.
        Generated key that can be used in API calls to identify application.


        :return: The key of this Application.
        :rtype: str
        ©r(   ©r@   rB   rB   rC   r   á   ó   
zApplication.keyc                 C   ó
   || _ dS )zÆ
        Sets the key of this Application.
        Generated key that can be used in API calls to identify application.


        :param key: The key of this Application.
        :type: str
        NrF   )r@   r   rB   rB   rC   r   í   ó   

c                 C   rE   )zž
        Gets the model_type of this Application.
        The object type.


        :return: The model_type of this Application.
        :rtype: str
        ©r)   rG   rB   rB   rC   r   ù   rH   zApplication.model_typec                 C   rI   )z§
        Sets the model_type of this Application.
        The object type.


        :param model_type: The model_type of this Application.
        :type: str
        NrK   )r@   r   rB   rB   rC   r     rJ   c                 C   rE   )z¯
        Gets the model_version of this Application.
        The object's model version.


        :return: The model_version of this Application.
        :rtype: str
        ©r*   rG   rB   rB   rC   r     rH   zApplication.model_versionc                 C   rI   )z»
        Sets the model_version of this Application.
        The object's model version.


        :param model_version: The model_version of this Application.
        :type: str
        NrL   )r@   r   rB   rB   rC   r     rJ   c                 C   rE   )a5  
        Gets the name of this Application.
        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 Application.
        :rtype: str
        ©r+   rG   rB   rB   rC   r   )  rH   zApplication.namec                 C   rI   )a8  
        Sets the name of this Application.
        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 Application.
        :type: str
        NrM   )r@   r   rB   rB   rC   r   5  rJ   c                 C   rE   )z´
        Gets the description of this Application.
        Detailed description for the object.


        :return: The description of this Application.
        :rtype: str
        ©r,   rG   rB   rB   rC   r   A  rH   zApplication.descriptionc                 C   rI   )z¾
        Sets the description of this Application.
        Detailed description for the object.


        :param description: The description of this Application.
        :type: str
        NrN   )r@   r   rB   rB   rC   r   M  rJ   c                 C   rE   )zº
        Gets the application_version of this Application.
        The application's version.


        :return: The application_version of this Application.
        :rtype: int
        ©r-   rG   rB   rB   rC   r   Y  rH   zApplication.application_versionc                 C   rI   )zÌ
        Sets the application_version of this Application.
        The application's version.


        :param application_version: The application_version of this Application.
        :type: int
        NrO   )r@   r   rB   rB   rC   r   e  rJ   c                 C   rE   )a  
        Gets the object_status of this Application.
        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 Application.
        :rtype: int
        ©r.   rG   rB   rB   rC   r   q  rH   zApplication.object_statusc                 C   rI   )a  
        Sets the object_status of this Application.
        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 Application.
        :type: int
        NrP   )r@   r   rB   rB   rC   r   }  rJ   c                 C   rE   )a"  
        Gets the identifier of this Application.
        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 Application.
        :rtype: str
        ©r/   rG   rB   rB   rC   r   ‰  rH   zApplication.identifierc                 C   rI   )a+  
        Sets the identifier of this Application.
        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 Application.
        :type: str
        NrQ   )r@   r   rB   rB   rC   r   •  rJ   c                 C   rE   )z¬
        Gets the parent_ref of this Application.

        :return: The parent_ref of this Application.
        :rtype: oci.data_integration.models.ParentReference
        ©r0   rG   rB   rB   rC   r   ¡  ó   zApplication.parent_refc                 C   rI   )zµ
        Sets the parent_ref of this Application.

        :param parent_ref: The parent_ref of this Application.
        :type: oci.data_integration.models.ParentReference
        NrR   )r@   r   rB   rB   rC   r   «  ó   
c                 C   rE   )zå
        Gets the object_version of this Application.
        The version of the object that is used to track changes in the object instance.


        :return: The object_version of this Application.
        :rtype: int
        ©r1   rG   rB   rB   rC   r   µ  rH   zApplication.object_versionc                 C   rI   )zò
        Sets the object_version of this Application.
        The version of the object that is used to track changes in the object instance.


        :param object_version: The object_version of this Application.
        :type: int
        NrU   )r@   r   rB   rB   rC   r   Á  rJ   c                 C   rE   )a  
        Gets the dependent_object_metadata of this Application.
        A list of dependent objects in this patch.


        :return: The dependent_object_metadata of this Application.
        :rtype: list[oci.data_integration.models.PatchObjectMetadata]
        ©r2   rG   rB   rB   rC   r   Í  rH   z%Application.dependent_object_metadatac                 C   rI   )a   
        Sets the dependent_object_metadata of this Application.
        A list of dependent objects in this patch.


        :param dependent_object_metadata: The dependent_object_metadata of this Application.
        :type: list[oci.data_integration.models.PatchObjectMetadata]
        NrV   )r@   r   rB   rB   rC   r   Ù  rJ   c                 C   rE   )a	  
        Gets the published_object_metadata of this Application.
        A list of objects that are published or unpublished in this patch.


        :return: The published_object_metadata of this Application.
        :rtype: dict(str, PatchObjectMetadata)
        ©r3   rG   rB   rB   rC   r   å  rH   z%Application.published_object_metadatac                 C   rI   )a!  
        Sets the published_object_metadata of this Application.
        A list of objects that are published or unpublished in this patch.


        :param published_object_metadata: The published_object_metadata of this Application.
        :type: dict(str, PatchObjectMetadata)
        NrW   )r@   r   rB   rB   rC   r   ñ  rJ   c                 C   rE   )zÌ
        Gets the source_application_info of this Application.

        :return: The source_application_info of this Application.
        :rtype: oci.data_integration.models.SourceApplicationInfo
        ©r4   rG   rB   rB   rC   r   ý  rS   z#Application.source_application_infoc                 C   rI   )zâ
        Sets the source_application_info of this Application.

        :param source_application_info: The source_application_info of this Application.
        :type: oci.data_integration.models.SourceApplicationInfo
        NrX   )r@   r   rB   rB   rC   r     rT   c                 C   rE   )zñ
        Gets the time_patched of this Application.
        The date and time the application was patched, in the timestamp format defined by RFC3339.


        :return: The time_patched of this Application.
        :rtype: datetime
        ©r5   rG   rB   rB   rC   r     rH   zApplication.time_patchedc                 C   rI   )zü
        Sets the time_patched of this Application.
        The date and time the application was patched, in the timestamp format defined by RFC3339.


        :param time_patched: The time_patched of this Application.
        :type: datetime
        NrY   )r@   r   rB   rB   rC   r     rJ   c                 C   rE   )zÄ
        Gets the id of this Application.
        OCID of the resource that is used to uniquely identify the application


        :return: The id of this Application.
        :rtype: str
        ©r6   rG   rB   rB   rC   r   )  rH   zApplication.idc                 C   rI   )zÅ
        Sets the id of this Application.
        OCID of the resource that is used to uniquely identify the application


        :param id: The id of this Application.
        :type: str
        NrZ   )r@   r   rB   rB   rC   r   5  rJ   c                 C   rE   )zö
        Gets the compartment_id of this Application.
        OCID of the compartment that this resource belongs to. Defaults to compartment of the Workspace.


        :return: The compartment_id of this Application.
        :rtype: str
        ©r7   rG   rB   rB   rC   r   A  rH   zApplication.compartment_idc                 C   rI   )a  
        Sets the compartment_id of this Application.
        OCID of the compartment that this resource belongs to. Defaults to compartment of the Workspace.


        :param compartment_id: The compartment_id of this Application.
        :type: str
        Nr[   )r@   r   rB   rB   rC   r   M  rJ   c                 C   rE   )aE  
        Gets the display_name of this Application.
        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 display_name of this Application.
        :rtype: str
        ©r8   rG   rB   rB   rC   r    Y  rH   zApplication.display_namec                 C   rI   )aP  
        Sets the display_name of this Application.
        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 display_name: The display_name of this Application.
        :type: str
        Nr\   )r@   r    rB   rB   rC   r    e  rJ   c                 C   rE   )zñ
        Gets the time_created of this Application.
        The date and time the application was created, in the timestamp format defined by RFC3339.


        :return: The time_created of this Application.
        :rtype: datetime
        ©r9   rG   rB   rB   rC   r!   q  rH   zApplication.time_createdc                 C   rI   )zü
        Sets the time_created of this Application.
        The date and time the application was created, in the timestamp format defined by RFC3339.


        :param time_created: The time_created of this Application.
        :type: datetime
        Nr]   )r@   r!   rB   rB   rC   r!   }  rJ   c                 C   rE   )a  
        Gets the time_updated of this Application.
        The date and time the application was updated, in the timestamp format defined by RFC3339.
        example: 2019-08-25T21:10:29.41Z


        :return: The time_updated of this Application.
        :rtype: datetime
        ©r:   rG   rB   rB   rC   r"   ‰  ó   zApplication.time_updatedc                 C   rI   )a%  
        Sets the time_updated of this Application.
        The date and time the application was updated, in the timestamp format defined by RFC3339.
        example: 2019-08-25T21:10:29.41Z


        :param time_updated: The time_updated of this Application.
        :type: datetime
        Nr^   )r@   r"   rB   rB   rC   r"   –  ó   
c                 C   rE   )a=  
        Gets the freeform_tags of this Application.
        Simple key-value pair that is applied without any predefined name, type or scope. Exists for cross-compatibility only.
        Example: `{"bar-key": "value"}`


        :return: The freeform_tags of this Application.
        :rtype: dict(str, str)
        ©r;   rG   rB   rB   rC   r#   £  r_   zApplication.freeform_tagsc                 C   rI   )aI  
        Sets the freeform_tags of this Application.
        Simple key-value pair that is applied without any predefined name, type or scope. Exists for cross-compatibility only.
        Example: `{"bar-key": "value"}`


        :param freeform_tags: The freeform_tags of this Application.
        :type: dict(str, str)
        Nra   )r@   r#   rB   rB   rC   r#   °  r`   c                 C   rE   )a3  
        Gets the defined_tags of this Application.
        Usage of predefined tag keys. These predefined keys are scoped to namespaces.
        Example: `{"foo-namespace": {"bar-key": "value"}}`


        :return: The defined_tags of this Application.
        :rtype: dict(str, dict(str, object))
        ©r<   rG   rB   rB   rC   r$   ½  r_   zApplication.defined_tagsc                 C   rI   )a>  
        Sets the defined_tags of this Application.
        Usage of predefined tag keys. These predefined keys are scoped to namespaces.
        Example: `{"foo-namespace": {"bar-key": "value"}}`


        :param defined_tags: The defined_tags of this Application.
        :type: dict(str, dict(str, object))
        Nrb   )r@   r$   rB   rB   rC   r$   Ê  r`   c                 C   rE   )a¡  
        Gets the lifecycle_state of this Application.
        The current state of the workspace.

        Allowed values for this property are: "CREATING", "ACTIVE", "UPDATING", "DELETING", "DELETED", "FAILED", 'UNKNOWN_ENUM_VALUE'.
        Any unrecognized values returned by a service will be mapped to 'UNKNOWN_ENUM_VALUE'.


        :return: The lifecycle_state of this Application.
        :rtype: str
        )r=   rG   rB   rB   rC   r%   ×  s   zApplication.lifecycle_statec                 C   s    g d¢}t ||ƒsd}|| _dS )zÉ
        Sets the lifecycle_state of this Application.
        The current state of the workspace.


        :param lifecycle_state: The lifecycle_state of this Application.
        :type: str
        )r   r   r	   r
   r   r   ZUNKNOWN_ENUM_VALUEN)r   r=   )r@   r%   Zallowed_valuesrB   rB   rC   r%   æ  s   


c                 C   rE   )z§
        Gets the metadata of this Application.

        :return: The metadata of this Application.
        :rtype: oci.data_integration.models.ObjectMetadata
        ©r>   rG   rB   rB   rC   r&   õ  rS   zApplication.metadatac                 C   rI   )z®
        Sets the metadata of this Application.

        :param metadata: The metadata of this Application.
        :type: oci.data_integration.models.ObjectMetadata
        Nrc   )r@   r&   rB   rB   rC   r&   ÿ  rT   c                 C   rE   )a  
        Gets the key_map of this Application.
        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 Application.
        :rtype: dict(str, str)
        ©r?   rG   rB   rB   rC   r'   	  rH   zApplication.key_mapc                 C   rI   )a!  
        Sets the key_map of this Application.
        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 Application.
        :type: dict(str, str)
        Nrd   )r@   r'   rB   rB   rC   r'     rJ   c                 C   s   t | ƒS ©N)r   rG   rB   rB   rC   Ú__repr__!  s   zApplication.__repr__c                 C   s   |d u rdS | j |j kS )NF)Ú__dict__©r@   ÚotherrB   rB   rC   Ú__eq__$  s   zApplication.__eq__c                 C   s
   | |k S re   rB   rh   rB   rB   rC   Ú__ne__*  s   
zApplication.__ne__N)(Ú__name__Ú
__module__Ú__qualname__Ú__doc__ZLIFECYCLE_STATE_CREATINGZLIFECYCLE_STATE_ACTIVEZLIFECYCLE_STATE_UPDATINGZLIFECYCLE_STATE_DELETINGZLIFECYCLE_STATE_DELETEDZLIFECYCLE_STATE_FAILEDrD   Úpropertyr   Úsetterr   r   r   r   r   r   r   r   r   r   r   r   r   r   r   r    r!   r"   r#   r$   r%   r&   r'   rf   rj   rk   rB   rB   rB   rC   r      sÚ     8
















	
	






	
	


















	
	

r   N)Zoci.utilr   r   r   Zoci.decoratorsr   Úobjectr   rB   rB   rB   rC   Ú<module>   s   