o
    ëÉ¶d´  ã                   @   s8   d dl mZmZmZ d dlmZ eG dd„ deƒƒZdS )é    )Úformatted_flat_dictÚNONE_SENTINELÚ#value_allowed_none_or_none_sentinel)Úinit_model_state_from_kwargsc                   @   sp   e Zd ZdZdZdZdZdd„ Zedd„ ƒZ	e	j
d	d„ ƒZ	ed
d„ ƒZej
dd„ ƒZdd„ Zdd„ Zdd„ ZdS )ÚTriggerSchedulez`
    Specifies a trigger schedule. Timing information for when to initiate automated syncs.
    ÚNONEÚDEFAULTÚCUSTOMc                 K   s(   dddœ| _ dddœ| _d| _d| _dS )aÆ  
        Initializes a new TriggerSchedule object with values from keyword arguments.
        The following keyword arguments are supported (corresponding to the getters/setters of this class):

        :param schedule_type:
            The value to assign to the schedule_type property of this TriggerSchedule.
            Allowed values for this property are: "NONE", "DEFAULT", "CUSTOM", 'UNKNOWN_ENUM_VALUE'.
            Any unrecognized values returned by a service will be mapped to 'UNKNOWN_ENUM_VALUE'.
        :type schedule_type: str

        :param custom_schedule:
            The value to assign to the custom_schedule property of this TriggerSchedule.
        :type custom_schedule: str

        Ústr)Úschedule_typeÚcustom_scheduleZscheduleTypeZcustomScheduleN)Zswagger_typesZattribute_mapÚ_schedule_typeÚ_custom_schedule)ÚselfÚkwargs© r   úFusr/lib/python3.10/site-packages/oci/devops/models/trigger_schedule.pyÚ__init__   s   þþ
zTriggerSchedule.__init__c                 C   ó   | j S )a*  
        **[Required]** Gets the schedule_type of this TriggerSchedule.
        Different types of trigger schedule:
        NONE - No automated synchronization schedule.
        DEFAULT - Trigger schedule is every 30 minutes.
        CUSTOM - Custom triggering schedule.

        Allowed values for this property are: "NONE", "DEFAULT", "CUSTOM", 'UNKNOWN_ENUM_VALUE'.
        Any unrecognized values returned by a service will be mapped to 'UNKNOWN_ENUM_VALUE'.


        :return: The schedule_type of this TriggerSchedule.
        :rtype: str
        )r   ©r   r   r   r   r   ;   s   zTriggerSchedule.schedule_typec                 C   s    g d¢}t ||ƒsd}|| _dS )ag  
        Sets the schedule_type of this TriggerSchedule.
        Different types of trigger schedule:
        NONE - No automated synchronization schedule.
        DEFAULT - Trigger schedule is every 30 minutes.
        CUSTOM - Custom triggering schedule.


        :param schedule_type: The schedule_type of this TriggerSchedule.
        :type: str
        )r   r   r	   ZUNKNOWN_ENUM_VALUEN)r   r   )r   r   Zallowed_valuesr   r   r   r   M   s   

c                 C   r   )a%  
        Gets the custom_schedule of this TriggerSchedule.
        Valid if type is CUSTOM. Following RFC 5545 recurrence rules, we can specify starting time, occurrence frequency, and interval size.
        Example for frequency could be DAILY/WEEKLY/HOURLY or any RFC 5545 supported frequency, which is followed by start time of this window.
        You can control the start time with BYHOUR, BYMINUTE and BYSECONDS. It is followed by the interval size.


        :return: The custom_schedule of this TriggerSchedule.
        :rtype: str
        ©r   r   r   r   r   r   _   s   zTriggerSchedule.custom_schedulec                 C   s
   || _ dS )a3  
        Sets the custom_schedule of this TriggerSchedule.
        Valid if type is CUSTOM. Following RFC 5545 recurrence rules, we can specify starting time, occurrence frequency, and interval size.
        Example for frequency could be DAILY/WEEKLY/HOURLY or any RFC 5545 supported frequency, which is followed by start time of this window.
        You can control the start time with BYHOUR, BYMINUTE and BYSECONDS. It is followed by the interval size.


        :param custom_schedule: The custom_schedule of this TriggerSchedule.
        :type: str
        Nr   )r   r   r   r   r   r   m   s   
c                 C   s   t | ƒS ©N)r   r   r   r   r   Ú__repr__{   s   zTriggerSchedule.__repr__c                 C   s   |d u rdS | j |j kS )NF)Ú__dict__©r   Úotherr   r   r   Ú__eq__~   s   zTriggerSchedule.__eq__c                 C   s
   | |k S r   r   r   r   r   r   Ú__ne__„   s   
zTriggerSchedule.__ne__N)Ú__name__Ú
__module__Ú__qualname__Ú__doc__ZSCHEDULE_TYPE_NONEZSCHEDULE_TYPE_DEFAULTZSCHEDULE_TYPE_CUSTOMr   Úpropertyr   Úsetterr   r   r   r   r   r   r   r   r      s"    



r   N)Zoci.utilr   r   r   Zoci.decoratorsr   Úobjectr   r   r   r   r   Ú<module>   s   