ruạṛ
a ���f�M � @ 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 Zd Zdd� Z ed d� �Zejdd� �Zedd� �Zejdd� �Zedd� �Zejdd� �Zedd� �Zejdd� �Zedd� �Zejdd� �Zedd� �Zejdd� �Zedd � �Zejd!d � �Zed"d#� �Zejd$d#� �Zed%d&� �Zejd'd&� �Zed(d)� �Zejd*d)� �Zed+d,� �Zejd-d,� �Zed.d/� �Zejd0d/� �Zd1d2� Zd3d4� Zd5d6� Zd7S )8�DatabaseUpgradeHistoryEntrya� The Database service supports the upgrade history of databases. To use any of the API operations, you must be authorized in an IAM policy. If you are not authorized, talk to an administrator. If you are an administrator who needs to write policies to give users access, see `Getting Started with Policies`__. For information about access control and compartments, see `Overview of the Identity Service`__. **Warning:** Oracle recommends that you avoid using any confidential information when you supply string values using the API. __ https://docs.cloud.oracle.com/Content/Identity/Concepts/policygetstarted.htm __ https://docs.cloud.oracle.com/Content/Identity/Concepts/overview.htm �PRECHECK�UPGRADE�ROLLBACK�DB_HOME� DB_VERSION�DB_SOFTWARE_IMAGE� SUCCEEDED�FAILED�IN_PROGRESSc K s� ddddddddddddd�| _ dddddd d ddd ddd�| _d| _d| _d| _d| _d| _d| _d| _d| _ d| _ d| _d| _d| _ dS )a Initializes a new DatabaseUpgradeHistoryEntry object with values from keyword arguments. The following keyword arguments are supported (corresponding to the getters/setters of this class): :param id: The value to assign to the id property of this DatabaseUpgradeHistoryEntry. :type id: str :param action: The value to assign to the action property of this DatabaseUpgradeHistoryEntry. Allowed values for this property are: "PRECHECK", "UPGRADE", "ROLLBACK", 'UNKNOWN_ENUM_VALUE'. Any unrecognized values returned by a service will be mapped to 'UNKNOWN_ENUM_VALUE'. :type action: str :param source: The value to assign to the source property of this DatabaseUpgradeHistoryEntry. Allowed values for this property are: "DB_HOME", "DB_VERSION", "DB_SOFTWARE_IMAGE", 'UNKNOWN_ENUM_VALUE'. Any unrecognized values returned by a service will be mapped to 'UNKNOWN_ENUM_VALUE'. :type source: str :param lifecycle_state: The value to assign to the lifecycle_state property of this DatabaseUpgradeHistoryEntry. Allowed values for this property are: "SUCCEEDED", "FAILED", "IN_PROGRESS", 'UNKNOWN_ENUM_VALUE'. Any unrecognized values returned by a service will be mapped to 'UNKNOWN_ENUM_VALUE'. :type lifecycle_state: str :param lifecycle_details: The value to assign to the lifecycle_details property of this DatabaseUpgradeHistoryEntry. :type lifecycle_details: str :param target_db_version: The value to assign to the target_db_version property of this DatabaseUpgradeHistoryEntry. :type target_db_version: str :param target_database_software_image_id: The value to assign to the target_database_software_image_id property of this DatabaseUpgradeHistoryEntry. :type target_database_software_image_id: str :param target_db_home_id: The value to assign to the target_db_home_id property of this DatabaseUpgradeHistoryEntry. :type target_db_home_id: str :param source_db_home_id: The value to assign to the source_db_home_id property of this DatabaseUpgradeHistoryEntry. :type source_db_home_id: str :param time_started: The value to assign to the time_started property of this DatabaseUpgradeHistoryEntry. :type time_started: datetime :param time_ended: The value to assign to the time_ended property of this DatabaseUpgradeHistoryEntry. :type time_ended: datetime :param options: The value to assign to the options property of this DatabaseUpgradeHistoryEntry. :type options: str �strZdatetime)�id�action�source�lifecycle_state�lifecycle_details�target_db_version�!target_database_software_image_id�target_db_home_id�source_db_home_id�time_started� time_ended�optionsr r r ZlifecycleStateZlifecycleDetailsZtargetDBVersionZtargetDatabaseSoftwareImageIdZtargetDbHomeIdZsourceDbHomeIdZtimeStartedZ timeEndedr N)Z swagger_typesZ attribute_map�_id�_action�_source�_lifecycle_state�_lifecycle_details�_target_db_version�"_target_database_software_image_id�_target_db_home_id�_source_db_home_id� _time_started�_time_ended�_options)�self�kwargs� r+ �V/usr/lib/python3.9/site-packages/oci/database/models/database_upgrade_history_entry.py�__init__@ sL =��z$DatabaseUpgradeHistoryEntry.__init__c C s | j S )a- **[Required]** Gets the id of this DatabaseUpgradeHistoryEntry. The `OCID`__ of the database upgrade history. __ https://docs.cloud.oracle.com/Content/General/Concepts/identifiers.htm :return: The id of this DatabaseUpgradeHistoryEntry. :rtype: str �r �r) r+ r+ r, r � s zDatabaseUpgradeHistoryEntry.idc C s || _ dS )a Sets the id of this DatabaseUpgradeHistoryEntry. The `OCID`__ of the database upgrade history. __ https://docs.cloud.oracle.com/Content/General/Concepts/identifiers.htm :param id: The id of this DatabaseUpgradeHistoryEntry. :type: str Nr. )r) r r+ r+ r, r � s c C s | j S )a� **[Required]** Gets the action of this DatabaseUpgradeHistoryEntry. The database upgrade action. Allowed values for this property are: "PRECHECK", "UPGRADE", "ROLLBACK", 'UNKNOWN_ENUM_VALUE'. Any unrecognized values returned by a service will be mapped to 'UNKNOWN_ENUM_VALUE'. :return: The action of this DatabaseUpgradeHistoryEntry. :rtype: str )r r/ r+ r+ r, r � s z"DatabaseUpgradeHistoryEntry.actionc C s g d�}t ||�sd}|| _dS )z� Sets the action of this DatabaseUpgradeHistoryEntry. The database upgrade action. :param action: The action of this DatabaseUpgradeHistoryEntry. :type: str )r r r �UNKNOWN_ENUM_VALUEN)r r )r) r �allowed_valuesr+ r+ r, r � s c C s | j S )a� Gets the source of this DatabaseUpgradeHistoryEntry. 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", 'UNKNOWN_ENUM_VALUE'. Any unrecognized values returned by a service will be mapped to 'UNKNOWN_ENUM_VALUE'. :return: The source of this DatabaseUpgradeHistoryEntry. :rtype: str )r r/ r+ r+ r, r � s z"DatabaseUpgradeHistoryEntry.sourcec C s g d�}t ||�sd}|| _dS )a Sets the source of this DatabaseUpgradeHistoryEntry. 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 DatabaseUpgradeHistoryEntry. :type: str )r r r r0 N)r r )r) r r1 r+ r+ r, r � s c C s | j S )a� **[Required]** Gets the lifecycle_state of this DatabaseUpgradeHistoryEntry. Status of database upgrade history SUCCEEDED|IN_PROGRESS|FAILED. Allowed values for this property are: "SUCCEEDED", "FAILED", "IN_PROGRESS", 'UNKNOWN_ENUM_VALUE'. Any unrecognized values returned by a service will be mapped to 'UNKNOWN_ENUM_VALUE'. :return: The lifecycle_state of this DatabaseUpgradeHistoryEntry. :rtype: str )r r/ r+ r+ r, r s z+DatabaseUpgradeHistoryEntry.lifecycle_statec C s g d�}t ||�sd}|| _dS )a Sets the lifecycle_state of this DatabaseUpgradeHistoryEntry. Status of database upgrade history SUCCEEDED|IN_PROGRESS|FAILED. :param lifecycle_state: The lifecycle_state of this DatabaseUpgradeHistoryEntry. :type: str )r r r r0 N)r r )r) r r1 r+ r+ r, r s c C s | j S )z� Gets the lifecycle_details of this DatabaseUpgradeHistoryEntry. Additional information about the current lifecycle state. :return: The lifecycle_details of this DatabaseUpgradeHistoryEntry. :rtype: str �r! r/ r+ r+ r, r ' s z-DatabaseUpgradeHistoryEntry.lifecycle_detailsc C s || _ dS )a Sets the lifecycle_details of this DatabaseUpgradeHistoryEntry. Additional information about the current lifecycle state. :param lifecycle_details: The lifecycle_details of this DatabaseUpgradeHistoryEntry. :type: str Nr2 )r) r r+ r+ r, r 3 s c C s | j S )a� Gets the target_db_version of this DatabaseUpgradeHistoryEntry. A valid Oracle Database version. For a list of supported versions, use the ListDbVersions operation. This cannot be updated in parallel with any of the following: licenseModel, dbEdition, cpuCoreCount, computeCount, computeModel, adminPassword, whitelistedIps, isMTLSConnectionRequired, openMode, permissionLevel, dbWorkload, privateEndpointLabel, nsgIds, isRefreshable, dbName, scheduledOperations, dbToolsDetails, isLocalDataGuardEnabled, or isFreeTier. :return: The target_db_version of this DatabaseUpgradeHistoryEntry. :rtype: str �r"