o
    ëÉ¶d-L  ã                   @   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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+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d:d;„ Zd<d=„ Zd>d?„ Zd@S )AÚDbHomez
    DbHome model.
    ÚPROVISIONINGÚ	AVAILABLEÚUPDATINGÚTERMINATINGÚ
TERMINATEDÚFAILEDc                 K   s0  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“| _ 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%S )&a  
        Initializes a new DbHome 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 DbHome.
        :type id: str

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

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

        :param last_patch_history_entry_id:
            The value to assign to the last_patch_history_entry_id property of this DbHome.
        :type last_patch_history_entry_id: str

        :param lifecycle_state:
            The value to assign to the lifecycle_state property of this DbHome.
            Allowed values for this property are: "PROVISIONING", "AVAILABLE", "UPDATING", "TERMINATING", "TERMINATED", "FAILED", 'UNKNOWN_ENUM_VALUE'.
            Any unrecognized values returned by a service will be mapped to 'UNKNOWN_ENUM_VALUE'.
        :type lifecycle_state: str

        :param db_system_id:
            The value to assign to the db_system_id property of this DbHome.
        :type db_system_id: str

        :param vm_cluster_id:
            The value to assign to the vm_cluster_id property of this DbHome.
        :type vm_cluster_id: str

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

        :param db_home_location:
            The value to assign to the db_home_location property of this DbHome.
        :type db_home_location: str

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

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

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

        :param one_off_patches:
            The value to assign to the one_off_patches property of this DbHome.
        :type one_off_patches: list[str]

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

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

        :param database_software_image_id:
            The value to assign to the database_software_image_id property of this DbHome.
        :type database_software_image_id: str

        ÚidÚstrÚcompartment_idÚdisplay_nameÚlast_patch_history_entry_idÚlifecycle_stateÚdb_system_idÚvm_cluster_idÚ
db_versionÚdb_home_locationÚlifecycle_detailsÚtime_createdÚdatetimeÚ
kms_key_idÚone_off_patchesz	list[str]Úfreeform_tagszdict(str, str)Údefined_tagszdict(str, dict(str, object))Údatabase_software_image_idZcompartmentIdZdisplayNameZlastPatchHistoryEntryIdZlifecycleStateZ
dbSystemIdZvmClusterIdZ	dbVersionZdbHomeLocationZlifecycleDetailsZtimeCreatedZkmsKeyIdZoneOffPatchesZfreeformTagsZdefinedTagsZdatabaseSoftwareImageIdN)Zswagger_typesZattribute_mapÚ_idÚ_compartment_idÚ_display_nameÚ_last_patch_history_entry_idÚ_lifecycle_stateÚ_db_system_idÚ_vm_cluster_idÚ_db_versionÚ_db_home_locationÚ_lifecycle_detailsÚ_time_createdÚ_kms_key_idÚ_one_off_patchesÚ_freeform_tagsÚ_defined_tagsÚ_database_software_image_id)ÚselfÚkwargs© r1   ú?usr/lib/python3.10/site-packages/oci/database/models/db_home.pyÚ__init__*   s¤   Hÿþýüûúùø	÷
öõôóòñðÿþýüûúùø	÷
öõôóòñð
zDbHome.__init__c                 C   ó   | j S )zø
        **[Required]** Gets the id of this DbHome.
        The `OCID`__ of the Database Home.

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


        :return: The id of this DbHome.
        :rtype: str
        ©r   ©r/   r1   r1   r2   r   ©   ó   z	DbHome.idc                 C   ó
   || _ dS )zê
        Sets the id of this DbHome.
        The `OCID`__ of the Database Home.

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


        :param id: The id of this DbHome.
        :type: str
        Nr5   )r/   r   r1   r1   r2   r   ·   ó   
c                 C   r4   )a  
        **[Required]** Gets the compartment_id of this DbHome.
        The `OCID`__ of the compartment.

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


        :return: The compartment_id of this DbHome.
        :rtype: str
        ©r    r6   r1   r1   r2   r   Å   r7   zDbHome.compartment_idc                 C   r8   )a  
        Sets the compartment_id of this DbHome.
        The `OCID`__ of the compartment.

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


        :param compartment_id: The compartment_id of this DbHome.
        :type: str
        Nr:   )r/   r   r1   r1   r2   r   Ó   r9   c                 C   r4   )zé
        **[Required]** Gets the display_name of this DbHome.
        The user-provided name for the Database Home. The name does not need to be unique.


        :return: The display_name of this DbHome.
        :rtype: str
        ©r!   r6   r1   r1   r2   r   á   ó   
