o
    ëÉ¶dO  ã                   @   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                   @   sª  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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d+d*„ ƒZed,d-„ ƒZejd.d-„ ƒZed/d0„ ƒZejd1d0„ ƒZed2d3„ ƒZejd4d3„ ƒZd5d6„ Zd7d8„ Zd9d:„ Z d;S )<ÚPluggableDatabaseaµ  
    A pluggable database (PDB) is portable collection of schemas, schema objects, and non-schema objects that appears to an Oracle client as a non-container database. To use a PDB, it needs to be plugged into a CDB.
    To use any of the API operations, you must be authorized in an IAM policy. If you are not authorized, talk to a tenancy administrator. If you are 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
    ÚPROVISIONINGÚ	AVAILABLEÚTERMINATINGÚ
TERMINATEDÚUPDATINGÚFAILEDÚ	READ_ONLYÚ
READ_WRITEÚMOUNTEDÚMIGRATEc                 K   s–   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 )a5  
        Initializes a new PluggableDatabase 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 PluggableDatabase.
        :type id: str

        :param container_database_id:
            The value to assign to the container_database_id property of this PluggableDatabase.
        :type container_database_id: str

        :param pdb_name:
            The value to assign to the pdb_name property of this PluggableDatabase.
        :type pdb_name: str

        :param lifecycle_state:
            The value to assign to the lifecycle_state property of this PluggableDatabase.
            Allowed values for this property are: "PROVISIONING", "AVAILABLE", "TERMINATING", "TERMINATED", "UPDATING", "FAILED", '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 PluggableDatabase.
        :type lifecycle_details: str

        :param time_created:
            The value to assign to the time_created property of this PluggableDatabase.
        :type time_created: datetime

        :param connection_strings:
            The value to assign to the connection_strings property of this PluggableDatabase.
        :type connection_strings: oci.database.models.PluggableDatabaseConnectionStrings

        :param open_mode:
            The value to assign to the open_mode property of this PluggableDatabase.
            Allowed values for this property are: "READ_ONLY", "READ_WRITE", "MOUNTED", "MIGRATE", 'UNKNOWN_ENUM_VALUE'.
            Any unrecognized values returned by a service will be mapped to 'UNKNOWN_ENUM_VALUE'.
        :type open_mode: str

        :param is_restricted:
            The value to assign to the is_restricted property of this PluggableDatabase.
        :type is_restricted: bool

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

        :param freeform_tags:
            The value to assign to the freeform_tags property of this PluggableDatabase.
        :type freeform_tags: dict(str, str)

        :param defined_tags:
            The value to assign to the defined_tags property of this PluggableDatabase.
        :type defined_tags: dict(str, dict(str, object))

        :param pluggable_database_management_config:
            The value to assign to the pluggable_database_management_config property of this PluggableDatabase.
        :type pluggable_database_management_config: oci.database.models.PluggableDatabaseManagementConfig

        ÚstrÚdatetimeZ"PluggableDatabaseConnectionStringsÚboolzdict(str, str)zdict(str, dict(str, object))Z!PluggableDatabaseManagementConfig)ÚidÚcontainer_database_idÚpdb_nameÚlifecycle_stateÚlifecycle_detailsÚtime_createdÚconnection_stringsÚ	open_modeÚis_restrictedÚcompartment_idÚfreeform_tagsÚdefined_tagsÚ$pluggable_database_management_configr   ZcontainerDatabaseIdZpdbNameZlifecycleStateZlifecycleDetailsZtimeCreatedZconnectionStringsZopenModeZisRestrictedZcompartmentIdZfreeformTagsZdefinedTagsZ!pluggableDatabaseManagementConfigN)Zswagger_typesZattribute_mapÚ_idÚ_container_database_idÚ	_pdb_nameÚ_lifecycle_stateÚ_lifecycle_detailsÚ_time_createdÚ_connection_stringsÚ
