o
    ɶdM                     @   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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d0d1 Zejd2d1 Zed3d4 Zejd5d4 Zed6d7 Zejd8d7 Zed9d: Zejd;d: Zed<d= Zejd>d= Zd?d@ Z dAdB Z!dCdD Z"dES )FTaskz^
    The task type contains the audit summary information and the definition of the task.
    INTEGRATION_TASKDATA_LOADER_TASKPIPELINE_TASKSQL_TASKOCI_DATAFLOW_TASK	REST_TASKc                 K   sB  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| _ 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(| _	d(| _
d(| _d(| _d(| _d(| _d(| _d(| _d(| _d(| _d(S ))a  
        Initializes a new Task object with values from keyword arguments. This class has the following subclasses and if you are using this class as input
        to a service operations then you should favor using a subclass over the base class:

        * :class:`~oci.data_integration.models.TaskFromPipelineTaskDetails`
        * :class:`~oci.data_integration.models.TaskFromIntegrationTaskDetails`
        * :class:`~oci.data_integration.models.TaskFromSQLTaskDetails`
        * :class:`~oci.data_integration.models.TaskFromRestTaskDetails`
        * :class:`~oci.data_integration.models.TaskFromOCIDataflowTaskDetails`
        * :class:`~oci.data_integration.models.TaskFromDataLoaderTaskDetails`

        The following keyword arguments are supported (corresponding to the getters/setters of this class):

        :param model_type:
            The value to assign to the model_type property of this Task.
            Allowed values for this property are: "INTEGRATION_TASK", "DATA_LOADER_TASK", "PIPELINE_TASK", "SQL_TASK", "OCI_DATAFLOW_TASK", "REST_TASK", 'UNKNOWN_ENUM_VALUE'.
            Any unrecognized values returned by a service will be mapped to 'UNKNOWN_ENUM_VALUE'.
        :type model_type: str

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

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

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

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

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

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

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

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

        :param input_ports:
            The value to assign to the input_ports property of this Task.
        :type input_ports: list[oci.data_integration.models.InputPort]

        :param output_ports:
            The value to assign to the output_ports property of this Task.
        :type output_ports: list[oci.data_integration.models.OutputPort]

        :param parameters:
            The value to assign to the parameters property of this Task.
        :type parameters: list[oci.data_integration.models.Parameter]

        :param op_config_values:
            The value to assign to the op_config_values property of this Task.
        :type op_config_values: oci.data_integration.models.ConfigValues

        :param config_provider_delegate:
            The value to assign to the config_provider_delegate property of this Task.
        :type config_provider_delegate: oci.data_integration.models.ConfigProvider

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

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

        :param registry_metadata:
            The value to assign to the registry_metadata property of this Task.
        :type registry_metadata: oci.data_integration.models.RegistryMetadata

        
model_typestrkeymodel_version
parent_refZParentReferencenamedescriptionobject_versionintobject_status
identifierinput_portszlist[InputPort]output_portszlist[OutputPort]
parameterszlist[Parameter]op_config_valuesZConfigValuesconfig_provider_delegateZConfigProvidermetadataZObjectMetadatakey_mapzdict(str, str)registry_metadataZRegistryMetadata	modelTypeZmodelVersionZ	parentRefZobjectVersionZobjectStatusZ
inputPortsZoutputPortsZopConfigValuesZconfigProviderDelegateZkeyMapZregistryMetadataN)Zswagger_typesZattribute_map_model_type_key_model_version_parent_ref_name_description_object_version_object_status_identifier_input_ports_output_ports_parameters_op_config_values_config_provider_delegate	_metadata_key_map_registry_metadata)selfkwargs r4   Dusr/lib/python3.10/site-packages/oci/data_integration/models/task.py__init__*   s   U	
	

zTask.__init__c                 C   sT   | d }|dkr
dS |dkrdS |dkrdS |dkrd	S |d
kr"dS |dkr(dS dS )z
        Given the hash representation of a subtype of this class,
        use the info in the hash to return the class of the subtype.
        r    r	   ZTaskFromPipelineTaskDetailsr   ZTaskFromIntegrationTaskDetailsr
   ZTaskFromSQLTaskDetailsr   ZTaskFromRestTaskDetailsr   ZTaskFromOCIDataflowTaskDetailsr   ZTaskFromDataLoaderTaskDetailsr   r4   )Zobject_dictionarytyper4   r4   r5   get_subtype   s   zTask.get_subtypec                 C      | j S )a  
        Gets the model_type of this Task.
        The type of the task.

        Allowed values for this property are: "INTEGRATION_TASK", "DATA_LOADER_TASK", "PIPELINE_TASK", "SQL_TASK", "OCI_DATAFLOW_TASK", "REST_TASK", 'UNKNOWN_ENUM_VALUE'.
        Any unrecognized values returned by a service will be mapped to 'UNKNOWN_ENUM_VALUE'.


        :return: The model_type of this Task.
        :rtype: str
        )r!   r2   r4   r4   r5   r      s   zTask.model_typec                 C   s    g d}t ||sd}|| _dS )z
        Sets the model_type of this Task.
        The type of the task.


        :param model_type: The model_type of this Task.
        :type: str
        )r   r   r	   r
   r   r   ZUNKNOWN_ENUM_VALUEN)r   r!   )r2   r   Zallowed_valuesr4   r4   r5   r      s   


