o
    ëÉ¶dF%  ã                   @   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 )é   )ÚChannelé    )Úformatted_flat_dictÚNONE_SENTINELÚ#value_allowed_none_or_none_sentinel)Úinit_model_state_from_kwargsc                   @   s²   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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 )ÚSlackChannelz0
    The configuration for a Slack channel.
    c                 K   s6  i 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“| _ i 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!| _d!| _d!| _d!| _d!| _	d!| _
d!| _d!| _d!| _d!| _d!| _d!| _d!| _d"| _d!S )#aJ  
        Initializes a new SlackChannel object with values from keyword arguments. The default value of the :py:attr:`~oci.oda.models.SlackChannel.type` attribute
        of this class is ``SLACK`` and it should not be changed.
        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 SlackChannel.
        :type id: str

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

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

        :param category:
            The value to assign to the category property of this SlackChannel.
            Allowed values for this property are: "AGENT", "APPLICATION", "BOT", "BOT_AS_AGENT", "SYSTEM", "EVENT"
        :type category: str

        :param type:
            The value to assign to the type property of this SlackChannel.
            Allowed values for this property are: "ANDROID", "APPEVENT", "APPLICATION", "CORTANA", "FACEBOOK", "IOS", "MSTEAMS", "OSS", "OSVC", "SERVICECLOUD", "SLACK", "TEST", "TWILIO", "WEB", "WEBHOOK"
        :type type: str

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

        :param lifecycle_state:
            The value to assign to the lifecycle_state property of this SlackChannel.
            Allowed values for this property are: "CREATING", "UPDATING", "ACTIVE", "INACTIVE", "DELETING", "DELETED", "FAILED"
        :type lifecycle_state: str

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

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

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

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

        :param client_id:
            The value to assign to the client_id property of this SlackChannel.
        :type client_id: str

        :param auth_success_url:
            The value to assign to the auth_success_url property of this SlackChannel.
        :type auth_success_url: str

        :param auth_error_url:
            The value to assign to the auth_error_url property of this SlackChannel.
        :type auth_error_url: str

        :param bot_id:
            The value to assign to the bot_id property of this SlackChannel.
        :type bot_id: str

        :param webhook_url:
            The value to assign to the webhook_url property of this SlackChannel.
        :type webhook_url: str

        ÚidÚstrÚnameÚdescriptionÚcategoryÚtypeZ'session_expiry_duration_in_millisecondsÚintZlifecycle_stateZtime_createdÚdatetimeZtime_updatedZfreeform_tagszdict(str, str)Zdefined_tagszdict(str, dict(str, object))Ú	client_idÚauth_success_urlÚauth_error_urlÚbot_idÚwebhook_urlZ#sessionExpiryDurationInMillisecondsZlifecycleStateZtimeCreatedZtimeUpdatedZfreeformTagsZdefinedTagsZclientIdZauthSuccessUrlZauthErrorUrlZbotIdZ
webhookUrlNZSLACK)Zswagger_typesZattribute_mapZ_idÚ_nameZ_descriptionZ	_categoryZ_typeZ(_session_expiry_duration_in_millisecondsZ_lifecycle_stateZ_time_createdZ_time_updatedZ_freeform_tagsZ_defined_tagsÚ
_client_idÚ_auth_success_urlÚ_auth_error_urlÚ_bot_idÚ_webhook_url)ÚselfÚkwargs© r   ú@usr/lib/python3.10/site-packages/oci/oda/models/slack_channel.pyÚ__init__   s¦   Jÿþýüûúùø	÷
öõôóòñðÿþýüûúùø	÷
öõôóòñð
zSlackChannel.__init__c                 C   ó   | j S )zÃ
        **[Required]** Gets the client_id of this SlackChannel.
        The Slack Client Id for the Slack app.


        :return: The client_id of this SlackChannel.
        :rtype: str
        ©r   ©r   r   r   r   r   ”   ó   
zSlackChannel.client_idc                 C   ó
   || _ dS )z¼
        Sets the client_id of this SlackChannel.
        The Slack Client Id for the Slack app.


        :param client_id: The client_id of this SlackChannel.
        :type: str
        Nr"   )r   r   r   r   r   r       ó   

c                 C   r!   )zÕ
        Gets the auth_success_url of this SlackChannel.
        The URL to redirect to when authentication is successful.


        :return: The auth_success_url of this SlackChannel.
        :rtype: str
        ©r   r#   r   r   r   r   ¬   r$   zSlackChannel.auth_success_urlc                 C   r%   )zä
        Sets the auth_success_url of this SlackChannel.
        The URL to redirect to when authentication is successful.


        :param auth_success_url: The auth_success_url of this SlackChannel.
        :type: str
        Nr'   )r   r   r   r   r   r   ¸   r&   c                 C   r!   )zÓ
        Gets the auth_error_url of this SlackChannel.
        The URL to redirect to when authentication is unsuccessful.


        :return: The auth_error_url of this SlackChannel.
        :rtype: str
        ©r   r#   r   r   r   r   Ä   r$   zSlackChannel.auth_error_urlc                 C   r%   )zà
        Sets the auth_error_url of this SlackChannel.
        The URL to redirect to when authentication is unsuccessful.


        :param auth_error_url: The auth_error_url of this SlackChannel.
        :type: str
        Nr(   )r   r   r   r   r   r   Ð   r&   c                 C   r!   )zÏ
        Gets the bot_id of this SlackChannel.
        The ID of the Skill or Digital Assistant that the Channel is routed to.


        :return: The bot_id of this SlackChannel.
        :rtype: str
        ©r   r#   r   r   r   r   Ü   r$   zSlackChannel.bot_idc                 C   r%   )zÔ
        Sets the bot_id of this SlackChannel.
        The ID of the Skill or Digital Assistant that the Channel is routed to.


        :param bot_id: The bot_id of this SlackChannel.
        :type: str
        Nr)   )r   r   r   r   r   r   è   r&   c                 C   r!   )aQ  
        **[Required]** Gets the webhook_url of this SlackChannel.
        The URL to use to send messages to this channel.
        This will be generally be used to configure a webhook in a 3rd party messaging system to send messages to this channel.


        :return: The webhook_url of this SlackChannel.
        :rtype: str
        ©r   r#   r   r   r   r   ô   s   zSlackChannel.webhook_urlc                 C   r%   )aL  
        Sets the webhook_url of this SlackChannel.
        The URL to use to send messages to this channel.
        This will be generally be used to configure a webhook in a 3rd party messaging system to send messages to this channel.


        :param webhook_url: The webhook_url of this SlackChannel.
        :type: str
        Nr*   )r   r   r   r   r   r     s   
c                 C   s   t | ƒS ©N)r   r#   r   r   r   Ú__repr__  s   zSlackChannel.__repr__c                 C   s   |d u rdS | j |j kS )NF)Ú__dict__©r   Úotherr   r   r   Ú__eq__  s   zSlackChannel.__eq__c                 C   s
   | |k S r+   r   r.   r   r   r   Ú__ne__  s   
zSlackChannel.__ne__N)Ú__name__Ú
__module__Ú__qualname__Ú__doc__r    Úpropertyr   Úsetterr   r   r   r   r,   r0   r1   r   r   r   r   r      s6     









r   N)	Zchannelr   Zoci.utilr   r   r   Zoci.decoratorsr   r   r   r   r   r   Ú<module>   s
   