o
    ëÉ¶dS&  ã                   @   s8   d dl mZmZmZ d dlmZ eG dd„ deƒƒZdS )é    )Úformatted_flat_dictÚNONE_SENTINELÚ#value_allowed_none_or_none_sentinel)Úinit_model_state_from_kwargsc                   @   s   e Zd ZdZdd„ Zedd„ ƒZejdd„ ƒZedd„ ƒZejd	d„ ƒZed
d„ ƒZ	e	jdd„ ƒZ	edd„ ƒZ
e
jdd„ ƒZ
edd„ ƒZejdd„ ƒZedd„ ƒZejdd„ ƒZedd„ ƒZejdd„ ƒZedd„ ƒZejdd„ ƒZdd„ Zdd„ Zd d!„ Zd"S )#ÚResourceStatisticsz6
    Contains resource statistics with usage unit
    c              	   K   sd   dddddddddœ| _ ddddd	d
dddœ| _d| _d| _d| _d| _d| _d| _d| _d| _	dS )a  
        Initializes a new ResourceStatistics object with values from keyword arguments.
        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 ResourceStatistics.
        :type usage: float

        :param capacity:
            The value to assign to the capacity property of this ResourceStatistics.
        :type capacity: float

        :param base_capacity:
            The value to assign to the base_capacity property of this ResourceStatistics.
        :type base_capacity: float

        :param is_auto_scaling_enabled:
            The value to assign to the is_auto_scaling_enabled property of this ResourceStatistics.
        :type is_auto_scaling_enabled: bool

        :param utilization_percent:
            The value to assign to the utilization_percent property of this ResourceStatistics.
        :type utilization_percent: float

        :param usage_change_percent:
            The value to assign to the usage_change_percent property of this ResourceStatistics.
        :type usage_change_percent: float

        :param instance_metrics:
            The value to assign to the instance_metrics property of this ResourceStatistics.
        :type instance_metrics: list[oci.opsi.models.InstanceMetrics]

        :param total_host_capacity:
            The value to assign to the total_host_capacity property of this ResourceStatistics.
        :type total_host_capacity: float

        ÚfloatÚboolzlist[InstanceMetrics])ÚusageÚcapacityÚbase_capacityÚis_auto_scaling_enabledÚutilization_percentÚusage_change_percentÚinstance_metricsÚtotal_host_capacityr	   r
   ZbaseCapacityZisAutoScalingEnabledZutilizationPercentZusageChangePercentZinstanceMetricsZtotalHostCapacityN)
Zswagger_typesZattribute_mapÚ_usageÚ	_capacityÚ_base_capacityÚ_is_auto_scaling_enabledÚ_utilization_percentÚ_usage_change_percentÚ_instance_metricsÚ_total_host_capacity)ÚselfÚkwargs© r   úGusr/lib/python3.10/site-packages/oci/opsi/models/resource_statistics.pyÚ__init__   s4   'øø
zResourceStatistics.__init__c                 C   ó   | j S )zà
        **[Required]** Gets the usage of this ResourceStatistics.
        Total amount used of the resource metric type (CPU, STORAGE).


        :return: The usage of this ResourceStatistics.
        :rtype: float
        ©r   ©r   r   r   r   r	   W   ó   
zResourceStatistics.usagec                 C   ó
   || _ dS )zÕ
        Sets the usage of this ResourceStatistics.
        Total amount used of the resource metric type (CPU, STORAGE).


        :param usage: The usage of this ResourceStatistics.
        :type: float
        Nr   )r   r	   r   r   r   r	   c   ó   

