ruạṛ
a ���f� � @ sD d dl mZ ddlmZmZmZ ddlmZ eG dd� de��ZdS )� )�HostResourceStatistics� )�formatted_flat_dict� NONE_SENTINEL�#value_allowed_none_or_none_sentinel)�init_model_state_from_kwargsc @ sd e Zd ZdZdd� Zedd� �Zejdd� �Zedd� �Zejd d� �Zd d� Z dd � Z dd� ZdS )�HostNetworkStatisticsz& Contains network statistics. c K s` dddddddd�| _ dddddd d d�| _d| _d| _d| _d| _d| _d| _d| _d| _dS ) a� Initializes a new HostNetworkStatistics object with values from keyword arguments. The default value of the :py:attr:`~oci.opsi.models.HostNetworkStatistics.resource_name` attribute of this class is ``HOST_NETWORK_STATISTICS`` and it should not be changed. The following keyword arguments are supported (corresponding to the getters/setters of this class): :param usage: The value to assign to the usage property of this HostNetworkStatistics. :type usage: float :param capacity: The value to assign to the capacity property of this HostNetworkStatistics. :type capacity: float :param utilization_percent: The value to assign to the utilization_percent property of this HostNetworkStatistics. :type utilization_percent: float :param usage_change_percent: The value to assign to the usage_change_percent property of this HostNetworkStatistics. :type usage_change_percent: float :param resource_name: The value to assign to the resource_name property of this HostNetworkStatistics. Allowed values for this property are: "HOST_CPU_STATISTICS", "HOST_MEMORY_STATISTICS", "HOST_STORAGE_STATISTICS", "HOST_NETWORK_STATISTICS" :type resource_name: str :param network_read_in_mbs: The value to assign to the network_read_in_mbs property of this HostNetworkStatistics. :type network_read_in_mbs: float :param network_write_in_mbs: The value to assign to the network_write_in_mbs property of this HostNetworkStatistics. :type network_write_in_mbs: float �float�str)�usage�capacityZutilization_percentZusage_change_percent� resource_name�network_read_in_mbs�network_write_in_mbsr r ZutilizationPercentZusageChangePercentZresourceNameZnetworkReadInMBsZnetworkWriteInMBsNZHOST_NETWORK_STATISTICS) Z swagger_typesZ attribute_mapZ_usageZ _capacityZ_utilization_percentZ_usage_change_percentZ_resource_name�_network_read_in_mbs�_network_write_in_mbs)�self�kwargs� r �K/usr/lib/python3.9/site-packages/oci/opsi/models/host_network_statistics.py�__init__ s0 %�� zHostNetworkStatistics.__init__c C s | j S )z� Gets the network_read_in_mbs of this HostNetworkStatistics. :return: The network_read_in_mbs of this HostNetworkStatistics. :rtype: float �r �r r r r r S s z)HostNetworkStatistics.network_read_in_mbsc C s || _ dS )z� Sets the network_read_in_mbs of this HostNetworkStatistics. :param network_read_in_mbs: The network_read_in_mbs of this HostNetworkStatistics. :type: float Nr )r r r r r r ] s c C s | j S )z� Gets the network_write_in_mbs of this HostNetworkStatistics. :return: The network_write_in_mbs of this HostNetworkStatistics. :rtype: float �r r r r r r g s z*HostNetworkStatistics.network_write_in_mbsc C s || _ dS )z� Sets the network_write_in_mbs of this HostNetworkStatistics. :param network_write_in_mbs: The network_write_in_mbs of this HostNetworkStatistics. :type: float Nr )r r r r r r q s c C s t | �S �N)r r r r r �__repr__{ s zHostNetworkStatistics.__repr__c C s |d u rdS | j |j kS )NF)�__dict__�r �otherr r r �__eq__~ s zHostNetworkStatistics.__eq__c C s | |k S r r r r r r �__ne__� s zHostNetworkStatistics.__ne__N)�__name__� __module__�__qualname__�__doc__r �propertyr �setterr r r r r r r r r s A r N) Zhost_resource_statisticsr Zoci.utilr r r Zoci.decoratorsr r r r r r �<module> s
cải xoăn