ruạṛ
a ���fd � @ s8 d dl mZmZmZ d dlmZ eG dd� de��ZdS )� )�formatted_flat_dict� NONE_SENTINEL�#value_allowed_none_or_none_sentinel)�init_model_state_from_kwargsc @ sp e Zd ZdZdZdZdZdd� Zedd� �Z e j d d� �Z ed d� �Zej dd� �Zd d� Zdd� Z dd� ZdS )�AutoScalePolicyz� This model for autoscaling policy is deprecated and not supported for ODH clusters. Use the `AutoScalePolicyDetails` model to manage autoscale policy details for ODH clusters. �THRESHOLD_BASED�SCHEDULE_BASED�NONEc K s( ddd�| _ ddd�| _d| _d| _dS )a� Initializes a new AutoScalePolicy object with values from keyword arguments. The following keyword arguments are supported (corresponding to the getters/setters of this class): :param policy_type: The value to assign to the policy_type property of this AutoScalePolicy. Allowed values for this property are: "THRESHOLD_BASED", "SCHEDULE_BASED", "NONE", 'UNKNOWN_ENUM_VALUE'. Any unrecognized values returned by a service will be mapped to 'UNKNOWN_ENUM_VALUE'. :type policy_type: str :param rules: The value to assign to the rules property of this AutoScalePolicy. :type rules: list[oci.bds.models.AutoScalePolicyRule] �strzlist[AutoScalePolicyRule])�policy_type�rulesZ policyTyper N)Z swagger_typesZ attribute_map�_policy_type�_rules)�self�kwargs� r �D/usr/lib/python3.9/site-packages/oci/bds/models/auto_scale_policy.py�__init__ s ��zAutoScalePolicy.__init__c C s | j S )a� **[Required]** Gets the policy_type of this AutoScalePolicy. Types of autoscale policies. Options are SCHEDULE-BASED or THRESHOLD-BASED. (Only THRESHOLD-BASED is supported in this release.) Allowed values for this property are: "THRESHOLD_BASED", "SCHEDULE_BASED", "NONE", 'UNKNOWN_ENUM_VALUE'. Any unrecognized values returned by a service will be mapped to 'UNKNOWN_ENUM_VALUE'. :return: The policy_type of this AutoScalePolicy. :rtype: str )r �r r r r r ; s zAutoScalePolicy.policy_typec C s g d�}t ||�sd}|| _dS )a" Sets the policy_type of this AutoScalePolicy. Types of autoscale policies. Options are SCHEDULE-BASED or THRESHOLD-BASED. (Only THRESHOLD-BASED is supported in this release.) :param policy_type: The policy_type of this AutoScalePolicy. :type: str )r r r ZUNKNOWN_ENUM_VALUEN)r r )r r Zallowed_valuesr r r r J s c C s | j S )a/ **[Required]** Gets the rules of this AutoScalePolicy. The list of rules for autoscaling. If an action has multiple rules, the last rule in the array will be applied. :return: The rules of this AutoScalePolicy. :rtype: list[oci.bds.models.AutoScalePolicyRule] �r r r r r r Y s zAutoScalePolicy.rulesc C s || _ dS )a$ Sets the rules of this AutoScalePolicy. The list of rules for autoscaling. If an action has multiple rules, the last rule in the array will be applied. :param rules: The rules of this AutoScalePolicy. :type: list[oci.bds.models.AutoScalePolicyRule] Nr )r r r r r r e s c C s t | �S �N)r r r r r �__repr__q s zAutoScalePolicy.__repr__c C s |d u rdS | j |j kS )NF)�__dict__�r �otherr r r �__eq__t s zAutoScalePolicy.__eq__c C s | |k S r r r r r r �__ne__z s zAutoScalePolicy.__ne__N)�__name__� __module__�__qualname__�__doc__ZPOLICY_TYPE_THRESHOLD_BASEDZPOLICY_TYPE_SCHEDULE_BASEDZPOLICY_TYPE_NONEr �propertyr �setterr r r r r r r r r s r N)Zoci.utilr r r Zoci.decoratorsr �objectr r r r r �<module> s
cải xoăn