ruạṛ
a ���fW � @ sD d dl mZ ddlmZmZmZ ddlmZ eG dd� de��ZdS )� )�HostConfigurationMetricGroup� )�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� �Zdd� Zdd� Z dd� ZdS )�HostMemoryConfigurationz2 Memory Configuration metric for the host c K s` dddddddd�| _ dddd d ddd�| _d | _d | _d | _d | _d | _d | _d | _d| _d S )aL Initializes a new HostMemoryConfiguration object with values from keyword arguments. The default value of the :py:attr:`~oci.opsi.models.HostMemoryConfiguration.metric_name` attribute of this class is ``HOST_MEMORY_CONFIGURATION`` 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 HostMemoryConfiguration. Allowed values for this property are: "HOST_PRODUCT", "HOST_RESOURCE_ALLOCATION", "HOST_MEMORY_CONFIGURATION", "HOST_HARDWARE_CONFIGURATION", "HOST_CPU_HARDWARE_CONFIGURATION", "HOST_NETWORK_CONFIGURATION", "HOST_ENTITES", "HOST_FILESYSTEM_CONFIGURATION", "HOST_GPU_CONFIGURATION" :type metric_name: str :param time_collected: The value to assign to the time_collected property of this HostMemoryConfiguration. :type time_collected: datetime :param page_size_in_kb: The value to assign to the page_size_in_kb property of this HostMemoryConfiguration. :type page_size_in_kb: float :param page_tables_in_kb: The value to assign to the page_tables_in_kb property of this HostMemoryConfiguration. :type page_tables_in_kb: float :param swap_total_in_kb: The value to assign to the swap_total_in_kb property of this HostMemoryConfiguration. :type swap_total_in_kb: float :param huge_page_size_in_kb: The value to assign to the huge_page_size_in_kb property of this HostMemoryConfiguration. :type huge_page_size_in_kb: float :param huge_pages_total: The value to assign to the huge_pages_total property of this HostMemoryConfiguration. :type huge_pages_total: int �strZdatetime�float�int)Zmetric_nameZtime_collected�page_size_in_kb�page_tables_in_kb�swap_total_in_kb�huge_page_size_in_kb�huge_pages_totalZ metricNameZ timeCollectedZpageSizeInKBZpageTablesInKBZ swapTotalInKBZhugePageSizeInKBZhugePagesTotalNZHOST_MEMORY_CONFIGURATION) Z swagger_typesZ attribute_mapZ_metric_nameZ_time_collected�_page_size_in_kb�_page_tables_in_kb�_swap_total_in_kb�_huge_page_size_in_kb�_huge_pages_total)�self�kwargs� r �M/usr/lib/python3.9/site-packages/oci/opsi/models/host_memory_configuration.py�__init__ s0 %�� z HostMemoryConfiguration.__init__c C s | j S )z� Gets the page_size_in_kb of this HostMemoryConfiguration. Page size in kilobytes :return: The page_size_in_kb of this HostMemoryConfiguration. :rtype: float �r �r r r r r S s z'HostMemoryConfiguration.page_size_in_kbc C s || _ dS )z� Sets the page_size_in_kb of this HostMemoryConfiguration. Page size in kilobytes :param page_size_in_kb: The page_size_in_kb of this HostMemoryConfiguration. :type: float Nr )r r r r r r _ s c C s | j S )z� Gets the page_tables_in_kb of this HostMemoryConfiguration. Amount of memory used for page tables in kilobytes :return: The page_tables_in_kb of this HostMemoryConfiguration. :rtype: float �r r r r r r k s z)HostMemoryConfiguration.page_tables_in_kbc C s || _ dS )z� Sets the page_tables_in_kb of this HostMemoryConfiguration. Amount of memory used for page tables in kilobytes :param page_tables_in_kb: The page_tables_in_kb of this HostMemoryConfiguration. :type: float Nr )r r r r r r w s c C s | j S )z� Gets the swap_total_in_kb of this HostMemoryConfiguration. Amount of total swap space in kilobytes :return: The swap_total_in_kb of this HostMemoryConfiguration. :rtype: float �r r r r r r � s z(HostMemoryConfiguration.swap_total_in_kbc C s || _ dS )z� Sets the swap_total_in_kb of this HostMemoryConfiguration. Amount of total swap space in kilobytes :param swap_total_in_kb: The swap_total_in_kb of this HostMemoryConfiguration. :type: float Nr )r r r r r r � s c C s | j S )z� Gets the huge_page_size_in_kb of this HostMemoryConfiguration. Size of huge pages in kilobytes :return: The huge_page_size_in_kb of this HostMemoryConfiguration. :rtype: float �r r r r r r � s z,HostMemoryConfiguration.huge_page_size_in_kbc C s || _ dS )z� Sets the huge_page_size_in_kb of this HostMemoryConfiguration. Size of huge pages in kilobytes :param huge_page_size_in_kb: The huge_page_size_in_kb of this HostMemoryConfiguration. :type: float Nr )r r r r r r � s c C s | j S )z� Gets the huge_pages_total of this HostMemoryConfiguration. Total number of huge pages :return: The huge_pages_total of this HostMemoryConfiguration. :rtype: int �r r r r r r � s z(HostMemoryConfiguration.huge_pages_totalc C s || _ dS )z� Sets the huge_pages_total of this HostMemoryConfiguration. Total number of huge pages :param huge_pages_total: The huge_pages_total of this HostMemoryConfiguration. :type: int Nr )r r r r r r � s c C s t | �S �N)r r r r r �__repr__� s z HostMemoryConfiguration.__repr__c C s |d u rdS | j |j kS )NF)�__dict__�r �otherr r r �__eq__� s zHostMemoryConfiguration.__eq__c C s | |k S r! r r$ r r r �__ne__� s zHostMemoryConfiguration.__ne__N)�__name__� __module__�__qualname__�__doc__r �propertyr �setterr r r r r"