o
    ëÉ¶d~f  ã                   @   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ÚTemplatez
    Template 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 Template 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 Template.
        :type key: str

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

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

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

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

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

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

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

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

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

        :param dependent_object_metadata:
            The value to assign to the dependent_object_metadata property of this Template.
        :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 Template.
        :type published_object_metadata: dict(str, PatchObjectMetadata)

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

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

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

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

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

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

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

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

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

        :param lifecycle_state:
            The value to assign to the lifecycle_state property of this Template.
            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 Template.
        :type metadata: oci.data_integration.models.ObjectMetadata

        :param key_map:
            The value to assign to the key_map property of this Template.
        :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   úHusr/lib/python3.10/site-packages/oci/data_integration/models/template.pyÚ__init__*   sÜ   hÿþýüûúùø	÷
öõôóòñðï
èÿþýüûúùø	÷
öõôóòñðï
è
zTemplate.__init__c                 C   ó   | j S )z¾
        Gets the key of this Template.
        Generated key that can be used in API calls to identify application.


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


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

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


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


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


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


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


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


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


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


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

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

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


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


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


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


        :param dependent_object_metadata: The dependent_object_metadata of this Template.
        :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 Template.
        A list of objects that are published or unpublished in this patch.


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


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

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

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


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


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


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


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


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


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


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


        :param time_created: The time_created of this Template.
        :type: datetime
        Nr]   )r@   r!   rB   rB   rC   r!   }  rJ   c                 C   rE   )a  
        Gets the time_updated of this Template.
        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 Template.
        :rtype: datetime
        ©r:   rG   rB   rB   rC   r"   ‰  ó   zTemplate.time_updatedc                 C   rI   )a  
        Sets the time_updated of this Template.
        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 Template.
        :type: datetime
        Nr^   )r@   r"   rB   rB   rC   r"   –  ó   
c                 C   rE   )a7  
        Gets the freeform_tags of this Template.
        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 Template.
        :rtype: dict(str, str)
        ©r;   rG   rB   rB   rC   r#   £  r_   zTemplate.freeform_tagsc                 C   rI   )aC  
        Sets the freeform_tags of this Template.
        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 Template.
        :type: dict(str, str)
        Nra   )r@   r#   rB   rB   rC   r#   °  r`   c                 C   rE   )a-  
        Gets the defined_tags of this Template.
        Usage of predefined tag keys. These predefined keys are scoped to namespaces.
        Example: `{"foo-namespace": {"bar-key": "value"}}`


        :return: The defined_tags of this Template.
        :rtype: dict(str, dict(str, object))
        ©r<   rG   rB   rB   rC   r$   ½  r_   zTemplate.defined_tagsc                 C   rI   )a8  
        Sets the defined_tags of this Template.
        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 Template.
        :type: dict(str, dict(str, object))
        Nrb   )r@   r$   rB   rB   rC   r$   Ê  r`   c                 C   rE   )a›  
        Gets the lifecycle_state of this Template.
        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 Template.
        :rtype: str
        )r=   rG   rB   rB   rC   r%   ×  s   zTemplate.lifecycle_statec                 C   s    g d¢}t ||ƒsd}|| _dS )zÃ
        Sets the lifecycle_state of this Template.
        The current state of the workspace.


        :param lifecycle_state: The lifecycle_state of this Template.
        :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 Template.

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

        :param metadata: The metadata of this Template.
        :type: oci.data_integration.models.ObjectMetadata
        Nrc   )r@   r&   rB   rB   rC   r&   ÿ  rT   c                 C   rE   )a  
        Gets the key_map of this Template.
        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 Template.
        :rtype: dict(str, str)
        ©r?   rG   rB   rB   rC   r'   	  rH   zTemplate.key_mapc                 C   rI   )a  
        Sets the key_map of this Template.
        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 Template.
        :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Template.__repr__c                 C   s   |d u rdS | j |j kS )NF)Ú__dict__©r@   ÚotherrB   rB   rC   Ú__eq__$  s   zTemplate.__eq__c                 C   s
   | |k S re   rB   rh   rB   rB   rC   Ú__ne__*  s   
zTemplate.__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   