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 @ sp e Zd ZdZdZdZdZdd� Zedd� �Z e j d d� �Z ed d� �Zej dd� �Zd d� Zdd� Z dd� ZdS )�UpgradeDatabaseDetailszQ Details for upgrading a database to a specific Oracle Database version. �PRECHECK�UPGRADE�ROLLBACKc K s( ddd�| _ ddd�| _d| _d| _dS )a� Initializes a new UpgradeDatabaseDetails object with values from keyword arguments. The following keyword arguments are supported (corresponding to the getters/setters of this class): :param action: The value to assign to the action property of this UpgradeDatabaseDetails. Allowed values for this property are: "PRECHECK", "UPGRADE", "ROLLBACK" :type action: str :param database_upgrade_source_details: The value to assign to the database_upgrade_source_details property of this UpgradeDatabaseDetails. :type database_upgrade_source_details: oci.database.models.DatabaseUpgradeSourceBase �strZDatabaseUpgradeSourceBase)�action�database_upgrade_source_detailsr ZdatabaseUpgradeSourceDetailsN)Z swagger_typesZ attribute_map�_action� _database_upgrade_source_details)�self�kwargs� r �P/usr/lib/python3.9/site-packages/oci/database/models/upgrade_database_details.py�__init__ s ��zUpgradeDatabaseDetails.__init__c C s | j S )a **[Required]** Gets the action of this UpgradeDatabaseDetails. The database upgrade action. Allowed values for this property are: "PRECHECK", "UPGRADE", "ROLLBACK" :return: The action of this UpgradeDatabaseDetails. :rtype: str )r �r r r r r : s zUpgradeDatabaseDetails.actionc C s* g d�}t ||�s td|� ���|| _dS )z� Sets the action of this UpgradeDatabaseDetails. The database upgrade action. :param action: The action of this UpgradeDatabaseDetails. :type: str )r r r z3Invalid value for `action`, must be None or one of N)r � ValueErrorr )r r Zallowed_valuesr r r r H s �c C s | j S )z� Gets the database_upgrade_source_details of this UpgradeDatabaseDetails. :return: The database_upgrade_source_details of this UpgradeDatabaseDetails. :rtype: oci.database.models.DatabaseUpgradeSourceBase �r r r r r r Y s z6UpgradeDatabaseDetails.database_upgrade_source_detailsc C s || _ dS )a Sets the database_upgrade_source_details of this UpgradeDatabaseDetails. :param database_upgrade_source_details: The database_upgrade_source_details of this UpgradeDatabaseDetails. :type: oci.database.models.DatabaseUpgradeSourceBase Nr )r r r r r r c s c C s t | �S �N)r r r r r �__repr__m s zUpgradeDatabaseDetails.__repr__c C s |d u rdS | j |j kS )NF)�__dict__�r �otherr r r �__eq__p s zUpgradeDatabaseDetails.__eq__c C s | |k S r r r r r r �__ne__v s zUpgradeDatabaseDetails.__ne__N)�__name__� __module__�__qualname__�__doc__ZACTION_PRECHECKZACTION_UPGRADEZACTION_ROLLBACKr �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