
    i?1i                     |    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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)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      n/home/www/therecruiter.miabetepe.com/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                  fde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                  fde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chat_friendly_namecustomer_friendly_namepre_engagement_datar   c                     t        j                  ||||d      }| j                  j                  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 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.

        :returns: The created WebChannelsInstance
        
AddressSidChatFriendlyNameCustomerFriendlyNamePreEngagementDataPOSTmethoduridata)r   of_versioncreater)   r   r   r*   r+   r,   r-   r8   r   s          r   r;   zWebChannelsList.create;   s^    " yy)$6(>%8	
 --&&		 ' 
 #4=='::r   c                    K   t        j                  ||||d      }| j                  j                  d| 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 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.

        :returns: The created WebChannelsInstance
        r/   r4   r5   N)r   r9   r:   create_asyncr)   r   r<   s          r   r>   zWebChannelsList.create_async]   sl     " yy)$6(>%8	
 22		 3 
 
 #4=='::
s   A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   objectr   r;   r>   r   r$   r%   s   @r   r'   r'   /   s    	  	  285;\\28,, ; ; "#v+. ; !&c6k 2	 ;
 #3;/ ; 
 ;J 285;\\28,, ; ; "#v+. ; !&c6k 2	 ;
 #3;/ ; 
 ;D5# 5r   r'   N)r"   typingr   r   r   r   twilio.baser   twilio.base.instance_resourcer   twilio.base.list_resourcer	   twilio.base.versionr
   r   r'   r   r   r   <module>rG      s9    . -  : 2 '9* 9.V5l V5r   