HEX
Server: Apache
System: Linux sh00085.hostgator.com 5.14.0-687.29.1.el9_8.x86_64 #1 SMP PREEMPT_DYNAMIC Thu Jul 23 16:18:48 EDT 2026 x86_64
User: yqegzjte (1064)
PHP: 8.5.8
Disabled: NONE
Upload Files
File: //lib/python3.9/site-packages/oci/opsi/models/__pycache__/host_cpu_recommendations.cpython-39.pyc
a

���f�#�@sDddlmZddlmZmZmZddlmZeGdd�de��ZdS)�)�HostInsightHostRecommendations�)�formatted_flat_dict�
NONE_SENTINEL�#value_allowed_none_or_none_sentinel)�init_model_state_from_kwargsc@s�eZdZdZdZdZdZdZdZdZ	dZ
d	d
�Zedd��Z
e
jd
d��Z
edd��Zejdd��Zedd��Zejdd��Zedd��Zejdd��Zdd�Zdd�Zdd�ZdS)�HostCpuRecommendationsz&
    Contains CPU recommendation.
    �BASELINE_1_8�BASELINE_1_2�NO_RECOMMENDATION�DISABLE_BURSTABLE�IN_USE�
NOT_IN_USE�IS_NOT_DETERMINEDcKsLdddddd�|_dddddd�|_d	|_d	|_d	|_d	|_d	|_d
|_d	S)a�
        Initializes a new HostCpuRecommendations object with values from keyword arguments. The default value of the :py:attr:`~oci.opsi.models.HostCpuRecommendations.metric_recommendation_name` attribute
        of this class is ``HOST_CPU_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 HostCpuRecommendations.
            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 burstable:
            The value to assign to the burstable property of this HostCpuRecommendations.
            Allowed values for this property are: "BASELINE_1_8", "BASELINE_1_2", "NO_RECOMMENDATION", "DISABLE_BURSTABLE", 'UNKNOWN_ENUM_VALUE'.
            Any unrecognized values returned by a service will be mapped to 'UNKNOWN_ENUM_VALUE'.
        :type burstable: str

        :param shape:
            The value to assign to the shape property of this HostCpuRecommendations.
        :type shape: str

        :param unused_instance:
            The value to assign to the unused_instance property of this HostCpuRecommendations.
            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 HostCpuRecommendations.
        :type is_abandoned_instance: bool

        �str�bool)Zmetric_recommendation_name�	burstable�shape�unused_instance�is_abandoned_instanceZmetricRecommendationNamerrZunusedInstanceZisAbandonedInstanceNZHOST_CPU_RECOMMENDATIONS)Z
swagger_typesZ
attribute_mapZ_metric_recommendation_name�
_burstable�_shape�_unused_instance�_is_abandoned_instance)�self�kwargs�r�L/usr/lib/python3.9/site-packages/oci/opsi/models/host_cpu_recommendations.py�__init__.s$"�	�zHostCpuRecommendations.__init__cCs|jS)a
        Gets the burstable of this HostCpuRecommendations.
        Show if OPSI recommends to convert an instance to a burstable instance and show recommended cpu baseline if positive recommendation.

        Allowed values for this property are: "BASELINE_1_8", "BASELINE_1_2", "NO_RECOMMENDATION", "DISABLE_BURSTABLE", 'UNKNOWN_ENUM_VALUE'.
        Any unrecognized values returned by a service will be mapped to 'UNKNOWN_ENUM_VALUE'.


        :return: The burstable of this HostCpuRecommendations.
        :rtype: str
        )r�rrrrrfs
z HostCpuRecommendations.burstablecCs gd�}t||�sd}||_dS)a.
        Sets the burstable of this HostCpuRecommendations.
        Show if OPSI recommends to convert an instance to a burstable instance and show recommended cpu baseline if positive recommendation.


        :param burstable: The burstable of this HostCpuRecommendations.
        :type: str
        )r	r
rr�UNKNOWN_ENUM_VALUEN)rr)rr�allowed_valuesrrrrus

cCs|jS)a	
        Gets the shape of this HostCpuRecommendations.
        Show if OPSI recommends to change the shape of an instance and show recommended shape based on CPU utilization.


        :return: The shape of this HostCpuRecommendations.
        :rtype: str
        �rrrrrr�s
zHostCpuRecommendations.shapecCs
||_dS)a

        Sets the shape of this HostCpuRecommendations.
        Show if OPSI recommends to change the shape of an instance and show recommended shape based on CPU utilization.


        :param shape: The shape of this HostCpuRecommendations.
        :type: str
        Nr")rrrrrr�s
cCs|jS)a�
        Gets the unused_instance of this HostCpuRecommendations.
        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 HostCpuRecommendations.
        :rtype: str
        )rrrrrr�s
z&HostCpuRecommendations.unused_instancecCs gd�}t||�sd}||_dS)z�
        Sets the unused_instance of this HostCpuRecommendations.
        Identify unused instances based on cpu, memory and network metrics.


        :param unused_instance: The unused_instance of this HostCpuRecommendations.
        :type: str
        )r
rrr N)rr)rrr!rrrr�s

cCs|jS)z�
        Gets the is_abandoned_instance of this HostCpuRecommendations.
        Identify if an instance is abandoned.


        :return: The is_abandoned_instance of this HostCpuRecommendations.
        :rtype: bool
        �rrrrrr�s
z,HostCpuRecommendations.is_abandoned_instancecCs
||_dS)z�
        Sets the is_abandoned_instance of this HostCpuRecommendations.
        Identify if an instance is abandoned.


        :param is_abandoned_instance: The is_abandoned_instance of this HostCpuRecommendations.
        :type: bool
        Nr#)rrrrrr�s
cCst|�S�N)rrrrr�__repr__�szHostCpuRecommendations.__repr__cCs|durdS|j|jkS)NF)�__dict__�r�otherrrr�__eq__�szHostCpuRecommendations.__eq__cCs
||kSr$rr'rrr�__ne__�szHostCpuRecommendations.__ne__N)�__name__�
__module__�__qualname__�__doc__ZBURSTABLE_BASELINE_1_8ZBURSTABLE_BASELINE_1_2ZBURSTABLE_NO_RECOMMENDATIONZBURSTABLE_DISABLE_BURSTABLEZUNUSED_INSTANCE_IN_USEZUNUSED_INSTANCE_NOT_IN_USEZ!UNUSED_INSTANCE_IS_NOT_DETERMINEDr�propertyr�setterrrrr%r)r*rrrrrs88







rN)	Z!host_insight_host_recommendationsrZoci.utilrrrZoci.decoratorsrrrrrr�<module>s