_open_modeÚ_is_restrictedÚ_compartment_idÚ_freeform_tagsÚ_defined_tagsÚ%_pluggable_database_management_config)ÚselfÚkwargs© r0   úJusr/lib/python3.10/site-packages/oci/database/models/pluggable_database.pyÚ__init__?   sR   ?óó
zPluggableDatabase.__init__c                 C   ó   | j S )a  
        **[Required]** Gets the id of this PluggableDatabase.
        The `OCID`__ of the pluggable database.

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


        :return: The id of this PluggableDatabase.
        :rtype: str
        ©r!   ©r.   r0   r0   r1   r   «   ó   zPluggableDatabase.idc                 C   ó
   || _ dS )a  
        Sets the id of this PluggableDatabase.
        The `OCID`__ of the pluggable database.

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


        :param id: The id of this PluggableDatabase.
        :type: str
        Nr4   )r.   r   r0   r0   r1   r   ¹   ó   
c                 C   r3   )a*  
        **[Required]** Gets the container_database_id of this PluggableDatabase.
        The `OCID`__ of the CDB.

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


        :return: The container_database_id of this PluggableDatabase.
        :rtype: str
        ©r"   r5   r0   r0   r1   r   Ç   r6   z'PluggableDatabase.container_database_idc                 C   r7   )a/  
        Sets the container_database_id of this PluggableDatabase.
        The `OCID`__ of the CDB.

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


        :param container_database_id: The container_database_id of this PluggableDatabase.
        :type: str
        Nr9   )r.   r   r0   r0   r1   r   Õ   r8   c                 C   r3   )aì  
        **[Required]** Gets the pdb_name of this PluggableDatabase.
        The name for the pluggable database (PDB). The name is unique in the context of a :class:`Database`. The name must begin with an alphabetic character and can contain a maximum of thirty alphanumeric characters. Special characters are not permitted. The pluggable database name should not be same as the container database name.


        :return: The pdb_name of this PluggableDatabase.
        :rtype: str
        ©r#   r5   r0   r0   r1   r   ã   ó   
zPluggableDatabase.pdb_namec                 C   r7   )aä  
        Sets the pdb_name of this PluggableDatabase.
        The name for the pluggable database (PDB). The name is unique in the context of a :class:`Database`. The name must begin with an alphabetic character and can contain a maximum of thirty alphanumeric characters. Special characters are not permitted. The pluggable database name should not be same as the container database name.


        :param pdb_name: The pdb_name of this PluggableDatabase.
        :type: str
        Nr:   )r.   r   r0   r0   r1   r   ï   ó   

c                 C   r3   )aÒ  
        **[Required]** Gets the lifecycle_state of this PluggableDatabase.
        The current state of the pluggable database.

        Allowed values for this property are: "PROVISIONING", "AVAILABLE", "TERMINATING", "TERMINATED", "UPDATING", "FAILED", 'UNKNOWN_ENUM_VALUE'.
        Any unrecognized values returned by a service will be mapped to 'UNKNOWN_ENUM_VALUE'.


        :return: The lifecycle_state of this PluggableDatabase.
        :rtype: str
        )r$   r5   r0   r0   r1   r   û   ó   z!PluggableDatabase.lifecycle_statec                 C   ó    g d¢}t ||ƒsd}|| _dS )zÞ
        Sets the lifecycle_state of this PluggableDatabase.
        The current state of the pluggable database.


        :param lifecycle_state: The lifecycle_state of this PluggableDatabase.
        :type: str
        )r   r   r	   r
   r   r   ÚUNKNOWN_ENUM_VALUEN)r   r$   )r.   r   Úallowed_valuesr0   r0   r1   r   
  ó   


