📂 Advanced File Manager
Multi-Root Navigation System
⚡ Quick Jump
Server (/)
Home (/home)
Var_www (/var/www)
Current (/home4/shelley/public_html/shelleycutler.com/wp-content/mu-plugins)
📍 Go
⬆ Ke Atas
🏠 Root Server
🏠 Root App
🔄 Refresh
📀 /
›
usr
›
lib
›
python3.9
›
site-packages
›
oci
›
cloud_migrations
›
models
›
📁 __pycache__
📍
Lokasi:
/usr/lib/python3.9/site-packages/oci/cloud_migrations/models/__pycache__
💾
Free:
45.4 GB
⚠️ Direktori ini
tidak writable
.
✏️ Mengedit: average_resource_assessment_strategy.cpython-39.pyc
a ���f� � @ sD d dl mZ ddlmZmZmZ ddlmZ eG dd� de��ZdS )� )�ResourceAssessmentStrategy� )�formatted_flat_dict� NONE_SENTINEL�#value_allowed_none_or_none_sentinel)�init_model_state_from_kwargsc @ s� e Zd ZdZdZdZdZdZdZdZ dd � Z ed d� �Zej dd� �Zed d� �Zej dd� �Zedd� �Zej dd� �Zdd� Zdd� Zdd� ZdS )�!AverageResourceAssessmentStrategyz. The strategy based on average usage. �AUTO� HISTORICAL�RUNTIME�1d�7d�30dc K sL dddddd�| _ dddddd�| _d | _d | _d | _d | _d | _d | _d S )a) Initializes a new AverageResourceAssessmentStrategy object with values from keyword arguments. The default value of the :py:attr:`~oci.cloud_migrations.models.AverageResourceAssessmentStrategy.strategy_type` attribute of this class is ``AVERAGE`` and it should not be changed. The following keyword arguments are supported (corresponding to the getters/setters of this class): :param resource_type: The value to assign to the resource_type property of this AverageResourceAssessmentStrategy. Allowed values for this property are: "CPU", "MEMORY", "ALL", 'UNKNOWN_ENUM_VALUE'. Any unrecognized values returned by a service will be mapped to 'UNKNOWN_ENUM_VALUE'. :type resource_type: str :param strategy_type: The value to assign to the strategy_type property of this AverageResourceAssessmentStrategy. Allowed values for this property are: "AS_IS", "AVERAGE", "PEAK", "PERCENTILE", 'UNKNOWN_ENUM_VALUE'. Any unrecognized values returned by a service will be mapped to 'UNKNOWN_ENUM_VALUE'. :type strategy_type: str :param adjustment_multiplier: The value to assign to the adjustment_multiplier property of this AverageResourceAssessmentStrategy. :type adjustment_multiplier: float :param metric_type: The value to assign to the metric_type property of this AverageResourceAssessmentStrategy. Allowed values for this property are: "AUTO", "HISTORICAL", "RUNTIME", 'UNKNOWN_ENUM_VALUE'. Any unrecognized values returned by a service will be mapped to 'UNKNOWN_ENUM_VALUE'. :type metric_type: str :param metric_time_window: The value to assign to the metric_time_window property of this AverageResourceAssessmentStrategy. Allowed values for this property are: "1d", "7d", "30d", 'UNKNOWN_ENUM_VALUE'. Any unrecognized values returned by a service will be mapped to 'UNKNOWN_ENUM_VALUE'. :type metric_time_window: str �str�float)Z resource_typeZ strategy_type�adjustment_multiplier�metric_type�metric_time_windowZresourceTypeZstrategyTypeZadjustmentMultiplierZ metricTypeZmetricTimeWindowNZAVERAGE)Z swagger_typesZ attribute_mapZ_resource_typeZ_strategy_type�_adjustment_multiplier�_metric_type�_metric_time_window)�self�kwargs� r �d/usr/lib/python3.9/site-packages/oci/cloud_migrations/models/average_resource_assessment_strategy.py�__init__* s$ $� �z*AverageResourceAssessmentStrategy.__init__c C s | j S )a( Gets the adjustment_multiplier of this AverageResourceAssessmentStrategy. The real resource usage is multiplied to this number before making any recommendation. :return: The adjustment_multiplier of this AverageResourceAssessmentStrategy. :rtype: float �r �r r r r r d s z7AverageResourceAssessmentStrategy.adjustment_multiplierc C s || _ dS )a< Sets the adjustment_multiplier of this AverageResourceAssessmentStrategy. The real resource usage is multiplied to this number before making any recommendation. :param adjustment_multiplier: The adjustment_multiplier of this AverageResourceAssessmentStrategy. :type: float Nr )r r r r r r p s c C s | j S )a� Gets the metric_type of this AverageResourceAssessmentStrategy. The current state of the migration plan. Allowed values for this property are: "AUTO", "HISTORICAL", "RUNTIME", 'UNKNOWN_ENUM_VALUE'. Any unrecognized values returned by a service will be mapped to 'UNKNOWN_ENUM_VALUE'. :return: The metric_type of this AverageResourceAssessmentStrategy. :rtype: str )r r r r r r | s z-AverageResourceAssessmentStrategy.metric_typec C s g d�}t ||�sd}|| _dS )z� Sets the metric_type of this AverageResourceAssessmentStrategy. The current state of the migration plan. :param metric_type: The metric_type of this AverageResourceAssessmentStrategy. :type: str )r r r �UNKNOWN_ENUM_VALUEN)r r )r r �allowed_valuesr r r r � s c C s | j S )a� Gets the metric_time_window of this AverageResourceAssessmentStrategy. The current state of the migration plan. Allowed values for this property are: "1d", "7d", "30d", 'UNKNOWN_ENUM_VALUE'. Any unrecognized values returned by a service will be mapped to 'UNKNOWN_ENUM_VALUE'. :return: The metric_time_window of this AverageResourceAssessmentStrategy. :rtype: str )r r r r r r � s z4AverageResourceAssessmentStrategy.metric_time_windowc C s g d�}t ||�sd}|| _dS )a Sets the metric_time_window of this AverageResourceAssessmentStrategy. The current state of the migration plan. :param metric_time_window: The metric_time_window of this AverageResourceAssessmentStrategy. :type: str )r r r r N)r r )r r r r r r r � s c C s t | �S �N)r r r r r �__repr__� s z*AverageResourceAssessmentStrategy.__repr__c C s |d u rdS | j |j kS )NF)�__dict__�r �otherr r r �__eq__� s z(AverageResourceAssessmentStrategy.__eq__c C s | |k S r r r# r r r �__ne__� s z(AverageResourceAssessmentStrategy.__ne__N)�__name__� __module__�__qualname__�__doc__ZMETRIC_TYPE_AUTOZMETRIC_TYPE_HISTORICALZMETRIC_TYPE_RUNTIMEZMETRIC_TIME_WINDOW_1DZMETRIC_TIME_WINDOW_7DZMETRIC_TIME_WINDOW_30Dr �propertyr �setterr r r! r% r&