ruạṛ
a ���f�N � @ sD d dl mZ ddlmZmZmZ ddlmZ eG dd� de��ZdS )� )�Operator� )�formatted_flat_dict� NONE_SENTINEL�#value_allowed_none_or_none_sentinel)�init_model_state_from_kwargsc @ s^ e Zd ZdZdZdZdZdZdZdZ dZ dZdZdZ dZd Zd ZdZdZd ZdZdd� Zedd� �Zejdd� �Zedd� �Zejdd� �Zedd� �Zejdd� �Zedd� �Zejdd� �Zedd� �Zejdd� �Zed d!� �Zejd"d!� �Zed#d$� �Zejd%d$� �Zed&d'� �Zejd(d'� �Zed)d*� �Z e jd+d*� �Z d,d-� Z!d.d/� Z"d0d1� Z#d2S )3�TaskOperatorz An operator for task �SECONDS�MINUTES�HOURS�DAYS� PIPELINE_TASK�INTEGRATION_TASK�DATA_LOADER_TASK�SQL_TASK�OCI_DATAFLOW_TASK� REST_TASK�ALL_SUCCESS� ALL_FAILED�ALL_COMPLETEc K s� dddddddddddddddddddd dd d�| _ dd ddddddddddddddddddd 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 TaskOperator object with values from keyword arguments. The default value of the :py:attr:`~oci.data_integration.models.TaskOperator.model_type` attribute of this class is ``TASK_OPERATOR`` and it should not be changed. 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 TaskOperator. Allowed values for this property are: "SOURCE_OPERATOR", "FILTER_OPERATOR", "JOINER_OPERATOR", "AGGREGATOR_OPERATOR", "PROJECTION_OPERATOR", "TARGET_OPERATOR", "FLATTEN_OPERATOR", "DISTINCT_OPERATOR", "SORT_OPERATOR", "UNION_OPERATOR", "INTERSECT_OPERATOR", "MINUS_OPERATOR", "MERGE_OPERATOR", "FUNCTION_OPERATOR", "SPLIT_OPERATOR", "START_OPERATOR", "END_OPERATOR", "PIPELINE_OPERATOR", "DECISION_OPERATOR", "TASK_OPERATOR", "EXPRESSION_OPERATOR", "LOOKUP_OPERATOR", "PIVOT_OPERATOR", '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 TaskOperator. :type key: str :param model_version: The value to assign to the model_version property of this TaskOperator. :type model_version: str :param parent_ref: The value to assign to the parent_ref property of this TaskOperator. :type parent_ref: oci.data_integration.models.ParentReference :param name: The value to assign to the name property of this TaskOperator. :type name: str :param description: The value to assign to the description property of this TaskOperator. :type description: str :param object_version: The value to assign to the object_version property of this TaskOperator. :type object_version: int :param input_ports: The value to assign to the input_ports property of this TaskOperator. :type input_ports: list[oci.data_integration.models.InputPort] :param output_ports: The value to assign to the output_ports property of this TaskOperator. :type output_ports: list[oci.data_integration.models.TypedObject] :param object_status: The value to assign to the object_status property of this TaskOperator. :type object_status: int :param identifier: The value to assign to the identifier property of this TaskOperator. :type identifier: str :param parameters: The value to assign to the parameters property of this TaskOperator. :type parameters: list[oci.data_integration.models.Parameter] :param op_config_values: The value to assign to the op_config_values property of this TaskOperator. :type op_config_values: oci.data_integration.models.ConfigValues :param retry_attempts: The value to assign to the retry_attempts property of this TaskOperator. :type retry_attempts: int :param retry_delay_unit: The value to assign to the retry_delay_unit property of this TaskOperator. Allowed values for this property are: "SECONDS", "MINUTES", "HOURS", "DAYS", 'UNKNOWN_ENUM_VALUE'. Any unrecognized values returned by a service will be mapped to 'UNKNOWN_ENUM_VALUE'. :type retry_delay_unit: str :param retry_delay: The value to assign to the retry_delay property of this TaskOperator. :type retry_delay: float :param expected_duration: The value to assign to the expected_duration property of this TaskOperator. :type expected_duration: float :param expected_duration_unit: The value to assign to the expected_duration_unit property of this TaskOperator. Allowed values for this property are: "SECONDS", "MINUTES", "HOURS", "DAYS", 'UNKNOWN_ENUM_VALUE'. Any unrecognized values returned by a service will be mapped to 'UNKNOWN_ENUM_VALUE'. :type expected_duration_unit: str :param task_type: The value to assign to the task_type property of this TaskOperator. Allowed values for this property are: "PIPELINE_TASK", "INTEGRATION_TASK", "DATA_LOADER_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 task_type: str :param task: The value to assign to the task property of this TaskOperator. :type task: oci.data_integration.models.Task :param trigger_rule: The value to assign to the trigger_rule property of this TaskOperator. Allowed values for this property are: "ALL_SUCCESS", "ALL_FAILED", "ALL_COMPLETE", 'UNKNOWN_ENUM_VALUE'. Any unrecognized values returned by a service will be mapped to 'UNKNOWN_ENUM_VALUE'. :type trigger_rule: str :param config_provider_delegate: The value to assign to the config_provider_delegate property of this TaskOperator. :type config_provider_delegate: oci.data_integration.models.ConfigProvider �strZParentReference�intzlist[InputPort]zlist[TypedObject]zlist[Parameter]ZConfigValues�floatZTaskZConfigProvider)Z model_type�keyZ model_versionZ parent_ref�name�descriptionZobject_versionZinput_portsZoutput_portsZ object_status� identifier� parametersZop_config_values�retry_attempts�retry_delay_unit�retry_delay�expected_duration�expected_duration_unit� task_type�task�trigger_rule�config_provider_delegateZ modelTyper ZmodelVersionZ parentRefr r Z objectVersionZ inputPortsZoutputPortsZobjectStatusr r ZopConfigValuesZ retryAttemptsZretryDelayUnitZ retryDelayZexpectedDurationZexpectedDurationUnitZtaskTyper$ ZtriggerRuleZconfigProviderDelegateNZ TASK_OPERATOR)Z swagger_typesZ attribute_mapZ_model_typeZ_keyZ_model_versionZ_parent_ref�_nameZ_descriptionZ_object_versionZ_input_portsZ _output_portsZ_object_statusZ_identifierZ_parametersZ_op_config_values�_retry_attempts�_retry_delay_unit�_retry_delay�_expected_duration�_expected_duration_unit� _task_type�_task� _trigger_rule�_config_provider_delegate)�self�kwargs� r3 �M/usr/lib/python3.9/site-packages/oci/data_integration/models/task_operator.py�__init__V s� j��zTaskOperator.__init__c C s | j S )z� Gets the retry_attempts of this TaskOperator. The number of retry attempts. :return: The retry_attempts of this TaskOperator. :rtype: int �r( �r1 r3 r3 r4 r s zTaskOperator.retry_attemptsc C s || _ dS )z� Sets the retry_attempts of this TaskOperator. The number of retry attempts. :param retry_attempts: The retry_attempts of this TaskOperator. :type: int Nr6 )r1 r r3 r3 r4 r s c C s | j S )a� Gets the retry_delay_unit of this TaskOperator. The unit for the retry delay. Allowed values for this property are: "SECONDS", "MINUTES", "HOURS", "DAYS", 'UNKNOWN_ENUM_VALUE'. Any unrecognized values returned by a service will be mapped to 'UNKNOWN_ENUM_VALUE'. :return: The retry_delay_unit of this TaskOperator. :rtype: str )r) r7 r3 r3 r4 r ! s zTaskOperator.retry_delay_unitc C s g d�}t ||�sd}|| _dS )z� Sets the retry_delay_unit of this TaskOperator. The unit for the retry delay. :param retry_delay_unit: The retry_delay_unit of this TaskOperator. :type: str �r r r r �UNKNOWN_ENUM_VALUEN)r r) )r1 r �allowed_valuesr3 r3 r4 r 0 s c C s | j S )z� Gets the retry_delay of this TaskOperator. The retry delay, the unit for measurement is in the property retry delay unit. :return: The retry_delay of this TaskOperator. :rtype: float �r* r7 r3 r3 r4 r ? s zTaskOperator.retry_delayc C s || _ dS )z� Sets the retry_delay of this TaskOperator. The retry delay, the unit for measurement is in the property retry delay unit. :param retry_delay: The retry_delay of this TaskOperator. :type: float Nr; )r1 r r3 r3 r4 r K s c C s | j S )z� Gets the expected_duration of this TaskOperator. The expected duration for the task run. :return: The expected_duration of this TaskOperator. :rtype: float �r+ r7 r3 r3 r4 r! W s zTaskOperator.expected_durationc C s || _ dS )z� Sets the expected_duration of this TaskOperator. The expected duration for the task run. :param expected_duration: The expected_duration of this TaskOperator. :type: float Nr<