o
    ëÉ¶dd  ã                   @   sD   d dl mZ ddlmZmZmZ ddlmZ eG dd„ deƒƒZdS )é   )ÚAutoScalingPolicyé    )Úformatted_flat_dictÚNONE_SENTINELÚ#value_allowed_none_or_none_sentinel)Úinit_model_state_from_kwargsc                   @   sd   e 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 )ÚScheduledPolicyzb
    An autoscaling policy that defines execution schedules for an autoscaling configuration.
    c              	   K   sj   dddddddddœ| _ dd	d
ddddddœ| _d| _d| _d| _d| _d| _d| _d| _d| _	d| _dS )ac  
        Initializes a new ScheduledPolicy object with values from keyword arguments. The default value of the :py:attr:`~oci.autoscaling.models.ScheduledPolicy.policy_type` attribute
        of this class is ``scheduled`` and it should not be changed.
        The following keyword arguments are supported (corresponding to the getters/setters of this class):

        :param capacity:
            The value to assign to the capacity property of this ScheduledPolicy.
        :type capacity: oci.autoscaling.models.Capacity

        :param id:
            The value to assign to the id property of this ScheduledPolicy.
        :type id: str

        :param display_name:
            The value to assign to the display_name property of this ScheduledPolicy.
        :type display_name: str

        :param policy_type:
            The value to assign to the policy_type property of this ScheduledPolicy.
        :type policy_type: str

        :param time_created:
            The value to assign to the time_created property of this ScheduledPolicy.
        :type time_created: datetime

        :param is_enabled:
            The value to assign to the is_enabled property of this ScheduledPolicy.
        :type is_enabled: bool

        :param execution_schedule:
            The value to assign to the execution_schedule property of this ScheduledPolicy.
        :type execution_schedule: oci.autoscaling.models.ExecutionSchedule

        :param resource_action:
            The value to assign to the resource_action property of this ScheduledPolicy.
        :type resource_action: oci.autoscaling.models.ResourceAction

        ZCapacityÚstrÚdatetimeÚboolZExecutionScheduleZResourceAction)ÚcapacityÚidÚdisplay_nameZpolicy_typeZtime_createdÚ
is_enabledÚexecution_scheduleÚresource_actionr   r   ZdisplayNameZ
policyTypeZtimeCreatedZ	isEnabledZexecutionScheduleZresourceActionNZ	scheduled)
Zswagger_typesZattribute_mapÚ	_capacityZ_idÚ_display_nameZ_policy_typeZ_time_createdZ_is_enabledÚ_execution_scheduleÚ_resource_action)ÚselfÚkwargs© r   úKusr/lib/python3.10/site-packages/oci/autoscaling/models/scheduled_policy.pyÚ__init__   s6   (øø
zScheduledPolicy.__init__c                 C   ó   | j S )a  
        **[Required]** Gets the execution_schedule of this ScheduledPolicy.
        The schedule for executing the autoscaling policy.


        :return: The execution_schedule of this ScheduledPolicy.
        :rtype: oci.autoscaling.models.ExecutionSchedule
        ©r   ©r   r   r   r   r   Y   s   
z"ScheduledPolicy.execution_schedulec                 C   ó
   || _ dS )a  
        Sets the execution_schedule of this ScheduledPolicy.
        The schedule for executing the autoscaling policy.


        :param execution_schedule: The execution_schedule of this ScheduledPolicy.
        :type: oci.autoscaling.models.ExecutionSchedule
        Nr   )r   r   r   r   r   r   e   s   

c                 C   r   )z¸
        Gets the resource_action of this ScheduledPolicy.

        :return: The resource_action of this ScheduledPolicy.
        :rtype: oci.autoscaling.models.ResourceAction
        ©r   r   r   r   r   r   q   s   zScheduledPolicy.resource_actionc                 C   r   )zÆ
        Sets the resource_action of this ScheduledPolicy.

        :param resource_action: The resource_action of this ScheduledPolicy.
        :type: oci.autoscaling.models.ResourceAction
        Nr   )r   r   r   r   r   r   {   s   
c                 C   s   t | ƒS ©N)r   r   r   r   r   Ú__repr__…   s   zScheduledPolicy.__repr__c                 C   s   |d u rdS | j |j kS )NF)Ú__dict__©r   Úotherr   r   r   Ú__eq__ˆ   s   zScheduledPolicy.__eq__c                 C   s
   | |k S r    r   r#   r   r   r   Ú__ne__Ž   s   
zScheduledPolicy.__ne__N)Ú__name__Ú
__module__Ú__qualname__Ú__doc__r   Úpropertyr   Úsetterr   r!   r%   r&   r   r   r   r   r      s    G


	
	r   N)	Zauto_scaling_policyr   Zoci.utilr   r   r   Zoci.decoratorsr   r   r   r   r   r   Ú<module>   s
   