o
    ëÉ¶dóc  ã                   @   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                   @   sj  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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!dIdJ„ Z"dKdL„ Z#dMdN„ Z$dOS )PÚDbServerzd
    Details of the Exacc Db server resource. Applies to Exadata Cloud@Customer instances only.
    ÚCREATINGÚ	AVAILABLEÚUNAVAILABLEÚDELETINGÚDELETEDÚMAINTENANCE_IN_PROGRESSc                 K   sv  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œ¥| _ 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-| _d-| _d-| _d-| _d-S ).aâ  
        Initializes a new DbServer 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 DbServer.
        :type id: str

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

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

        :param exadata_infrastructure_id:
            The value to assign to the exadata_infrastructure_id property of this DbServer.
        :type exadata_infrastructure_id: str

        :param cpu_core_count:
            The value to assign to the cpu_core_count property of this DbServer.
        :type cpu_core_count: int

        :param memory_size_in_gbs:
            The value to assign to the memory_size_in_gbs property of this DbServer.
        :type memory_size_in_gbs: int

        :param db_node_storage_size_in_gbs:
            The value to assign to the db_node_storage_size_in_gbs property of this DbServer.
        :type db_node_storage_size_in_gbs: int

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

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

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

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

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

        :param lifecycle_state:
            The value to assign to the lifecycle_state property of this DbServer.
            Allowed values for this property are: "CREATING", "AVAILABLE", "UNAVAILABLE", "DELETING", "DELETED", "MAINTENANCE_IN_PROGRESS", '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 DbServer.
        :type lifecycle_details: str

        :param max_cpu_count:
            The value to assign to the max_cpu_count property of this DbServer.
        :type max_cpu_count: int

        :param max_memory_in_gbs:
            The value to assign to the max_memory_in_gbs property of this DbServer.
        :type max_memory_in_gbs: int

        :param max_db_node_storage_in_gbs:
            The value to assign to the max_db_node_storage_in_gbs property of this DbServer.
        :type max_db_node_storage_in_gbs: int

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

        :param db_server_patching_details:
            The value to assign to the db_server_patching_details property of this DbServer.
        :type db_server_patching_details: oci.database.models.DbServerPatchingDetails

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

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

        ÚidÚstrÚdisplay_nameÚcompartment_idÚexadata_infrastructure_idÚcpu_core_countÚintÚmemory_size_in_gbsÚdb_node_storage_size_in_gbsÚvm_cluster_idsz	list[str]Úautonomous_vm_cluster_idsÚautonomous_virtual_machine_idsÚdb_node_idsÚshapeÚlifecycle_stateÚlifecycle_detailsÚmax_cpu_countÚmax_memory_in_gbsÚmax_db_node_storage_in_gbsÚdatetimeZDbServerPatchingDetailszdict(str, str)zdict(str, dict(str, object)))Útime_createdÚdb_server_patching_detailsÚfreeform_tagsÚdefined_tagsZdisplayNameZcompartmentIdZexadataInfrastructureIdZcpuCoreCountZmemorySizeInGBsZdbNodeStorageSizeInGBsZvmClusterIdsZautonomousVmClusterIdsZautonomousVirtualMachineIdsZ	dbNodeIdsZlifecycleStateZlifecycleDetailsZmaxCpuCountZmaxMemoryInGBsZmaxDbNodeStorageInGBsZtimeCreatedZdbServerPatchingDetailsZfreeformTagsZdefinedTagsN)Zswagger_typesZattribute_mapÚ_idÚ_display_nameÚ_compartment_idÚ_exadata_infrastructure_idÚ_cpu_core_countÚ_memory_size_in_gbsÚ_db_node_storage_size_in_gbsÚ_vm_cluster_idsÚ_autonomous_vm_cluster_idsÚ_autonomous_virtual_machine_idsÚ_db_node_idsÚ_shapeÚ_lifecycle_stateÚ_lifecycle_detailsÚ_max_cpu_countÚ_max_memory_in_gbsÚ_max_db_node_storage_in_gbsÚ_time_createdÚ_db_server_patching_detailsÚ_freeform_tagsÚ_defined_tags)ÚselfÚkwargs© r<   úAusr/lib/python3.10/site-packages/oci/database/models/db_server.pyÚ__init__*   sÊ   \ÿþýüûúùø	÷
öõôóòñðï
ëÿþýüûúùø	÷
öõôóòñðï
ë
zDbServer.__init__c                 C   ó   | j S )zï
        Gets the id of this DbServer.
        The `OCID`__ of the Exacc Db server.

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


        :return: The id of this DbServer.
        :rtype: str
        ©r%   ©r:   r<   r<   r=   r   Ì   ó   zDbServer.idc                 C   ó
   || _ dS )zð
        Sets the id of this DbServer.
        The `OCID`__ of the Exacc Db server.

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


        :param id: The id of this DbServer.
        :type: str
        Nr@   )r:   r   r<   r<   r=   r   Ú   ó   
