U
    ^g%i                     @   sp   d Z ddlmZmZmZmZ ddlmZ ddlm	Z	 ddl
mZ ddlmZ G dd de	ZG d	d
 d
eZdS )a  
    This code was generated by
   ___ _ _ _ _ _    _ ____    ____ ____ _    ____ ____ _  _ ____ ____ ____ ___ __   __
    |  | | | | |    | |  | __ |  | |__| | __ | __ |___ |\ | |___ |__/ |__|  | |  | |__/
    |  |_|_| | |___ | |__|    |__| |  | |    |__] |___ | \| |___ |  \ |  |  | |__| |  \

    Twilio - Flex
    This is the public Twilio REST API.

    NOTE: This class is auto generated by OpenAPI Generator.
    https://openapi-generator.tech
    Do not edit the class manually.
    )AnyDictOptionalUnion)values)InstanceResource)ListResource)Versionc                       s>   e Zd ZdZeeeef d fddZedddZ	  Z
S )WebChannelsInstancea  
    :ivar conversation_sid: The unique string representing the [Conversation resource](https://www.twilio.com/docs/conversations/api/conversation-resource) created.
    :ivar identity: The unique string representing the User created and should be authorized to participate in the Conversation. For more details, see [User Identity & Access Tokens](https://www.twilio.com/docs/conversations/identity).
    )versionpayloadc                    s(   t  | |d| _|d| _d S )Nconversation_sididentity)super__init__getr   r   )selfr   r   	__class__ c/var/www/html/api-medvista/venv/lib/python3.8/site-packages/twilio/rest/flex_api/v2/web_channels.pyr      s    zWebChannelsInstance.__init__returnc                 C   s   dS )f
        Provide a friendly representation

        :returns: Machine friendly representation
        z'<Twilio.FlexApi.V2.WebChannelsInstance>r   r   r   r   r   __repr__#   s    zWebChannelsInstance.__repr__)__name__
__module____qualname____doc__r	   r   strr   r   r   __classcell__r   r   r   r   r
      s   r
   c                	       s   e Zd Zed fddZejejejejejfeeee	f eee	f eee	f eee	f eee	f e
dddZejejejejejfeeee	f eee	f eee	f eee	f eee	f e
dddZed	d
dZ  ZS )WebChannelsList)r   c                    s   t  | d| _dS )zm
        Initialize the WebChannelsList

        :param version: Version that contains the resource

        z	/WebChatsN)r   r   _uri)r   r   r   r   r   r   /   s    zWebChannelsList.__init__)address_sid
ui_versionchat_friendly_namecustomer_friendly_namepre_engagement_datar   r   c           
      C   sX   t |||||d}t |dd}d|d< d|d< | jjd| j||d}	t| j|	S )	a  
        Create the WebChannelsInstance

        :param address_sid: The SID of the Conversations Address. See [Address Configuration Resource](https://www.twilio.com/docs/conversations/api/address-configuration-resource) for configuration details. When a conversation is created on the Flex backend, the callback URL will be set to the corresponding Studio Flow SID or webhook URL in your address configuration.
        :param ui_version: The Ui-Version HTTP request header
        :param chat_friendly_name: The Conversation's friendly name. See the [Conversation resource](https://www.twilio.com/docs/conversations/api/conversation-resource) for an example.
        :param customer_friendly_name: The Conversation participant's friendly name. See the [Conversation Participant Resource](https://www.twilio.com/docs/conversations/api/conversation-participant-resource) for an example.
        :param pre_engagement_data: The pre-engagement data.
        :param identity: The Identity of the guest user. See the [Conversation User Resource](https://www.twilio.com/docs/conversations/api/user-resource) for an example.

        :returns: The created WebChannelsInstance
        Z
AddressSidZChatFriendlyNameZCustomerFriendlyNameZPreEngagementDataZIdentity!application/x-www-form-urlencodedz
Ui-VersionContent-Typer,   application/jsonAcceptPOSTmethoduridataheaders)r   of_versioncreater#   r
   
r   r$   r%   r&   r'   r(   r   r3   r4   r   r   r   r   r7   :   s,    	   zWebChannelsList.createc           
         s^   t |||||d}t |dd}d|d< d|d< | jjd| j||dI d	H }	t| j|	S )
a  
        Asynchronously create the WebChannelsInstance

        :param address_sid: The SID of the Conversations Address. See [Address Configuration Resource](https://www.twilio.com/docs/conversations/api/address-configuration-resource) for configuration details. When a conversation is created on the Flex backend, the callback URL will be set to the corresponding Studio Flow SID or webhook URL in your address configuration.
        :param ui_version: The Ui-Version HTTP request header
        :param chat_friendly_name: The Conversation's friendly name. See the [Conversation resource](https://www.twilio.com/docs/conversations/api/conversation-resource) for an example.
        :param customer_friendly_name: The Conversation participant's friendly name. See the [Conversation Participant Resource](https://www.twilio.com/docs/conversations/api/conversation-participant-resource) for an example.
        :param pre_engagement_data: The pre-engagement data.
        :param identity: The Identity of the guest user. See the [Conversation User Resource](https://www.twilio.com/docs/conversations/api/user-resource) for an example.

        :returns: The created WebChannelsInstance
        r)   r*   r+   r,   r-   r.   r/   r0   N)r   r5   r6   create_asyncr#   r
   r8   r   r   r   r9   j   s,    	   zWebChannelsList.create_asyncr   c                 C   s   dS )r   z#<Twilio.FlexApi.V2.WebChannelsList>r   r   r   r   r   r      s    zWebChannelsList.__repr__)r   r   r   r	   r   r   unsetr    r   objectr
   r7   r9   r   r!   r   r   r   r   r"   -   s<   




3




0r"   N)r   typingr   r   r   r   Ztwilio.baser   Ztwilio.base.instance_resourcer   Ztwilio.base.list_resourcer   Ztwilio.base.versionr	   r
   r"   r   r   r   r   <module>   s   