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 ZdZdZdZdd� Zedd� �Ze dd � �Z e jd d � �Z e dd� �Zejd d� �Ze dd� �Z e jdd� �Z e dd� �Zejdd� �Ze dd� �Zejdd� �Ze dd� �Zejdd� �Ze dd� �Zejdd� �Zdd� Zdd � Zd!d"� Zd#S )$� UniqueKeyz! The unqique key object. �PRIMARY_KEY� UNIQUE_KEYc K sZ dddddddd�| _ dddd d ddd�| _d | _d | _d | _d | _d | _d | _d | _d S )a� Initializes a new UniqueKey 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.PrimaryKey` * :class:`~oci.data_integration.models.UniqueDataKey` 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 UniqueKey. Allowed values for this property are: "PRIMARY_KEY", "UNIQUE_KEY", '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 UniqueKey. :type key: str :param model_version: The value to assign to the model_version property of this UniqueKey. :type model_version: str :param parent_ref: The value to assign to the parent_ref property of this UniqueKey. :type parent_ref: oci.data_integration.models.ParentReference :param name: The value to assign to the name property of this UniqueKey. :type name: str :param attribute_refs: The value to assign to the attribute_refs property of this UniqueKey. :type attribute_refs: list[oci.data_integration.models.KeyAttribute] :param object_status: The value to assign to the object_status property of this UniqueKey. :type object_status: int �strZParentReferencezlist[KeyAttribute]�int)� model_type�key� model_version� parent_ref�name�attribute_refs� object_status� modelTyper ZmodelVersionZ parentRefr Z attributeRefsZobjectStatusN) Z swagger_typesZ attribute_map�_model_type�_key�_model_version�_parent_ref�_name�_attribute_refs�_object_status)�self�kwargs� r �J/usr/lib/python3.9/site-packages/oci/data_integration/models/unique_key.py�__init__ s. *�� zUniqueKey.__init__c C s( | d }|dkrdS |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 Z PrimaryKeyr Z UniqueDataKeyr Nr )Zobject_dictionary�typer r r �get_subtype_ s zUniqueKey.get_subtypec C s | j S )af **[Required]** Gets the model_type of this UniqueKey. The key type. Allowed values for this property are: "PRIMARY_KEY", "UNIQUE_KEY", 'UNKNOWN_ENUM_VALUE'. Any unrecognized values returned by a service will be mapped to 'UNKNOWN_ENUM_VALUE'. :return: The model_type of this UniqueKey. :rtype: str )r �r r r r r o s zUniqueKey.model_typec C s ddg}t ||�sd}|| _dS )z� Sets the model_type of this UniqueKey. The key type. :param model_type: The model_type of this UniqueKey. :type: str r r ZUNKNOWN_ENUM_VALUEN)r r )r r Zallowed_valuesr r r r ~ s c C s | j S )z� Gets the key of this UniqueKey. The object key. :return: The key of this UniqueKey. :rtype: str �r r! r r r r � s z UniqueKey.keyc C s || _ dS )z� Sets the key of this UniqueKey. The object key. :param key: The key of this UniqueKey. :type: str Nr"