o
    ɶd|                     @   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dd Zdd Zdd ZdS )ResourceAvailabilityz
    The availability of a given resource limit, based on the usage, tenant service limits, and quotas set for the tenancy.
    Note: We cannot guarantee this data for all the limits. In such cases, these fields will be empty.
    c                 K   sF   dddddd| _ dddddd| _d	| _d	| _d	| _d	| _d	| _d	S )
a  
        Initializes a new ResourceAvailability object with values from keyword arguments.
        The following keyword arguments are supported (corresponding to the getters/setters of this class):

        :param used:
            The value to assign to the used property of this ResourceAvailability.
        :type used: int

        :param available:
            The value to assign to the available property of this ResourceAvailability.
        :type available: int

        :param fractional_usage:
            The value to assign to the fractional_usage property of this ResourceAvailability.
        :type fractional_usage: float

        :param fractional_availability:
            The value to assign to the fractional_availability property of this ResourceAvailability.
        :type fractional_availability: float

        :param effective_quota_value:
            The value to assign to the effective_quota_value property of this ResourceAvailability.
        :type effective_quota_value: float

        intfloat)used	availablefractional_usagefractional_availabilityeffective_quota_valuer	   r
   ZfractionalUsageZfractionalAvailabilityZeffectiveQuotaValueN)Zswagger_typesZattribute_map_used
_available_fractional_usage_fractional_availability_effective_quota_value)selfkwargs r   Kusr/lib/python3.10/site-packages/oci/limits/models/resource_availability.py__init__   s"   	
zResourceAvailability.__init__c                 C      | j S )a   
        Gets the used of this ResourceAvailability.
        The current usage in the given compartment. To support resources with fractional counts,
        the field rounds up to the nearest integer.


        :return: The used of this ResourceAvailability.
        :rtype: int
        r   r   r   r   r   r	   C      zResourceAvailability.usedc                 C   
   || _ dS )a#  
        Sets the used of this ResourceAvailability.
        The current usage in the given compartment. To support resources with fractional counts,
        the field rounds up to the nearest integer.


        :param used: The used of this ResourceAvailability.
        :type: int
        Nr   )r   r	   r   r   r   r	   P      
c                 C   r   )a"  
        Gets the available of this ResourceAvailability.
        The count of available resources. To support resources with fractional counts,
        the field rounds down to the nearest integer.


        :return: The available of this ResourceAvailability.
        :rtype: int
        r   r   r   r   r   r
   ]   r   zResourceAvailability.availablec                 C   r   )a*  
        Sets the available of this ResourceAvailability.
        The count of available resources. To support resources with fractional counts,
        the field rounds down to the nearest integer.


        :param available: The available of this ResourceAvailability.
        :type: int
        Nr   )r   r
   r   r   r   r
   j   r   c                 C   r   )z
        Gets the fractional_usage of this ResourceAvailability.
        The current most accurate usage in the given compartment.


        :return: The fractional_usage of this ResourceAvailability.
        :rtype: float
        r   r   r   r   r   r   w      
z%ResourceAvailability.fractional_usagec                 C   r   )z
        Sets the fractional_usage of this ResourceAvailability.
        The current most accurate usage in the given compartment.


        :param fractional_usage: The fractional_usage of this ResourceAvailability.
        :type: float
        Nr   )r   r   r   r   r   r         

c                 C   r   )z
        Gets the fractional_availability of this ResourceAvailability.
        The most accurate count of available resources.


        :return: The fractional_availability of this ResourceAvailability.
        :rtype: float
        r   r   r   r   r   r      r    z,ResourceAvailability.fractional_availabilityc                 C   r   )a  
        Sets the fractional_availability of this ResourceAvailability.
        The most accurate count of available resources.


        :param fractional_availability: The fractional_availability of this ResourceAvailability.
        :type: float
        Nr"   )r   r   r   r   r   r      r!   c                 C   r   )a~  
        Gets the effective_quota_value of this ResourceAvailability.
        The effective quota value for the given compartment. This field is only present if there is a
        current quota policy affecting the current resource in the target region or availability domain.


        :return: The effective_quota_value of this ResourceAvailability.
        :rtype: float
        r   r   r   r   r   r      r   z*ResourceAvailability.effective_quota_valuec                 C   r   )a  
        Sets the effective_quota_value of this ResourceAvailability.
        The effective quota value for the given compartment. This field is only present if there is a
        current quota policy affecting the current resource in the target region or availability domain.


        :param effective_quota_value: The effective_quota_value of this ResourceAvailability.
        :type: float
        Nr#   )r   r   r   r   r   r      r   c                 C   s   t | S N)r   r   r   r   r   __repr__   s   zResourceAvailability.__repr__c                 C   s   |d u rdS | j |j kS )NF)__dict__r   otherr   r   r   __eq__   s   zResourceAvailability.__eq__c                 C   s
   | |k S r$   r   r'   r   r   r   __ne__   s   
zResourceAvailability.__ne__N)__name__
__module____qualname____doc__r   propertyr	   setterr
   r   r   r   r%   r)   r*   r   r   r   r   r      s4    0









r   N)Zoci.utilr   r   r   Zoci.decoratorsr   objectr   r   r   r   r   <module>   s   