c                 C   r3   )zÑ
        Gets the lifecycle_details of this PluggableDatabase.
        Detailed message for the lifecycle state.


        :return: The lifecycle_details of this PluggableDatabase.
        :rtype: str
        ©r%   r5   r0   r0   r1   r     r;   z#PluggableDatabase.lifecycle_detailsc                 C   r7   )zá
        Sets the lifecycle_details of this PluggableDatabase.
        Detailed message for the lifecycle state.


        :param lifecycle_details: The lifecycle_details of this PluggableDatabase.
        :type: str
        NrB   )r.   r   r0   r0   r1   r   %  r<   c                 C   r3   )zç
        **[Required]** Gets the time_created of this PluggableDatabase.
        The date and time the pluggable database was created.


        :return: The time_created of this PluggableDatabase.
        :rtype: datetime
        ©r&   r5   r0   r0   r1   r   1  r;   zPluggableDatabase.time_createdc                 C   r7   )zã
        Sets the time_created of this PluggableDatabase.
        The date and time the pluggable database was created.


        :param time_created: The time_created of this PluggableDatabase.
        :type: datetime
        NrC   )r.   r   r0   r0   r1   r   =  r<   c                 C   r3   )zÓ
        Gets the connection_strings of this PluggableDatabase.

        :return: The connection_strings of this PluggableDatabase.
        :rtype: oci.database.models.PluggableDatabaseConnectionStrings
        ©r'   r5   r0   r0   r1   r   I  ó   z$PluggableDatabase.connection_stringsc                 C   r7   )zä
        Sets the connection_strings of this PluggableDatabase.

        :param connection_strings: The connection_strings of this PluggableDatabase.
        :type: oci.database.models.PluggableDatabaseConnectionStrings
        NrD   )r.   r   r0   r0   r1   r   S  ó   
c                 C   r3   )a  
        **[Required]** Gets the open_mode of this PluggableDatabase.
        The mode that pluggable database is in. Open mode can only be changed to READ_ONLY or MIGRATE directly from the backend (within the Oracle Database software).

        Allowed values for this property are: "READ_ONLY", "READ_WRITE", "MOUNTED", "MIGRATE", 'UNKNOWN_ENUM_VALUE'.
        Any unrecognized values returned by a service will be mapped to 'UNKNOWN_ENUM_VALUE'.


        :return: The open_mode of this PluggableDatabase.
        :rtype: str
        )r(   r5   r0   r0   r1   r   ]  r=   zPluggableDatabase.open_modec                 C   r>   )a>  
        Sets the open_mode of this PluggableDatabase.
        The mode that pluggable database is in. Open mode can only be changed to READ_ONLY or MIGRATE directly from the backend (within the Oracle Database software).


        :param open_mode: The open_mode of this PluggableDatabase.
        :type: str
        )r   r   r   r   r?   N)r   r(   )r.   r   r@   r0   r0   r1   r   l  rA   c                 C   r3   )ak  
        Gets the is_restricted of this PluggableDatabase.
        The restricted mode of the pluggable database. If a pluggable database is opened in restricted mode,
        the user needs both create a session and have restricted session privileges to connect to it.


        :return: The is_restricted of this PluggableDatabase.
        :rtype: bool
        ©r)   r5   r0   r0   r1   r   {  s   zPluggableDatabase.is_restrictedc                 C   r7   )aw  
        Sets the is_restricted of this PluggableDatabase.
        The restricted mode of the pluggable database. If a pluggable database is opened in restricted mode,
        the user needs both create a session and have restricted session privileges to connect to it.


        :param is_restricted: The is_restricted of this PluggableDatabase.
        :type: bool
        NrG   )r.   r   r0   r0   r1   r   ˆ  s   
