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                   @   sh   e Zd 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	dd„ Z
dd„ Zdd„ ZdS )ÚActionz;
    The action to take when autoscaling is triggered.
    ÚCHANGE_COUNT_BYc                 K   s(   dddœ| _ dddœ| _d| _d| _dS )ah  
        Initializes a new Action object with values from keyword arguments.
        The following keyword arguments are supported (corresponding to the getters/setters of this class):

        :param type:
            The value to assign to the type property of this Action.
            Allowed values for this property are: "CHANGE_COUNT_BY", 'UNKNOWN_ENUM_VALUE'.
            Any unrecognized values returned by a service will be mapped to 'UNKNOWN_ENUM_VALUE'.
        :type type: str

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

        ÚstrÚint)ÚtypeÚvaluer
   r   N)Zswagger_typesZattribute_mapÚ_typeÚ_value)ÚselfÚkwargs© r   úAusr/lib/python3.10/site-packages/oci/autoscaling/models/action.pyÚ__init__   s   þþ
zAction.__init__c                 C   ó   | j S )aX  
        **[Required]** Gets the type of this Action.
        The type of action to take.

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


        :return: The type of this Action.
        :rtype: str
        )r   ©r   r   r   r   r
   3   s   zAction.typec                 C   s   dg}t ||ƒs
d}|| _dS )z–
        Sets the type of this Action.
        The type of action to take.


        :param type: The type of this Action.
        :type: str
        r   ZUNKNOWN_ENUM_VALUEN)r   r   )r   r
   Zallowed_valuesr   r   r   r
   B   s   


c                 C   r   )a%  
        **[Required]** Gets the value of this Action.
        To scale out (increase the number of instances), provide a positive value. To scale in (decrease the number of
        instances), provide a negative value.


        :return: The value of this Action.
        :rtype: int
        ©r   r   r   r   r   r   Q   s   zAction.valuec                 C   s
   || _ dS )a  
        Sets the value of this Action.
        To scale out (increase the number of instances), provide a positive value. To scale in (decrease the number of
        instances), provide a negative value.


        :param value: The value of this Action.
        :type: int
        Nr   )r   r   r   r   r   r   ^   s   
c                 C   s   t | ƒS ©N)r   r   r   r   r   Ú__repr__k   s   zAction.__repr__c                 C   s   |d u rdS | j |j kS )NF)Ú__dict__©r   Úotherr   r   r   Ú__eq__n   s   zAction.__eq__c                 C   s
   | |k S r   r   r   r   r   r   Ú__ne__t   s   
zAction.__ne__N)Ú__name__Ú
__module__Ú__qualname__Ú__doc__ZTYPE_CHANGE_COUNT_BYr   Úpropertyr
   Úsetterr   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   