ruạṛ
a ���ft � @ 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 @ s� e Zd ZdZdZdd� Zedd� �Zejdd� �Zedd � �Z e jd d � �Z edd� �Z e jd d� �Z dd� Zdd� Zdd� Z dS )�Forecastz/ Forecast configuration of usage/cost. �BASICc K s2 dddd�| _ dddd�| _d| _d| _d| _dS )a[ Initializes a new Forecast object with values from keyword arguments. The following keyword arguments are supported (corresponding to the getters/setters of this class): :param forecast_type: The value to assign to the forecast_type property of this Forecast. Allowed values for this property are: "BASIC", 'UNKNOWN_ENUM_VALUE'. Any unrecognized values returned by a service will be mapped to 'UNKNOWN_ENUM_VALUE'. :type forecast_type: str :param time_forecast_started: The value to assign to the time_forecast_started property of this Forecast. :type time_forecast_started: datetime :param time_forecast_ended: The value to assign to the time_forecast_ended property of this Forecast. :type time_forecast_ended: datetime �strZdatetime)� forecast_type�time_forecast_started�time_forecast_endedZforecastTypeZtimeForecastStartedZtimeForecastEndedN)Z swagger_typesZ attribute_map�_forecast_type�_time_forecast_started�_time_forecast_ended)�self�kwargs� r �A/usr/lib/python3.9/site-packages/oci/usage_api/models/forecast.py�__init__ s ��zForecast.__init__c C s | j S )a Gets the forecast_type of this Forecast. BASIC uses the exponential smoothing (ETS) model to project future usage/costs based on history data. The basis for projections is a periodic set of equivalent historical days for which the projection is being made. Allowed values for this property are: "BASIC", 'UNKNOWN_ENUM_VALUE'. Any unrecognized values returned by a service will be mapped to 'UNKNOWN_ENUM_VALUE'. :return: The forecast_type of this Forecast. :rtype: str )r �r r r r r : s zForecast.forecast_typec C s dg}t ||�sd}|| _dS )aq Sets the forecast_type of this Forecast. BASIC uses the exponential smoothing (ETS) model to project future usage/costs based on history data. The basis for projections is a periodic set of equivalent historical days for which the projection is being made. :param forecast_type: The forecast_type of this Forecast. :type: str r ZUNKNOWN_ENUM_VALUEN)r r )r r Zallowed_valuesr r r r I s c C s | j S )z� Gets the time_forecast_started of this Forecast. The forecast start time. Defaults to UTC-1 if not specified. :return: The time_forecast_started of this Forecast. :rtype: datetime �r r r r r r X s zForecast.time_forecast_startedc C s || _ dS )z� Sets the time_forecast_started of this Forecast. The forecast start time. Defaults to UTC-1 if not specified. :param time_forecast_started: The time_forecast_started of this Forecast. :type: datetime Nr )r r r r r r d s c C s | j S )z� **[Required]** Gets the time_forecast_ended of this Forecast. The forecast end time. :return: The time_forecast_ended of this Forecast. :rtype: datetime �r r r r r r p s zForecast.time_forecast_endedc C s || _ dS )z� Sets the time_forecast_ended of this Forecast. The forecast end time. :param time_forecast_ended: The time_forecast_ended of this Forecast. :type: datetime Nr )r r r r r r | s c C s t | �S �N)r r r r r �__repr__� s zForecast.__repr__c C s |d u rdS | j |j kS )NF)�__dict__�r �otherr r r �__eq__� s zForecast.__eq__c C s | |k S r r r r r r �__ne__� s zForecast.__ne__N)�__name__� __module__�__qualname__�__doc__ZFORECAST_TYPE_BASICr �propertyr �setterr r 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