o
    ɶd H                     @   sD   d dl mZ ddlmZmZmZ ddlmZ eG dd deZdS )   )Operator    )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d.d/ Zd0d1 Zd2d3 Zd4S )5Targetz
    The information about the target operator. The target operator lets you specify the data entity to store the transformed data.
    TRUNCATEMERGEBACKUP	OVERWRITEAPPENDIGNOREc              
   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
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/d0d1d| _d2| _d2| _d2| _d2| _d2| _d2| _d2| _d2| _	d2| _
d2| _d2| _d2| _d2| _d2| _d2| _d2| _d2| _d2| _d2| _d2| _d2| _d2| _d2| _d2| _d2| _d3| _d2S )4a5  
        Initializes a new Target object with values from keyword arguments. The default value of the :py:attr:`~oci.data_integration.models.Target.model_type` attribute
        of this class is ``TARGET_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 Target.
            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 Target.
        :type key: str

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

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

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

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

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

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

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

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

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

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

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

        :param entity:
            The value to assign to the entity property of this Target.
        :type entity: oci.data_integration.models.DataEntity

        :param is_read_access:
            The value to assign to the is_read_access property of this Target.
        :type is_read_access: bool

        :param is_copy_fields:
            The value to assign to the is_copy_fields property of this Target.
        :type is_copy_fields: bool

        :param is_predefined_shape:
            The value to assign to the is_predefined_shape property of this Target.
        :type is_predefined_shape: bool

        :param is_use_same_source_name:
            The value to assign to the is_use_same_source_name property of this Target.
        :type is_use_same_source_name: bool

        :param target_entity_name_prefix:
            The value to assign to the target_entity_name_prefix property of this Target.
        :type target_entity_name_prefix: str

        :param target_entity_name_suffix:
            The value to assign to the target_entity_name_suffix property of this Target.
        :type target_entity_name_suffix: str

        :param data_property:
            The value to assign to the data_property property of this Target.
            Allowed values for this property are: "TRUNCATE", "MERGE", "BACKUP", "OVERWRITE", "APPEND", "IGNORE", 'UNKNOWN_ENUM_VALUE'.
            Any unrecognized values returned by a service will be mapped to 'UNKNOWN_ENUM_VALUE'.
        :type data_property: str

        :param schema_drift_config:
            The value to assign to the schema_drift_config property of this Target.
        :type schema_drift_config: oci.data_integration.models.SchemaDriftConfig

        :param fixed_data_shape:
            The value to assign to the fixed_data_shape property of this Target.
        :type fixed_data_shape: oci.data_integration.models.Shape

        :param write_operation_config:
            The value to assign to the write_operation_config property of this Target.
        :type write_operation_config: oci.data_integration.models.WriteOperationConfig

        :param load_order:
            The value to assign to the load_order property of this Target.
        :type load_order: int

        Z
model_typestrkeyZmodel_versionZ
parent_refZParentReferencenamedescriptionZobject_versionintZinput_portszlist[InputPort]Zoutput_portszlist[TypedObject]Zobject_status
identifier
parameterszlist[Parameter]Zop_config_valuesZConfigValuesentityZ
DataEntityis_read_accessboolis_copy_fieldsis_predefined_shapeZSchemaDriftConfigZShapeZWriteOperationConfig)is_use_same_source_nametarget_entity_name_prefixtarget_entity_name_suffixdata_propertyschema_drift_configfixed_data_shapewrite_operation_config
load_orderZ	modelTypeZmodelVersionZ	parentRefZobjectVersionZ
inputPortsZoutputPortsZobjectStatusZopConfigValuesZisReadAccessZisCopyFieldsZisPredefinedShapeZisUseSameSourceNameZtargetEntityNamePrefixZtargetEntityNameSuffixZdataPropertyZschemaDriftConfigZfixedDataShapeZwriteOperationConfigZ	loadOrderNZTARGET_OPERATOR)Zswagger_typesZattribute_mapZ_model_type_keyZ_model_versionZ_parent_ref_nameZ_descriptionZ_object_versionZ_input_portsZ_output_portsZ_object_statusZ_identifier_parametersZ_op_config_values_entity_is_read_access_is_copy_fields_is_predefined_shape_is_use_same_source_name_target_entity_name_prefix_target_entity_name_suffix_data_property_schema_drift_config_fixed_data_shape_write_operation_config_load_order)selfkwargs r4   Fusr/lib/python3.10/site-packages/oci/data_integration/models/target.py__init__*   s   o	

	


