ruạṛ
a ���f( � @ sD d dl mZ ddlmZmZmZ ddlmZ eG dd� de��ZdS )� )� ScheduledTask� )�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 )�StandardTaskz0 Log analytics scheduled task resource. �FAILED� SUCCEEDEDc K s� dddddddddddddddddddd�| _ d d ddd ddddddddddddddd�| _d| _d| _d| _d| _d| _d| _d| _d| _ d| _ d| _d| _d| _ d| _d| _d| _d| _d| _d| _d| _d| _dS )a� Initializes a new StandardTask object with values from keyword arguments. The default value of the :py:attr:`~oci.log_analytics.models.StandardTask.kind` attribute of this class is ``STANDARD`` and it should not be changed. The following keyword arguments are supported (corresponding to the getters/setters of this class): :param kind: The value to assign to the kind property of this StandardTask. Allowed values for this property are: "ACCELERATION", "STANDARD", 'UNKNOWN_ENUM_VALUE'. Any unrecognized values returned by a service will be mapped to 'UNKNOWN_ENUM_VALUE'. :type kind: str :param id: The value to assign to the id property of this StandardTask. :type id: str :param display_name: The value to assign to the display_name property of this StandardTask. :type display_name: str :param task_type: The value to assign to the task_type property of this StandardTask. Allowed values for this property are: "SAVED_SEARCH", "ACCELERATION", "PURGE", 'UNKNOWN_ENUM_VALUE'. Any unrecognized values returned by a service will be mapped to 'UNKNOWN_ENUM_VALUE'. :type task_type: str :param schedules: The value to assign to the schedules property of this StandardTask. :type schedules: list[oci.log_analytics.models.Schedule] :param action: The value to assign to the action property of this StandardTask. :type action: oci.log_analytics.models.Action :param task_status: The value to assign to the task_status property of this StandardTask. Allowed values for this property are: "READY", "PAUSED", "COMPLETED", "BLOCKED", 'UNKNOWN_ENUM_VALUE'. Any unrecognized values returned by a service will be mapped to 'UNKNOWN_ENUM_VALUE'. :type task_status: str :param pause_reason: The value to assign to the pause_reason property of this StandardTask. Allowed values for this property are: "METRIC_EXTRACTION_NOT_VALID", "SAVED_SEARCH_NOT_VALID", "SAVED_SEARCH_NOT_FOUND", "QUERY_STRING_NOT_VALID", "USER_ACTION", "TENANCY_LIFECYCLE", "PURGE_RESOURCE_NOT_FOUND", 'UNKNOWN_ENUM_VALUE'. Any unrecognized values returned by a service will be mapped to 'UNKNOWN_ENUM_VALUE'. :type pause_reason: str :param work_request_id: The value to assign to the work_request_id property of this StandardTask. :type work_request_id: str :param num_occurrences: The value to assign to the num_occurrences property of this StandardTask. :type num_occurrences: int :param compartment_id: The value to assign to the compartment_id property of this StandardTask. :type compartment_id: str :param time_created: The value to assign to the time_created property of this StandardTask. :type time_created: datetime :param time_updated: The value to assign to the time_updated property of this StandardTask. :type time_updated: datetime :param time_of_next_execution: The value to assign to the time_of_next_execution property of this StandardTask. :type time_of_next_execution: datetime :param lifecycle_state: The value to assign to the lifecycle_state property of this StandardTask. Allowed values for this property are: "ACTIVE", "DELETED", 'UNKNOWN_ENUM_VALUE'. Any unrecognized values returned by a service will be mapped to 'UNKNOWN_ENUM_VALUE'. :type lifecycle_state: str :param freeform_tags: The value to assign to the freeform_tags property of this StandardTask. :type freeform_tags: dict(str, str) :param defined_tags: The value to assign to the defined_tags property of this StandardTask. :type defined_tags: dict(str, dict(str, object)) :param last_execution_status: The value to assign to the last_execution_status property of this StandardTask. Allowed values for this property are: "FAILED", "SUCCEEDED", 'UNKNOWN_ENUM_VALUE'. Any unrecognized values returned by a service will be mapped to 'UNKNOWN_ENUM_VALUE'. :type last_execution_status: str :param time_last_executed: The value to assign to the time_last_executed property of this StandardTask. :type time_last_executed: datetime �strzlist[Schedule]�Action�intZdatetimezdict(str, str)zdict(str, dict(str, object)))�kind�idZdisplay_nameZ task_type� schedules�actionZtask_statusZpause_reasonZwork_request_idZnum_occurrencesZcompartment_idZtime_createdZtime_updatedZtime_of_next_executionZlifecycle_stateZ freeform_tagsZdefined_tags�last_execution_status�time_last_executedr r ZdisplayNameZtaskTyper r Z taskStatusZpauseReasonZ workRequestIdZnumOccurrencesZ compartmentIdZtimeCreatedZtimeUpdatedZtimeOfNextExecutionZlifecycleStateZfreeformTagsZdefinedTagsZlastExecutionStatusZtimeLastExecutedNZSTANDARD)Z swagger_typesZ attribute_mapZ_kindZ_idZ _display_nameZ _task_typeZ _schedules�_actionZ_task_statusZ _pause_reasonZ_work_request_idZ_num_occurrencesZ_compartment_idZ _time_createdZ _time_updatedZ_time_of_next_executionZ_lifecycle_stateZ_freeform_tagsZ _defined_tags�_last_execution_status�_time_last_executed)�self�kwargs� r �J/usr/lib/python3.9/site-packages/oci/log_analytics/models/standard_task.py�__init__ sx `��zStandardTask.__init__c C s | j S )a� Gets the last_execution_status of this StandardTask. The most recent task execution status. Allowed values for this property are: "FAILED", "SUCCEEDED", 'UNKNOWN_ENUM_VALUE'. Any unrecognized values returned by a service will be mapped to 'UNKNOWN_ENUM_VALUE'. :return: The last_execution_status of this StandardTask. :rtype: str )r �r r r r r � s z"StandardTask.last_execution_statusc C s ddg}t ||�sd}|| _dS )z� Sets the last_execution_status of this StandardTask. The most recent task execution status. :param last_execution_status: The last_execution_status of this StandardTask. :type: str r r ZUNKNOWN_ENUM_VALUEN)r r )r r Zallowed_valuesr r r r � s c C s | j S )z� Gets the time_last_executed of this StandardTask. The date and time the scheduled task last executed, in the format defined by RFC3339. :return: The time_last_executed of this StandardTask. :rtype: datetime �r r r r r r � s zStandardTask.time_last_executedc C s || _ dS )a Sets the time_last_executed of this StandardTask. The date and time the scheduled task last executed, in the format defined by RFC3339. :param time_last_executed: The time_last_executed of this StandardTask. :type: datetime Nr )r r r r r r � s c C s t | �S �N)r r r r r �__repr__� s zStandardTask.__repr__c C s |d u rdS | j |j kS )NF)�__dict__�r �otherr r r �__eq__� s zStandardTask.__eq__c C s | |k S r r r! r r r �__ne__� s zStandardTask.__ne__N)�__name__� __module__�__qualname__�__doc__ZLAST_EXECUTION_STATUS_FAILEDZLAST_EXECUTION_STATUS_SUCCEEDEDr �propertyr �setterr r r# r$ r r r r r s ! r N) Zscheduled_taskr Zoci.utilr r r Zoci.decoratorsr r r r r r �<module> s
cải xoăn