
    d{i2                         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 ddlmZ  G d d	e      Z G d
 de      Zy)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)ApiResponse)InstanceResource)ListResource)Versionc                   B     e Zd ZdZdedeeef   f fdZdefdZ	 x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                 |    t         |   |       |j                  d      | _        |j                  d      | _        y )Nconversation_sididentity)super__init__getr   r   )selfr   r   	__class__s      b/home/sas/my/fyp/ringai/.venv/lib/python3.12/site-packages/twilio/rest/flex_api/v2/web_channels.pyr   zWebChannelsInstance.__init__   s2    !/6{{;M/N'.{{:'>    returnc                      y)f
        Provide a friendly representation

        :returns: Machine friendly representation
        z'<Twilio.FlexApi.V2.WebChannelsInstance> r   s    r   __repr__zWebChannelsInstance.__repr__$   s     9r   )__name__
__module____qualname____doc__r   r   strr   r   r   __classcell__r   s   @r   r   r      s/    
? ?$sCx. ?9# 9r   r   c                       e Zd Zdef fdZej                  ej                  ej                  ej                  ej                  fdedeee	f   deee	f   deee	f   deee	f   deee	f   d	e
fd
Zej                  ej                  ej                  ej                  ej                  fdedeee	f   deee	f   deee	f   deee	f   deee	f   d	efdZej                  ej                  ej                  ej                  ej                  fdedeee	f   deee	f   deee	f   deee	f   deee	f   d	efdZej                  ej                  ej                  ej                  ej                  fdedeee	f   deee	f   deee	f   deee	f   deee	f   d	e
fdZej                  ej                  ej                  ej                  ej                  fdedeee	f   deee	f   deee	f   deee	f   deee	f   d	efdZej                  ej                  ej                  ej                  ej                  fdedeee	f   deee	f   deee	f   deee	f   deee	f   d	efdZd	efdZ xZS )WebChannelsListr   c                 2    t         |   |       d| _        y)zm
        Initialize the WebChannelsList

        :param version: Version that contains the resource

        z	/WebChatsN)r   r   _uri)r   r   r   s     r   r   zWebChannelsList.__init__0   s     	!	r   address_sid
ui_versionchat_friendly_namecustomer_friendly_namepre_engagement_datar   r   c                     t        j                  |||||d      }t        j                  |dd      }d|d<   d|d<   | j                  j                  d| j                  ||      S )	z{
        Internal helper for create operation

        Returns:
            tuple: (payload, status_code, headers)
        
AddressSidChatFriendlyNameCustomerFriendlyNamePreEngagementDataIdentity!application/x-www-form-urlencodedz
Ui-VersionContent-Typer9   application/jsonAcceptPOSTmethoduridataheaders)r   of_versioncreate_with_response_infor*   	r   r+   r,   r-   r.   r/   r   r@   rA   s	            r   _createzWebChannelsList._create;   s      yy)$6(>%8$
 ))( C
 #F.}}66tyytW 7 
 	
r   c                 d    | j                  ||||||      \  }}}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
        r+   r,   r-   r.   r/   r   )rF   r   rC   	r   r+   r,   r-   r.   r/   r   r   _s	            r   createzWebChannelsList.createc   sB    * #!1#9 3 % 
A #4=='::r   c                     | j                  ||||||      \  }}}	t        | j                  |      }
t        |
||	      S )a  
        Create the WebChannelsInstance and return response metadata

        :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: ApiResponse with instance, status code, and headers
        rH   r@   status_coderA   )rF   r   rC   r   r   r+   r,   r-   r.   r/   r   r   rN   rA   instances              r   create_with_http_infoz%WebChannelsList.create_with_http_info   sQ    * )-#!1#9 3 )5 )
%g 't}}g>k7SSr   c                    K   t        j                  |||||d      }t        j                  |dd      }d|d<   d|d<   | j                  j                  d| j                  ||       d	{   S 7 w)
z
        Internal async helper for create operation

        Returns:
            tuple: (payload, status_code, headers)
        r1   r7   r8   r9   r:   r;   r<   r=   N)r   rB   rC   create_with_response_info_asyncr*   rE   s	            r   _create_asynczWebChannelsList._create_async   s       yy)$6(>%8$
 ))( C
 #F.]]BBtyytW C 
 
 	
 
s   A*A3,A1-A3c                    K   | j                  ||||||       d{   \  }}}t        | j                  |      S 7 w)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
        rH   N)rT   r   rC   rI   s	            r   create_asynczWebChannelsList.create_async   sR     * #00#!1#9 3 1 
 
A #4=='::
s   ><>c                    K   | j                  ||||||       d{   \  }}}	t        | j                  |      }
t        |
||	      S 7 ,w)a  
        Asynchronously create the WebChannelsInstance and return response metadata

        :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: ApiResponse with instance, status code, and headers
        rH   NrM   )rT   r   rC   r   rO   s              r   create_with_http_info_asyncz+WebChannelsList.create_with_http_info_async   sb     * /3.@.@#!1#9 3 /A /
 )
%g 't}}g>k7SS)
s   AA
-Ac                      y)r   z#<Twilio.FlexApi.V2.WebChannelsList>r   r   s    r   r   zWebChannelsList.__repr__	  s     5r   )r    r!   r"   r   r   r   unsetr$   r   objecttuplerF   r   rK   r   rQ   rT   rV   rX   r   r%   r&   s   @r   r(   r(   .   s   	  	  *0175;\\28,,'-||&
&
 #v+&&
 "#v+.	&

 !&c6k 2&
 #3;/&
 V$&
 
&
V *0175;\\28,,'-||;; #v+&; "#v+.	;
 !&c6k 2; #3;/; V$; 
;D *0175;\\28,,'-||TT #v+&T "#v+.	T
 !&c6k 2T #3;/T V$T 
TF *0175;\\28,,'-||&
&
 #v+&&
 "#v+.	&

 !&c6k 2&
 #3;/&
 V$&
 
&
V *0175;\\28,,'-||;; #v+&; "#v+.	;
 !&c6k 2; #3;/; V$; 
;D *0175;\\28,,'-||TT #v+&T "#v+.	T
 !&c6k 2T #3;/T V$T 
T@5# 5r   r(   N)r#   typingr   r   r   r   twilio.baser   twilio.base.api_responser   twilio.base.instance_resourcer	   twilio.base.list_resourcer
   twilio.base.versionr   r   r(   r   r   r   <module>rc      s<    . -  0 : 2 '9* 9,a5l a5r   