o
    ɶdP                     @   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ZdZdZ	dZ
d	ZdZd
ZdZdZdZdZdZdZdZdZdZdZdZdZd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'e#d*d+ Z(e(j%d,d+ Z(e#d-d. Z)e)j%d/d. Z)e#d0d1 Z*e*j%d2d1 Z*e#d3d4 Z+e+j%d5d4 Z+e#d6d7 Z,e,j%d8d7 Z,e#d9d: Z-e-j%d;d: Z-e#d<d= Z.e.j%d>d= Z.e#d?d@ Z/e/j%dAd@ Z/dBdC Z0dDdE Z1dFdG Z2dHS )IChannelz"
    Properties of a Channel.
    AGENTAPPLICATIONBOTBOT_AS_AGENTSYSTEMEVENTANDROIDAPPEVENTCORTANAFACEBOOKIOSMSTEAMSOSSOSVCSERVICECLOUDSLACKTESTTWILIOWEBWEBHOOKCREATINGUPDATINGACTIVEINACTIVEDELETINGDELETEDFAILEDc                 K   s   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| _d| _d| _d| _d| _	d| _
d| _d| _dS )a  
        Initializes a new Channel 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.oda.models.AppEventChannel`
        * :class:`~oci.oda.models.FacebookChannel`
        * :class:`~oci.oda.models.WebChannel`
        * :class:`~oci.oda.models.MSTeamsChannel`
        * :class:`~oci.oda.models.TwilioChannel`
        * :class:`~oci.oda.models.OsvcChannel`
        * :class:`~oci.oda.models.AndroidChannel`
        * :class:`~oci.oda.models.OSSChannel`
        * :class:`~oci.oda.models.WebhookChannel`
        * :class:`~oci.oda.models.ApplicationChannel`
        * :class:`~oci.oda.models.SlackChannel`
        * :class:`~oci.oda.models.CortanaChannel`
        * :class:`~oci.oda.models.ServiceCloudChannel`
        * :class:`~oci.oda.models.IosChannel`
        * :class:`~oci.oda.models.TestChannel`

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

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

        :param name:
            The value to assign to the name property of this Channel.
        :type name: str

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

        :param category:
            The value to assign to the category property of this Channel.
            Allowed values for this property are: "AGENT", "APPLICATION", "BOT", "BOT_AS_AGENT", "SYSTEM", "EVENT", 'UNKNOWN_ENUM_VALUE'.
            Any unrecognized values returned by a service will be mapped to 'UNKNOWN_ENUM_VALUE'.
        :type category: str

        :param type:
            The value to assign to the type property of this Channel.
            Allowed values for this property are: "ANDROID", "APPEVENT", "APPLICATION", "CORTANA", "FACEBOOK", "IOS", "MSTEAMS", "OSS", "OSVC", "SERVICECLOUD", "SLACK", "TEST", "TWILIO", "WEB", "WEBHOOK", 'UNKNOWN_ENUM_VALUE'.
            Any unrecognized values returned by a service will be mapped to 'UNKNOWN_ENUM_VALUE'.
        :type type: str

        :param session_expiry_duration_in_milliseconds:
            The value to assign to the session_expiry_duration_in_milliseconds property of this Channel.
        :type session_expiry_duration_in_milliseconds: int

        :param lifecycle_state:
            The value to assign to the lifecycle_state property of this Channel.
            Allowed values for this property are: "CREATING", "UPDATING", "ACTIVE", "INACTIVE", "DELETING", "DELETED", "FAILED", 'UNKNOWN_ENUM_VALUE'.
            Any unrecognized values returned by a service will be mapped to 'UNKNOWN_ENUM_VALUE'.
        :type lifecycle_state: str

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

        :param time_updated:
            The value to assign to the time_updated property of this Channel.
        :type time_updated: datetime

        :param freeform_tags:
            The value to assign to the freeform_tags property of this Channel.
        :type freeform_tags: dict(str, str)

        :param defined_tags:
            The value to assign to the defined_tags property of this Channel.
        :type defined_tags: dict(str, dict(str, object))

        strintdatetimezdict(str, str)zdict(str, dict(str, object)))idnamedescriptioncategorytype'session_expiry_duration_in_millisecondslifecycle_statetime_createdtime_updatedfreeform_tagsdefined_tagsr%   r&   r'   r(   r)   Z#sessionExpiryDurationInMillisecondsZlifecycleStateZtimeCreatedZtimeUpdatedZfreeformTagsZdefinedTagsN)Zswagger_typesZattribute_map_id_name_description	_category_type(_session_expiry_duration_in_milliseconds_lifecycle_state_time_created_time_updated_freeform_tags_defined_tags)selfkwargs r=   :usr/lib/python3.10/site-packages/oci/oda/models/channel.py__init__   sF   K
zChannel.__init__c                 C   s   | d }|dkr
dS |dkrdS |dkrdS |dkrd	S |d
kr"dS |dkr(dS |dkr.dS |dkr4dS |dkr:dS |dkr@dS |dkrFdS |dkrLdS |dkrRdS |dkrXd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AppEventChannelr   ZFacebookChannelr   Z
WebChannelr   ZMSTeamsChannelr   ZTwilioChannelr   ZOsvcChannelr   ZAndroidChannelr   Z
OSSChannelr   ZWebhookChannelr   ZApplicationChannelr   ZSlackChannelr   ZCortanaChannelr   ZServiceCloudChannelr   Z
IosChannelr   ZTestChannelr   r=   )Zobject_dictionaryr)   r=   r=   r>   get_subtype   s@   zChannel.get_subtypec                 C      | j S )z
        **[Required]** Gets the id of this Channel.
        Unique immutable identifier that was assigned when the Channel was created.


        :return: The id of this Channel.
        :rtype: str
        r0   r;   r=   r=   r>   r%   +     
z
Channel.idc                 C   
   || _ dS )z
        Sets the id of this Channel.
        Unique immutable identifier that was assigned when the Channel was created.


        :param id: The id of this Channel.
        :type: str
        NrB   )r;   r%   r=   r=   r>   r%   7     

c                 C   rA   )a  
        **[Required]** Gets the name of this Channel.
        The Channel's name. The name can contain only letters, numbers, periods, and underscores. The name must begin with a letter.


        :return: The name of this Channel.
        :rtype: str
        r1   rC   r=   r=   r>   r&   C  rD   zChannel.namec                 C   rE   )z
        Sets the name of this Channel.
        The Channel's name. The name can contain only letters, numbers, periods, and underscores. The name must begin with a letter.


        :param name: The name of this Channel.
        :type: str
        NrG   )r;   r&   r=   r=   r>   r&   O  rF   c                 C   rA   )z
        Gets the description of this Channel.
        A short description of the Channel.


        :return: The description of this Channel.
        :rtype: str
        r2   rC   r=   r=   r>   r'   [  rD   zChannel.descriptionc                 C   rE   )z
        Sets the description of this Channel.
        A short description of the Channel.


        :param description: The description of this Channel.
        :type: str
        NrH   )r;   r'   r=   r=   r>   r'   g  rF   c                 C   rA   )a  
        **[Required]** Gets the category of this Channel.
        The category of the Channel.

        Allowed values for this property are: "AGENT", "APPLICATION", "BOT", "BOT_AS_AGENT", "SYSTEM", "EVENT", 'UNKNOWN_ENUM_VALUE'.
        Any unrecognized values returned by a service will be mapped to 'UNKNOWN_ENUM_VALUE'.


        :return: The category of this Channel.
        :rtype: str
        )r3   rC   r=   r=   r>   r(   s     zChannel.categoryc                 C       g d}t ||sd}|| _dS )z
        Sets the category of this Channel.
        The category of the Channel.


        :param category: The category of this Channel.
        :type: str
        )r   r   r	   r
   r   r   UNKNOWN_ENUM_VALUEN)r   r3   )r;   r(   allowed_valuesr=   r=   r>   r(        


c                 C   rA   )a  
        **[Required]** Gets the type of this Channel.
        The Channel type.

        Allowed values for this property are: "ANDROID", "APPEVENT", "APPLICATION", "CORTANA", "FACEBOOK", "IOS", "MSTEAMS", "OSS", "OSVC", "SERVICECLOUD", "SLACK", "TEST", "TWILIO", "WEB", "WEBHOOK", 'UNKNOWN_ENUM_VALUE'.
        Any unrecognized values returned by a service will be mapped to 'UNKNOWN_ENUM_VALUE'.


        :return: The type of this Channel.
        :rtype: str
        )r4   rC   r=   r=   r>   r)     rI   zChannel.typec                 C   rJ   )z
        Sets the type of this Channel.
        The Channel type.


        :param type: The type of this Channel.
        :type: str
        )r   r   r   r   r   r   r   r   r   r   r   r   r   r   r   rK   N)r   r4   )r;   r)   rL   r=   r=   r>   r)     rM   c                 C   rA   )z
        Gets the session_expiry_duration_in_milliseconds of this Channel.
        The number of milliseconds before a session expires.


        :return: The session_expiry_duration_in_milliseconds of this Channel.
        :rtype: int
        r5   rC   r=   r=   r>   r*     rD   z/Channel.session_expiry_duration_in_millisecondsc                 C   rE   )a  
        Sets the session_expiry_duration_in_milliseconds of this Channel.
        The number of milliseconds before a session expires.


        :param session_expiry_duration_in_milliseconds: The session_expiry_duration_in_milliseconds of this Channel.
        :type: int
        NrN   )r;   r*   r=   r=   r>   r*     rF   c                 C   rA   )a  
        **[Required]** Gets the lifecycle_state of this Channel.
        The Channel's current state.

        Allowed values for this property are: "CREATING", "UPDATING", "ACTIVE", "INACTIVE", "DELETING", "DELETED", "FAILED", 'UNKNOWN_ENUM_VALUE'.
        Any unrecognized values returned by a service will be mapped to 'UNKNOWN_ENUM_VALUE'.


        :return: The lifecycle_state of this Channel.
        :rtype: str
        )r6   rC   r=   r=   r>   r+     rI   zChannel.lifecycle_statec                 C   rJ   )z
        Sets the lifecycle_state of this Channel.
        The Channel's current state.


        :param lifecycle_state: The lifecycle_state of this Channel.
        :type: str
        )r   r   r   r   r   r    r!   rK   N)r   r6   )r;   r+   rL   r=   r=   r>   r+     rM   c                 C   rA   )a+  
        **[Required]** Gets the time_created of this Channel.
        When the resource was created. A date-time string as described in `RFC 3339`__, section 14.29.

        __ https://tools.ietf.org/rfc/rfc3339


        :return: The time_created of this Channel.
        :rtype: datetime
        r7   rC   r=   r=   r>   r,        zChannel.time_createdc                 C   rE   )a'  
        Sets the time_created of this Channel.
        When the resource was created. A date-time string as described in `RFC 3339`__, section 14.29.

        __ https://tools.ietf.org/rfc/rfc3339


        :param time_created: The time_created of this Channel.
        :type: datetime
        NrO   )r;   r,   r=   r=   r>   r,        
c                 C   rA   )a0  
        **[Required]** Gets the time_updated of this Channel.
        When the resource was last updated. A date-time string as described in `RFC 3339`__, section 14.29.

        __ https://tools.ietf.org/rfc/rfc3339


        :return: The time_updated of this Channel.
        :rtype: datetime
        r8   rC   r=   r=   r>   r-     rP   zChannel.time_updatedc                 C   rE   )a,  
        Sets the time_updated of this Channel.
        When the resource was last updated. A date-time string as described in `RFC 3339`__, section 14.29.

        __ https://tools.ietf.org/rfc/rfc3339


        :param time_updated: The time_updated of this Channel.
        :type: datetime
        NrR   )r;   r-   r=   r=   r>   r-     rQ   c                 C   rA   )a  
        Gets the freeform_tags of this Channel.
        Simple key-value pair that is applied without any predefined name, type, or scope.
        Example: `{"bar-key": "value"}`


        :return: The freeform_tags of this Channel.
        :rtype: dict(str, str)
        r9   rC   r=   r=   r>   r.        zChannel.freeform_tagsc                 C   rE   )a  
        Sets the freeform_tags of this Channel.
        Simple key-value pair that is applied without any predefined name, type, or scope.
        Example: `{"bar-key": "value"}`


        :param freeform_tags: The freeform_tags of this Channel.
        :type: dict(str, str)
        NrS   )r;   r.   r=   r=   r>   r.   *     
c                 C   rA   )a+  
        Gets the defined_tags of this Channel.
        Usage of predefined tag keys. These predefined keys are scoped to namespaces.
        Example: `{"foo-namespace": {"bar-key": "value"}}`


        :return: The defined_tags of this Channel.
        :rtype: dict(str, dict(str, object))
        r:   rC   r=   r=   r>   r/   7  rT   zChannel.defined_tagsc                 C   rE   )a6  
        Sets the defined_tags of this Channel.
        Usage of predefined tag keys. These predefined keys are scoped to namespaces.
        Example: `{"foo-namespace": {"bar-key": "value"}}`


        :param defined_tags: The defined_tags of this Channel.
        :type: dict(str, dict(str, object))
        NrV   )r;   r/   r=   r=   r>   r/   D  rU   c                 C   s   t | S N)r   rC   r=   r=   r>   __repr__Q  s   zChannel.__repr__c                 C   s   |d u rdS | j |j kS )NF)__dict__r;   otherr=   r=   r>   __eq__T  s   zChannel.__eq__c                 C   s
   | |k S rW   r=   rZ   r=   r=   r>   __ne__Z  s   
zChannel.__ne__N)3__name__
__module____qualname____doc__ZCATEGORY_AGENTZCATEGORY_APPLICATIONZCATEGORY_BOTZCATEGORY_BOT_AS_AGENTZCATEGORY_SYSTEMZCATEGORY_EVENTZTYPE_ANDROIDZTYPE_APPEVENTZTYPE_APPLICATIONZTYPE_CORTANAZTYPE_FACEBOOKZTYPE_IOSZTYPE_MSTEAMSZTYPE_OSSZ	TYPE_OSVCZTYPE_SERVICECLOUDZ
TYPE_SLACKZ	TYPE_TESTZTYPE_TWILIOZTYPE_WEBZTYPE_WEBHOOKZLIFECYCLE_STATE_CREATINGZLIFECYCLE_STATE_UPDATINGZLIFECYCLE_STATE_ACTIVEZLIFECYCLE_STATE_INACTIVEZLIFECYCLE_STATE_DELETINGZLIFECYCLE_STATE_DELETEDZLIFECYCLE_STATE_FAILEDr?   staticmethodr@   propertyr%   setterr&   r'   r(   r)   r*   r+   r,   r-   r.   r/   rX   r\   r]   r=   r=   r=   r>   r      s    r
6





















r   N)Zoci.utilr   r   r   Zoci.decoratorsr   objectr   r=   r=   r=   r>   <module>   s   