ruạṛ
a ���f � @ sD d dl mZ ddlmZmZmZ ddlmZ eG dd� de��ZdS )� )� DatabaseConfigurationMetricGroup� )�formatted_flat_dict� NONE_SENTINEL�#value_allowed_none_or_none_sentinel)�init_model_state_from_kwargsc @ s� e Zd ZdZdd� Zedd� �Zejdd� �Zedd� �Zejd d� �Zed d� �Z e jdd� �Z ed d� �Z e jdd� �Z edd� �Zejdd� �Zedd� �Zejdd� �Zdd� Z dd� Zdd� ZdS )�DBOSConfigInstancezQ Configuration parameters defined for external databases instance level. c K sj ddddddddd�| _ dddd d ddd d�| _d| _d| _d| _d| _d| _d| _d| _d| _ d| _dS )a� Initializes a new DBOSConfigInstance object with values from keyword arguments. The default value of the :py:attr:`~oci.opsi.models.DBOSConfigInstance.metric_name` attribute of this class is ``DB_OS_CONFIG_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 DBOSConfigInstance. 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 DBOSConfigInstance. :type time_collected: datetime :param instance_name: The value to assign to the instance_name property of this DBOSConfigInstance. :type instance_name: str :param host_name: The value to assign to the host_name property of this DBOSConfigInstance. :type host_name: str :param num_cp_us: The value to assign to the num_cp_us property of this DBOSConfigInstance. :type num_cp_us: int :param num_cpu_cores: The value to assign to the num_cpu_cores property of this DBOSConfigInstance. :type num_cpu_cores: int :param num_cpu_sockets: The value to assign to the num_cpu_sockets property of this DBOSConfigInstance. :type num_cpu_sockets: int :param physical_memory_bytes: The value to assign to the physical_memory_bytes property of this DBOSConfigInstance. :type physical_memory_bytes: float �strZdatetime�int�float)Zmetric_nameZtime_collected� instance_name� host_name� num_cp_us� num_cpu_cores�num_cpu_sockets�physical_memory_bytesZ metricNameZ timeCollectedZinstanceNameZhostNameZnumCPUsZnumCPUCoresZ numCPUSocketsZphysicalMemoryBytesNZDB_OS_CONFIG_INSTANCE) Z swagger_typesZ attribute_mapZ_metric_nameZ_time_collected�_instance_name� _host_name� _num_cp_us�_num_cpu_cores�_num_cpu_sockets�_physical_memory_bytes)�self�kwargs� r �H/usr/lib/python3.9/site-packages/oci/opsi/models/dbos_config_instance.py�__init__ s6 )��zDBOSConfigInstance.__init__c C s | j S )z� **[Required]** Gets the instance_name of this DBOSConfigInstance. Name of the database instance. :return: The instance_name of this DBOSConfigInstance. :rtype: str �r �r r r r r Z s z DBOSConfigInstance.instance_namec C s || _ dS )z� Sets the instance_name of this DBOSConfigInstance. Name of the database instance. :param instance_name: The instance_name of this DBOSConfigInstance. :type: str Nr )r r r r r r f s c C s | j S )z� **[Required]** Gets the host_name of this DBOSConfigInstance. Host name of the database instance. :return: The host_name of this DBOSConfigInstance. :rtype: str �r r r r r r r s zDBOSConfigInstance.host_namec C s || _ dS )z� Sets the host_name of this DBOSConfigInstance. Host name of the database instance. :param host_name: The host_name of this DBOSConfigInstance. :type: str Nr )r r r r r r ~ s c C s | j S )z� Gets the num_cp_us of this DBOSConfigInstance. Total number of CPUs available. :return: The num_cp_us of this DBOSConfigInstance. :rtype: int �r r r r r r � s zDBOSConfigInstance.num_cp_usc C s || _ dS )z� Sets the num_cp_us of this DBOSConfigInstance. Total number of CPUs available. :param num_cp_us: The num_cp_us of this DBOSConfigInstance. :type: int Nr )r r r r r r � s c C s | j S )a Gets the num_cpu_cores of this DBOSConfigInstance. Number of CPU cores available (includes subcores of multicore CPUs as well as single-core CPUs). :return: The num_cpu_cores of this DBOSConfigInstance. :rtype: int �r r r r r r � s z DBOSConfigInstance.num_cpu_coresc C s || _ dS )a Sets the num_cpu_cores of this DBOSConfigInstance. Number of CPU cores available (includes subcores of multicore CPUs as well as single-core CPUs). :param num_cpu_cores: The num_cpu_cores of this DBOSConfigInstance. :type: int Nr! )r r r r r r � s c C s | j S )z� Gets the num_cpu_sockets of this DBOSConfigInstance. Number of CPU Sockets available. :return: The num_cpu_sockets of this DBOSConfigInstance. :rtype: int �r r r r r r � s z"DBOSConfigInstance.num_cpu_socketsc C s || _ dS )z� Sets the num_cpu_sockets of this DBOSConfigInstance. Number of CPU Sockets available. :param num_cpu_sockets: The num_cpu_sockets of this DBOSConfigInstance. :type: int Nr"