ruạṛ
a ���f% � @ 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 dZ d d � Zedd� �Z ed d� �Zejdd� �Zedd� �Zejdd� �Zdd� Zdd� Zdd� ZdS )�FieldMapze A field map is a way to map a source row shape to a target row shape that may be different. �DIRECT_NAMED_FIELD_MAP�COMPOSITE_FIELD_MAP�DIRECT_FIELD_MAP�RULE_BASED_FIELD_MAP�CONDITIONAL_COMPOSITE_FIELD_MAP�NAMED_ENTITY_MAP�RULE_BASED_ENTITY_MAPc K s( ddd�| _ ddd�| _d| _d| _dS )a� Initializes a new FieldMap 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.RuleBasedFieldMap` * :class:`~oci.data_integration.models.RuleBasedEntityMap` * :class:`~oci.data_integration.models.NamedEntityMap` * :class:`~oci.data_integration.models.DirectFieldMap` * :class:`~oci.data_integration.models.CompositeFieldMap` * :class:`~oci.data_integration.models.ConditionalCompositeFieldMap` * :class:`~oci.data_integration.models.DirectNamedFieldMap` 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 FieldMap. Allowed values for this property are: "DIRECT_NAMED_FIELD_MAP", "COMPOSITE_FIELD_MAP", "DIRECT_FIELD_MAP", "RULE_BASED_FIELD_MAP", "CONDITIONAL_COMPOSITE_FIELD_MAP", "NAMED_ENTITY_MAP", "RULE_BASED_ENTITY_MAP", 'UNKNOWN_ENUM_VALUE'. Any unrecognized values returned by a service will be mapped to 'UNKNOWN_ENUM_VALUE'. :type model_type: str :param description: The value to assign to the description property of this FieldMap. :type description: str �str)� model_type�description� modelTyper N)Z swagger_typesZ attribute_map�_model_type�_description)�self�kwargs� r �I/usr/lib/python3.9/site-packages/oci/data_integration/models/field_map.py�__init__. s ��zFieldMap.__init__c C sd | d }|dkrdS |dkr dS |dkr,dS |dkr8d S |d krDdS |dkrPd S |dkr\dS 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 ZRuleBasedFieldMapr ZRuleBasedEntityMapr ZNamedEntityMapr ZDirectFieldMapr ZCompositeFieldMapr ZConditionalCompositeFieldMapr ZDirectNamedFieldMapr Nr )Zobject_dictionary�typer r r �get_subtypeU s zFieldMap.get_subtypec C s | j S )a **[Required]** Gets the model_type of this FieldMap. The model type for the field map. Allowed values for this property are: "DIRECT_NAMED_FIELD_MAP", "COMPOSITE_FIELD_MAP", "DIRECT_FIELD_MAP", "RULE_BASED_FIELD_MAP", "CONDITIONAL_COMPOSITE_FIELD_MAP", "NAMED_ENTITY_MAP", "RULE_BASED_ENTITY_MAP", 'UNKNOWN_ENUM_VALUE'. Any unrecognized values returned by a service will be mapped to 'UNKNOWN_ENUM_VALUE'. :return: The model_type of this FieldMap. :rtype: str )r �r r r r r t s zFieldMap.model_typec C s g d�}t ||�sd}|| _dS )z� Sets the model_type of this FieldMap. The model type for the field map. :param model_type: The model_type of this FieldMap. :type: str )r r r r r r r ZUNKNOWN_ENUM_VALUEN)r r )r r Zallowed_valuesr r r r � s c C s | j S )z� Gets the description of this FieldMap. Detailed description for the object. :return: The description of this FieldMap. :rtype: str �r r r r r r � s zFieldMap.descriptionc C s || _ dS )z� Sets the description of this FieldMap. Detailed description for the object. :param description: The description of this FieldMap. :type: str Nr )r r r r r r � s c C s t | �S �N)r r r r r �__repr__� s zFieldMap.__repr__c C s |d u rdS | j |j kS )NF)�__dict__�r �otherr r r �__eq__� s zFieldMap.__eq__c C s | |k S r r r r r r �__ne__� s zFieldMap.__ne__N)�__name__� __module__�__qualname__�__doc__Z!MODEL_TYPE_DIRECT_NAMED_FIELD_MAPZMODEL_TYPE_COMPOSITE_FIELD_MAPZMODEL_TYPE_DIRECT_FIELD_MAPZMODEL_TYPE_RULE_BASED_FIELD_MAPZ*MODEL_TYPE_CONDITIONAL_COMPOSITE_FIELD_MAPZMODEL_TYPE_NAMED_ENTITY_MAPZ MODEL_TYPE_RULE_BASED_ENTITY_MAPr �staticmethodr �propertyr �setterr r r"