zTarget.__init__c                 C      | j S )z
        Gets the entity of this Target.

        :return: The entity of this Target.
        :rtype: oci.data_integration.models.DataEntity
        r&   r2   r4   r4   r5   r         zTarget.entityc                 C   
   || _ dS )z
        Sets the entity of this Target.

        :param entity: The entity of this Target.
        :type: oci.data_integration.models.DataEntity
        Nr8   )r2   r   r4   r4   r5   r         
c                 C   r7   )z
        Gets the is_read_access of this Target.
        Specifies the read access.


        :return: The is_read_access of this Target.
        :rtype: bool
        r'   r9   r4   r4   r5   r         
zTarget.is_read_accessc                 C   r;   )z
        Sets the is_read_access of this Target.
        Specifies the read access.


        :param is_read_access: The is_read_access of this Target.
        :type: bool
        Nr=   )r2   r   r4   r4   r5   r        

c                 C   r7   )z
        Gets the is_copy_fields of this Target.
        Specifies the copy fields.


        :return: The is_copy_fields of this Target.
        :rtype: bool
        r(   r9   r4   r4   r5   r     r>   zTarget.is_copy_fieldsc                 C   r;   )z
        Sets the is_copy_fields of this Target.
        Specifies the copy fields.


        :param is_copy_fields: The is_copy_fields of this Target.
        :type: bool
        Nr@   )r2   r   r4   r4   r5   r   $  r?   c                 C   r7   )z
        Gets the is_predefined_shape of this Target.
        Specifies if this uses a predefined shape.


        :return: The is_predefined_shape of this Target.
        :rtype: bool
        r)   r9   r4   r4   r5   r   0  r>   zTarget.is_predefined_shapec                 C   r;   )z
        Sets the is_predefined_shape of this Target.
        Specifies if this uses a predefined shape.


        :param is_predefined_shape: The is_predefined_shape of this Target.
        :type: bool
        NrA   )r2   r   r4   r4   r5   r   <  r?   c                 C   r7   )z
        Gets the is_use_same_source_name of this Target.
        Specifies if entity name is the same as source.


        :return: The is_use_same_source_name of this Target.
        :rtype: bool
        r*   r9   r4   r4   r5   r   H  r>   zTarget.is_use_same_source_namec                 C   r;   )z
        Sets the is_use_same_source_name of this Target.
        Specifies if entity name is the same as source.


        :param is_use_same_source_name: The is_use_same_source_name of this Target.
        :type: bool
        NrB   )r2   r   r4   r4   r5   r   T  r?   c                 C   r7   )z
        Gets the target_entity_name_prefix of this Target.
        Prefix for the entity Name.


        :return: The target_entity_name_prefix of this Target.
        :rtype: str
        r+   r9   r4   r4   r5   r   `  r>   z Target.target_entity_name_prefixc                 C   r;   )z
        Sets the target_entity_name_prefix of this Target.
        Prefix for the entity Name.


        :param target_entity_name_prefix: The target_entity_name_prefix of this Target.
        :type: str
        NrC   )r2   r   r4   r4   r5   r   l  r?   c                 C   r7   )z
        Gets the target_entity_name_suffix of this Target.
        Suffix for the entity Name.


        :return: The target_entity_name_suffix of this Target.
        :rtype: str
        r,   r9   r4   r4   r5   r   x  r>   z Target.target_entity_name_suffixc                 C   r;   )z
        Sets the target_entity_name_suffix of this Target.
        Suffix for the entity Name.


        :param target_entity_name_suffix: The target_entity_name_suffix of this Target.
        :type: str
        NrD   )r2   r   r4   r4   r5   r     r?   c                 C   r7   )a  
        Gets the data_property of this Target.
        Specifies the data property.

        Allowed values for this property are: "TRUNCATE", "MERGE", "BACKUP", "OVERWRITE", "APPEND", "IGNORE", 'UNKNOWN_ENUM_VALUE'.
        Any unrecognized values returned by a service will be mapped to 'UNKNOWN_ENUM_VALUE'.


        :return: The data_property of this Target.
        :rtype: str
        )r-   r9   r4   r4   r5   r     s   zTarget.data_propertyc                 C   s    g d}t ||sd}|| _dS )z
        Sets the data_property of this Target.
        Specifies the data property.


        :param data_property: The data_property of this Target.
        :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   r7   )z
        Gets the schema_drift_config of this Target.

        :return: The schema_drift_config of this Target.
        :rtype: oci.data_integration.models.SchemaDriftConfig
        r.   r9   r4   r4   r5   r     r:   zTarget.schema_drift_configc                 C   r;   )z
        Sets the schema_drift_config of this Target.

        :param schema_drift_config: The schema_drift_config of this Target.
        :type: oci.data_integration.models.SchemaDriftConfig
        NrE   )r2   r   r4   r4   r5   r     r<   c                 C   r7   )z
        Gets the fixed_data_shape of this Target.

        :return: The fixed_data_shape of this Target.
        :rtype: oci.data_integration.models.Shape
        r/   r9   r4   r4   r5   r      r:   zTarget.fixed_data_shapec                 C   r;   )z
        Sets the fixed_data_shape of this Target.

        :param fixed_data_shape: The fixed_data_shape of this Target.
        :type: oci.data_integration.models.Shape
        NrF   )r2   r    r4   r4   r5   r      r<   c                 C   r7   )z
        Gets the write_operation_config of this Target.

        :return: The write_operation_config of this Target.
        :rtype: oci.data_integration.models.WriteOperationConfig
        r0   r9   r4   r4   r5   r!     r:   zTarget.write_operation_configc                 C   r;   )z
        Sets the write_operation_config of this Target.

        :param write_operation_config: The write_operation_config of this Target.
        :type: oci.data_integration.models.WriteOperationConfig
        NrG   )r2   r!   r4   r4   r5   r!     r<   c                 C   r7   )z
        Gets the load_order of this Target.
        A numeric loading order number for the target.


        :return: The load_order of this Target.
        :rtype: int
        r1   r9   r4   r4   r5   r"     r>   zTarget.load_orderc                 C   r;   )z
        Sets the load_order of this Target.
        A numeric loading order number for the target.


        :param load_order: The load_order of this Target.
        :type: int
        NrH   )r2   r"   r4   r4   r5   r"     r?   c                 C   s   t | S N)r   r9   r4   r4   r5   __repr__  s   zTarget.__repr__c                 C   s   |d u rdS | j |j kS )NF)__dict__r2   otherr4   r4   r5   __eq__  s   zTarget.__eq__c                 C   s
   | |k S rI   r4   rL   r4   r4   r5   __ne__  s   
zTarget.__ne__N)__name__
__module____qualname____doc__ZDATA_PROPERTY_TRUNCATEZDATA_PROPERTY_MERGEZDATA_PROPERTY_BACKUPZDATA_PROPERTY_OVERWRITEZDATA_PROPERTY_APPENDZDATA_PROPERTY_IGNOREr6   propertyr   setterr   r   r   r   r   r   r   r   r    r!   r"   rJ   rN   rO   r4   r4   r4   r5   r      sz     C
	
	














	
	
	
	
	
	

r   N)	operatorr   Zoci.utilr   r   r   Zoci.decoratorsr   r   r4   r4   r4   r5   <module>   s
   