HEX
Server: Apache
System: Linux sh00085.hostgator.com 5.14.0-687.29.1.el9_8.x86_64 #1 SMP PREEMPT_DYNAMIC Thu Jul 23 16:18:48 EDT 2026 x86_64
User: yqegzjte (1064)
PHP: 8.5.8
Disabled: NONE
Upload Files
File: //lib/python3.9/site-packages/oci/opsi/models/__pycache__/db_external_instance.cpython-39.pyc
a

���f�1�@sDddlmZddlmZmZmZddlmZeGdd�de��ZdS)�)� DatabaseConfigurationMetricGroup�)�formatted_flat_dict�
NONE_SENTINEL�#value_allowed_none_or_none_sentinel)�init_model_state_from_kwargsc@sheZdZdZdd�Zedd��Zejdd��Zedd��Zejd	d��Zed
d��Z	e	jdd��Z	ed
d��Z
e
jdd��Z
edd��Zejdd��Zedd��Zejdd��Zedd��Z
e
jdd��Z
edd��Zejdd��Zedd��Zejdd��Zedd ��Zejd!d ��Zed"d#��Zejd$d#��Zed%d&��Zejd'd&��Zd(d)�Zd*d+�Zd,d-�Zd.S)/�DBExternalInstancezQ
    Configuration parameters defined for external databases instance level.
    cKs�ddddddddddddddd�|_dddd	d
ddd
ddddddd�|_d|_d|_d|_d|_d|_d|_d|_d|_	d|_
d|_d|_d|_
d|_d|_d|_dS)a!

        Initializes a new DBExternalInstance object with values from keyword arguments. The default value of the :py:attr:`~oci.opsi.models.DBExternalInstance.metric_name` attribute
        of this class is ``DB_EXTERNAL_INSTANCE`` and it should not be changed.
        The following keyword arguments are supported (corresponding to the getters/setters of this class):

        :param metric_name:
            The value to assign to the metric_name property of this DBExternalInstance.
            Allowed values for this property are: "DB_EXTERNAL_PROPERTIES", "DB_EXTERNAL_INSTANCE", "DB_OS_CONFIG_INSTANCE", "DB_PARAMETERS"
        :type metric_name: str

        :param time_collected:
            The value to assign to the time_collected property of this DBExternalInstance.
        :type time_collected: datetime

        :param instance_name:
            The value to assign to the instance_name property of this DBExternalInstance.
        :type instance_name: str

        :param host_name:
            The value to assign to the host_name property of this DBExternalInstance.
        :type host_name: str

        :param cpu_count:
            The value to assign to the cpu_count property of this DBExternalInstance.
        :type cpu_count: int

        :param host_memory_capacity:
            The value to assign to the host_memory_capacity property of this DBExternalInstance.
        :type host_memory_capacity: float

        :param version:
            The value to assign to the version property of this DBExternalInstance.
        :type version: str

        :param parallel:
            The value to assign to the parallel property of this DBExternalInstance.
        :type parallel: str

        :param instance_role:
            The value to assign to the instance_role property of this DBExternalInstance.
        :type instance_role: str

        :param logins:
            The value to assign to the logins property of this DBExternalInstance.
        :type logins: str

        :param database_status:
            The value to assign to the database_status property of this DBExternalInstance.
        :type database_status: str

        :param status:
            The value to assign to the status property of this DBExternalInstance.
        :type status: str

        :param edition:
            The value to assign to the edition property of this DBExternalInstance.
        :type edition: str

        :param startup_time:
            The value to assign to the startup_time property of this DBExternalInstance.
        :type startup_time: datetime

        �strZdatetime�int�float)Zmetric_nameZtime_collected�
instance_name�	host_name�	cpu_count�host_memory_capacity�version�parallel�
instance_role�logins�database_status�status�edition�startup_timeZ
metricNameZ
timeCollectedZinstanceNameZhostNameZcpuCountZhostMemoryCapacityrrZinstanceRolerZdatabaseStatusrrZstartupTimeNZDB_EXTERNAL_INSTANCE)Z
swagger_typesZ
attribute_mapZ_metric_nameZ_time_collected�_instance_name�
_host_name�
_cpu_count�_host_memory_capacity�_version�	_parallel�_instance_role�_logins�_database_status�_status�_edition�
_startup_time)�self�kwargs�r&�H/usr/lib/python3.9/site-packages/oci/opsi/models/db_external_instance.py�__init__sZA��zDBExternalInstance.__init__cCs|jS)z�
        **[Required]** Gets the instance_name of this DBExternalInstance.
        Name of the database instance.


        :return: The instance_name of this DBExternalInstance.
        :rtype: str
        �r�r$r&r&r'r�s
z DBExternalInstance.instance_namecCs
||_dS)z�
        Sets the instance_name of this DBExternalInstance.
        Name of the database instance.


        :param instance_name: The instance_name of this DBExternalInstance.
        :type: str
        Nr))r$rr&r&r'r�s
cCs|jS)z�
        **[Required]** Gets the host_name of this DBExternalInstance.
        Host name of the database instance.


        :return: The host_name of this DBExternalInstance.
        :rtype: str
        �rr*r&r&r'r
�s
zDBExternalInstance.host_namecCs
||_dS)z�
        Sets the host_name of this DBExternalInstance.
        Host name of the database instance.


        :param host_name: The host_name of this DBExternalInstance.
        :type: str
        Nr+)r$r
