o
    ɶdb                     @   s8   d dl mZmZmZ d dlmZ eG dd deZdS )    )formatted_flat_dictNONE_SENTINEL#value_allowed_none_or_none_sentinel)init_model_state_from_kwargsc                   @   sZ  e Zd ZdZdZdZdZdZdZdZ	dZ
d	Zd
ZdZdZdZdZdZdZdd Zedd Zejdd Zedd Zejdd Zedd Zejdd Zedd Zejdd Zedd  Zejd!d  Zed"d# Zejd$d# Zed%d& Zejd'd& Zed(d) Zejd*d) Zed+d, Zejd-d, Zed.d/ Zejd0d/ Zed1d2 Z e jd3d2 Z ed4d5 Z!e!jd6d5 Z!ed7d8 Z"e"jd9d8 Z"ed:d; Z#e#jd<d; Z#ed=d> Z$e$jd?d> Z$ed@dA Z%e%jdBdA Z%edCdD Z&e&jdEdD Z&edFdG Z'e'jdHdG Z'edIdJ Z(e(jdKdJ Z(dLdM Z)dNdO Z*dPdQ Z+dRS )SBackupSummarya  
    A database backup.
    To use any of the API operations, you must be authorized in an IAM policy. If you're not authorized, talk to an administrator. If you're an administrator who needs to write policies to give users access, see `Getting Started with Policies`__.

    **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
    INCREMENTALFULLVIRTUAL_FULLCREATINGACTIVEDELETINGDELETEDFAILED	RESTORING	CANCELINGCANCELEDSTANDARD_EDITIONENTERPRISE_EDITION#ENTERPRISE_EDITION_HIGH_PERFORMANCE&ENTERPRISE_EDITION_EXTREME_PERFORMANCEc                 K   sb  i ddddddddddddd	dd
dddddddddddddddddddddd| _ i ddddddddddddd	dd
ddddddddddddddd dd!dd"d#d$d| _d%| _d%| _d%| _d%| _d%| _d%| _d%| _d%| _	d%| _
d%| _d%| _d%| _d%| _d%| _d%| _d%| _d%| _d%| _d%| _d%S )&a  
        Initializes a new BackupSummary 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 BackupSummary.
        :type id: str

        :param compartment_id:
            The value to assign to the compartment_id property of this BackupSummary.
        :type compartment_id: str

        :param database_id:
            The value to assign to the database_id property of this BackupSummary.
        :type database_id: str

        :param display_name:
            The value to assign to the display_name property of this BackupSummary.
        :type display_name: str

        :param type:
            The value to assign to the type property of this BackupSummary.
            Allowed values for this property are: "INCREMENTAL", "FULL", "VIRTUAL_FULL", 'UNKNOWN_ENUM_VALUE'.
            Any unrecognized values returned by a service will be mapped to 'UNKNOWN_ENUM_VALUE'.
        :type type: str

        :param time_started:
            The value to assign to the time_started property of this BackupSummary.
        :type time_started: datetime

        :param time_ended:
            The value to assign to the time_ended property of this BackupSummary.
        :type time_ended: datetime

        :param lifecycle_details:
            The value to assign to the lifecycle_details property of this BackupSummary.
        :type lifecycle_details: str

        :param availability_domain:
            The value to assign to the availability_domain property of this BackupSummary.
        :type availability_domain: str

        :param lifecycle_state:
            The value to assign to the lifecycle_state property of this BackupSummary.
            Allowed values for this property are: "CREATING", "ACTIVE", "DELETING", "DELETED", "FAILED", "RESTORING", "CANCELING", "CANCELED", 'UNKNOWN_ENUM_VALUE'.
            Any unrecognized values returned by a service will be mapped to 'UNKNOWN_ENUM_VALUE'.
        :type lifecycle_state: str

        :param database_edition:
            The value to assign to the database_edition property of this BackupSummary.
            Allowed values for this property are: "STANDARD_EDITION", "ENTERPRISE_EDITION", "ENTERPRISE_EDITION_HIGH_PERFORMANCE", "ENTERPRISE_EDITION_EXTREME_PERFORMANCE", 'UNKNOWN_ENUM_VALUE'.
            Any unrecognized values returned by a service will be mapped to 'UNKNOWN_ENUM_VALUE'.
        :type database_edition: str

        :param database_size_in_gbs:
            The value to assign to the database_size_in_gbs property of this BackupSummary.
        :type database_size_in_gbs: float

        :param shape:
            The value to assign to the shape property of this BackupSummary.
        :type shape: str

        :param version:
            The value to assign to the version property of this BackupSummary.
        :type version: str

        :param kms_key_id:
            The value to assign to the kms_key_id property of this BackupSummary.
        :type kms_key_id: str

        :param kms_key_version_id:
            The value to assign to the kms_key_version_id property of this BackupSummary.
        :type kms_key_version_id: str

        :param vault_id:
            The value to assign to the vault_id property of this BackupSummary.
        :type vault_id: str

        :param key_store_id:
            The value to assign to the key_store_id property of this BackupSummary.
        :type key_store_id: str

        :param key_store_wallet_name:
            The value to assign to the key_store_wallet_name property of this BackupSummary.
        :type key_store_wallet_name: str

        idstrcompartment_iddatabase_iddisplay_nametypetime_starteddatetime
