a üÎòf(ã@sDddlmZddlmZmZmZddlmZeGdd„deƒƒZdS)é)Ú ScheduledTaské)Úformatted_flat_dictÚ NONE_SENTINELÚ#value_allowed_none_or_none_sentinel)Úinit_model_state_from_kwargsc@sleZdZdZdZdZdd„Zedd„ƒZej dd„ƒZed d „ƒZ e j d d „ƒZ d d „Z dd„Z dd„Z dS)Ú StandardTaskz0 Log analytics scheduled task resource. ÚFAILEDÚ SUCCEEDEDcKsØddddddddddddddddddddœ|_d d d d d 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ÚidZ display_nameZ task_typeÚ schedulesÚactionZ task_statusZ pause_reasonZwork_request_idZnum_occurrencesZcompartment_idZ time_createdZ time_updatedZtime_of_next_executionZlifecycle_stateZ freeform_tagsZ defined_tagsÚlast_execution_statusÚtime_last_executedrrZ displayNameZtaskTyperrZ taskStatusZ pauseReasonZ workRequestIdZnumOccurrencesZ compartmentIdZ timeCreatedZ timeUpdatedZtimeOfNextExecutionZlifecycleStateZ freeformTagsZ definedTagsZlastExecutionStatusZtimeLastExecutedNZSTANDARD)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__cCs|jS)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©rrrrrºs z"StandardTask.last_execution_statuscCs 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)rr)rrZallowed_valuesrrrrÉs  cCs|jS)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 ©rrrrrrØs zStandardTask.time_last_executedcCs ||_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)rrrrrräs cCst|ƒS©N)rrrrrÚ__repr__ðszStandardTask.__repr__cCs|dur dS|j|jkS)NF)Ú__dict__©rÚotherrrrÚ__eq__ószStandardTask.__eq__cCs ||k Srrr!rrrÚ__ne__ùszStandardTask.__ne__N)Ú__name__Ú __module__Ú __qualname__Ú__doc__ZLAST_EXECUTION_STATUS_FAILEDZLAST_EXECUTION_STATUS_SUCCEEDEDrÚpropertyrÚsetterrrr#r$rrrrr s !    rN) Zscheduled_taskrZoci.utilrrrZoci.decoratorsrrrrrrÚs