a f @s8ddlmZmZmZddlmZeGdddeZdS))formatted_flat_dict NONE_SENTINEL#value_allowed_none_or_none_sentinel)init_model_state_from_kwargsc@seZdZdZdZdZdZdZdZddZ e d d Z e d d Z e jd d Z e ddZejddZe ddZejddZddZddZddZdS)Schedulez& Schedule for scheduled task. FIXED_FREQUENCYCRON RETRY_ONCERETRY_INDEFINITELYSKIPcKs2dddd|_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 strZdatetime)typemisfire_policytime_of_first_executionr Z misfirePolicyZtimeOfFirstExecutionN)Z swagger_typesZ attribute_map_type_misfire_policy_time_of_first_execution)selfkwargsrE/usr/lib/python3.9/site-packages/oci/log_analytics/models/schedule.py__init__&szSchedule.__init__cCs(|d}|dkrdS|dkr dSdSdS)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 rZ CronSchedulerZFixedFrequencySchedulerNr)Zobject_dictionaryr rrr get_subtypeQs zSchedule.get_subtypecCs|jS)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 )rrrrrr as z Schedule.typecCs ddg}t||sd}||_dS)z Sets the type of this Schedule. Schedule type discriminator. :param type: The type of this Schedule. :type: str rrUNKNOWN_ENUM_VALUEN)rr)rr allowed_valuesrrrr ps  cCs|jS)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 )rrrrrrs zSchedule.misfire_policycCs gd}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 rN)rr)rrrrrrrs  cCs|jS)aD Gets the time_of_first_execution of this Schedule. The date and time the scheduled task should execute first time after create or update; thereafter the task will execute as specified in the schedule. :return: The time_of_first_execution of this Schedule. :rtype: datetime rrrrrrs z Schedule.time_of_first_executioncCs ||_dS)aZ Sets the time_of_first_execution of this Schedule. The date and time the scheduled task should execute first time after create or update; thereafter the task will execute as specified in the schedule. :param time_of_first_execution: The time_of_first_execution of this Schedule. :type: datetime Nr)rrrrrrs cCst|SN)rrrrr__repr__szSchedule.__repr__cCs|dur dS|j|jkS)NF)__dict__rotherrrr__eq__szSchedule.__eq__cCs ||k Srrr rrr__ne__szSchedule.__ne__N)__name__ __module__ __qualname____doc__ZTYPE_FIXED_FREQUENCYZ TYPE_CRONZMISFIRE_POLICY_RETRY_ONCEZ!MISFIRE_POLICY_RETRY_INDEFINITELYZMISFIRE_POLICY_SKIPr staticmethodrpropertyr setterrrrr"r#rrrrr s0+       rN)Zoci.utilrrrZoci.decoratorsrobjectrrrrrs