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 ZdZdZdZdZdd� Zedd� �Z e d d � �Zejdd � �Ze dd � �Z e jdd � �Z e dd� �Zejdd� �Zdd� Zdd� Zdd� ZdS )�DatabaseFeatureDetailszS The details required to enable the specified Database Management feature. �DIAGNOSTICS_AND_MANAGEMENT�DB_LIFECYCLE_MANAGEMENT�SQLWATCHc K s2 dddd�| _ dddd�| _d| _d| _d| _dS ) ag Initializes a new DatabaseFeatureDetails 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.database_management.models.DatabaseDiagnosticsAndManagementFeatureDetails` * :class:`~oci.database_management.models.DatabaseLifecycleManagementFeatureDetails` * :class:`~oci.database_management.models.DatabaseSqlWatchFeatureDetails` The following keyword arguments are supported (corresponding to the getters/setters of this class): :param feature: The value to assign to the feature property of this DatabaseFeatureDetails. Allowed values for this property are: "DIAGNOSTICS_AND_MANAGEMENT", "DB_LIFECYCLE_MANAGEMENT", "SQLWATCH" :type feature: str :param database_connection_details: The value to assign to the database_connection_details property of this DatabaseFeatureDetails. :type database_connection_details: oci.database_management.models.DatabaseConnectionDetails :param connector_details: The value to assign to the connector_details property of this DatabaseFeatureDetails. :type connector_details: oci.database_management.models.ConnectorDetails �strZDatabaseConnectionDetailsZConnectorDetails)�feature�database_connection_details�connector_detailsr ZdatabaseConnectionDetailsZconnectorDetailsN)Z swagger_typesZ attribute_map�_feature�_database_connection_details�_connector_details)�self�kwargs� r �[/usr/lib/python3.9/site-packages/oci/database_management/models/database_feature_details.py�__init__ s ��zDatabaseFeatureDetails.__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.DatabaseDiagnosticsAndManagementFeatureDetailsr Z)DatabaseLifecycleManagementFeatureDetailsr ZDatabaseSqlWatchFeatureDetailsr Nr )Zobject_dictionary�typer r r �get_subtypeG s z"DatabaseFeatureDetails.get_subtypec C s | j S )aL **[Required]** Gets the feature of this DatabaseFeatureDetails. The name of the Database Management feature. Allowed values for this property are: "DIAGNOSTICS_AND_MANAGEMENT", "DB_LIFECYCLE_MANAGEMENT", "SQLWATCH" :return: The feature of this DatabaseFeatureDetails. :rtype: str )r �r r r r r Z s zDatabaseFeatureDetails.featurec C s* g d�}t ||�s td|� ���|| _dS )z� Sets the feature of this DatabaseFeatureDetails. The name of the Database Management feature. :param feature: The feature of this DatabaseFeatureDetails. :type: str )r r r z4Invalid value for `feature`, must be None or one of N)r � ValueErrorr )r r Zallowed_valuesr r r r h s �c C s | j S )a **[Required]** Gets the database_connection_details of this DatabaseFeatureDetails. :return: The database_connection_details of this DatabaseFeatureDetails. :rtype: oci.database_management.models.DatabaseConnectionDetails �r r r r r r y s z2DatabaseFeatureDetails.database_connection_detailsc C s || _ dS )a Sets the database_connection_details of this DatabaseFeatureDetails. :param database_connection_details: The database_connection_details of this DatabaseFeatureDetails. :type: oci.database_management.models.DatabaseConnectionDetails Nr )r r r r r r � s c C s | j S )z� **[Required]** Gets the connector_details of this DatabaseFeatureDetails. :return: The connector_details of this DatabaseFeatureDetails. :rtype: oci.database_management.models.ConnectorDetails �r r r r r r � s z(DatabaseFeatureDetails.connector_detailsc C s || _ dS )z� Sets the connector_details of this DatabaseFeatureDetails. :param connector_details: The connector_details of this DatabaseFeatureDetails. :type: oci.database_management.models.ConnectorDetails Nr )r r r r r r � s c C s t | �S �N)r r r r r �__repr__� s zDatabaseFeatureDetails.__repr__c C s |d u rdS | j |j kS )NF)�__dict__�r �otherr r r �__eq__� s zDatabaseFeatureDetails.__eq__c C s | |k S r r r r r r �__ne__� s zDatabaseFeatureDetails.__ne__N)�__name__� __module__�__qualname__�__doc__Z"FEATURE_DIAGNOSTICS_AND_MANAGEMENTZFEATURE_DB_LIFECYCLE_MANAGEMENTZFEATURE_SQLWATCHr �staticmethodr �propertyr �setterr r r r! r"