o
    ëÉ¶d@'  ã                   @   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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dd „ Zd!d"„ Zd#d$„ Zd%S )&ÚDatabaseDetailszO
    Partial information about the database which includes id, name, type.
    c              
   K   sn   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 DatabaseDetails 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 DatabaseDetails.
        :type id: str

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

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

        :param database_name:
            The value to assign to the database_name property of this DatabaseDetails.
        :type database_name: str

        :param database_display_name:
            The value to assign to the database_display_name property of this DatabaseDetails.
        :type database_display_name: str

        :param database_type:
            The value to assign to the database_type property of this DatabaseDetails.
        :type database_type: str

        :param database_version:
            The value to assign to the database_version property of this DatabaseDetails.
        :type database_version: str

        :param instances:
            The value to assign to the instances property of this DatabaseDetails.
        :type instances: list[oci.opsi.models.HostInstanceMap]

        :param cdb_name:
            The value to assign to the cdb_name property of this DatabaseDetails.
        :type cdb_name: str

        Ústrzlist[HostInstanceMap])	ÚidÚdatabase_idÚcompartment_idÚdatabase_nameÚdatabase_display_nameÚdatabase_typeÚdatabase_versionÚ	instancesÚcdb_namer   Z
databaseIdZcompartmentIdZdatabaseNameZdatabaseDisplayNameZdatabaseTypeZdatabaseVersionr   ZcdbNameN)Zswagger_typesZattribute_mapÚ_idÚ_database_idÚ_compartment_idÚ_database_nameÚ_database_display_nameÚ_database_typeÚ_database_versionÚ
_instancesÚ	_cdb_name)ÚselfÚkwargs© r   úDusr/lib/python3.10/site-packages/oci/opsi/models/database_details.pyÚ__init__   s:   +÷÷
zDatabaseDetails.__init__c                 C   ó   | j S )a  
        **[Required]** Gets the id of this DatabaseDetails.
        The `OCID`__ of the database insight resource.

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


        :return: The id of this DatabaseDetails.
        :rtype: str
        ©r   ©r   r   r   r   r   ^   ó   zDatabaseDetails.idc                 C   ó
   || _ dS )a  
        Sets the id of this DatabaseDetails.
        The `OCID`__ of the database insight resource.

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


        :param id: The id of this DatabaseDetails.
        :type: str
        Nr    )r   r   r   r   r   r   l   ó   
c                 C   r   )a  
        **[Required]** Gets the database_id of this DatabaseDetails.
        The `OCID`__ of the database.

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


        :return: The database_id of this DatabaseDetails.
        :rtype: str
        ©r   r!   r   r   r   r	   z   r"   zDatabaseDetails.database_idc                 C   r#   )a  
        Sets the database_id of this DatabaseDetails.
        The `OCID`__ of the database.

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


        :param database_id: The database_id of this DatabaseDetails.
        :type: str
        Nr%   )r   r	   r   r   r   r	   ˆ   r$   c                 C   r   )a%  
        **[Required]** Gets the compartment_id of this DatabaseDetails.
        The `OCID`__ of the compartment.

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


        :return: The compartment_id of this DatabaseDetails.
        :rtype: str
        ©r   r!   r   r   r   r
   –   r"   zDatabaseDetails.compartment_idc                 C   r#   )a#  
        Sets the compartment_id of this DatabaseDetails.
        The `OCID`__ of the compartment.

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


        :param compartment_id: The compartment_id of this DatabaseDetails.
        :type: str
        Nr&   )r   r
   r   r   r   r
   ¤   r$   c                 C   r   )zí
        **[Required]** Gets the database_name of this DatabaseDetails.
        The database name. The database name is unique within the tenancy.


        :return: The database_name of this DatabaseDetails.
        :rtype: str
        ©r   r!   r   r   r   r   ²   ó   
zDatabaseDetails.database_namec                 C   r#   )zê
        Sets the database_name of this DatabaseDetails.
        The database name. The database name is unique within the tenancy.


        :param database_name: The database_name of this DatabaseDetails.
        :type: str
        Nr'   )r   r   r   r   r   r   ¾   ó   

c                 C   r   )zù
        Gets the database_display_name of this DatabaseDetails.
        The user-friendly name for the database. The name does not have to be unique.


        :return: The database_display_name of this DatabaseDetails.
        :rtype: str
        ©r   r!   r   r   r   r   Ê   r(   z%DatabaseDetails.database_display_namec                 C   r#   )a  
        Sets the database_display_name of this DatabaseDetails.
        The user-friendly name for the database. The name does not have to be unique.


        :param database_display_name: The database_display_name of this DatabaseDetails.
        :type: str
        Nr*   )r   r   r   r   r   r   Ö   r)   c                 C   r   )zì
        **[Required]** Gets the database_type of this DatabaseDetails.
        Operations Insights internal representation of the database type.


        :return: The database_type of this DatabaseDetails.
        :rtype: str
        ©r   r!   r   r   r   r   â   r(   zDatabaseDetails.database_typec                 C   r#   )zé
        Sets the database_type of this DatabaseDetails.
        Operations Insights internal representation of the database type.


        :param database_type: The database_type of this DatabaseDetails.
        :type: str
        Nr+   )r   r   r   r   r   r   î   r)   c                 C   r   )z¾
        Gets the database_version of this DatabaseDetails.
        The version of the database.


        :return: The database_version of this DatabaseDetails.
        :rtype: str
        ©r   r!   r   r   r   r   ú   r(   z DatabaseDetails.database_versionc                 C   r#   )zÍ
        Sets the database_version of this DatabaseDetails.
        The version of the database.


        :param database_version: The database_version of this DatabaseDetails.
        :type: str
        Nr,   )r   r   r   r   r   r     r)   c                 C   r   )zÚ
        Gets the instances of this DatabaseDetails.
        Array of hostname and instance name.


        :return: The instances of this DatabaseDetails.
        :rtype: list[oci.opsi.models.HostInstanceMap]
        ©r   r!   r   r   r   r     r(   zDatabaseDetails.instancesc                 C   r#   )zâ
        Sets the instances of this DatabaseDetails.
        Array of hostname and instance name.


        :param instances: The instances of this DatabaseDetails.
        :type: list[oci.opsi.models.HostInstanceMap]
        Nr-   )r   r   r   r   r   r     r)   c                 C   r   )z¶
        Gets the cdb_name of this DatabaseDetails.
        Name of the CDB.Only applies to PDB.


        :return: The cdb_name of this DatabaseDetails.
        :rtype: str
        ©r   r!   r   r   r   r   *  r(   zDatabaseDetails.cdb_namec                 C   r#   )z½
        Sets the cdb_name of this DatabaseDetails.
        Name of the CDB.Only applies to PDB.


        :param cdb_name: The cdb_name of this DatabaseDetails.
        :type: str
        Nr.   )r   r   r   r   r   r   6  r)   c                 C   s   t | ƒS ©N)r   r!   r   r   r   Ú__repr__B  s   zDatabaseDetails.__repr__c                 C   s   |d u rdS | j |j kS )NF)Ú__dict__©r   Úotherr   r   r   Ú__eq__E  s   zDatabaseDetails.__eq__c                 C   s
   | |k S r/   r   r2   r   r   r   Ú__ne__K  s   
zDatabaseDetails.__ne__N)Ú__name__Ú
__module__Ú__qualname__Ú__doc__r   Úpropertyr   Úsetterr	   r
   r   r   r   r   r   r   r0   r4   r5   r   r   r   r   r      sT    L

















r   N)Zoci.utilr   r   r   Zoci.decoratorsr   Úobjectr   r   r   r   r   Ú<module>   s   