ruạṛ
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 @ sp e Zd ZdZdZdZdZdd� Zedd� �Z e j d d� �Z ed d� �Zej dd� �Zd d� Zdd� Z dd� ZdS )�ExecutionLogPolicyzV Configures the logging policies for the execution logs of an API Deployment. �INFO�WARN�ERRORc K s( ddd�| _ ddd�| _d| _d| _dS )a� Initializes a new ExecutionLogPolicy object with values from keyword arguments. The following keyword arguments are supported (corresponding to the getters/setters of this class): :param is_enabled: The value to assign to the is_enabled property of this ExecutionLogPolicy. :type is_enabled: bool :param log_level: The value to assign to the log_level property of this ExecutionLogPolicy. Allowed values for this property are: "INFO", "WARN", "ERROR", 'UNKNOWN_ENUM_VALUE'. Any unrecognized values returned by a service will be mapped to 'UNKNOWN_ENUM_VALUE'. :type log_level: str �bool�str)� is_enabled� log_levelZ isEnabledZlogLevelN)Z swagger_typesZ attribute_map�_is_enabled� _log_level)�self�kwargs� r �N/usr/lib/python3.9/site-packages/oci/apigateway/models/execution_log_policy.py�__init__ s ��zExecutionLogPolicy.__init__c C s | j S )a� Gets the is_enabled of this ExecutionLogPolicy. Enables pushing of execution logs to the legacy OCI Object Storage log archival bucket. Oracle recommends using the OCI Logging service to enable, retrieve, and query execution logs for an API Deployment. If there is an active log object for the API Deployment and its category is set to 'execution' in OCI Logging service, the logs will not be uploaded to the legacy OCI Object Storage log archival bucket. Please note that the functionality to push to the legacy OCI Object Storage log archival bucket has been deprecated and will be removed in the future. :return: The is_enabled of this ExecutionLogPolicy. :rtype: bool �r �r r r r r ; s zExecutionLogPolicy.is_enabledc C s || _ dS )a Sets the is_enabled of this ExecutionLogPolicy. Enables pushing of execution logs to the legacy OCI Object Storage log archival bucket. Oracle recommends using the OCI Logging service to enable, retrieve, and query execution logs for an API Deployment. If there is an active log object for the API Deployment and its category is set to 'execution' in OCI Logging service, the logs will not be uploaded to the legacy OCI Object Storage log archival bucket. Please note that the functionality to push to the legacy OCI Object Storage log archival bucket has been deprecated and will be removed in the future. :param is_enabled: The is_enabled of this ExecutionLogPolicy. :type: bool Nr )r r r r r r O s c C s | j S )a� Gets the log_level of this ExecutionLogPolicy. Specifies the log level used to control logging output of execution logs. Enabling logging at a given level also enables logging at all higher levels. Allowed values for this property are: "INFO", "WARN", "ERROR", 'UNKNOWN_ENUM_VALUE'. Any unrecognized values returned by a service will be mapped to 'UNKNOWN_ENUM_VALUE'. :return: The log_level of this ExecutionLogPolicy. :rtype: str )r r r r r r c s zExecutionLogPolicy.log_levelc C s g d�}t ||�sd}|| _dS )a@ Sets the log_level of this ExecutionLogPolicy. Specifies the log level used to control logging output of execution logs. Enabling logging at a given level also enables logging at all higher levels. :param log_level: The log_level of this ExecutionLogPolicy. :type: str )r r r ZUNKNOWN_ENUM_VALUEN)r r )r r Zallowed_valuesr r r r s s c C s t | �S �N)r r r r r �__repr__� s zExecutionLogPolicy.__repr__c C s |d u rdS | j |j kS )NF)�__dict__�r �otherr r r �__eq__� s zExecutionLogPolicy.__eq__c C s | |k S r r r r r r �__ne__� s zExecutionLogPolicy.__ne__N)�__name__� __module__�__qualname__�__doc__ZLOG_LEVEL_INFOZLOG_LEVEL_WARNZLOG_LEVEL_ERRORr �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