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                   @   s   e Zd ZdZdZdZdZdd Zedd Z	e
d	d
 Zej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 )ActionDetailsz*
    Object used to create an action.
    ONSOSSFAASc                 K   s2   dddd| _ dddd| _d| _d| _d| _dS )a?  
        Initializes a new ActionDetails 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.events.models.CreateStreamingServiceActionDetails`
        * :class:`~oci.events.models.CreateFaaSActionDetails`
        * :class:`~oci.events.models.CreateNotificationServiceActionDetails`

        The following keyword arguments are supported (corresponding to the getters/setters of this class):

        :param action_type:
            The value to assign to the action_type property of this ActionDetails.
            Allowed values for this property are: "ONS", "OSS", "FAAS"
        :type action_type: str

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

        :param description:
            The value to assign to the description property of this ActionDetails.
        :type description: str

        strbool)action_type
is_enableddescription
actionTypeZ	isEnabledr   N)Zswagger_typesZattribute_map_action_type_is_enabled_description)selfkwargs r   Dusr/lib/python3.10/site-packages/oci/events/models/action_details.py__init__   s   
zActionDetails.__init__c                 C   s0   | d }|dkr
dS |dkrdS |dkrdS dS )	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   Z#CreateStreamingServiceActionDetailsr	   ZCreateFaaSActionDetailsr   Z&CreateNotificationServiceActionDetailsr   r   )Zobject_dictionarytyper   r   r   get_subtypeG   s   zActionDetails.get_subtypec                 C      | j S )a  
        **[Required]** Gets the action_type of this ActionDetails.
        The action to perform if the condition in the rule matches an event.

        * **ONS:** Send to an Oracle Notification Service topic.
        * **OSS:** Send to a stream from Oracle Streaming Service.
        * **FAAS:** Send to an Oracle Functions Service endpoint.

        Allowed values for this property are: "ONS", "OSS", "FAAS"


        :return: The action_type of this ActionDetails.
        :rtype: str
        )r   r   r   r   r   r   Z   s   zActionDetails.action_typec                 C   s*   g d}t ||std||| _dS )a  
        Sets the action_type of this ActionDetails.
        The action to perform if the condition in the rule matches an event.

        * **ONS:** Send to an Oracle Notification Service topic.
        * **OSS:** Send to a stream from Oracle Streaming Service.
        * **FAAS:** Send to an Oracle Functions Service endpoint.


        :param action_type: The action_type of this ActionDetails.
        :type: str
        )r   r   r	   z;Invalid value for `action_type`, must be None or one of {0}N)r   
ValueErrorformatr   )r   r   Zallowed_valuesr   r   r   r   l   s   

c                 C   r   )z
        **[Required]** Gets the is_enabled of this ActionDetails.
        Whether or not this action is currently enabled.

        Example: `true`


        :return: The is_enabled of this ActionDetails.
        :rtype: bool
        r   r   r   r   r   r      s   zActionDetails.is_enabledc                 C   
   || _ dS )z
        Sets the is_enabled of this ActionDetails.
        Whether or not this action is currently enabled.

        Example: `true`


        :param is_enabled: The is_enabled of this ActionDetails.
        :type: bool
        Nr   )r   r   r   r   r   r      s   
c                 C   r   )a-  
        Gets the description of this ActionDetails.
        A string that describes the details of the action. It does not have to be unique, and you can change it. Avoid entering
        confidential information.


        :return: The description of this ActionDetails.
        :rtype: str
        r   r   r   r   r   r      s   zActionDetails.descriptionc                 C   r   )a7  
        Sets the description of this ActionDetails.
        A string that describes the details of the action. It does not have to be unique, and you can change it. Avoid entering
        confidential information.


        :param description: The description of this ActionDetails.
        :type: str
        Nr    )r   r   r   r   r   r      s   
c                 C   s   t | S N)r   r   r   r   r   __repr__   s   zActionDetails.__repr__c                 C   s   |d u rdS | j |j kS )NF)__dict__r   otherr   r   r   __eq__   s   zActionDetails.__eq__c                 C   s
   | |k S r!   r   r$   r   r   r   __ne__   s   
zActionDetails.__ne__N)__name__
__module____qualname____doc__ZACTION_TYPE_ONSZACTION_TYPE_OSSZACTION_TYPE_FAASr   staticmethodr   propertyr   setterr   r   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   