ruạṛ
a ���fx � @ 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 @ sp e Zd ZdZdZdZdZdd� Zedd� �Z e j d d� �Z ed d� �Zej dd� �Zd d� Zdd� Z dd� ZdS )�HostNetworkRecommendationsz* Contains network recommendation. �IN_USE� NOT_IN_USE�IS_NOT_DETERMINEDc K s8 dddd�| _ dddd�| _d| _d| _d| _d| _dS ) a� Initializes a new HostNetworkRecommendations object with values from keyword arguments. The default value of the :py:attr:`~oci.opsi.models.HostNetworkRecommendations.metric_recommendation_name` attribute of this class is ``HOST_NETWORK_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 HostNetworkRecommendations. 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 HostNetworkRecommendations. 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 HostNetworkRecommendations. :type is_abandoned_instance: bool �str�bool)Zmetric_recommendation_name�unused_instance�is_abandoned_instanceZmetricRecommendationNameZunusedInstanceZisAbandonedInstanceNZHOST_NETWORK_RECOMMENDATIONS)Z swagger_typesZ attribute_mapZ_metric_recommendation_name�_unused_instance�_is_abandoned_instance)�self�kwargs� r �P/usr/lib/python3.9/site-packages/oci/opsi/models/host_network_recommendations.py�__init__ s ��z#HostNetworkRecommendations.__init__c C s | j S )a� Gets the unused_instance of this HostNetworkRecommendations. 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 HostNetworkRecommendations. :rtype: str )r �r r r r r F s z*HostNetworkRecommendations.unused_instancec C s g d�}t ||�sd}|| _dS )a Sets the unused_instance of this HostNetworkRecommendations. Identify unused instances based on cpu, memory and network metrics. :param unused_instance: The unused_instance of this HostNetworkRecommendations. :type: str )r r r ZUNKNOWN_ENUM_VALUEN)r r )r r Zallowed_valuesr r r r U s c C s | j S )z� Gets the is_abandoned_instance of this HostNetworkRecommendations. Identify if an instance is abandoned. :return: The is_abandoned_instance of this HostNetworkRecommendations. :rtype: bool �r r r r r r d s z0HostNetworkRecommendations.is_abandoned_instancec C s || _ dS )z� Sets the is_abandoned_instance of this HostNetworkRecommendations. Identify if an instance is abandoned. :param is_abandoned_instance: The is_abandoned_instance of this HostNetworkRecommendations. :type: bool Nr )r r r r r r p s c C s t | �S �N)r r r r r �__repr__| s z#HostNetworkRecommendations.__repr__c C s |d u rdS | j |j kS )NF)�__dict__�r �otherr r r �__eq__ s z!HostNetworkRecommendations.__eq__c C s | |k S r r r r r r �__ne__� s z!HostNetworkRecommendations.__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 r r r r s ( r N) Z!host_insight_host_recommendationsr Zoci.utilr r r Zoci.decoratorsr r r r r r �<module> s
cải xoăn