c                 C   r   )a	  
        **[Required]** Gets the capacity of this ResourceStatistics.
        The maximum allocated amount of the resource metric type  (CPU, STORAGE) for a set of databases.


        :return: The capacity of this ResourceStatistics.
        :rtype: float
        ©r   r    r   r   r   r
   o   r!   zResourceStatistics.capacityc                 C   r"   )a  
        Sets the capacity of this ResourceStatistics.
        The maximum allocated amount of the resource metric type  (CPU, STORAGE) for a set of databases.


        :param capacity: The capacity of this ResourceStatistics.
        :type: float
        Nr$   )r   r
   r   r   r   r
   {   r#   c                 C   r   )a  
        Gets the base_capacity of this ResourceStatistics.
        The base allocated amount of the resource metric type  (CPU, STORAGE) for a set of databases.


        :return: The base_capacity of this ResourceStatistics.
        :rtype: float
        ©r   r    r   r   r   r   ‡   r!   z ResourceStatistics.base_capacityc                 C   r"   )a  
        Sets the base_capacity of this ResourceStatistics.
        The base allocated amount of the resource metric type  (CPU, STORAGE) for a set of databases.


        :param base_capacity: The base_capacity of this ResourceStatistics.
        :type: float
        Nr%   )r   r   r   r   r   r   “   r#   c                 C   r   )a/  
        Gets the is_auto_scaling_enabled of this ResourceStatistics.
        Indicates if auto scaling feature is enabled or disabled on a database. It will be false for all metrics other than CPU.


        :return: The is_auto_scaling_enabled of this ResourceStatistics.
        :rtype: bool
        ©r   r    r   r   r   r   Ÿ   r!   z*ResourceStatistics.is_auto_scaling_enabledc                 C   r"   )aE  
        Sets the is_auto_scaling_enabled of this ResourceStatistics.
        Indicates if auto scaling feature is enabled or disabled on a database. It will be false for all metrics other than CPU.


        :param is_auto_scaling_enabled: The is_auto_scaling_enabled of this ResourceStatistics.
        :type: bool
        Nr&   )r   r   r   r   r   r   «   r#   c                 C   r   )zá
        **[Required]** Gets the utilization_percent of this ResourceStatistics.
        Resource utilization in percentage


        :return: The utilization_percent of this ResourceStatistics.
        :rtype: float
        ©r   r    r   r   r   r   ·   r!   z&ResourceStatistics.utilization_percentc                 C   r"   )zä
        Sets the utilization_percent of this ResourceStatistics.
        Resource utilization in percentage


        :param utilization_percent: The utilization_percent of this ResourceStatistics.
        :type: float
        Nr'   )r   r   r   r   r   r   Ã   r#   c                 C   r   )zí
        **[Required]** Gets the usage_change_percent of this ResourceStatistics.
        Change in resource utilization in percentage


        :return: The usage_change_percent of this ResourceStatistics.
        :rtype: float
        ©r   r    r   r   r   r   Ï   r!   z'ResourceStatistics.usage_change_percentc                 C   r"   )zñ
        Sets the usage_change_percent of this ResourceStatistics.
        Change in resource utilization in percentage


        :param usage_change_percent: The usage_change_percent of this ResourceStatistics.
        :type: float
        Nr(   )r   r   r   r   r   r   Û   r#   c                 C   r   )zã
        Gets the instance_metrics of this ResourceStatistics.
        Array of instance metrics


        :return: The instance_metrics of this ResourceStatistics.
        :rtype: list[oci.opsi.models.InstanceMetrics]
        ©r   r    r   r   r   r   ç   r!   z#ResourceStatistics.instance_metricsc                 C   r"   )zò
        Sets the instance_metrics of this ResourceStatistics.
        Array of instance metrics


        :param instance_metrics: The instance_metrics of this ResourceStatistics.
        :type: list[oci.opsi.models.InstanceMetrics]
        Nr)   )r   r   r   r   r   r   ó   r#   c                 C   r   )aH  
        Gets the total_host_capacity of this ResourceStatistics.
        The maximum host CPUs (cores x threads/core) on the underlying infrastructure. This only applies to CPU and does not not apply for Autonomous Databases.


        :return: The total_host_capacity of this ResourceStatistics.
        :rtype: float
        ©r   r    r   r   r   r   ÿ   r!   z&ResourceStatistics.total_host_capacityc                 C   r"   )aZ  
        Sets the total_host_capacity of this ResourceStatistics.
        The maximum host CPUs (cores x threads/core) on the underlying infrastructure. This only applies to CPU and does not not apply for Autonomous Databases.


        :param total_host_capacity: The total_host_capacity of this ResourceStatistics.
        :type: float
        Nr*   )r   r   r   r   r   r     r#   c                 C   s   t | ƒS ©N)r   r    r   r   r   Ú__repr__  s   zResourceStatistics.__repr__c                 C   s   |d u rdS | j |j kS )NF)Ú__dict__©r   Úotherr   r   r   Ú__eq__  s   zResourceStatistics.__eq__c                 C   s
   | |k S r+   r   r.   r   r   r   Ú__ne__   s   
zResourceStatistics.__ne__N)Ú__name__Ú
__module__Ú__qualname__Ú__doc__r   Úpropertyr	   Úsetterr
   r   r   r   r   r   r   r,   r0   r1   r   r   r   r   r      sL    E















r   N)Zoci.utilr   r   r   Zoci.decoratorsr   Úobjectr   r   r   r   r   Ú<module>   s   