time_endedlifecycle_detailsavailability_domainlifecycle_statedatabase_editiondatabase_size_in_gbsfloatshapeversion
kms_key_idkms_key_version_idvault_id)key_store_idkey_store_wallet_nameZcompartmentIdZ
databaseIdZdisplayNameZtimeStartedZ	timeEndedZlifecycleDetailsZavailabilityDomainZlifecycleStateZdatabaseEditionZdatabaseSizeInGBsZkmsKeyIdZkmsKeyVersionIdZvaultIdZ
keyStoreIdZkeyStoreWalletNameN)Zswagger_typesZattribute_map_id_compartment_id_database_id_display_name_type_time_started_time_ended_lifecycle_details_availability_domain_lifecycle_state_database_edition_database_size_in_gbs_shape_version_kms_key_id_kms_key_version_id	_vault_id_key_store_id_key_store_wallet_name)selfkwargs rA   Fusr/lib/python3.10/site-packages/oci/database/models/backup_summary.py__init__S   s   X	

	


zBackupSummary.__init__c                 C      | j S )z
        Gets the id of this BackupSummary.
        The `OCID`__ of the backup.

        __ https://docs.cloud.oracle.com/Content/General/Concepts/identifiers.htm


        :return: The id of this BackupSummary.
        :rtype: str
        r,   r?   rA   rA   rB   r         zBackupSummary.idc                 C   
   || _ dS )z
        Sets the id of this BackupSummary.
        The `OCID`__ of the backup.

        __ https://docs.cloud.oracle.com/Content/General/Concepts/identifiers.htm


        :param id: The id of this BackupSummary.
        :type: str
        NrE   )r?   r   rA   rA   rB   r         
c                 C   rD   )a  
        Gets the compartment_id of this BackupSummary.
        The `OCID`__ of the compartment.

        __ https://docs.cloud.oracle.com/Content/General/Concepts/identifiers.htm


        :return: The compartment_id of this BackupSummary.
        :rtype: str
        r-   rF   rA   rA   rB   r     rG   zBackupSummary.compartment_idc                 C   rH   )a  
        Sets the compartment_id of this BackupSummary.
        The `OCID`__ of the compartment.

        __ https://docs.cloud.oracle.com/Content/General/Concepts/identifiers.htm


        :param compartment_id: The compartment_id of this BackupSummary.
        :type: str
        NrJ   )r?   r   rA   rA   rB   r     rI   c                 C   rD   )a  
        Gets the database_id of this BackupSummary.
        The `OCID`__ of the database.

        __ https://docs.cloud.oracle.com/Content/General/Concepts/identifiers.htm


        :return: The database_id of this BackupSummary.
        :rtype: str
        r.   rF   rA   rA   rB   r   #  rG   zBackupSummary.database_idc                 C   rH   )a  
        Sets the database_id of this BackupSummary.
        The `OCID`__ of the database.

        __ https://docs.cloud.oracle.com/Content/General/Concepts/identifiers.htm


        :param database_id: The database_id of this BackupSummary.
        :type: str
        NrK   )r?   r   rA   rA   rB   r   1  rI   c                 C   rD   )z
        Gets the display_name of this BackupSummary.
        The user-friendly name for the backup. The name does not have to be unique.


        :return: The display_name of this BackupSummary.
        :rtype: str
        r/   rF   rA   rA   rB   r   ?     