c                 C   r3   )a$  
        **[Required]** Gets the compartment_id of this PluggableDatabase.
        The `OCID`__ of the compartment.

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


        :return: The compartment_id of this PluggableDatabase.
        :rtype: str
        ©r*   r5   r0   r0   r1   r   •  r6   z PluggableDatabase.compartment_idc                 C   r7   )a"  
        Sets the compartment_id of this PluggableDatabase.
        The `OCID`__ of the compartment.

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


        :param compartment_id: The compartment_id of this PluggableDatabase.
        :type: str
        NrH   )r.   r   r0   r0   r1   r   £  r8   c                 C   r3   )aÔ  
        Gets the freeform_tags of this PluggableDatabase.
        Free-form tags for this resource. Each tag is a simple key-value pair with no predefined name, type, or namespace.
        For more information, see `Resource Tags`__.

        Example: `{"Department": "Finance"}`

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


        :return: The freeform_tags of this PluggableDatabase.
        :rtype: dict(str, str)
        ©r+   r5   r0   r0   r1   r   ±  s   zPluggableDatabase.freeform_tagsc                 C   r7   )aà  
        Sets the freeform_tags of this PluggableDatabase.
        Free-form tags for this resource. Each tag is a simple key-value pair with no predefined name, type, or namespace.
        For more information, see `Resource Tags`__.

        Example: `{"Department": "Finance"}`

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


        :param freeform_tags: The freeform_tags of this PluggableDatabase.
        :type: dict(str, str)
        NrI   )r.   r   r0   r0   r1   r   Â  s   
c                 C   r3   )a‘  
        Gets the defined_tags of this PluggableDatabase.
        Defined tags for this resource. Each key is predefined and scoped to a namespace.
        For more information, see `Resource Tags`__.

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


        :return: The defined_tags of this PluggableDatabase.
        :rtype: dict(str, dict(str, object))
        ©r,   r5   r0   r0   r1   r   Ó  r=   zPluggableDatabase.defined_tagsc                 C   r7   )aœ  
        Sets the defined_tags of this PluggableDatabase.
        Defined tags for this resource. Each key is predefined and scoped to a namespace.
        For more information, see `Resource Tags`__.

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


        :param defined_tags: The defined_tags of this PluggableDatabase.
        :type: dict(str, dict(str, object))
        NrJ   )r.   r   r0   r0   r1   r   â  s   
c                 C   r3   )zö
        Gets the pluggable_database_management_config of this PluggableDatabase.

        :return: The pluggable_database_management_config of this PluggableDatabase.
        :rtype: oci.database.models.PluggableDatabaseManagementConfig
        ©r-   r5   r0   r0   r1   r    ñ  rE   z6PluggableDatabase.pluggable_database_management_configc                 C   r7   )a  
        Sets the pluggable_database_management_config of this PluggableDatabase.

        :param pluggable_database_management_config: The pluggable_database_management_config of this PluggableDatabase.
        :type: oci.database.models.PluggableDatabaseManagementConfig
        NrK   )r.   r    r0   r0   r1   r    û  rF   c                 C   s   t | ƒS ©N)r   r5   r0   r0   r1   Ú__repr__  s   zPluggableDatabase.__repr__c                 C   s   |d u rdS | j |j kS )NF)Ú__dict__©r.   Úotherr0   r0   r1   Ú__eq__  s   zPluggableDatabase.__eq__c                 C   s
   | |k S rL   r0   rO   r0   r0   r1   Ú__ne__  s   
zPluggableDatabase.__ne__N)!Ú__name__Ú
__module__Ú__qualname__Ú__doc__ZLIFECYCLE_STATE_PROVISIONINGZLIFECYCLE_STATE_AVAILABLEZLIFECYCLE_STATE_TERMINATINGZLIFECYCLE_STATE_TERMINATEDZLIFECYCLE_STATE_UPDATINGZLIFECYCLE_STATE_FAILEDZOPEN_MODE_READ_ONLYZOPEN_MODE_READ_WRITEZOPEN_MODE_MOUNTEDZOPEN_MODE_MIGRATEr2   Úpropertyr   Úsetterr   r   r   r   r   r   r   r   r   r   r   r    rM   rQ   rR   r0   r0   r0   r1   r      sˆ    l












	
	










	
	r   N)Zoci.utilr   r   r   Zoci.decoratorsr   Úobjectr   r0   r0   r0   r1   Ú<module>   s   