o
    ëÉ¶d>  ã                   @   sD   d dl mZ ddlmZmZmZ ddlmZ eG dd„ deƒƒZdS )é   )ÚAutoScalingPolicyé    )Úformatted_flat_dictÚNONE_SENTINELÚ#value_allowed_none_or_none_sentinel)Úinit_model_state_from_kwargsc                   @   sJ   e Zd ZdZdd„ Zedd„ ƒZejdd„ ƒZdd„ Zd	d
„ Z	dd„ Z
dS )ÚThresholdPolicyzd
    An autoscaling policy that defines threshold-based rules for an autoscaling configuration.
    c                 K   s`   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 ThresholdPolicy object with values from keyword arguments. The default value of the :py:attr:`~oci.autoscaling.models.ThresholdPolicy.policy_type` attribute
        of this class is ``threshold`` and it should not be changed.
        The following keyword arguments are supported (corresponding to the getters/setters of this class):

        :param capacity:
            The value to assign to the capacity property of this ThresholdPolicy.
        :type capacity: oci.autoscaling.models.Capacity

        :param id:
            The value to assign to the id property of this ThresholdPolicy.
        :type id: str

        :param display_name:
            The value to assign to the display_name property of this ThresholdPolicy.
        :type display_name: str

        :param policy_type:
            The value to assign to the policy_type property of this ThresholdPolicy.
        :type policy_type: str

        :param time_created:
            The value to assign to the time_created property of this ThresholdPolicy.
        :type time_created: datetime

        :param is_enabled:
            The value to assign to the is_enabled property of this ThresholdPolicy.
        :type is_enabled: bool

        :param rules:
            The value to assign to the rules property of this ThresholdPolicy.
        :type rules: list[oci.autoscaling.models.Condition]

        ZCapacityÚstrÚdatetimeÚboolzlist[Condition])ÚcapacityÚidÚdisplay_nameZpolicy_typeZtime_createdÚ
is_enabledÚrulesr   r   ZdisplayNameZ
policyTypeZtimeCreatedZ	isEnabledr   NÚ	threshold)	Zswagger_typesZattribute_mapÚ	_capacityZ_idÚ_display_nameZ_policy_typeZ_time_createdZ_is_enabledÚ_rules)ÚselfÚkwargs© r   úKusr/lib/python3.10/site-packages/oci/autoscaling/models/threshold_policy.pyÚ__init__   s0   $ùù

zThresholdPolicy.__init__c                 C   s   | j S )z´
        **[Required]** Gets the rules of this ThresholdPolicy.

        :return: The rules of this ThresholdPolicy.
        :rtype: list[oci.autoscaling.models.Condition]
        ©r   ©r   r   r   r   r   R   s   zThresholdPolicy.rulesc                 C   s
   || _ dS )z©
        Sets the rules of this ThresholdPolicy.

        :param rules: The rules of this ThresholdPolicy.
        :type: list[oci.autoscaling.models.Condition]
        Nr   )r   r   r   r   r   r   \   s   
c                 C   s   t | ƒS ©N)r   r   r   r   r   Ú__repr__f   s   zThresholdPolicy.__repr__c                 C   s   |d u rdS | j |j kS )NF)Ú__dict__©r   Úotherr   r   r   Ú__eq__i   s   zThresholdPolicy.__eq__c                 C   s
   | |k S r   r   r   r   r   r   Ú__ne__o   s   
zThresholdPolicy.__ne__N)Ú__name__Ú
__module__Ú__qualname__Ú__doc__r   Úpropertyr   Úsetterr   r!   r"   r   r   r   r   r      s    @
	
	r   N)	Zauto_scaling_policyr   Zoci.utilr   r   r   Zoci.decoratorsr   r   r   r   r   r   Ú<module>   s
   