ruạṛ
a ���f6K � @ s8 d dl mZmZmZ d dlmZ eG dd� de��ZdS )� )�formatted_flat_dict� NONE_SENTINEL�#value_allowed_none_or_none_sentinel)�init_model_state_from_kwargsc @ s� e Zd ZdZdZdZdZdZdZdZ dd � Z ed d� �Ze dd � �Zejdd � �Ze dd� �Zejdd� �Ze dd� �Zejdd� �Ze dd� �Zejdd� �Ze dd� �Zejdd� �Ze dd� �Zejdd� �Ze dd� �Zejd d� �Ze d!d"� �Zejd#d"� �Ze d$d%� �Zejd&d%� �Ze d'd(� �Zejd)d(� �Ze d*d+� �Zejd,d+� �Ze d-d.� �Zejd/d.� �Ze d0d1� �Zejd2d1� �Ze d3d4� �Zejd5d4� �Ze d6d7� �Zejd8d7� �Zd9d:� Zd;d<� Zd=d>� Z d?S )@�CreateTaskDetailsz4 Properties used in task create operations. �INTEGRATION_TASK�DATA_LOADER_TASK� PIPELINE_TASK�SQL_TASK�OCI_DATAFLOW_TASK� REST_TASKc K s� dddddddddddddd d d�| _ dd dddddddddddddd�| _d| _d| _d| _d| _d| _d| _d| _d| _ d| _ d| _d| _d| _ d| _d| _d| _dS )a� Initializes a new CreateTaskDetails 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.CreateTaskFromIntegrationTask` * :class:`~oci.data_integration.models.CreateTaskFromDataLoaderTask` * :class:`~oci.data_integration.models.CreateTaskFromPipelineTask` * :class:`~oci.data_integration.models.CreateTaskFromOCIDataflowTask` * :class:`~oci.data_integration.models.CreateTaskFromSQLTask` * :class:`~oci.data_integration.models.CreateTaskFromRestTask` 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 CreateTaskDetails. Allowed values for this property are: "INTEGRATION_TASK", "DATA_LOADER_TASK", "PIPELINE_TASK", "SQL_TASK", "OCI_DATAFLOW_TASK", "REST_TASK" :type model_type: str :param key: The value to assign to the key property of this CreateTaskDetails. :type key: str :param model_version: The value to assign to the model_version property of this CreateTaskDetails. :type model_version: str :param parent_ref: The value to assign to the parent_ref property of this CreateTaskDetails. :type parent_ref: oci.data_integration.models.ParentReference :param name: The value to assign to the name property of this CreateTaskDetails. :type name: str :param description: The value to assign to the description property of this CreateTaskDetails. :type description: str :param object_status: The value to assign to the object_status property of this CreateTaskDetails. :type object_status: int :param identifier: The value to assign to the identifier property of this CreateTaskDetails. :type identifier: str :param input_ports: The value to assign to the input_ports property of this CreateTaskDetails. :type input_ports: list[oci.data_integration.models.InputPort] :param output_ports: The value to assign to the output_ports property of this CreateTaskDetails. :type output_ports: list[oci.data_integration.models.OutputPort] :param parameters: The value to assign to the parameters property of this CreateTaskDetails. :type parameters: list[oci.data_integration.models.Parameter] :param op_config_values: The value to assign to the op_config_values property of this CreateTaskDetails. :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 CreateTaskDetails. :type config_provider_delegate: oci.data_integration.models.CreateConfigProvider :param is_concurrent_allowed: The value to assign to the is_concurrent_allowed property of this CreateTaskDetails. :type is_concurrent_allowed: bool :param registry_metadata: The value to assign to the registry_metadata property of this CreateTaskDetails. :type registry_metadata: oci.data_integration.models.RegistryMetadata �strZParentReference�intzlist[InputPort]zlist[OutputPort]zlist[Parameter]ZConfigValuesZCreateConfigProvider�boolZRegistryMetadata)� model_type�key� model_version� parent_ref�name�description� object_status� identifier�input_ports�output_ports� parameters�op_config_values�config_provider_delegate�is_concurrent_allowed�registry_metadata� modelTyper ZmodelVersionZ parentRefr r ZobjectStatusr Z inputPortsZoutputPortsr ZopConfigValuesZconfigProviderDelegateZisConcurrentAllowedZregistryMetadataN)Z swagger_typesZ attribute_map�_model_type�_key�_model_version�_parent_ref�_name�_description�_object_status�_identifier�_input_ports� _output_ports�_parameters�_op_config_values�_config_provider_delegate�_is_concurrent_allowed�_registry_metadata)�self�kwargs� r1 �S/usr/lib/python3.9/site-packages/oci/data_integration/models/create_task_details.py�__init__* s^ M��zCreateTaskDetails.__init__c C sX | d }|dkrdS |dkr dS |dkr,dS |dkr8d S |d krDdS |dkrPd S dS dS )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 ZCreateTaskFromIntegrationTaskr ZCreateTaskFromDataLoaderTaskr ZCreateTaskFromPipelineTaskr ZCreateTaskFromOCIDataflowTaskr ZCreateTaskFromSQLTaskr ZCreateTaskFromRestTaskr Nr1 )Zobject_dictionary�typer1 r1 r2 �get_subtype� s zCreateTaskDetails.get_subtypec C s | j S )aS **[Required]** Gets the model_type of this CreateTaskDetails. 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" :return: The model_type of this CreateTaskDetails. :rtype: str )r �r/ r1 r1 r2 r � s zCreateTaskDetails.model_typec C s* g d�}t ||�s td|� ���|| _dS )z� Sets the model_type of this CreateTaskDetails. The type of the task. :param model_type: The model_type of this CreateTaskDetails. :type: str )r r r r r r z7Invalid value for `model_type`, must be None or one of N)r � ValueErrorr )r/ r Zallowed_valuesr1 r1 r2 r � s �c C s | j S )a Gets the key of this CreateTaskDetails. 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 CreateTaskDetails. :rtype: str �r! r6 r1 r1 r2 r � s zCreateTaskDetails.keyc C s || _ dS )a Sets the key of this CreateTaskDetails. 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 CreateTaskDetails. :type: str Nr8 )r/ r r1 r1 r2 r � s c C s | j S )z� Gets the model_version of this CreateTaskDetails. The object's model version. :return: The model_version of this CreateTaskDetails. :rtype: str �r"