ruạṛ
a ���f7 � @ sD d dl mZ ddlmZmZmZ ddlmZ eG dd� de��ZdS )� )�HostPerformanceMetricGroup� )�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 )�HostGpuProcessesz6 GPU processes metrics, processes using GPUs. c K s` dddddddd�| _ dddd d ddd�| _d | _d | _d | _d | _d | _d | _d | _d| _d S )ah Initializes a new HostGpuProcesses object with values from keyword arguments. The default value of the :py:attr:`~oci.opsi.models.HostGpuProcesses.metric_name` attribute of this class is ``HOST_GPU_PROCESSES`` 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 HostGpuProcesses. Allowed values for this property are: "HOST_CPU_USAGE", "HOST_MEMORY_USAGE", "HOST_NETWORK_ACTIVITY_SUMMARY", "HOST_TOP_PROCESSES", "HOST_FILESYSTEM_USAGE", "HOST_GPU_USAGE", "HOST_GPU_PROCESSES", "HOST_IO_USAGE", "HOST_CONTAINERS" :type metric_name: str :param time_collected: The value to assign to the time_collected property of this HostGpuProcesses. :type time_collected: datetime :param gpu_id: The value to assign to the gpu_id property of this HostGpuProcesses. :type gpu_id: int :param pid: The value to assign to the pid property of this HostGpuProcesses. :type pid: int :param process_name: The value to assign to the process_name property of this HostGpuProcesses. :type process_name: str :param elapsed_time: The value to assign to the elapsed_time property of this HostGpuProcesses. :type elapsed_time: float :param gpu_memory_usage: The value to assign to the gpu_memory_usage property of this HostGpuProcesses. :type gpu_memory_usage: float �strZdatetime�int�float)Zmetric_nameZtime_collected�gpu_id�pid�process_name�elapsed_time�gpu_memory_usageZ metricNameZ timeCollectedZgpuIdr ZprocessNameZelapsedTimeZgpuMemoryUsageNZHOST_GPU_PROCESSES) Z swagger_typesZ attribute_mapZ_metric_nameZ_time_collected�_gpu_id�_pid� _process_name� _elapsed_time�_gpu_memory_usage)�self�kwargs� r �F/usr/lib/python3.9/site-packages/oci/opsi/models/host_gpu_processes.py�__init__ s0 %�� zHostGpuProcesses.__init__c C s | j S )z� Gets the gpu_id of this HostGpuProcesses. GPU Identifier :return: The gpu_id of this HostGpuProcesses. :rtype: int �r �r r r r r S s zHostGpuProcesses.gpu_idc C s || _ dS )z� Sets the gpu_id of this HostGpuProcesses. GPU Identifier :param gpu_id: The gpu_id of this HostGpuProcesses. :type: int Nr )r r r r r r _ s c C s | j S )z� Gets the pid of this HostGpuProcesses. Process Identifier :return: The pid of this HostGpuProcesses. :rtype: int �r r r r r r k s zHostGpuProcesses.pidc C s || _ dS )z� Sets the pid of this HostGpuProcesses. Process Identifier :param pid: The pid of this HostGpuProcesses. :type: int Nr )r r r r r r w s c C s | j S )z� Gets the process_name of this HostGpuProcesses. Process Name (process using GPU) :return: The process_name of this HostGpuProcesses. :rtype: str �r r r r r r � s zHostGpuProcesses.process_namec C s || _ dS )z� Sets the process_name of this HostGpuProcesses. Process Name (process using GPU) :param process_name: The process_name of this HostGpuProcesses. :type: str Nr )r r r r r r � s c C s | j S )z� Gets the elapsed_time of this HostGpuProcesses. Process elapsed time :return: The elapsed_time of this HostGpuProcesses. :rtype: float �r r r r r r � s zHostGpuProcesses.elapsed_timec C s || _ dS )z� Sets the elapsed_time of this HostGpuProcesses. Process elapsed time :param elapsed_time: The elapsed_time of this HostGpuProcesses. :type: float Nr )r r r r r r � s c C s | j S )z� Gets the gpu_memory_usage of this HostGpuProcesses. Memory Used by Process in MBs :return: The gpu_memory_usage of this HostGpuProcesses. :rtype: float �r r r r r r � s z!HostGpuProcesses.gpu_memory_usagec C s || _ dS )z� Sets the gpu_memory_usage of this HostGpuProcesses. Memory Used by Process in MBs :param gpu_memory_usage: The gpu_memory_usage of this HostGpuProcesses. :type: float Nr )r r r r r r � s c C s t | �S �N)r r r r r �__repr__� s zHostGpuProcesses.__repr__c C s |d u rdS | j |j kS )NF)�__dict__�r �otherr r r �__eq__� s zHostGpuProcesses.__eq__c C s | |k S r! r r$ r r r �__ne__� s zHostGpuProcesses.__ne__N)�__name__� __module__�__qualname__�__doc__r �propertyr �setterr r r r r"