c                 C   r?   )zÚ
        Gets the display_name of this DbServer.
        The user-friendly name for the Db server. The name does not need to be unique.


        :return: The display_name of this DbServer.
        :rtype: str
        ©r&   rA   r<   r<   r=   r   è   ó   
zDbServer.display_namec                 C   rC   )zå
        Sets the display_name of this DbServer.
        The user-friendly name for the Db server. The name does not need to be unique.


        :param display_name: The display_name of this DbServer.
        :type: str
        NrE   )r:   r   r<   r<   r=   r   ô   ó   

c                 C   r?   )a  
        Gets the compartment_id of this DbServer.
        The `OCID`__ of the compartment.

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


        :return: The compartment_id of this DbServer.
        :rtype: str
        ©r'   rA   r<   r<   r=   r      rB   zDbServer.compartment_idc                 C   rC   )a  
        Sets the compartment_id of this DbServer.
        The `OCID`__ of the compartment.

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


        :param compartment_id: The compartment_id of this DbServer.
        :type: str
        NrH   )r:   r   r<   r<   r=   r     rD   c                 C   r?   )a$  
        Gets the exadata_infrastructure_id of this DbServer.
        The `OCID`__ of the Exadata infrastructure.

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


        :return: The exadata_infrastructure_id of this DbServer.
        :rtype: str
        ©r(   rA   r<   r<   r=   r     rB   z"DbServer.exadata_infrastructure_idc                 C   rC   )a<  
        Sets the exadata_infrastructure_id of this DbServer.
        The `OCID`__ of the Exadata infrastructure.

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


        :param exadata_infrastructure_id: The exadata_infrastructure_id of this DbServer.
        :type: str
        NrI   )r:   r   r<   r<   r=   r   *  rD   c                 C   r?   )zÁ
        Gets the cpu_core_count of this DbServer.
        The number of CPU cores enabled on the Db server.


        :return: The cpu_core_count of this DbServer.
        :rtype: int
        ©r)   rA   r<   r<   r=   r   8  rF   zDbServer.cpu_core_countc                 C   rC   )zÎ
        Sets the cpu_core_count of this DbServer.
        The number of CPU cores enabled on the Db server.


        :param cpu_core_count: The cpu_core_count of this DbServer.
        :type: int
        NrJ   )r:   r   r<   r<   r=   r   D  rG   c                 C   r?   )zÅ
        Gets the memory_size_in_gbs of this DbServer.
        The allocated memory in GBs on the Db server.


        :return: The memory_size_in_gbs of this DbServer.
        :rtype: int
        ©r*   rA   r<   r<   r=   r   P  rF   zDbServer.memory_size_in_gbsc                 C   rC   )zÖ
        Sets the memory_size_in_gbs of this DbServer.
        The allocated memory in GBs on the Db server.


        :param memory_size_in_gbs: The memory_size_in_gbs of this DbServer.
        :type: int
        NrK   )r:   r   r<   r<   r=   r   \  rG   c                 C   r?   )zã
        Gets the db_node_storage_size_in_gbs of this DbServer.
        The allocated local node storage in GBs on the Db server.


        :return: The db_node_storage_size_in_gbs of this DbServer.
        :rtype: int
        ©r+   rA   r<   r<   r=   r   h  rF   z$DbServer.db_node_storage_size_in_gbsc                 C   rC   )zý
        Sets the db_node_storage_size_in_gbs of this DbServer.
        The allocated local node storage in GBs on the Db server.


        :param db_node_storage_size_in_gbs: The db_node_storage_size_in_gbs of this DbServer.
        :type: int
        NrL   )r:   r   r<   r<   r=   r   t  rG   c                 C   r?   )a'  
        Gets the vm_cluster_ids of this DbServer.
        The `OCID`__ of the VM Clusters associated with the Db server.

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


        :return: The vm_cluster_ids of this DbServer.
        :rtype: list[str]
        ©r,   rA   r<   r<   r=   r   €  rB   zDbServer.vm_cluster_idsc                 C   rC   )a4  
        Sets the vm_cluster_ids of this DbServer.
        The `OCID`__ of the VM Clusters associated with the Db server.

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


        :param vm_cluster_ids: The vm_cluster_ids of this DbServer.
        :type: list[str]
        NrM   )r:   r   r<   r<   r=   r   Ž  rD   c                 C   r?   )aQ  
        Gets the autonomous_vm_cluster_ids of this DbServer.
        The list of `OCIDs`__ of the Autonomous VM Clusters associated with the Db server.

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


        :return: The autonomous_vm_cluster_ids of this DbServer.
        :rtype: list[str]
        ©r-   rA   r<   r<   r=   r   œ  rB   z"DbServer.autonomous_vm_cluster_idsc                 C   rC   )ai  
        Sets the autonomous_vm_cluster_ids of this DbServer.
        The list of `OCIDs`__ of the Autonomous VM Clusters associated with the Db server.

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


        :param autonomous_vm_cluster_ids: The autonomous_vm_cluster_ids of this DbServer.
        :type: list[str]
        NrN   )r:   r   r<   r<   r=   r   ª  rD   c                 C   r?   )a`  
        Gets the autonomous_virtual_machine_ids of this DbServer.
        The list of `OCIDs`__ of the Autonomous Virtual Machines associated with the Db server.

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


        :return: The autonomous_virtual_machine_ids of this DbServer.
        :rtype: list[str]
        ©r.   rA   r<   r<   r=   r   ¸  rB   z'DbServer.autonomous_virtual_machine_idsc                 C   rC   )a}  
        Sets the autonomous_virtual_machine_ids of this DbServer.
        The list of `OCIDs`__ of the Autonomous Virtual Machines associated with the Db server.

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


        :param autonomous_virtual_machine_ids: The autonomous_virtual_machine_ids of this DbServer.
        :type: list[str]
        NrO   )r:   r   r<   r<   r=   r   Æ  rD   c                 C   r?   )a  
        Gets the db_node_ids of this DbServer.
        The `OCID`__ of the Db nodes associated with the Db server.

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


        :return: The db_node_ids of this DbServer.
        :rtype: list[str]
        ©r/   rA   r<   r<   r=   r   Ô  rB   zDbServer.db_node_idsc                 C   rC   )a(  
        Sets the db_node_ids of this DbServer.
        The `OCID`__ of the Db nodes associated with the Db server.

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


        :param db_node_ids: The db_node_ids of this DbServer.
        :type: list[str]
        NrP   )r:   r   r<   r<   r=   r   â  rD   c                 C   r?   )zê
        Gets the shape of this DbServer.
        The shape of the Db server. The shape determines the amount of CPU, storage, and memory resources available.


        :return: The shape of this DbServer.
        :rtype: str
        ©r0   rA   r<   r<   r=   r   ð  rF   zDbServer.shapec                 C   rC   )zî
        Sets the shape of this DbServer.
        The shape of the Db server. The shape determines the amount of CPU, storage, and memory resources available.


        :param shape: The shape of this DbServer.
        :type: str
        NrQ   )r:   r   r<   r<   r=   r   ü  rG   c                 C   r?   )a²  
        Gets the lifecycle_state of this DbServer.
        The current state of the Db server.

        Allowed values for this property are: "CREATING", "AVAILABLE", "UNAVAILABLE", "DELETING", "DELETED", "MAINTENANCE_IN_PROGRESS", 'UNKNOWN_ENUM_VALUE'.
        Any unrecognized values returned by a service will be mapped to 'UNKNOWN_ENUM_VALUE'.


        :return: The lifecycle_state of this DbServer.
        :rtype: str
        )r1   rA   r<   r<   r=   r     ó   zDbServer.lifecycle_statec                 C   s    g d¢}t ||ƒsd}|| _dS )zÃ
        Sets the lifecycle_state of this DbServer.
        The current state of the Db server.


        :param lifecycle_state: The lifecycle_state of this DbServer.
        :type: str
        )r   r   r	   r
   r   r   ZUNKNOWN_ENUM_VALUEN)r   r1   )r:   r   Zallowed_valuesr<   r<   r=   r     s   


c                 C   r?   )zÏ
        Gets the lifecycle_details of this DbServer.
        Additional information about the current lifecycle state.


        :return: The lifecycle_details of this DbServer.
        :rtype: str
        ©r2   rA   r<   r<   r=   r   &  rF   zDbServer.lifecycle_detailsc                 C   rC   )zß
        Sets the lifecycle_details of this DbServer.
        Additional information about the current lifecycle state.


        :param lifecycle_details: The lifecycle_details of this DbServer.
        :type: str
        NrS   )r:   r   r<   r<   r=   r   2  rG   c                 C   r?   )z¶
        Gets the max_cpu_count of this DbServer.
        The total number of CPU cores available.


        :return: The max_cpu_count of this DbServer.
        :rtype: int
        ©r3   rA   r<   r<   r=   r   >  rF   zDbServer.max_cpu_countc                 C   rC   )zÂ
        Sets the max_cpu_count of this DbServer.
        The total number of CPU cores available.


        :param max_cpu_count: The max_cpu_count of this DbServer.
        :type: int
        NrT   )r:   r   r<   r<   r=   r   J  rG   c                 C   r?   )z¸
        Gets the max_memory_in_gbs of this DbServer.
        The total memory available in GBs.


        :return: The max_memory_in_gbs of this DbServer.
        :rtype: int
        ©r4   rA   r<   r<   r=   r   V  rF   zDbServer.max_memory_in_gbsc                 C   rC   )zÈ
        Sets the max_memory_in_gbs of this DbServer.
        The total memory available in GBs.


        :param max_memory_in_gbs: The max_memory_in_gbs of this DbServer.
        :type: int
        NrU   )r:   r   r<   r<   r=   r   b  rG   c                 C   r?   )zÖ
        Gets the max_db_node_storage_in_gbs of this DbServer.
        The total local node storage available in GBs.


        :return: The max_db_node_storage_in_gbs of this DbServer.
        :rtype: int
        ©r5   rA   r<   r<   r=   r   n  rF   z#DbServer.max_db_node_storage_in_gbsc                 C   rC   )zï
        Sets the max_db_node_storage_in_gbs of this DbServer.
        The total local node storage available in GBs.


        :param max_db_node_storage_in_gbs: The max_db_node_storage_in_gbs of this DbServer.
        :type: int
        NrV   )r:   r   r<   r<   r=   r   z  rG   c                 C   r?   )zÂ
        Gets the time_created of this DbServer.
        The date and time that the Db Server was created.


        :return: The time_created of this DbServer.
        :rtype: datetime
        ©r6   rA   r<   r<   r=   r!   †  rF   zDbServer.time_createdc                 C   rC   )zÍ
        Sets the time_created of this DbServer.
        The date and time that the Db Server was created.


        :param time_created: The time_created of this DbServer.
        :type: datetime
        NrW   )r:   r!   r<   r<   r=   r!   ’  rG   c                 C   r?   )zÆ
        Gets the db_server_patching_details of this DbServer.

        :return: The db_server_patching_details of this DbServer.
        :rtype: oci.database.models.DbServerPatchingDetails
        ©r7   rA   r<   r<   r=   r"   ž  s   z#DbServer.db_server_patching_detailsc                 C   rC   )zß
        Sets the db_server_patching_details of this DbServer.

        :param db_server_patching_details: The db_server_patching_details of this DbServer.
        :type: oci.database.models.DbServerPatchingDetails
        NrX   )r:   r"   r<   r<   r=   r"   ¨  s   
c                 C   r?   )aÂ  
        Gets the freeform_tags of this DbServer.
        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 DbServer.
        :rtype: dict(str, str)
        ©r8   rA   r<   r<   r=   r#   ²  s   zDbServer.freeform_tagsc                 C   rC   )aÎ  
        Sets the freeform_tags of this DbServer.
        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 DbServer.
        :type: dict(str, str)
        NrY   )r:   r#   r<   r<   r=   r#   Ã  s   
c                 C   r?   )a  
        Gets the defined_tags of this DbServer.
        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 DbServer.
        :rtype: dict(str, dict(str, object))
        ©r9   rA   r<   r<   r=   r$   Ô  rR   zDbServer.defined_tagsc                 C   rC   )aŠ  
        Sets the defined_tags of this DbServer.
        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 DbServer.
        :type: dict(str, dict(str, object))
        NrZ   )r:   r$   r<   r<   r=   r$   ã  s   
c                 C   s   t | ƒS ©N)r   rA   r<   r<   r=   Ú__repr__ò  s   zDbServer.__repr__c                 C   s   |d u rdS | j |j kS )NF)Ú__dict__©r:   Úotherr<   r<   r=   Ú__eq__õ  s   zDbServer.__eq__c                 C   s
   | |k S r[   r<   r^   r<   r<   r=   Ú__ne__û  s   
zDbServer.__ne__N)%Ú__name__Ú
__module__Ú__qualname__Ú__doc__ZLIFECYCLE_STATE_CREATINGZLIFECYCLE_STATE_AVAILABLEZLIFECYCLE_STATE_UNAVAILABLEZLIFECYCLE_STATE_DELETINGZLIFECYCLE_STATE_DELETEDZ'LIFECYCLE_STATE_MAINTENANCE_IN_PROGRESSr>   Úpropertyr   Úsetterr   r   r   r   r   r   r   r   r   r   r   r   r   r   r   r   r!   r"   r#   r$   r\   r`   ra   r<   r<   r<   r=   r      sÂ     #




































	
	



r   N)Zoci.utilr   r   r   Zoci.decoratorsr   Úobjectr   r<   r<   r<   r=   Ú<module>   s   