ruạṛ
a ���fZb � @ 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 ZdZdZdZdZdZdZdZ dZ dZd Zd Z dZdZd ZdZdZdZdZdZdd� Zedd� �Zedd� �Zejdd� �Zedd� �Zejdd� �Zedd� �Zejdd� �Zed d!� �Zejd"d!� �Zed#d$� �Zejd%d$� �Zed&d'� �Z e jd(d'� �Z ed)d*� �Z!e!jd+d*� �Z!ed,d-� �Z"e"jd.d-� �Z"ed/d0� �Z#e#jd1d0� �Z#ed2d3� �Z$e$jd4d3� �Z$ed5d6� �Z%e%jd7d6� �Z%ed8d9� �Z&e&jd:d9� �Z&ed;d<� �Z'e'jd=d<� �Z'ed>d?� �Z(e(jd@d?� �Z(edAdB� �Z)e)jdCdB� �Z)edDdE� �Z*e*jdFdE� �Z*edGdH� �Z+e+jdIdH� �Z+dJdK� Z,dLdM� Z-dNdO� Z.dPS )Q� ScheduledTaskz0 Log analytics scheduled task resource. �ACCELERATION�STANDARD�SAVED_SEARCH�PURGE�READY�PAUSED� COMPLETED�BLOCKED�METRIC_EXTRACTION_NOT_VALID�SAVED_SEARCH_NOT_VALID�SAVED_SEARCH_NOT_FOUND�QUERY_STRING_NOT_VALID�USER_ACTION�TENANCY_LIFECYCLE�PURGE_RESOURCE_NOT_FOUND�ACTIVE�DELETEDc K s� dddddddddddddddddd�| _ d d ddd ddddddddddddd�| _d| _d| _d| _d| _d| _d| _d| _d| _ d| _ d| _d| _d| _ d| _d| _d| _d| _d| _dS )a@ Initializes a new ScheduledTask object with values from keyword arguments. This class has the following subclasses and if you are using this class as input to a service operations then you should favor using a subclass over the base class: * :class:`~oci.log_analytics.models.StandardTask` 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 ScheduledTask. 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 ScheduledTask. :type id: str :param display_name: The value to assign to the display_name property of this ScheduledTask. :type display_name: str :param task_type: The value to assign to the task_type property of this ScheduledTask. 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 ScheduledTask. :type schedules: list[oci.log_analytics.models.Schedule] :param action: The value to assign to the action property of this ScheduledTask. :type action: oci.log_analytics.models.Action :param task_status: The value to assign to the task_status property of this ScheduledTask. 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 ScheduledTask. 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 ScheduledTask. :type work_request_id: str :param num_occurrences: The value to assign to the num_occurrences property of this ScheduledTask. :type num_occurrences: int :param compartment_id: The value to assign to the compartment_id property of this ScheduledTask. :type compartment_id: str :param time_created: The value to assign to the time_created property of this ScheduledTask. :type time_created: datetime :param time_updated: The value to assign to the time_updated property of this ScheduledTask. :type time_updated: datetime :param time_of_next_execution: The value to assign to the time_of_next_execution property of this ScheduledTask. :type time_of_next_execution: datetime :param lifecycle_state: The value to assign to the lifecycle_state property of this ScheduledTask. 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 ScheduledTask. :type freeform_tags: dict(str, str) :param defined_tags: The value to assign to the defined_tags property of this ScheduledTask. :type defined_tags: dict(str, dict(str, object)) �strzlist[Schedule]�Action�intZdatetimezdict(str, str)zdict(str, dict(str, object)))�kind�id�display_name� task_type� schedules�action�task_status�pause_reason�work_request_id�num_occurrences�compartment_id�time_created�time_updated�time_of_next_execution�lifecycle_state� freeform_tags�defined_tagsr r ZdisplayNameZtaskTyper r Z taskStatusZpauseReasonZ workRequestIdZnumOccurrencesZ compartmentIdZtimeCreatedZtimeUpdatedZtimeOfNextExecutionZlifecycleStateZfreeformTagsZdefinedTagsN)Z swagger_typesZ attribute_map�_kind�_id� _display_name� _task_type� _schedules�_action�_task_status� _pause_reason�_work_request_id�_num_occurrences�_compartment_id� _time_created� _time_updated�_time_of_next_execution�_lifecycle_state�_freeform_tags� _defined_tags)�self�kwargs� r? �K/usr/lib/python3.9/site-packages/oci/log_analytics/models/scheduled_task.py�__init__Z sj Y��zScheduledTask.__init__c C s | d }|dkrdS dS dS )z� Given the hash representation of a subtype of this class, use the info in the hash to return the class of the subtype. r r ZStandardTaskr Nr? )Zobject_dictionary�typer? r? r@ �get_subtype� s zScheduledTask.get_subtypec C s | j S )ab **[Required]** Gets the kind of this ScheduledTask. Discriminator. 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'. :return: The kind of this ScheduledTask. :rtype: str )r, �r= r? r? r@ r � s zScheduledTask.kindc C s ddg}t ||�sd}|| _dS )z� Sets the kind of this ScheduledTask. Discriminator. :param kind: The kind of this ScheduledTask. :type: str r r �UNKNOWN_ENUM_VALUEN)r r, )r= r �allowed_valuesr? r? r@ r s c C s | j S )a **[Required]** Gets the id of this ScheduledTask. The `OCID`__ of the data plane resource. __ https://docs.cloud.oracle.com/iaas/Content/General/Concepts/identifiers.htm :return: The id of this ScheduledTask. :rtype: str �r- rD r? r? r@ r s zScheduledTask.idc C s || _ dS )a Sets the id of this ScheduledTask. The `OCID`__ of the data plane resource. __ https://docs.cloud.oracle.com/iaas/Content/General/Concepts/identifiers.htm :param id: The id of this ScheduledTask. :type: str NrG )r= r r? r? r@ r % s c C s | j S )a� **[Required]** Gets the display_name of this ScheduledTask. A user-friendly name that is changeable and that does not have to be unique. Format: a leading alphanumeric, followed by zero or more alphanumerics, underscores, spaces, backslashes, or hyphens in any order). No trailing spaces allowed. :return: The display_name of this ScheduledTask. :rtype: str �r. rD r? r? r@ r 3 s zScheduledTask.display_namec C s || _ dS )a� Sets the display_name of this ScheduledTask. A user-friendly name that is changeable and that does not have to be unique. Format: a leading alphanumeric, followed by zero or more alphanumerics, underscores, spaces, backslashes, or hyphens in any order). No trailing spaces allowed. :param display_name: The display_name of this ScheduledTask. :type: str NrH )r= r r? r? r@ r B s c C s | j S )au **[Required]** Gets the task_type of this ScheduledTask. Task type. 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'. :return: The task_type of this ScheduledTask. :rtype: str )r/ rD r? r? r@ r Q s zScheduledTask.task_typec C s g d�}t ||�sd}|| _dS )z� Sets the task_type of this ScheduledTask. Task type. :param task_type: The task_type of this ScheduledTask. :type: str )r r r rE N)r r/ )r= r rF r? r? r@ r ` s c C s | j S )z� **[Required]** Gets the schedules of this ScheduledTask. Schedules. :return: The schedules of this ScheduledTask. :rtype: list[oci.log_analytics.models.Schedule] �r0 rD r? r? r@ r o s zScheduledTask.schedulesc C s || _ dS )z� Sets the schedules of this ScheduledTask. Schedules. :param schedules: The schedules of this ScheduledTask. :type: list[oci.log_analytics.models.Schedule] NrI )r= r r? r? r@ r { s c C s | j S )z� **[Required]** Gets the action of this ScheduledTask. :return: The action of this ScheduledTask. :rtype: oci.log_analytics.models.Action �r1 rD r? r? r@ r � s zScheduledTask.actionc C s || _ dS )z� Sets the action of this ScheduledTask. :param action: The action of this ScheduledTask. :type: oci.log_analytics.models.Action NrJ )r= r r? r? r@ r � s c C s | j S )a Gets the task_status of this ScheduledTask. Status of the scheduled task. 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'. :return: The task_status of this ScheduledTask. :rtype: str )r2 rD r? r? r@ r! � s zScheduledTask.task_statusc C s g d�}t ||�sd}|| _dS )z� Sets the task_status of this ScheduledTask. Status of the scheduled task. :param task_status: The task_status of this ScheduledTask. :type: str )r r r r rE N)r r2 )r= r! rF r? r? r@ r! � s c C s | j S )a Gets the pause_reason of this ScheduledTask. reason for taskStatus PAUSED. 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'. :return: The pause_reason of this ScheduledTask. :rtype: str )r3 rD r? r? r@ r"