c                 C   r9   )a  
        Gets the key of this Task.
        Generated key that can be used in API calls to identify task. On scenarios where reference to the task is needed, a value can be passed in create.


        :return: The key of this Task.
        :rtype: str
        r"   r:   r4   r4   r5   r         
zTask.keyc                 C   
   || _ dS )a  
        Sets the key of this Task.
        Generated key that can be used in API calls to identify task. On scenarios where reference to the task is needed, a value can be passed in create.


        :param key: The key of this Task.
        :type: str
        Nr;   )r2   r   r4   r4   r5   r         

c                 C   r9   )z
        Gets the model_version of this Task.
        The object's model version.


        :return: The model_version of this Task.
        :rtype: str
        r#   r:   r4   r4   r5   r     r<   zTask.model_versionc                 C   r=   )z
        Sets the model_version of this Task.
        The object's model version.


        :param model_version: The model_version of this Task.
        :type: str
        Nr?   )r2   r   r4   r4   r5   r     r>   c                 C   r9   )z
        Gets the parent_ref of this Task.

        :return: The parent_ref of this Task.
        :rtype: oci.data_integration.models.ParentReference
        r$   r:   r4   r4   r5   r   #     zTask.parent_refc                 C   r=   )z
        Sets the parent_ref of this Task.

        :param parent_ref: The parent_ref of this Task.
        :type: oci.data_integration.models.ParentReference
        Nr@   )r2   r   r4   r4   r5   r   -     
