ruạṛ
a ���f�N � @ 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� �Ze d9d:� �Zejd;d:� �Zd<d=� Zd>d?� Z d@dA� Z!dBS )C�UpdateTaskDetailsz4 Properties used in task create operations. �INTEGRATION_TASK�DATA_LOADER_TASK� PIPELINE_TASK�SQL_TASK�OCI_DATAFLOW_TASK� REST_TASKc K s� ddddddddddddddd d d�| _ dd ddddddddddddddd�| _d| _d| _d| _d| _d| _d| _d| _d| _ d| _ d| _d| _d| _ d| _d| _d| _d| _dS )aa Initializes a new UpdateTaskDetails 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.UpdateTaskFromRestTask` * :class:`~oci.data_integration.models.UpdateTaskFromPipelineTask` * :class:`~oci.data_integration.models.UpdateTaskFromOCIDataflowTask` * :class:`~oci.data_integration.models.UpdateTaskFromSQLTask` * :class:`~oci.data_integration.models.UpdateTaskFromDataLoaderTask` * :class:`~oci.data_integration.models.UpdateTaskFromIntegrationTask` 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 UpdateTaskDetails. 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 UpdateTaskDetails. :type key: str :param model_version: The value to assign to the model_version property of this UpdateTaskDetails. :type model_version: str :param parent_ref: The value to assign to the parent_ref property of this UpdateTaskDetails. :type parent_ref: oci.data_integration.models.ParentReference :param name: The value to assign to the name property of this UpdateTaskDetails. :type name: str :param description: The value to assign to the description property of this UpdateTaskDetails. :type description: str :param object_status: The value to assign to the object_status property of this UpdateTaskDetails. :type object_status: int :param object_version: The value to assign to the object_version property of this UpdateTaskDetails. :type object_version: int :param identifier: The value to assign to the identifier property of this UpdateTaskDetails. :type identifier: str :param input_ports: The value to assign to the input_ports property of this UpdateTaskDetails. :type input_ports: list[oci.data_integration.models.InputPort] :param output_ports: The value to assign to the output_ports property of this UpdateTaskDetails. :type output_ports: list[oci.data_integration.models.OutputPort] :param parameters: The value to assign to the parameters property of this UpdateTaskDetails. :type parameters: list[oci.data_integration.models.Parameter] :param op_config_values: The value to assign to the op_config_values property of this UpdateTaskDetails. :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 UpdateTaskDetails. :type config_provider_delegate: oci.data_integration.models.ConfigProvider :param is_concurrent_allowed: The value to assign to the is_concurrent_allowed property of this UpdateTaskDetails. :type is_concurrent_allowed: bool :param registry_metadata: The value to assign to the registry_metadata property of this UpdateTaskDetails. :type registry_metadata: oci.data_integration.models.RegistryMetadata �strZParentReference�intzlist[InputPort]zlist[OutputPort]zlist[Parameter]ZConfigValuesZConfigProvider�boolZRegistryMetadata)� model_type�key� model_version� parent_ref�name�description� object_status�object_version� identifier�input_ports�output_ports� parameters�op_config_values�config_provider_delegate�is_concurrent_allowed�registry_metadata� modelTyper ZmodelVersionZ parentRefr r ZobjectStatusZ objectVersionr Z inputPortsZoutputPortsr ZopConfigValuesZconfigProviderDelegateZisConcurrentAllowedZregistryMetadataN)Z swagger_typesZ attribute_map�_model_type�_key�_model_version�_parent_ref�_name�_description�_object_status�_object_version�_identifier�_input_ports� _output_ports�_parameters�_op_config_values�_config_provider_delegate�_is_concurrent_allowed�_registry_metadata)�self�kwargs� r3 �S/usr/lib/python3.9/site-packages/oci/data_integration/models/update_task_details.py�__init__* sd Q��zUpdateTaskDetails.__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 ZUpdateTaskFromRestTaskr ZUpdateTaskFromPipelineTaskr ZUpdateTaskFromOCIDataflowTaskr ZUpdateTaskFromSQLTaskr ZUpdateTaskFromDataLoaderTaskr ZUpdateTaskFromIntegrationTaskr Nr3 )Zobject_dictionary�typer3 r3 r4 �get_subtype� s zUpdateTaskDetails.get_subtypec C s | j S )aS **[Required]** Gets the model_type of this UpdateTaskDetails. 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 UpdateTaskDetails. :rtype: str )r! �r1 r3 r3 r4 r � s zUpdateTaskDetails.model_typec C s* g d�}t ||�s td|� ���|| _dS )z� Sets the model_type of this UpdateTaskDetails. The type of the task. :param model_type: The model_type of this UpdateTaskDetails. :type: str )r r r r r r z7Invalid value for `model_type`, must be None or one of N)r � ValueErrorr! )r1 r Zallowed_valuesr3 r3 r4 r � s �c C s | j S )a- **[Required]** Gets the key of this UpdateTaskDetails. 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 UpdateTaskDetails. :rtype: str �r"