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 @ sb e Zd ZdZdZdZdZdd� Zedd� �Z e d d � �Zejdd � �Zdd � Z dd� Zdd� ZdS )�EnableDatabaseInsightDetailsz8 The information about database to be analyzed. �EM_MANAGED_EXTERNAL_DATABASE�PE_COMANAGED_DATABASE�MDS_MYSQL_DATABASE_SYSTEMc K s ddi| _ ddi| _d| _dS )a� Initializes a new EnableDatabaseInsightDetails 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.opsi.models.EnableEmManagedExternalDatabaseInsightDetails` * :class:`~oci.opsi.models.EnableMdsMySqlDatabaseInsightDetails` * :class:`~oci.opsi.models.EnablePeComanagedDatabaseInsightDetails` The following keyword arguments are supported (corresponding to the getters/setters of this class): :param entity_source: The value to assign to the entity_source property of this EnableDatabaseInsightDetails. Allowed values for this property are: "EM_MANAGED_EXTERNAL_DATABASE", "PE_COMANAGED_DATABASE", "MDS_MYSQL_DATABASE_SYSTEM" :type entity_source: str � entity_source�str�entitySourceN)Z swagger_typesZ attribute_map�_entity_source)�self�kwargs� r �S/usr/lib/python3.9/site-packages/oci/opsi/models/enable_database_insight_details.py�__init__ s ��z%EnableDatabaseInsightDetails.__init__c C s4 | d }|dkrdS |dkr dS |dkr,dS dS d S ) 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-EnableEmManagedExternalDatabaseInsightDetailsr Z$EnableMdsMySqlDatabaseInsightDetailsr Z'EnablePeComanagedDatabaseInsightDetailsr Nr )Zobject_dictionary�typer r r �get_subtype9 s z(EnableDatabaseInsightDetails.get_subtypec C s | j S )ag **[Required]** Gets the entity_source of this EnableDatabaseInsightDetails. Source of the database entity. Allowed values for this property are: "EM_MANAGED_EXTERNAL_DATABASE", "PE_COMANAGED_DATABASE", "MDS_MYSQL_DATABASE_SYSTEM" :return: The entity_source of this EnableDatabaseInsightDetails. :rtype: str )r �r r r r r L s z*EnableDatabaseInsightDetails.entity_sourcec C s* g d�}t ||�s td|� ���|| _dS )z� Sets the entity_source of this EnableDatabaseInsightDetails. Source of the database entity. :param entity_source: The entity_source of this EnableDatabaseInsightDetails. :type: str )r r r z:Invalid value for `entity_source`, must be None or one of N)r � ValueErrorr )r r Zallowed_valuesr r r r Z s �c C s t | �S �N)r r r r r �__repr__k s z%EnableDatabaseInsightDetails.__repr__c C s |d u rdS | j |j kS )NF)�__dict__�r �otherr r r �__eq__n s z#EnableDatabaseInsightDetails.__eq__c C s | |k S r r r r r r �__ne__t s z#EnableDatabaseInsightDetails.__ne__N)�__name__� __module__�__qualname__�__doc__Z*ENTITY_SOURCE_EM_MANAGED_EXTERNAL_DATABASEZ#ENTITY_SOURCE_PE_COMANAGED_DATABASEZ'ENTITY_SOURCE_MDS_MYSQL_DATABASE_SYSTEMr �staticmethodr �propertyr �setterr 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