ruạṛ
a ���f� � @ sD d dl mZ ddlmZmZmZ ddlmZ eG dd� de��ZdS )� )�HostInsightHostRecommendations� )�formatted_flat_dict� NONE_SENTINEL�#value_allowed_none_or_none_sentinel)�init_model_state_from_kwargsc @ s� e Zd ZdZdZdZdZdd� Zedd� �Z e j d d� �Z ed d� �Zej dd� �Zed d� �Zej dd� �Zdd� Z dd� Zdd� ZdS )�HostMemoryRecommendationsz) Contains memory recommendation. �IN_USE� NOT_IN_USE�IS_NOT_DETERMINEDc K sB ddddd�| _ ddddd�| _d| _d| _d| _d| _d | _dS ) ax Initializes a new HostMemoryRecommendations object with values from keyword arguments. The default value of the :py:attr:`~oci.opsi.models.HostMemoryRecommendations.metric_recommendation_name` attribute of this class is ``HOST_MEMORY_RECOMMENDATIONS`` and it should not be changed. The following keyword arguments are supported (corresponding to the getters/setters of this class): :param metric_recommendation_name: The value to assign to the metric_recommendation_name property of this HostMemoryRecommendations. Allowed values for this property are: "HOST_CPU_RECOMMENDATIONS", "HOST_MEMORY_RECOMMENDATIONS", "HOST_NETWORK_RECOMMENDATIONS", "HOST_STORAGE_RECOMMENDATIONS", 'UNKNOWN_ENUM_VALUE'. Any unrecognized values returned by a service will be mapped to 'UNKNOWN_ENUM_VALUE'. :type metric_recommendation_name: str :param unused_instance: The value to assign to the unused_instance property of this HostMemoryRecommendations. Allowed values for this property are: "IN_USE", "NOT_IN_USE", "IS_NOT_DETERMINED", 'UNKNOWN_ENUM_VALUE'. Any unrecognized values returned by a service will be mapped to 'UNKNOWN_ENUM_VALUE'. :type unused_instance: str :param is_abandoned_instance: The value to assign to the is_abandoned_instance property of this HostMemoryRecommendations. :type is_abandoned_instance: bool :param memory_optimization: The value to assign to the memory_optimization property of this HostMemoryRecommendations. :type memory_optimization: str �str�bool)Zmetric_recommendation_name�unused_instance�is_abandoned_instance�memory_optimizationZmetricRecommendationNameZunusedInstanceZisAbandonedInstanceZmemoryOptimizationNZHOST_MEMORY_RECOMMENDATIONS)Z swagger_typesZ attribute_mapZ_metric_recommendation_name�_unused_instance�_is_abandoned_instance�_memory_optimization)�self�kwargs� r �O/usr/lib/python3.9/site-packages/oci/opsi/models/host_memory_recommendations.py�__init__ s ��z"HostMemoryRecommendations.__init__c C s | j S )a� Gets the unused_instance of this HostMemoryRecommendations. Identify unused instances based on cpu, memory and network metrics. Allowed values for this property are: "IN_USE", "NOT_IN_USE", "IS_NOT_DETERMINED", 'UNKNOWN_ENUM_VALUE'. Any unrecognized values returned by a service will be mapped to 'UNKNOWN_ENUM_VALUE'. :return: The unused_instance of this HostMemoryRecommendations. :rtype: str )r �r r r r r M s z)HostMemoryRecommendations.unused_instancec C s g d�}t ||�sd}|| _dS )a Sets the unused_instance of this HostMemoryRecommendations. Identify unused instances based on cpu, memory and network metrics. :param unused_instance: The unused_instance of this HostMemoryRecommendations. :type: str )r r r ZUNKNOWN_ENUM_VALUEN)r r )r r Zallowed_valuesr r r r \ s c C s | j S )z� Gets the is_abandoned_instance of this HostMemoryRecommendations. Identify if an instance is abandoned. :return: The is_abandoned_instance of this HostMemoryRecommendations. :rtype: bool �r r r r r r k s z/HostMemoryRecommendations.is_abandoned_instancec C s || _ dS )z� Sets the is_abandoned_instance of this HostMemoryRecommendations. Identify if an instance is abandoned. :param is_abandoned_instance: The is_abandoned_instance of this HostMemoryRecommendations. :type: bool Nr )r r r r r r w s c C s | j S )a Gets the memory_optimization of this HostMemoryRecommendations. Show if OPSI recommends to change memory capacity based on Memory utilization and current shape. :return: The memory_optimization of this HostMemoryRecommendations. :rtype: str �r r r r r r � s z-HostMemoryRecommendations.memory_optimizationc C s || _ dS )a. Sets the memory_optimization of this HostMemoryRecommendations. Show if OPSI recommends to change memory capacity based on Memory utilization and current shape. :param memory_optimization: The memory_optimization of this HostMemoryRecommendations. :type: str Nr )r r r r r r � s c C s t | �S �N)r r r r r �__repr__� s z"HostMemoryRecommendations.__repr__c C s |d u rdS | j |j kS )NF)�__dict__�r �otherr r r �__eq__� s z HostMemoryRecommendations.__eq__c C s | |k S r r r r r r �__ne__� s z HostMemoryRecommendations.__ne__N)�__name__� __module__�__qualname__�__doc__ZUNUSED_INSTANCE_IN_USEZUNUSED_INSTANCE_NOT_IN_USEZ!UNUSED_INSTANCE_IS_NOT_DETERMINEDr �propertyr �setterr r r r! r"