zBackupSummary.display_namec                 C   rH   )z
        Sets the display_name of this BackupSummary.
        The user-friendly name for the backup. The name does not have to be unique.


        :param display_name: The display_name of this BackupSummary.
        :type: str
        NrL   )r?   r   rA   rA   rB   r   K     

c                 C   rD   )ac  
        Gets the type of this BackupSummary.
        The type of backup.

        Allowed values for this property are: "INCREMENTAL", "FULL", "VIRTUAL_FULL", 'UNKNOWN_ENUM_VALUE'.
        Any unrecognized values returned by a service will be mapped to 'UNKNOWN_ENUM_VALUE'.


        :return: The type of this BackupSummary.
        :rtype: str
        )r0   rF   rA   rA   rB   r   W     zBackupSummary.typec                 C       g d}t ||sd}|| _dS )z
        Sets the type of this BackupSummary.
        The type of backup.


        :param type: The type of this BackupSummary.
        :type: str
        )r   r   r	   UNKNOWN_ENUM_VALUEN)r   r0   )r?   r   allowed_valuesrA   rA   rB   r   f     


c                 C   rD   )z
        Gets the time_started of this BackupSummary.
        The date and time the backup started.


        :return: The time_started of this BackupSummary.
        :rtype: datetime
        r1   rF   rA   rA   rB   r   u  rM   zBackupSummary.time_startedc                 C   rH   )z
        Sets the time_started of this BackupSummary.
        The date and time the backup started.


        :param time_started: The time_started of this BackupSummary.
        :type: datetime
        NrT   )r?   r   rA   rA   rB   r     rN   c                 C   rD   )z
        Gets the time_ended of this BackupSummary.
        The date and time the backup was completed.


        :return: The time_ended of this BackupSummary.
        :rtype: datetime
        r2   rF   rA   rA   rB   r     rM   zBackupSummary.time_endedc                 C   rH   )z
        Sets the time_ended of this BackupSummary.
        The date and time the backup was completed.


        :param time_ended: The time_ended of this BackupSummary.
        :type: datetime
        NrU   )r?   r   rA   rA   rB   r     rN   c                 C   rD   )z
        Gets the lifecycle_details of this BackupSummary.
        Additional information about the current lifecycle state.


        :return: The lifecycle_details of this BackupSummary.
        :rtype: str
        r3   rF   rA   rA   rB   r     rM   zBackupSummary.lifecycle_detailsc                 C   rH   )z
        Sets the lifecycle_details of this BackupSummary.
        Additional information about the current lifecycle state.


        :param lifecycle_details: The lifecycle_details of this BackupSummary.
        :type: str
        NrV   )r?   r   rA   rA   rB   r     rN   c                 C   rD   )z
        Gets the availability_domain of this BackupSummary.
        The name of the availability domain where the database backup is stored.


        :return: The availability_domain of this BackupSummary.
        :rtype: str
        r4   rF   rA   rA   rB   r      rM   z!BackupSummary.availability_domainc                 C   rH   )z
        Sets the availability_domain of this BackupSummary.
        The name of the availability domain where the database backup is stored.


        :param availability_domain: The availability_domain of this BackupSummary.
        :type: str
        NrW   )r?   r    rA   rA   rB   r      rN   c                 C   rD   )a  
        Gets the lifecycle_state of this BackupSummary.
        The current state of the backup.

        Allowed values for this property are: "CREATING", "ACTIVE", "DELETING", "DELETED", "FAILED", "RESTORING", "CANCELING", "CANCELED", 'UNKNOWN_ENUM_VALUE'.
        Any unrecognized values returned by a service will be mapped to 'UNKNOWN_ENUM_VALUE'.


        :return: The lifecycle_state of this BackupSummary.
        :rtype: str
        )r5   rF   rA   rA   rB   r!     rO   zBackupSummary.lifecycle_statec                 C   rP   )z
        Sets the lifecycle_state of this BackupSummary.
        The current state of the backup.


        :param lifecycle_state: The lifecycle_state of this BackupSummary.
        :type: str
        )r
   r   r   r   r   r   r   r   rQ   N)r   r5   )r?   r!   rR   rA   rA   rB   r!     rS   c                 C   rD   )a  
        Gets the database_edition of this BackupSummary.
        The Oracle Database edition of the DB system from which the database backup was taken.

        Allowed values for this property are: "STANDARD_EDITION", "ENTERPRISE_EDITION", "ENTERPRISE_EDITION_HIGH_PERFORMANCE", "ENTERPRISE_EDITION_EXTREME_PERFORMANCE", 'UNKNOWN_ENUM_VALUE'.
        Any unrecognized values returned by a service will be mapped to 'UNKNOWN_ENUM_VALUE'.


        :return: The database_edition of this BackupSummary.
        :rtype: str
        )r6   rF   rA   rA   rB   r"     rO   zBackupSummary.database_editionc                 C   rP   )a  
        Sets the database_edition of this BackupSummary.
        The Oracle Database edition of the DB system from which the database backup was taken.


        :param database_edition: The database_edition of this BackupSummary.
        :type: str
        )r   r   r   r   rQ   N)r   r6   )r?   r"   rR   rA   rA   rB   r"     rS   c                 C   rD   )z
        Gets the database_size_in_gbs of this BackupSummary.
        The size of the database in gigabytes at the time the backup was taken.


        :return: The database_size_in_gbs of this BackupSummary.
        :rtype: float
        r7   rF   rA   rA   rB   r#     rM   z"BackupSummary.database_size_in_gbsc                 C   rH   )a  
        Sets the database_size_in_gbs of this BackupSummary.
        The size of the database in gigabytes at the time the backup was taken.


        :param database_size_in_gbs: The database_size_in_gbs of this BackupSummary.
        :type: float
        NrX   )r?   r#   rA   rA   rB   r#     rN   c                 C   rD   )z
        Gets the shape of this BackupSummary.
        Shape of the backup's source database.


        :return: The shape of this BackupSummary.
        :rtype: str
        r8   rF   rA   rA   rB   r%   )  rM   zBackupSummary.shapec                 C   rH   )z
        Sets the shape of this BackupSummary.
        Shape of the backup's source database.


        :param shape: The shape of this BackupSummary.
        :type: str
        NrY   )r?   r%   rA   rA   rB   r%   5  rN   c                 C   rD   )z
        Gets the version of this BackupSummary.
        Version of the backup's source database


        :return: The version of this BackupSummary.
        :rtype: str
        r9   rF   rA   rA   rB   r&   A  rM   zBackupSummary.versionc                 C   rH   )z
        Sets the version of this BackupSummary.
        Version of the backup's source database


        :param version: The version of this BackupSummary.
        :type: str
        NrZ   )r?   r&   rA   rA   rB   r&   M  rN   c                 C   rD   )a  
        Gets the kms_key_id of this BackupSummary.
        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 BackupSummary.
        :rtype: str
        r:   rF   rA   rA   rB   r'   Y  rM   zBackupSummary.kms_key_idc                 C   rH   )a  
        Sets the kms_key_id of this BackupSummary.
        The OCID of the key container that is used as the master encryption key in database transparent data encryption (TDE) operations.


        :param kms_key_id: The kms_key_id of this BackupSummary.
        :type: str
        Nr[   )r?   r'   rA   rA   rB   r'   e  rN   c                 C   rD   )a  
        Gets the kms_key_version_id of this BackupSummary.
        The OCID of the key container version that is used in database transparent data encryption (TDE) operations KMS Key can have multiple key versions. If none is specified, the current key version (latest) of the Key Id is used for the operation.


        :return: The kms_key_version_id of this BackupSummary.
        :rtype: str
        r;   rF   rA   rA   rB   r(   q  rM   z BackupSummary.kms_key_version_idc                 C   rH   )a  
        Sets the kms_key_version_id of this BackupSummary.
        The OCID of the key container version that is used in database transparent data encryption (TDE) operations KMS Key can have multiple key versions. If none is specified, the current key version (latest) of the Key Id is used for the operation.


        :param kms_key_version_id: The kms_key_version_id of this BackupSummary.
        :type: str
        Nr\   )r?   r(   rA   rA   rB   r(   }  rN   c                 C   rD   )a|  
        Gets the vault_id of this BackupSummary.
        The `OCID`__ of the Oracle Cloud Infrastructure `vault`__.

        __ https://docs.cloud.oracle.com/Content/General/Concepts/identifiers.htm
        __ https://docs.cloud.oracle.com/Content/KeyManagement/Concepts/keyoverview.htm#concepts


        :return: The vault_id of this BackupSummary.
        :rtype: str
        r<   rF   rA   rA   rB   r)     rO   zBackupSummary.vault_idc                 C   rH   )a  
        Sets the vault_id of this BackupSummary.
        The `OCID`__ of the Oracle Cloud Infrastructure `vault`__.

        __ https://docs.cloud.oracle.com/Content/General/Concepts/identifiers.htm
        __ https://docs.cloud.oracle.com/Content/KeyManagement/Concepts/keyoverview.htm#concepts


        :param vault_id: The vault_id of this BackupSummary.
        :type: str
        Nr]   )r?   r)   rA   rA   rB   r)     s   
