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 dd� Zdd� Zdd� ZdS )�DatabaseUpgradeSourceBasez2 Details for the database upgrade source. �DB_HOME� DB_VERSION�DB_SOFTWARE_IMAGEc K s( ddd�| _ ddd�| _d| _d| _dS )a� Initializes a new DatabaseUpgradeSourceBase 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.models.DatabaseUpgradeWithDbHomeDetails` * :class:`~oci.database.models.DatabaseUpgradeWithDatabaseSoftwareImageDetails` * :class:`~oci.database.models.DatabaseUpgradeWithDbVersionDetails` The following keyword arguments are supported (corresponding to the getters/setters of this class): :param source: The value to assign to the source property of this DatabaseUpgradeSourceBase. Allowed values for this property are: "DB_HOME", "DB_VERSION", "DB_SOFTWARE_IMAGE" :type source: str :param options: The value to assign to the options property of this DatabaseUpgradeSourceBase. :type options: str �str)�source�optionsr r N)Z swagger_typesZ attribute_map�_source�_options)�self�kwargs� r �T/usr/lib/python3.9/site-packages/oci/database/models/database_upgrade_source_base.py�__init__ s ��z"DatabaseUpgradeSourceBase.__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 DatabaseUpgradeWithDbHomeDetailsr Z/DatabaseUpgradeWithDatabaseSoftwareImageDetailsr Z#DatabaseUpgradeWithDbVersionDetailsr Nr )Zobject_dictionary�typer r r �get_subtype@ s z%DatabaseUpgradeSourceBase.get_subtypec C s | j S )a_ Gets the source of this DatabaseUpgradeSourceBase. The source of the Oracle Database software to be used for the upgrade. - Use `DB_HOME` to specify an existing Database Home to upgrade the database. The database is moved to the target Database Home and makes use of the Oracle Database software version of the target Database Home. - Use `DB_VERSION` to specify a generally-available Oracle Database software version to upgrade the database. - Use `DB_SOFTWARE_IMAGE` to specify a `database software image`__ to upgrade the database. __ https://docs.cloud.oracle.com/iaas/Content/Database/Concepts/databasesoftwareimage.htm Allowed values for this property are: "DB_HOME", "DB_VERSION", "DB_SOFTWARE_IMAGE" :return: The source of this DatabaseUpgradeSourceBase. :rtype: str )r �r r r r r S s z DatabaseUpgradeSourceBase.sourcec C s* g d�}t ||�s td|� ���|| _dS )a Sets the source of this DatabaseUpgradeSourceBase. The source of the Oracle Database software to be used for the upgrade. - Use `DB_HOME` to specify an existing Database Home to upgrade the database. The database is moved to the target Database Home and makes use of the Oracle Database software version of the target Database Home. - Use `DB_VERSION` to specify a generally-available Oracle Database software version to upgrade the database. - Use `DB_SOFTWARE_IMAGE` to specify a `database software image`__ to upgrade the database. __ https://docs.cloud.oracle.com/iaas/Content/Database/Concepts/databasesoftwareimage.htm :param source: The source of this DatabaseUpgradeSourceBase. :type: str )r r r z3Invalid value for `source`, must be None or one of N)r � ValueErrorr )r r Zallowed_valuesr r r r f s �c C s | j S )a# Gets the options of this DatabaseUpgradeSourceBase. Additional upgrade options supported by DBUA(Database Upgrade Assistant). Example: "-upgradeTimezone false -keepEvents" :return: The options of this DatabaseUpgradeSourceBase. :rtype: str �r r r r r r | s z!DatabaseUpgradeSourceBase.optionsc C s || _ dS )a) Sets the options of this DatabaseUpgradeSourceBase. Additional upgrade options supported by DBUA(Database Upgrade Assistant). Example: "-upgradeTimezone false -keepEvents" :param options: The options of this DatabaseUpgradeSourceBase. :type: str Nr )r r r r r r � s c C s t | �S �N)r r r r r �__repr__� s z"DatabaseUpgradeSourceBase.__repr__c C s |d u rdS | j |j kS )NF)�__dict__�r �otherr r r �__eq__� s z DatabaseUpgradeSourceBase.__eq__c C s | |k S r r r r r r �__ne__� s z DatabaseUpgradeSourceBase.__ne__N)�__name__� __module__�__qualname__�__doc__ZSOURCE_DB_HOMEZSOURCE_DB_VERSIONZSOURCE_DB_SOFTWARE_IMAGEr �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