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/� �Zed1d2� �Zejd3d2� �Zed4d5� �Zejd6d5� �Zed7d8� �Zejd9d8� �Zed:d;� �Zejd<d;� �Zed=d>� �Z e jd?d>� �Z ed@dA� �Z!e!jdBdA� �Z!edCdD� �Z"e"jdEdD� �Z"edFdG� �Z#e#jdHdG� �Z#edIdJ� �Z$e$jdKdJ� �Z$edLdM� �Z%e%jdNdM� �Z%dOdP� Z&dQdR� Z'dSdT� Z(dUS )V�AutonomousDatabaseBackupz( An Autonomous Database backup. �INCREMENTAL�FULL�LONGTERM�CREATING�ACTIVE�DELETING�DELETED�FAILED�UPDATINGc K s� ddddddddddddddddddddddd�| _ dd d ddd ddddddddddddddddd�| _d| _d| _d| _d| _d| _d| _d| _d| _ d| _ d| _d| _d| _ d| _d| _d| _d| _d| _d| _d| _d| _d| _d| _dS )a� Initializes a new AutonomousDatabaseBackup 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 AutonomousDatabaseBackup. :type id: str :param compartment_id: The value to assign to the compartment_id property of this AutonomousDatabaseBackup. :type compartment_id: str :param autonomous_database_id: The value to assign to the autonomous_database_id property of this AutonomousDatabaseBackup. :type autonomous_database_id: str :param display_name: The value to assign to the display_name property of this AutonomousDatabaseBackup. :type display_name: str :param type: The value to assign to the type property of this AutonomousDatabaseBackup. Allowed values for this property are: "INCREMENTAL", "FULL", "LONGTERM", 'UNKNOWN_ENUM_VALUE'. Any unrecognized values returned by a service will be mapped to 'UNKNOWN_ENUM_VALUE'. :type type: str :param is_automatic: The value to assign to the is_automatic property of this AutonomousDatabaseBackup. :type is_automatic: bool :param time_started: The value to assign to the time_started property of this AutonomousDatabaseBackup. :type time_started: datetime :param time_ended: The value to assign to the time_ended property of this AutonomousDatabaseBackup. :type time_ended: datetime :param lifecycle_details: The value to assign to the lifecycle_details property of this AutonomousDatabaseBackup. :type lifecycle_details: str :param database_size_in_tbs: The value to assign to the database_size_in_tbs property of this AutonomousDatabaseBackup. :type database_size_in_tbs: float :param lifecycle_state: The value to assign to the lifecycle_state property of this AutonomousDatabaseBackup. Allowed values for this property are: "CREATING", "ACTIVE", "DELETING", "DELETED", "FAILED", "UPDATING", 'UNKNOWN_ENUM_VALUE'. Any unrecognized values returned by a service will be mapped to 'UNKNOWN_ENUM_VALUE'. :type lifecycle_state: str :param is_restorable: The value to assign to the is_restorable property of this AutonomousDatabaseBackup. :type is_restorable: bool :param key_store_id: The value to assign to the key_store_id property of this AutonomousDatabaseBackup. :type key_store_id: str :param key_store_wallet_name: The value to assign to the key_store_wallet_name property of this AutonomousDatabaseBackup. :type key_store_wallet_name: str :param kms_key_id: The value to assign to the kms_key_id property of this AutonomousDatabaseBackup. :type kms_key_id: str :param vault_id: The value to assign to the vault_id property of this AutonomousDatabaseBackup. :type vault_id: str :param kms_key_version_id: The value to assign to the kms_key_version_id property of this AutonomousDatabaseBackup. :type kms_key_version_id: str :param retention_period_in_days: The value to assign to the retention_period_in_days property of this AutonomousDatabaseBackup. :type retention_period_in_days: int :param time_available_till: The value to assign to the time_available_till property of this AutonomousDatabaseBackup. :type time_available_till: datetime :param db_version: The value to assign to the db_version property of this AutonomousDatabaseBackup. :type db_version: str :param size_in_tbs: The value to assign to the size_in_tbs property of this AutonomousDatabaseBackup. :type size_in_tbs: float :param backup_destination_details: The value to assign to the backup_destination_details property of this AutonomousDatabaseBackup. :type backup_destination_details: oci.database.models.BackupDestinationDetails �str�boolZdatetime�float�intZBackupDestinationDetails)�id�compartment_id�autonomous_database_id�display_name�type�is_automatic�time_started� time_ended�lifecycle_details�database_size_in_tbs�lifecycle_state� is_restorable�key_store_id�key_store_wallet_name� kms_key_id�vault_id�kms_key_version_id�retention_period_in_days�time_available_till� db_version�size_in_tbs�backup_destination_detailsr Z compartmentIdZautonomousDatabaseIdZdisplayNamer ZisAutomaticZtimeStartedZ timeEndedZlifecycleDetailsZdatabaseSizeInTBsZlifecycleStateZisRestorableZ keyStoreIdZkeyStoreWalletNameZkmsKeyIdZvaultIdZkmsKeyVersionIdZretentionPeriodInDaysZtimeAvailableTillZ dbVersionZ sizeInTBsZbackupDestinationDetailsN)Z swagger_typesZ attribute_map�_id�_compartment_id�_autonomous_database_id� _display_name�_type� _is_automatic� _time_started�_time_ended�_lifecycle_details�_database_size_in_tbs�_lifecycle_state�_is_restorable� _key_store_id�_key_store_wallet_name�_kms_key_id� _vault_id�_kms_key_version_id�_retention_period_in_days�_time_available_till�_db_version�_size_in_tbs�_backup_destination_details)�self�kwargs� rB �R/usr/lib/python3.9/site-packages/oci/database/models/autonomous_database_backup.py�__init__6 s� c��z!AutonomousDatabaseBackup.__init__c C s | j S )a) **[Required]** Gets the id of this AutonomousDatabaseBackup. The `OCID`__ of the Autonomous Database backup. __ https://docs.cloud.oracle.com/Content/General/Concepts/identifiers.htm :return: The id of this AutonomousDatabaseBackup. :rtype: str �r* �r@ rB rB rC r � s zAutonomousDatabaseBackup.idc C s || _ dS )a Sets the id of this AutonomousDatabaseBackup. The `OCID`__ of the Autonomous Database backup. __ https://docs.cloud.oracle.com/Content/General/Concepts/identifiers.htm :param id: The id of this AutonomousDatabaseBackup. :type: str NrE )r@ r rB rB rC r � s c C s | j S )a2 **[Required]** Gets the compartment_id of this AutonomousDatabaseBackup. The `OCID`__ of the compartment. __ https://docs.cloud.oracle.com/Content/General/Concepts/identifiers.htm :return: The compartment_id of this AutonomousDatabaseBackup. :rtype: str �r+ rF rB rB rC r � s z'AutonomousDatabaseBackup.compartment_idc C s || _ dS )a0 Sets the compartment_id of this AutonomousDatabaseBackup. The `OCID`__ of the compartment. __ https://docs.cloud.oracle.com/Content/General/Concepts/identifiers.htm :param compartment_id: The compartment_id of this AutonomousDatabaseBackup. :type: str NrG )r@ r rB rB rC r s c C s | j S )aJ **[Required]** Gets the autonomous_database_id of this AutonomousDatabaseBackup. The `OCID`__ of the Autonomous Database. __ https://docs.cloud.oracle.com/Content/General/Concepts/identifiers.htm :return: The autonomous_database_id of this AutonomousDatabaseBackup. :rtype: str �r, rF rB rB rC r s z/AutonomousDatabaseBackup.autonomous_database_idc C s || _ dS )aP Sets the autonomous_database_id of this AutonomousDatabaseBackup. The `OCID`__ of the Autonomous Database. __ https://docs.cloud.oracle.com/Content/General/Concepts/identifiers.htm :param autonomous_database_id: The autonomous_database_id of this AutonomousDatabaseBackup. :type: str NrH )r@ r rB rB rC r ' s c C s | j S )a **[Required]** Gets the display_name of this AutonomousDatabaseBackup. The user-friendly name for the backup. The name does not have to be unique. :return: The display_name of this AutonomousDatabaseBackup. :rtype: str �r- rF rB rB rC r 5 s z%AutonomousDatabaseBackup.display_namec C s || _ dS )a Sets the display_name of this AutonomousDatabaseBackup. The user-friendly name for the backup. The name does not have to be unique. :param display_name: The display_name of this AutonomousDatabaseBackup. :type: str NrI )r@ r rB rB rC r A s c C s | j S )a� **[Required]** Gets the type of this AutonomousDatabaseBackup. The type of backup. Allowed values for this property are: "INCREMENTAL", "FULL", "LONGTERM", 'UNKNOWN_ENUM_VALUE'. Any unrecognized values returned by a service will be mapped to 'UNKNOWN_ENUM_VALUE'. :return: The type of this AutonomousDatabaseBackup. :rtype: str )r. rF rB rB rC r M s zAutonomousDatabaseBackup.typec C s g d�}t ||�sd}|| _dS )z� Sets the type of this AutonomousDatabaseBackup. The type of backup. :param type: The type of this AutonomousDatabaseBackup. :type: str )r r r �UNKNOWN_ENUM_VALUEN)r r. )r@ r �allowed_valuesrB rB rC r \ s c C s | j S )z� **[Required]** Gets the is_automatic of this AutonomousDatabaseBackup. Indicates whether the backup is user-initiated or automatic. :return: The is_automatic of this AutonomousDatabaseBackup. :rtype: bool �r/ rF rB rB rC r k s z%AutonomousDatabaseBackup.is_automaticc C s || _ dS )z� Sets the is_automatic of this AutonomousDatabaseBackup. Indicates whether the backup is user-initiated or automatic. :param is_automatic: The is_automatic of this AutonomousDatabaseBackup. :type: bool NrL )r@ r rB rB rC r w s c C s | j S )z� Gets the time_started of this AutonomousDatabaseBackup. The date and time the backup started. :return: The time_started of this AutonomousDatabaseBackup. :rtype: datetime �r0 rF rB rB rC r � s z%AutonomousDatabaseBackup.time_startedc C s || _ dS )z� Sets the time_started of this AutonomousDatabaseBackup. The date and time the backup started. :param time_started: The time_started of this AutonomousDatabaseBackup. :type: datetime NrM )r@ r rB rB rC r � s c C s | j S )z� Gets the time_ended of this AutonomousDatabaseBackup. The date and time the backup completed. :return: The time_ended of this AutonomousDatabaseBackup. :rtype: datetime �r1 rF rB rB rC r � s z#AutonomousDatabaseBackup.time_endedc C s || _ dS )z� Sets the time_ended of this AutonomousDatabaseBackup. The date and time the backup completed. :param time_ended: The time_ended of this AutonomousDatabaseBackup. :type: datetime NrN )r@ r rB rB rC r � s c C s | j S )z� Gets the lifecycle_details of this AutonomousDatabaseBackup. Additional information about the current lifecycle state. :return: The lifecycle_details of this AutonomousDatabaseBackup. :rtype: str �r2 rF rB rB rC r � s z*AutonomousDatabaseBackup.lifecycle_detailsc C s || _ dS )z� Sets the lifecycle_details of this AutonomousDatabaseBackup. Additional information about the current lifecycle state. :param lifecycle_details: The lifecycle_details of this AutonomousDatabaseBackup. :type: str NrO )r@ r rB rB rC r � s c C s | j S )a Gets the database_size_in_tbs of this AutonomousDatabaseBackup. The size of the database in terabytes at the time the backup was taken. :return: The database_size_in_tbs of this AutonomousDatabaseBackup. :rtype: float �r3 rF rB rB rC r � s z-AutonomousDatabaseBackup.database_size_in_tbsc C s || _ dS )a Sets the database_size_in_tbs of this AutonomousDatabaseBackup. The size of the database in terabytes at the time the backup was taken. :param database_size_in_tbs: The database_size_in_tbs of this AutonomousDatabaseBackup. :type: float NrP )r@ r rB rB rC r � s c C s | j S )a� **[Required]** Gets the lifecycle_state of this AutonomousDatabaseBackup. The current state of the backup. Allowed values for this property are: "CREATING", "ACTIVE", "DELETING", "DELETED", "FAILED", "UPDATING", 'UNKNOWN_ENUM_VALUE'. Any unrecognized values returned by a service will be mapped to 'UNKNOWN_ENUM_VALUE'. :return: The lifecycle_state of this AutonomousDatabaseBackup. :rtype: str )r4 rF rB rB rC r � s z(AutonomousDatabaseBackup.lifecycle_statec C s g d�}t ||�sd}|| _dS )z� Sets the lifecycle_state of this AutonomousDatabaseBackup. The current state of the backup. :param lifecycle_state: The lifecycle_state of this AutonomousDatabaseBackup. :type: str )r r r r r r rJ N)r r4 )r@ r rK rB rB rC r � s c C s | j S )a Gets the is_restorable of this AutonomousDatabaseBackup. Indicates whether the backup can be used to restore the associated Autonomous Database. :return: The is_restorable of this AutonomousDatabaseBackup. :rtype: bool �r5 rF rB rB rC r s z&AutonomousDatabaseBackup.is_restorablec C s || _ dS )a Sets the is_restorable of this AutonomousDatabaseBackup. Indicates whether the backup can be used to restore the associated Autonomous Database. :param is_restorable: The is_restorable of this AutonomousDatabaseBackup. :type: bool NrQ )r@ r rB rB rC r s c C s | j S )a- Gets the key_store_id of this AutonomousDatabaseBackup. The `OCID`__ of the key store of Oracle Vault. __ https://docs.cloud.oracle.com/Content/General/Concepts/identifiers.htm :return: The key_store_id of this AutonomousDatabaseBackup. :rtype: str �r6 rF rB rB rC r s z%AutonomousDatabaseBackup.key_store_idc C s || _ dS )a8 Sets the key_store_id of this AutonomousDatabaseBackup. The `OCID`__ of the key store of Oracle Vault. __ https://docs.cloud.oracle.com/Content/General/Concepts/identifiers.htm :param key_store_id: The key_store_id of this AutonomousDatabaseBackup. :type: str NrR )r@ r rB rB rC r ' s c C s | j S )z� Gets the key_store_wallet_name of this AutonomousDatabaseBackup. The wallet name for Oracle Key Vault. :return: The key_store_wallet_name of this AutonomousDatabaseBackup. :rtype: str �r7 rF rB rB rC r! 5 s z.AutonomousDatabaseBackup.key_store_wallet_namec C s || _ dS )z� Sets the key_store_wallet_name of this AutonomousDatabaseBackup. The wallet name for Oracle Key Vault. :param key_store_wallet_name: The key_store_wallet_name of this AutonomousDatabaseBackup. :type: str NrS )r@ r! rB rB rC r! A s c C s | j S )a) Gets the kms_key_id of this AutonomousDatabaseBackup. The OCID of the key container that is used as the master encryption key in database transparent data encryption (TDE) operations. :return: The kms_key_id of this AutonomousDatabaseBackup. :rtype: str �r8 rF rB rB rC r"