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 dd� Zdd� Zdd� ZdS )�Entityz! Metadata for an entity. � COMPOSITE�ENUM_VALUESc K s2 dddd�| _ dddd�| _d| _d| _d| _dS )aw Initializes a new Entity 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.oda.models.CompositeEntity` * :class:`~oci.oda.models.ValueListEntity` The following keyword arguments are supported (corresponding to the getters/setters of this class): :param id: The value to assign to the id property of this Entity. :type id: str :param name: The value to assign to the name property of this Entity. :type name: str :param type: The value to assign to the type property of this Entity. Allowed values for this property are: "COMPOSITE", "ENUM_VALUES" :type type: str �str)�id�name�typer r r N)Z swagger_typesZ attribute_map�_id�_name�_type)�self�kwargs� r �9/usr/lib/python3.9/site-packages/oci/oda/models/entity.py�__init__ s ��zEntity.__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 ZCompositeEntityr ZValueListEntityr Nr )Zobject_dictionaryr r r r �get_subtypeB s zEntity.get_subtypec C s | j S )z� **[Required]** Gets the id of this Entity. Unique immutable identifier that was assigned when the resource was created. :return: The id of this Entity. :rtype: str �r �r r r r r R s z Entity.idc C s || _ dS )z� Sets the id of this Entity. Unique immutable identifier that was assigned when the resource was created. :param id: The id of this Entity. :type: str Nr )r r r r r r ^ s c C s | j S )z� **[Required]** Gets the name of this Entity. The entity name. This must be unique within the parent resource. :return: The name of this Entity. :rtype: str �r r r r r r j s zEntity.namec C s || _ dS )z� Sets the name of this Entity. The entity name. This must be unique within the parent resource. :param name: The name of this Entity. :type: str Nr )r r r r r r v s c C s | j S )z� **[Required]** Gets the type of this Entity. Type of skill entity. Allowed values for this property are: "COMPOSITE", "ENUM_VALUES" :return: The type of this Entity. :rtype: str )r r r r r r � s zEntity.typec C s* ddg}t ||�s td|� ���|| _dS )z� Sets the type of this Entity. Type of skill entity. :param type: The type of this Entity. :type: str r r z1Invalid value for `type`, must be None or one of N)r � ValueErrorr )r r Zallowed_valuesr r r r � s �c C s t | �S �N)r r r r r �__repr__� s zEntity.__repr__c C s |d u rdS | j |j kS )NF)�__dict__�r �otherr r r �__eq__� s z Entity.__eq__c C s | |k S r r r r r r �__ne__� s z Entity.__ne__N)�__name__� __module__�__qualname__�__doc__ZTYPE_COMPOSITEZTYPE_ENUM_VALUESr �staticmethodr �propertyr �setterr r r r r r r r r r s* ( r N)Zoci.utilr r r Zoci.decoratorsr �objectr r r r r �<module> s
cải xoăn