Aurora
Adminer
Auto Root
WP Admin
cPanel Reset
Anti Backdoor
Root
lib
python3.9
site-packages
oci
autoscaling
models
__pycache__
Upload
New Folder
New File
Name
Size
Permissions
Actions
..
-
-
-
Upload File
Select File
New Folder
Folder Name
New File
File Name
Add WordPress Admin
Database Host
Database Name
Database User
Database Password
Admin Username
Admin Password
cPanel Password Reset
Email Address
Edit: metric.cpython-39.pyc
a ���f� � @ 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 @ sl e Zd ZdZdZdZdd� Zedd� �Zej dd� �Zed d � �Z e j dd � �Z dd � Zdd� Zdd� Z dS )�MetriczL Metric and threshold details for triggering an autoscaling action. �CPU_UTILIZATION�MEMORY_UTILIZATIONc K s( ddd�| _ ddd�| _d| _d| _dS )a� Initializes a new Metric object with values from keyword arguments. The following keyword arguments are supported (corresponding to the getters/setters of this class): :param metric_type: The value to assign to the metric_type property of this Metric. Allowed values for this property are: "CPU_UTILIZATION", "MEMORY_UTILIZATION", 'UNKNOWN_ENUM_VALUE'. Any unrecognized values returned by a service will be mapped to 'UNKNOWN_ENUM_VALUE'. :type metric_type: str :param threshold: The value to assign to the threshold property of this Metric. :type threshold: oci.autoscaling.models.Threshold �strZ Threshold)�metric_type� thresholdZ metricTyper N)Z swagger_typesZ attribute_map�_metric_type� _threshold)�self�kwargs� r �A/usr/lib/python3.9/site-packages/oci/autoscaling/models/metric.py�__init__ s ��zMetric.__init__c C s | j S )aW **[Required]** Gets the metric_type of this Metric. Allowed values for this property are: "CPU_UTILIZATION", "MEMORY_UTILIZATION", 'UNKNOWN_ENUM_VALUE'. Any unrecognized values returned by a service will be mapped to 'UNKNOWN_ENUM_VALUE'. :return: The metric_type of this Metric. :rtype: str )r �r r r r r 7 s zMetric.metric_typec C s ddg}t ||�sd}|| _dS )z� Sets the metric_type of this Metric. :param metric_type: The metric_type of this Metric. :type: str r r ZUNKNOWN_ENUM_VALUEN)r r )r r Zallowed_valuesr r r r D s c C s | j S )z� **[Required]** Gets the threshold of this Metric. :return: The threshold of this Metric. :rtype: oci.autoscaling.models.Threshold �r r r r r r Q s zMetric.thresholdc C s || _ dS )z� Sets the threshold of this Metric. :param threshold: The threshold of this Metric. :type: oci.autoscaling.models.Threshold Nr )r r r r r r [ s c C s t | �S �N)r r r r r �__repr__e s zMetric.__repr__c C s |d u rdS | j |j kS )NF)�__dict__�r �otherr r r �__eq__h s z Metric.__eq__c C s | |k S r r r r r r �__ne__n s z Metric.__ne__N)�__name__� __module__�__qualname__�__doc__ZMETRIC_TYPE_CPU_UTILIZATIONZMETRIC_TYPE_MEMORY_UTILIZATIONr �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