ruạṛ
a O��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 @ s� e Zd ZdZdZdZdZdZdZdd� Z e d d � �Zedd� �Z e jd d� �Z edd� �Zejdd� �Zedd� �Zejdd� �Zdd� Zdd� Zdd� ZdS )�Schedulez& Schedule for scheduled task. �FIXED_FREQUENCY�CRON� RETRY_ONCE�RETRY_INDEFINITELY�SKIPc K s2 dddd�| _ dddd�| _d| _d| _d| _dS )aG Initializes a new Schedule 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.CronSchedule` * :class:`~oci.log_analytics.models.FixedFrequencySchedule` The following keyword arguments are supported (corresponding to the getters/setters of this class): :param type: The value to assign to the type property of this Schedule. Allowed values for this property are: "FIXED_FREQUENCY", "CRON", 'UNKNOWN_ENUM_VALUE'. Any unrecognized values returned by a service will be mapped to 'UNKNOWN_ENUM_VALUE'. :type type: str :param misfire_policy: The value to assign to the misfire_policy property of this Schedule. Allowed values for this property are: "RETRY_ONCE", "RETRY_INDEFINITELY", "SKIP", 'UNKNOWN_ENUM_VALUE'. Any unrecognized values returned by a service will be mapped to 'UNKNOWN_ENUM_VALUE'. :type misfire_policy: str :param time_of_first_execution: The value to assign to the time_of_first_execution property of this Schedule. :type time_of_first_execution: datetime �str�datetime)�type�misfire_policy�time_of_first_executionr � misfirePolicy�timeOfFirstExecutionN)� swagger_types� attribute_map�_type�_misfire_policy�_time_of_first_execution)�self�kwargs� r ��/sparta/input/_build_configuration/image_build+validate/lib/bmcenv/lib64/python3.9/site-packages/oci/log_analytics/models/schedule.py�__init__$ s ��zSchedule.__init__c C s( | d }|dkrdS |dkr dS 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 �CronScheduler �FixedFrequencyScheduler Nr )�object_dictionaryr r r r �get_subtypeO s zSchedule.get_subtypec C s | j S )ae **[Required]** Gets the type of this Schedule. Schedule type discriminator. Allowed values for this property are: "FIXED_FREQUENCY", "CRON", 'UNKNOWN_ENUM_VALUE'. Any unrecognized values returned by a service will be mapped to 'UNKNOWN_ENUM_VALUE'. :return: The type of this Schedule. :rtype: str )r �r r r r r _ s z Schedule.typec C s ddg}t ||�sd}|| _dS )z� Sets the type of this Schedule. Schedule type discriminator. :param type: The type of this Schedule. :type: str r r �UNKNOWN_ENUM_VALUEN)r r )r r �allowed_valuesr r r r n s c C s | j S )a} Gets the misfire_policy of this Schedule. Schedule misfire retry policy. Allowed values for this property are: "RETRY_ONCE", "RETRY_INDEFINITELY", "SKIP", 'UNKNOWN_ENUM_VALUE'. Any unrecognized values returned by a service will be mapped to 'UNKNOWN_ENUM_VALUE'. :return: The misfire_policy of this Schedule. :rtype: str )r r! r r r r } s zSchedule.misfire_policyc C s g d�}t ||�sd}|| _dS )z� Sets the misfire_policy of this Schedule. Schedule misfire retry policy. :param misfire_policy: The misfire_policy of this Schedule. :type: str )r r r r"