zDbHome.display_namec                 C   r8   )zå
        Sets the display_name of this DbHome.
        The user-provided name for the Database Home. The name does not need to be unique.


        :param display_name: The display_name of this DbHome.
        :type: str
        Nr;   )r/   r   r1   r1   r2   r   í   ó   

c                 C   r4   )a_  
        Gets the last_patch_history_entry_id of this DbHome.
        The `OCID`__ of the last patch history. This value is updated as soon as a patch operation is started.

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


        :return: The last_patch_history_entry_id of this DbHome.
        :rtype: str
        ©r"   r6   r1   r1   r2   r   ù   r7   z"DbHome.last_patch_history_entry_idc                 C   r8   )ay  
        Sets the last_patch_history_entry_id of this DbHome.
        The `OCID`__ of the last patch history. This value is updated as soon as a patch operation is started.

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


        :param last_patch_history_entry_id: The last_patch_history_entry_id of this DbHome.
        :type: str
        Nr>   )r/   r   r1   r1   r2   r     r9   c                 C   r4   )a·  
        **[Required]** Gets the lifecycle_state of this DbHome.
        The current state of the Database Home.

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


        :return: The lifecycle_state of this DbHome.
        :rtype: str
        )r#   r6   r1   r1   r2   r     ó   zDbHome.lifecycle_statec                 C   s    g d¢}t ||ƒsd}|| _dS )zÃ
        Sets the lifecycle_state of this DbHome.
        The current state of the Database Home.


        :param lifecycle_state: The lifecycle_state of this DbHome.
        :type: str
        )r   r   r	   r
   r   r   ZUNKNOWN_ENUM_VALUEN)r   r#   )r/   r   Zallowed_valuesr1   r1   r2   r   $  s   


c                 C   r4   )zù
        Gets the db_system_id of this DbHome.
        The `OCID`__ of the DB system.

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


        :return: The db_system_id of this DbHome.
        :rtype: str
        ©r$   r6   r1   r1   r2   r   3  r7   zDbHome.db_system_idc                 C   r8   )a  
        Sets the db_system_id of this DbHome.
        The `OCID`__ of the DB system.

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


        :param db_system_id: The db_system_id of this DbHome.
        :type: str
        Nr@   )r/   r   r1   r1   r2   r   A  r9   c                 C   r4   )zü
        Gets the vm_cluster_id of this DbHome.
        The `OCID`__ of the VM cluster.

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


        :return: The vm_cluster_id of this DbHome.
        :rtype: str
        ©r%   r6   r1   r1   r2   r   O  r7   zDbHome.vm_cluster_idc                 C   r8   )a  
        Sets the vm_cluster_id of this DbHome.
        The `OCID`__ of the VM cluster.

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


        :param vm_cluster_id: The vm_cluster_id of this DbHome.
        :type: str
        NrA   )r/   r   r1   r1   r2   r   ]  r9   c                 C   r4   )z¯
        **[Required]** Gets the db_version of this DbHome.
        The Oracle Database version.


        :return: The db_version of this DbHome.
        :rtype: str
        ©r&   r6   r1   r1   r2   r   k  r<   zDbHome.db_versionc                 C   r8   )z©
        Sets the db_version of this DbHome.
        The Oracle Database version.


        :param db_version: The db_version of this DbHome.
        :type: str
        NrB   )r/   r   r1   r1   r2   r   w  r=   c                 C   r4   )zÈ
        **[Required]** Gets the db_home_location of this DbHome.
        The location of the Oracle Database Home.


        :return: The db_home_location of this DbHome.
        :rtype: str
        ©r'   r6   r1   r1   r2   r   ƒ  r<   zDbHome.db_home_locationc                 C   r8   )zÈ
        Sets the db_home_location of this DbHome.
        The location of the Oracle Database Home.


        :param db_home_location: The db_home_location of this DbHome.
        :type: str
        NrC   )r/   r   r1   r1   r2   r     r=   c                 C   r4   )zË
        Gets the lifecycle_details of this DbHome.
        Additional information about the current lifecycle state.


        :return: The lifecycle_details of this DbHome.
        :rtype: str
        ©r(   r6   r1   r1   r2   r   ›  r<   zDbHome.lifecycle_detailsc                 C   r8   )zÛ
        Sets the lifecycle_details of this DbHome.
        Additional information about the current lifecycle state.


        :param lifecycle_details: The lifecycle_details of this DbHome.
        :type: str
        NrD   )r/   r   r1   r1   r2   r   §  r=   c                 C   r4   )z½
        Gets the time_created of this DbHome.
        The date and time the Database Home was created.


        :return: The time_created of this DbHome.
        :rtype: datetime
        ©r)   r6   r1   r1   r2   r   ³  r<   zDbHome.time_createdc                 C   r8   )zÈ
        Sets the time_created of this DbHome.
        The date and time the Database Home was created.


        :param time_created: The time_created of this DbHome.
        :type: datetime
        NrE   )r/   r   r1   r1   r2   r   ¿  r=   c                 C   r4   )a  
        Gets the kms_key_id of this DbHome.
        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 DbHome.
        :rtype: str
        ©r*   r6   r1   r1   r2   r   Ë  r<   zDbHome.kms_key_idc                 C   r8   )a  
        Sets the kms_key_id of this DbHome.
        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 DbHome.
        :type: str
        NrF   )r/   r   r1   r1   r2   r   ×  r=   c                 C   r4   )z¿
        Gets the one_off_patches of this DbHome.
        List of one-off patches for Database Homes.


        :return: The one_off_patches of this DbHome.
        :rtype: list[str]
        ©r+   r6   r1   r1   r2   r   ã  r<   zDbHome.one_off_patchesc                 C   r8   )zÍ
        Sets the one_off_patches of this DbHome.
        List of one-off patches for Database Homes.


        :param one_off_patches: The one_off_patches of this DbHome.
        :type: list[str]
        NrG   )r/   r   r1   r1   r2   r   ï  r=   c                 C   r4   )a¾  
        Gets the freeform_tags of this DbHome.
        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 DbHome.
        :rtype: dict(str, str)
        ©r,   r6   r1   r1   r2   r   û  s   zDbHome.freeform_tagsc                 C   r8   )aÊ  
        Sets the freeform_tags of this DbHome.
        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 DbHome.
        :type: dict(str, str)
        NrH   )r/   r   r1   r1   r2   r     s   