r&r&r'r
�s
cCs|jS)z�
        Gets the cpu_count of this DBExternalInstance.
        Total number of CPUs allocated for the host.


        :return: The cpu_count of this DBExternalInstance.
        :rtype: int
        �rr*r&r&r'r�s
zDBExternalInstance.cpu_countcCs
||_dS)z�
        Sets the cpu_count of this DBExternalInstance.
        Total number of CPUs allocated for the host.


        :param cpu_count: The cpu_count of this DBExternalInstance.
        :type: int
        Nr,)r$rr&r&r'r�s
cCs|jS)z�
        Gets the host_memory_capacity of this DBExternalInstance.
        Total amount of usable Physical RAM Memory available in gigabytes.


        :return: The host_memory_capacity of this DBExternalInstance.
        :rtype: float
        �rr*r&r&r'r�s
z'DBExternalInstance.host_memory_capacitycCs
||_dS)a
        Sets the host_memory_capacity of this DBExternalInstance.
        Total amount of usable Physical RAM Memory available in gigabytes.


        :param host_memory_capacity: The host_memory_capacity of this DBExternalInstance.
        :type: float
        Nr-)r$rr&r&r'r�s
cCs|jS)z�
        Gets the version of this DBExternalInstance.
        Database version.


        :return: The version of this DBExternalInstance.
        :rtype: str
        �rr*r&r&r'r�s
zDBExternalInstance.versioncCs
||_dS)z�
        Sets the version of this DBExternalInstance.
        Database version.


        :param version: The version of this DBExternalInstance.
        :type: str
        Nr.)r$rr&r&r'r�s
cCs|jS)z�
        Gets the parallel of this DBExternalInstance.
        Indicates whether the instance is mounted in cluster database mode (YES) or not (NO).


        :return: The parallel of this DBExternalInstance.
        :rtype: str
        �rr*r&r&r'r�s
zDBExternalInstance.parallelcCs
||_dS)z�
        Sets the parallel of this DBExternalInstance.
        Indicates whether the instance is mounted in cluster database mode (YES) or not (NO).


        :param parallel: The parallel of this DBExternalInstance.
        :type: str
        Nr/)r$rr&r&r'rs
cCs|jS)z�
        Gets the instance_role of this DBExternalInstance.
        Role (permissions) of the database instance.


        :return: The instance_role of this DBExternalInstance.
        :rtype: str
        �rr*r&r&r'rs
z DBExternalInstance.instance_rolecCs
||_dS)z�
        Sets the instance_role of this DBExternalInstance.
        Role (permissions) of the database instance.


        :param instance_role: The instance_role of this DBExternalInstance.
        :type: str
        Nr0)r$rr&r&r'r s
cCs|jS)z�
        Gets the logins of this DBExternalInstance.
        Indicates if logins are allowed or restricted.


        :return: The logins of this DBExternalInstance.
        :rtype: str
        �rr*r&r&r'r,s
zDBExternalInstance.loginscCs
||_dS)z�
        Sets the logins of this DBExternalInstance.
        Indicates if logins are allowed or restricted.


        :param logins: The logins of this DBExternalInstance.
        :type: str
        Nr1)r$rr&r&r'r8s
cCs|jS)z�
        Gets the database_status of this DBExternalInstance.
        Status of the database.


        :return: The database_status of this DBExternalInstance.
        :rtype: str
        �r r*r&r&r'rDs
z"DBExternalInstance.database_statuscCs
||_dS)z�
        Sets the database_status of this DBExternalInstance.
        Status of the database.


        :param database_status: The database_status of this DBExternalInstance.
        :type: str
        Nr2)r$rr&r&r'rPs
cCs|jS)z�
        Gets the status of this DBExternalInstance.
        Status of the instance.


        :return: The status of this DBExternalInstance.
        :rtype: str
        �r!r*r&r&r'r\s
zDBExternalInstance.statuscCs
||_dS)z�
        Sets the status of this DBExternalInstance.
        Status of the instance.


        :param status: The status of this DBExternalInstance.
        :type: str
        Nr3)r$rr&r&r'rhs
cCs|jS)z�
        Gets the edition of this DBExternalInstance.
        The edition of the database.


        :return: The edition of this DBExternalInstance.
        :rtype: str
        �r"r*r&r&r'rts
zDBExternalInstance.editioncCs
||_dS)z�
        Sets the edition of this DBExternalInstance.
        The edition of the database.


        :param edition: The edition of this DBExternalInstance.
        :type: str
        Nr4)r$rr&r&r'r�s
cCs|jS)z�
        Gets the startup_time of this DBExternalInstance.
        Start up time of the database instance.


        :return: The startup_time of this DBExternalInstance.
        :rtype: datetime
        �r#r*r&r&r'r�s
zDBExternalInstance.startup_timecCs
||_dS)z�
        Sets the startup_time of this DBExternalInstance.
        Start up time of the database instance.


        :param startup_time: The startup_time of this DBExternalInstance.
        :type: datetime
        Nr5)r$rr&r&r'r�s
cCst|�S�N)rr*r&r&r'�__repr__�szDBExternalInstance.__repr__cCs|durdS|j|jkS)NF)�__dict__�r$�otherr&r&r'�__eq__�szDBExternalInstance.__eq__cCs
||kSr6r&r9r&r&r'�__ne__�szDBExternalInstance.__ne__N)�__name__�
__module__�__qualname__�__doc__r(�propertyr�setterr
rrrrrrrrrrr7r;r<r&r&r&r'rsjr























rN)	Z#database_configuration_metric_grouprZoci.utilrrrZoci.decoratorsrrr&r&r&r'�<module>s