HEX
Server: Apache
System: Linux box5936.bluehost.com 5.14.0-162.23.1.9991722448259.nf.el9.x86_64 #1 SMP PREEMPT_DYNAMIC Wed Jul 31 18:11:45 UTC 2024 x86_64
User: aviatjd3 (1318)
PHP: 8.3.32
Disabled: NONE
Upload Files
File: //lib/python3.9/site-packages/oci/database/models/__pycache__/create_database_base.cpython-39.pyc
a

���f�$�@s8ddlmZmZmZddlmZeGdd�de��ZdS)�)�formatted_flat_dict�
NONE_SENTINEL�#value_allowed_none_or_none_sentinel)�init_model_state_from_kwargsc@s�eZdZdZdZdZdd�Zedd��Ze	dd	��Z
e
jd
d	��Z
e	dd��Zejd
d��Ze	dd��Z
e
jdd��Z
e	dd��Zejdd��Ze	dd��Zejdd��Zdd�Zdd�Zdd�ZdS)�CreateDatabaseBasez�
    Details for creating a database.

    **Warning:** Oracle recommends that you avoid using any confidential information when you supply string values using the API.
    �NONE�	DB_BACKUPcKsFdddddd�|_dddddd�|_d|_d|_d|_d|_d|_dS)	a&
        Initializes a new CreateDatabaseBase 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.CreateNewDatabaseDetails`
        * :class:`~oci.database.models.CreateDatabaseFromBackup`

        The following keyword arguments are supported (corresponding to the getters/setters of this class):

        :param db_home_id:
            The value to assign to the db_home_id property of this CreateDatabaseBase.
        :type db_home_id: str

        :param db_version:
            The value to assign to the db_version property of this CreateDatabaseBase.
        :type db_version: str

        :param source:
            The value to assign to the source property of this CreateDatabaseBase.
            Allowed values for this property are: "NONE", "DB_BACKUP"
        :type source: str

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

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

        �str)�
db_home_id�
db_version�source�
kms_key_id�kms_key_version_idZdbHomeIdZ	dbVersionrZkmsKeyIdZkmsKeyVersionIdN)Z
swagger_typesZ
attribute_map�_db_home_id�_db_version�_source�_kms_key_id�_kms_key_version_id)�self�kwargs�r�L/usr/lib/python3.9/site-packages/oci/database/models/create_database_base.py�__init__s"!�	�zCreateDatabaseBase.__init__cCs(|d}|dkrdS|dkr dSdSdS)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rZCreateNewDatabaseDetailsrZCreateDatabaseFromBackuprNr)Zobject_dictionary�typerrr�get_subtypeRszCreateDatabaseBase.get_subtypecCs|jS)a 
        **[Required]** Gets the db_home_id of this CreateDatabaseBase.
        The `OCID`__ of the Database Home.

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


        :return: The db_home_id of this CreateDatabaseBase.
        :rtype: str
        �r�rrrrr
bszCreateDatabaseBase.db_home_idcCs
||_dS)a
        Sets the db_home_id of this CreateDatabaseBase.
        The `OCID`__ of the Database Home.

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


        :param db_home_id: The db_home_id of this CreateDatabaseBase.
        :type: str
        Nr)rr
rrrr
pscCs|jS)al
        Gets the db_version of this CreateDatabaseBase.
        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 db_version of this CreateDatabaseBase.
        :rtype: str
        �rrrrrr~szCreateDatabaseBase.db_versioncCs
||_dS)au
        Sets the db_version of this CreateDatabaseBase.
        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.


        :param db_version: The db_version of this CreateDatabaseBase.
        :type: str
        Nr)rrrrrr�scCs|jS)a�
        **[Required]** Gets the source of this CreateDatabaseBase.
        The source of the database:
        Use `NONE` for creating a new database.
        Use `DB_BACKUP` for creating a new database by restoring from a backup.
        The default is `NONE`.

        Allowed values for this property are: "NONE", "DB_BACKUP"


        :return: The source of this CreateDatabaseBase.
        :rtype: str
        )rrrrrr�szCreateDatabaseBase.sourcecCs*ddg}t||�s td|����||_dS)aS
        Sets the source of this CreateDatabaseBase.
        The source of the database:
        Use `NONE` for creating a new database.
        Use `DB_BACKUP` for creating a new database by restoring from a backup.
        The default is `NONE`.


        :param source: The source of this CreateDatabaseBase.
        :type: str
        rrz3Invalid value for `source`, must be None or one of N)r�
ValueErrorr)rrZallowed_valuesrrrr�s

�cCs|jS)a
        Gets the kms_key_id of this CreateDatabaseBase.
        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 CreateDatabaseBase.
        :rtype: str
        �rrrrrr
�s
zCreateDatabaseBase.kms_key_idcCs
||_dS)a&
        Sets the kms_key_id of this CreateDatabaseBase.
        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 CreateDatabaseBase.
        :type: str
        Nr)rr
rrrr
�s
cCs|jS)a
        Gets the kms_key_version_id of this CreateDatabaseBase.
        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. Autonomous Database Serverless does not use key versions, hence is not applicable for Autonomous Database Serverless instances.


        :return: The kms_key_version_id of this CreateDatabaseBase.
        :rtype: str
        �rrrrrr�s
z%CreateDatabaseBase.kms_key_version_idcCs
||_dS)a0
        Sets the kms_key_version_id of this CreateDatabaseBase.
        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. Autonomous Database Serverless does not use key versions, hence is not applicable for Autonomous Database Serverless instances.


        :param kms_key_version_id: The kms_key_version_id of this CreateDatabaseBase.
        :type: str
        Nr )rrrrrr�s
cCst|�S�N)rrrrr�__repr__�szCreateDatabaseBase.__repr__cCs|durdS|j|jkS)NF)�__dict__�r�otherrrr�__eq__�szCreateDatabaseBase.__eq__cCs
||kSr!rr$rrr�__ne__�szCreateDatabaseBase.__ne__N)�__name__�
__module__�__qualname__�__doc__ZSOURCE_NONEZSOURCE_DB_BACKUPr�staticmethodr�propertyr
�setterrrr
rr"r&r'rrrrrs:6














rN)Zoci.utilrrrZoci.decoratorsr�objectrrrrr�<module>s