c                 C   r9   )a'  
        Gets the name of this Task.
        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 Task.
        :rtype: str
        r%   r:   r4   r4   r5   r   7  r<   z	Task.namec                 C   r=   )a*  
        Sets the name of this Task.
        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 Task.
        :type: str
        NrC   )r2   r   r4   r4   r5   r   C  r>   c                 C   r9   )z
        Gets the description of this Task.
        Detailed description for the object.


        :return: The description of this Task.
        :rtype: str
        r&   r:   r4   r4   r5   r   O  r<   zTask.descriptionc                 C   r=   )z
        Sets the description of this Task.
        Detailed description for the object.


        :param description: The description of this Task.
        :type: str
        NrD   )r2   r   r4   r4   r5   r   [  r>   c                 C   r9   )z
        Gets the object_version of this Task.
        The version of the object that is used to track changes in the object instance.


        :return: The object_version of this Task.
        :rtype: int
        r'   r:   r4   r4   r5   r   g  r<   zTask.object_versionc                 C   r=   )z
        Sets the object_version of this Task.
        The version of the object that is used to track changes in the object instance.


        :param object_version: The object_version of this Task.
        :type: int
        NrE   )r2   r   r4   r4   r5   r   s  r>   c                 C   r9   )z
        Gets the object_status of this Task.
        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 Task.
        :rtype: int
        r(   r:   r4   r4   r5   r     r<   zTask.object_statusc                 C   r=   )a  
        Sets the object_status of this Task.
        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 Task.
        :type: int
        NrF   )r2   r   r4   r4   r5   r     r>   c                 C   r9   )a  
        Gets the identifier of this Task.
        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 Task.
        :rtype: str
        r)   r:   r4   r4   r5   r     r<   zTask.identifierc                 C   r=   )a  
        Sets the identifier of this Task.
        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 Task.
        :type: str
        NrG   )r2   r   r4   r4   r5   r     r>   c                 C   r9   )z
        Gets the input_ports of this Task.
        An array of input ports.


        :return: The input_ports of this Task.
        :rtype: list[oci.data_integration.models.InputPort]
        r*   r:   r4   r4   r5   r     r<   zTask.input_portsc                 C   r=   )z
        Sets the input_ports of this Task.
        An array of input ports.


        :param input_ports: The input_ports of this Task.
        :type: list[oci.data_integration.models.InputPort]
        NrH   )r2   r   r4   r4   r5   r     r>   c                 C   r9   )z
        Gets the output_ports of this Task.
        An array of output ports.


        :return: The output_ports of this Task.
        :rtype: list[oci.data_integration.models.OutputPort]
        r+   r:   r4   r4   r5   r     r<   zTask.output_portsc                 C   r=   )z
        Sets the output_ports of this Task.
        An array of output ports.


        :param output_ports: The output_ports of this Task.
        :type: list[oci.data_integration.models.OutputPort]
        NrI   )r2   r   r4   r4   r5   r     r>   c                 C   r9   )z
        Gets the parameters of this Task.
        An array of parameters.


        :return: The parameters of this Task.
        :rtype: list[oci.data_integration.models.Parameter]
        r,   r:   r4   r4   r5   r     r<   zTask.parametersc                 C   r=   )z
        Sets the parameters of this Task.
        An array of parameters.


        :param parameters: The parameters of this Task.
        :type: list[oci.data_integration.models.Parameter]
        NrJ   )r2   r   r4   r4   r5   r     r>   c                 C   r9   )z
        Gets the op_config_values of this Task.

        :return: The op_config_values of this Task.
        :rtype: oci.data_integration.models.ConfigValues
        r-   r:   r4   r4   r5   r     rA   zTask.op_config_valuesc                 C   r=   )z
        Sets the op_config_values of this Task.

        :param op_config_values: The op_config_values of this Task.
        :type: oci.data_integration.models.ConfigValues
        NrK   )r2   r   r4   r4   r5   r     rB   c                 C   r9   )z
        Gets the config_provider_delegate of this Task.

        :return: The config_provider_delegate of this Task.
        :rtype: oci.data_integration.models.ConfigProvider
        r.   r:   r4   r4   r5   r     rA   zTask.config_provider_delegatec                 C   r=   )z
        Sets the config_provider_delegate of this Task.

        :param config_provider_delegate: The config_provider_delegate of this Task.
        :type: oci.data_integration.models.ConfigProvider
        NrL   )r2   r   r4   r4   r5   r     rB   c                 C   r9   )z
        Gets the metadata of this Task.

        :return: The metadata of this Task.
        :rtype: oci.data_integration.models.ObjectMetadata
        r/   r:   r4   r4   r5   r     rA   zTask.metadatac                 C   r=   )z
        Sets the metadata of this Task.

        :param metadata: The metadata of this Task.
        :type: oci.data_integration.models.ObjectMetadata
        NrM   )r2   r   r4   r4   r5   r   )  rB   c                 C   r9   )a  
        Gets the key_map of this Task.
        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 Task.
        :rtype: dict(str, str)
        r0   r:   r4   r4   r5   r   3  r<   zTask.key_mapc                 C   r=   )a  
        Sets the key_map of this Task.
        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 Task.
        :type: dict(str, str)
        NrN   )r2   r   r4   r4   r5   r   ?  r>   c                 C   r9   )z
        Gets the registry_metadata of this Task.

        :return: The registry_metadata of this Task.
        :rtype: oci.data_integration.models.RegistryMetadata
        r1   r:   r4   r4   r5   r   K  rA   zTask.registry_metadatac                 C   r=   )z
        Sets the registry_metadata of this Task.

        :param registry_metadata: The registry_metadata of this Task.
        :type: oci.data_integration.models.RegistryMetadata
        NrO   )r2   r   r4   r4   r5   r   U  rB   c                 C   s   t | S N)r   r:   r4   r4   r5   __repr___  s   zTask.__repr__c                 C   s   |d u rdS | j |j kS )NF)__dict__r2   otherr4   r4   r5   __eq__b  s   zTask.__eq__c                 C   s
   | |k S rP   r4   rS   r4   r4   r5   __ne__h  s   
zTask.__ne__N)#__name__
__module____qualname____doc__ZMODEL_TYPE_INTEGRATION_TASKZMODEL_TYPE_DATA_LOADER_TASKZMODEL_TYPE_PIPELINE_TASKZMODEL_TYPE_SQL_TASKZMODEL_TYPE_OCI_DATAFLOW_TASKZMODEL_TYPE_REST_TASKr6   staticmethodr8   propertyr   setterr   r   r   r   r   r   r   r   r   r   r   r   r   r   r   r   rQ   rU   rV   r4   r4   r4   r5   r      s     







	
	
















	
	
	
	
	
	


	
	r   N)Zoci.utilr   r   r   Zoci.decoratorsr   objectr   r4   r4   r4   r5   <module>   s   