c                 C   r4   )a{  
        Gets the defined_tags of this DbHome.
        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 DbHome.
        :rtype: dict(str, dict(str, object))
        ©r-   r6   r1   r1   r2   r     r?   zDbHome.defined_tagsc                 C   r8   )a†  
        Sets the defined_tags of this DbHome.
        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 DbHome.
        :type: dict(str, dict(str, object))
        NrI   )r/   r   r1   r1   r2   r   ,  s   
c                 C   r4   )a  
        Gets the database_software_image_id of this DbHome.
        The database software image `OCID`__

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


        :return: The database_software_image_id of this DbHome.
        :rtype: str
        ©r.   r6   r1   r1   r2   r   ;  r7   z!DbHome.database_software_image_idc                 C   r8   )a4  
        Sets the database_software_image_id of this DbHome.
        The database software image `OCID`__

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


        :param database_software_image_id: The database_software_image_id of this DbHome.
        :type: str
        NrJ   )r/   r   r1   r1   r2   r   I  r9   c                 C   s   t | ƒS ©N)r   r6   r1   r1   r2   Ú__repr__W  s   zDbHome.__repr__c                 C   s   |d u rdS | j |j kS )NF)Ú__dict__©r/   Úotherr1   r1   r2   Ú__eq__Z  s   zDbHome.__eq__c                 C   s
   | |k S rK   r1   rN   r1   r1   r2   Ú__ne__`  s   
zDbHome.__ne__N) Ú__name__Ú
__module__Ú__qualname__Ú__doc__ZLIFECYCLE_STATE_PROVISIONINGZLIFECYCLE_STATE_AVAILABLEZLIFECYCLE_STATE_UPDATINGZLIFECYCLE_STATE_TERMINATINGZLIFECYCLE_STATE_TERMINATEDZLIFECYCLE_STATE_FAILEDr3   Úpropertyr   Úsetterr   r   r   r   r   r   r   r   r   r   r   r   r   r   r   rL   rP   rQ   r1   r1   r1   r2   r      s˜    































r   N)Zoci.utilr   r   r   Zoci.decoratorsr   Úobjectr   r1   r1   r1   r2   Ú<module>   s   