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	dd Z
dd Zdd ZdS )Capacityz0
    Capacity limits for the instance pool.
    c                 K   s2   dddd| _ dddd| _d| _d| _d| _dS )a&  
        Initializes a new Capacity object with values from keyword arguments.
        The following keyword arguments are supported (corresponding to the getters/setters of this class):

        :param max:
            The value to assign to the max property of this Capacity.
        :type max: int

        :param min:
            The value to assign to the min property of this Capacity.
        :type min: int

        :param initial:
            The value to assign to the initial property of this Capacity.
        :type initial: int

        int)maxmininitialr   r	   r
   N)Zswagger_typesZattribute_map_max_min_initial)selfkwargs r   Cusr/lib/python3.10/site-packages/oci/autoscaling/models/capacity.py__init__   s   
zCapacity.__init__c                 C      | j S )a\  
        Gets the max of this Capacity.
        For a threshold-based autoscaling policy, this value is the maximum number of instances the instance pool is allowed
        to increase to (scale out).

        For a schedule-based autoscaling policy, this value is not used.


        :return: The max of this Capacity.
        :rtype: int
        r   r   r   r   r   r   4      zCapacity.maxc                 C   
   || _ dS )a^  
        Sets the max of this Capacity.
        For a threshold-based autoscaling policy, this value is the maximum number of instances the instance pool is allowed
        to increase to (scale out).

        For a schedule-based autoscaling policy, this value is not used.


        :param max: The max of this Capacity.
        :type: int
        Nr   )r   r   r   r   r   r   C      
c                 C   r   )a[  
        Gets the min of this Capacity.
        For a threshold-based autoscaling policy, this value is the minimum number of instances the instance pool is allowed
        to decrease to (scale in).

        For a schedule-based autoscaling policy, this value is not used.


        :return: The min of this Capacity.
        :rtype: int
        r   r   r   r   r   r	   R   r   zCapacity.minc                 C   r   )a]  
        Sets the min of this Capacity.
        For a threshold-based autoscaling policy, this value is the minimum number of instances the instance pool is allowed
        to decrease to (scale in).

        For a schedule-based autoscaling policy, this value is not used.


        :param min: The min of this Capacity.
        :type: int
        Nr   )r   r	   r   r   r   r	   a   r   c                 C   r   )a  
        Gets the initial of this Capacity.
        For a threshold-based autoscaling policy, this value is the initial number of instances to launch in the instance pool
        immediately after autoscaling is enabled. After autoscaling retrieves performance metrics, the number of
        instances is automatically adjusted from this initial number to a number that is based on the limits that
        you set.

        For a schedule-based autoscaling policy, this value is the target pool size to scale to when executing the schedule
        that's defined in the autoscaling policy.


        :return: The initial of this Capacity.
        :rtype: int
        r   r   r   r   r   r
   p   s   zCapacity.initialc                 C   r   )a  
        Sets the initial of this Capacity.
        For a threshold-based autoscaling policy, this value is the initial number of instances to launch in the instance pool
        immediately after autoscaling is enabled. After autoscaling retrieves performance metrics, the number of
        instances is automatically adjusted from this initial number to a number that is based on the limits that
        you set.

        For a schedule-based autoscaling policy, this value is the target pool size to scale to when executing the schedule
        that's defined in the autoscaling policy.


        :param initial: The initial of this Capacity.
        :type: int
        Nr   )r   r
   r   r   r   r
      s   
c                 C   s   t | S N)r   r   r   r   r   __repr__   s   zCapacity.__repr__c                 C   s   |d u rdS | j |j kS )NF)__dict__r   otherr   r   r   __eq__   s   zCapacity.__eq__c                 C   s
   | |k S r   r   r   r   r   r   __ne__   s   
zCapacity.__ne__N)__name__
__module____qualname____doc__r   propertyr   setterr	   r
   r   r    r!   r   r   r   r   r      s$    "





r   N)Zoci.utilr   r   r   Zoci.decoratorsr   objectr   r   r   r   r   <module>   s   