c                 C   rD   )a  
        Gets the key_store_id of this BackupSummary.
        The `OCID`__ of the key store.

        __ https://docs.cloud.oracle.com/Content/General/Concepts/identifiers.htm


        :return: The key_store_id of this BackupSummary.
        :rtype: str
        r=   rF   rA   rA   rB   r*     rG   zBackupSummary.key_store_idc                 C   rH   )a  
        Sets the key_store_id of this BackupSummary.
        The `OCID`__ of the key store.

        __ https://docs.cloud.oracle.com/Content/General/Concepts/identifiers.htm


        :param key_store_id: The key_store_id of this BackupSummary.
        :type: str
        Nr^   )r?   r*   rA   rA   rB   r*     rI   c                 C   rD   )z
        Gets the key_store_wallet_name of this BackupSummary.
        The wallet name for Oracle Key Vault.


        :return: The key_store_wallet_name of this BackupSummary.
        :rtype: str
        r>   rF   rA   rA   rB   r+     rM   z#BackupSummary.key_store_wallet_namec                 C   rH   )z
        Sets the key_store_wallet_name of this BackupSummary.
        The wallet name for Oracle Key Vault.


        :param key_store_wallet_name: The key_store_wallet_name of this BackupSummary.
        :type: str
        Nr_   )r?   r+   rA   rA   rB   r+     rN   c                 C   s   t | S N)r   rF   rA   rA   rB   __repr__  s   zBackupSummary.__repr__c                 C   s   |d u rdS | j |j kS )NF)__dict__r?   otherrA   rA   rB   __eq__  s   zBackupSummary.__eq__c                 C   s
   | |k S r`   rA   rc   rA   rA   rB   __ne__  s   
zBackupSummary.__ne__N),__name__
__module____qualname____doc__ZTYPE_INCREMENTALZ	TYPE_FULLZTYPE_VIRTUAL_FULLZLIFECYCLE_STATE_CREATINGZLIFECYCLE_STATE_ACTIVEZLIFECYCLE_STATE_DELETINGZLIFECYCLE_STATE_DELETEDZLIFECYCLE_STATE_FAILEDZLIFECYCLE_STATE_RESTORINGZLIFECYCLE_STATE_CANCELINGZLIFECYCLE_STATE_CANCELEDZ!DATABASE_EDITION_STANDARD_EDITIONZ#DATABASE_EDITION_ENTERPRISE_EDITIONZ4DATABASE_EDITION_ENTERPRISE_EDITION_HIGH_PERFORMANCEZ7DATABASE_EDITION_ENTERPRISE_EDITION_EXTREME_PERFORMANCErC   propertyr   setterr   r   r   r   r   r   r   r    r!   r"   r#   r%   r&   r'   r(   r)   r*   r+   ra   re   rf   rA   rA   rA   rB   r      s     





































r   N)Zoci.utilr   r   r   Zoci.decoratorsr   objectr   rA   rA   rA   rB   <module>   s   