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 )�DatabaseDetailszD Details of the database for the registration in Data Safe. �DATABASE_CLOUD_SERVICE�AUTONOMOUS_DATABASE�INSTALLED_DATABASE�ORACLE_CLOUD�CLOUD_AT_CUSTOMER�ON_PREMISES�NON_ORACLE_CLOUDc K s( ddd�| _ ddd�| _d| _d| _dS )ag Initializes a new DatabaseDetails 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_safe.models.InstalledDatabaseDetails` * :class:`~oci.data_safe.models.AutonomousDatabaseDetails` * :class:`~oci.data_safe.models.DatabaseCloudServiceDetails` The following keyword arguments are supported (corresponding to the getters/setters of this class): :param database_type: The value to assign to the database_type property of this DatabaseDetails. Allowed values for this property are: "DATABASE_CLOUD_SERVICE", "AUTONOMOUS_DATABASE", "INSTALLED_DATABASE", 'UNKNOWN_ENUM_VALUE'. Any unrecognized values returned by a service will be mapped to 'UNKNOWN_ENUM_VALUE'. :type database_type: str :param infrastructure_type: The value to assign to the infrastructure_type property of this DatabaseDetails. Allowed values for this property are: "ORACLE_CLOUD", "CLOUD_AT_CUSTOMER", "ON_PREMISES", "NON_ORACLE_CLOUD", 'UNKNOWN_ENUM_VALUE'. Any unrecognized values returned by a service will be mapped to 'UNKNOWN_ENUM_VALUE'. :type infrastructure_type: str �str)� database_type�infrastructure_type�databaseTypeZinfrastructureTypeN)Z swagger_typesZ attribute_map�_database_type�_infrastructure_type)�self�kwargs� r �I/usr/lib/python3.9/site-packages/oci/data_safe/models/database_details.py�__init__. s ��zDatabaseDetails.__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 ZInstalledDatabaseDetailsr ZAutonomousDatabaseDetailsr ZDatabaseCloudServiceDetailsr Nr )Zobject_dictionary�typer r r �get_subtypeS s zDatabaseDetails.get_subtypec C s | j S )a� **[Required]** Gets the database_type of this DatabaseDetails. The database type. Allowed values for this property are: "DATABASE_CLOUD_SERVICE", "AUTONOMOUS_DATABASE", "INSTALLED_DATABASE", 'UNKNOWN_ENUM_VALUE'. Any unrecognized values returned by a service will be mapped to 'UNKNOWN_ENUM_VALUE'. :return: The database_type of this DatabaseDetails. :rtype: str )r �r r r r r f s zDatabaseDetails.database_typec C s g d�}t ||�sd}|| _dS )z� Sets the database_type of this DatabaseDetails. The database type. :param database_type: The database_type of this DatabaseDetails. :type: str )r r r �UNKNOWN_ENUM_VALUEN)r r )r r �allowed_valuesr r r r u s c C s | j S )a� **[Required]** Gets the infrastructure_type of this DatabaseDetails. The infrastructure type the database is running on. Allowed values for this property are: "ORACLE_CLOUD", "CLOUD_AT_CUSTOMER", "ON_PREMISES", "NON_ORACLE_CLOUD", 'UNKNOWN_ENUM_VALUE'. Any unrecognized values returned by a service will be mapped to 'UNKNOWN_ENUM_VALUE'. :return: The infrastructure_type of this DatabaseDetails. :rtype: str )r r r r r r � s z#DatabaseDetails.infrastructure_typec C s g d�}t ||�sd}|| _dS )z� Sets the infrastructure_type of this DatabaseDetails. The infrastructure type the database is running on. :param infrastructure_type: The infrastructure_type of this DatabaseDetails. :type: str )r r r r r N)r r )r r r r r r r � s c C s t | �S �N)r r r r r �__repr__� s zDatabaseDetails.__repr__c C s |d u rdS | j |j kS )NF)�__dict__�r �otherr r r �__eq__� s zDatabaseDetails.__eq__c C s | |k S r r r! r r r �__ne__� s zDatabaseDetails.__ne__N)�__name__� __module__�__qualname__�__doc__Z$DATABASE_TYPE_DATABASE_CLOUD_SERVICEZ!DATABASE_TYPE_AUTONOMOUS_DATABASEZ DATABASE_TYPE_INSTALLED_DATABASEZ INFRASTRUCTURE_TYPE_ORACLE_CLOUDZ%INFRASTRUCTURE_TYPE_CLOUD_AT_CUSTOMERZINFRASTRUCTURE_TYPE_ON_PREMISESZ$INFRASTRUCTURE_TYPE_NON_ORACLE_CLOUDr �staticmethodr �propertyr �setterr 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