
    d{iS`                         d Z ddlmZ ddlmZmZmZmZmZ ddl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 - Conversations
    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.
    )datetime)AnyDictListOptionalUnion)deserialize	serializevalues)ApiResponse)InstanceResource)ListResource)Versionc                   l     e Zd Z G d de      Z G d de      Z	 dedeee	f   f fdZ
defd	Z xZS )
$ConversationWithParticipantsInstancec                       e Zd ZdZdZdZdZy)*ConversationWithParticipantsInstance.StateinitializinginactiveactiveclosedN)__name__
__module____qualname__INITIALIZINGINACTIVEACTIVECLOSED     y/home/sas/my/fyp/ringai/.venv/lib/python3.12/site-packages/twilio/rest/conversations/v1/conversation_with_participants.pyStater      s    %r    r"   c                       e Zd ZdZdZy)7ConversationWithParticipantsInstance.WebhookEnabledTypetruefalseN)r   r   r   TRUEFALSEr   r    r!   WebhookEnabledTyper$   !   s    r    r)   versionpayloadc                    t         |   |       |j                  d      | _        |j                  d      | _        |j                  d      | _        |j                  d      | _        |j                  d      | _        |j                  d      | _        |j                  d      | _	        |j                  d      | _
        t        j                  |j                  d	            | _        t        j                  |j                  d
            | _        |j                  d      | _        |j                  d      | _        |j                  d      | _        |j                  d      | _        y )Naccount_sidchat_service_sidmessaging_service_sidsidfriendly_nameunique_name
attributesstatedate_createddate_updatedtimerslinksbindingsurl)super__init__getr-   r.   r/   r0   r1   r2   r3   r4   r	   iso8601_datetimer5   r6   r7   r8   r9   r:   )selfr*   r+   	__class__s      r!   r<   z-ConversationWithParticipantsInstance.__init__6   s   !*1++m*D/6{{;M/N4;KK@W4X"")++e"4,3KK,H*1++m*D)0\)BKK  	
 1<0L0LKK'1
 1<0L0LKK'1
 4;;;x3H29++g2F
5<[[5L")++e"4r    returnc                      y)f
        Provide a friendly representation

        :returns: Machine friendly representation
        z><Twilio.Conversations.V1.ConversationWithParticipantsInstance>r   r?   s    r!   __repr__z-ConversationWithParticipantsInstance.__repr__N   s     Pr    )r   r   r   objectr"   r)   r   r   strr   r<   rE   __classcell__r@   s   @r!   r   r      sI     V "5 5$sCx. 50P# Pr    r   c                       e Zd Zdef fdZej                  ej                  ej                  ej                  ej                  ej                  ej                  ej                  ej                  ej                  ej                  ej                  ej                  fdedef   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e	ef   dedef   dee	ef   dee	ef   dee	ef   dee	ef   deee	   ef   defdZej                  ej                  ej                  ej                  ej                  ej                  ej                  ej                  ej                  ej                  ej                  ej                  ej                  fdedef   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e	ef   dedef   dee	ef   dee	ef   dee	ef   dee	ef   deee	   ef   defdZej                  ej                  ej                  ej                  ej                  ej                  ej                  ej                  ej                  ej                  ej                  ej                  ej                  fdedef   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e	ef   dedef   dee	ef   dee	ef   dee	ef   dee	ef   deee	   ef   defdZej                  ej                  ej                  ej                  ej                  ej                  ej                  ej                  ej                  ej                  ej                  ej                  ej                  fdedef   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e	ef   dedef   dee	ef   dee	ef   dee	ef   dee	ef   deee	   ef   defdZej                  ej                  ej                  ej                  ej                  ej                  ej                  ej                  ej                  ej                  ej                  ej                  ej                  fdedef   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e	ef   dedef   dee	ef   dee	ef   dee	ef   dee	ef   deee	   ef   defdZej                  ej                  ej                  ej                  ej                  ej                  ej                  ej                  ej                  ej                  ej                  ej                  ej                  fdedef   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e	ef   dedef   dee	ef   dee	ef   dee	ef   dee	ef   deee	   ef   defdZde	fdZ xZS ) ConversationWithParticipantsListr*   c                 2    t         |   |       d| _        y)z~
        Initialize the ConversationWithParticipantsList

        :param version: Version that contains the resource

        z/ConversationWithParticipantsN)r;   r<   _uri)r?   r*   r@   s     r!   r<   z)ConversationWithParticipantsList.__init__Z   s     	!3	r    x_twilio_webhook_enabledr$   r1   r2   r5   r6   r/   r3   r4   r   timers_inactivetimers_closedbindings_email_addressbindings_email_nameparticipantrA   c                 R   t        j                  ||t        j                  |      t        j                  |      ||||	|
||t        j                  |d       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)
        c                     | S Nr   es    r!   <lambda>z:ConversationWithParticipantsList._create.<locals>.<lambda>       A r    FriendlyName
UniqueNameDateCreatedDateUpdatedMessagingServiceSid
Attributesr"   zTimers.InactivezTimers.ClosedzBindings.Email.AddresszBindings.Email.NameParticipant!application/x-www-form-urlencodedzX-Twilio-Webhook-EnabledContent-Typere   application/jsonAcceptPOSTmethoduridataheaders)r   ofr
   r>   map_versioncreate_with_response_inforM   r?   rN   r1   r2   r5   r6   r/   r3   r4   rO   rP   rQ   rR   rS   rl   rm   s                   r!   _createz(ConversationWithParticipantsList._createe   s    6 yy -)(99,G(99,G'<(#2!.*@':(}}[+F
  )),D C
 #F.}}66tyytW 7 
 	
r    c                 r    | j                  |||||||||	|
|||      \  }}}t        | j                  |      S )a  
        Create the ConversationWithParticipantsInstance

        :param x_twilio_webhook_enabled: The X-Twilio-Webhook-Enabled HTTP request header
        :param friendly_name: The human-readable name of this conversation, limited to 256 characters. Optional.
        :param unique_name: An application-defined string that uniquely identifies the resource. It can be used to address the resource in place of the resource's `sid` in the URL.
        :param date_created: The date that this resource was created.
        :param date_updated: The date that this resource was last updated.
        :param messaging_service_sid: The unique ID of the [Messaging Service](https://www.twilio.com/docs/messaging/api/service-resource) this conversation belongs to.
        :param attributes: An optional string metadata field you can use to store any data you wish. The string value must contain structurally valid JSON if specified.  **Note** that if the attributes are not set \"{}\" will be returned.
        :param state:
        :param timers_inactive: ISO8601 duration when conversation will be switched to `inactive` state. Minimum value for this timer is 1 minute.
        :param timers_closed: ISO8601 duration when conversation will be switched to `closed` state. Minimum value for this timer is 10 minutes.
        :param bindings_email_address: The default email address that will be used when sending outbound emails in this conversation.
        :param bindings_email_name: The default name that will be used when sending outbound emails in this conversation.
        :param participant: The participant to be added to the conversation in JSON format. The JSON object attributes are as parameters in [Participant Resource](https://www.twilio.com/docs/conversations/api/conversation-participant-resource). The maximum number of participants that can be added in a single request is 10.

        :returns: The created ConversationWithParticipantsInstance
        rN   r1   r2   r5   r6   r/   r3   r4   rO   rP   rQ   rR   rS   )rs   r   rp   r?   rN   r1   r2   r5   r6   r/   r3   r4   rO   rP   rQ   rR   rS   r+   _s                   r!   createz'ConversationWithParticipantsList.create   sX    N %='#%%"7!+'#9 3# % 
A 4DMM7KKr    c                     | j                  |||||||||	|
|||      \  }}}t        | j                  |      }t        |||      S )a  
        Create the ConversationWithParticipantsInstance and return response metadata

        :param x_twilio_webhook_enabled: The X-Twilio-Webhook-Enabled HTTP request header
        :param friendly_name: The human-readable name of this conversation, limited to 256 characters. Optional.
        :param unique_name: An application-defined string that uniquely identifies the resource. It can be used to address the resource in place of the resource's `sid` in the URL.
        :param date_created: The date that this resource was created.
        :param date_updated: The date that this resource was last updated.
        :param messaging_service_sid: The unique ID of the [Messaging Service](https://www.twilio.com/docs/messaging/api/service-resource) this conversation belongs to.
        :param attributes: An optional string metadata field you can use to store any data you wish. The string value must contain structurally valid JSON if specified.  **Note** that if the attributes are not set \"{}\" will be returned.
        :param state:
        :param timers_inactive: ISO8601 duration when conversation will be switched to `inactive` state. Minimum value for this timer is 1 minute.
        :param timers_closed: ISO8601 duration when conversation will be switched to `closed` state. Minimum value for this timer is 10 minutes.
        :param bindings_email_address: The default email address that will be used when sending outbound emails in this conversation.
        :param bindings_email_name: The default name that will be used when sending outbound emails in this conversation.
        :param participant: The participant to be added to the conversation in JSON format. The JSON object attributes are as parameters in [Participant Resource](https://www.twilio.com/docs/conversations/api/conversation-participant-resource). The maximum number of participants that can be added in a single request is 10.

        :returns: ApiResponse with instance, status code, and headers
        ru   rl   status_coderm   )rs   r   rp   r   r?   rN   r1   r2   r5   r6   r/   r3   r4   rO   rP   rQ   rR   rS   r+   r{   rm   instances                     r!   create_with_http_infoz6ConversationWithParticipantsList.create_with_http_info   sg    N )-%='#%%"7!+'#9 3# )5 )
%g 8wOk7SSr    c                 n  K   t        j                  ||t        j                  |      t        j                  |      ||||	|
||t        j                  |d       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)
        c                     | S rV   r   rW   s    r!   rY   z@ConversationWithParticipantsList._create_async.<locals>.<lambda>8  rZ   r    r[   rc   rd   re   rf   rg   rh   ri   N)r   rn   r
   r>   ro   rp   create_with_response_info_asyncrM   rr   s                   r!   _create_asyncz.ConversationWithParticipantsList._create_async  s     6 yy -)(99,G(99,G'<(#2!.*@':(}}[+F
  )),D C
 #F.]]BBtyytW C 
 
 	
 
s   B,B5.B3/B5c                    K   | j                  |||||||||	|
|||       d{   \  }}}t        | j                  |      S 7 w)a  
        Asynchronously create the ConversationWithParticipantsInstance

        :param x_twilio_webhook_enabled: The X-Twilio-Webhook-Enabled HTTP request header
        :param friendly_name: The human-readable name of this conversation, limited to 256 characters. Optional.
        :param unique_name: An application-defined string that uniquely identifies the resource. It can be used to address the resource in place of the resource's `sid` in the URL.
        :param date_created: The date that this resource was created.
        :param date_updated: The date that this resource was last updated.
        :param messaging_service_sid: The unique ID of the [Messaging Service](https://www.twilio.com/docs/messaging/api/service-resource) this conversation belongs to.
        :param attributes: An optional string metadata field you can use to store any data you wish. The string value must contain structurally valid JSON if specified.  **Note** that if the attributes are not set \"{}\" will be returned.
        :param state:
        :param timers_inactive: ISO8601 duration when conversation will be switched to `inactive` state. Minimum value for this timer is 1 minute.
        :param timers_closed: ISO8601 duration when conversation will be switched to `closed` state. Minimum value for this timer is 10 minutes.
        :param bindings_email_address: The default email address that will be used when sending outbound emails in this conversation.
        :param bindings_email_name: The default name that will be used when sending outbound emails in this conversation.
        :param participant: The participant to be added to the conversation in JSON format. The JSON object attributes are as parameters in [Participant Resource](https://www.twilio.com/docs/conversations/api/conversation-participant-resource). The maximum number of participants that can be added in a single request is 10.

        :returns: The created ConversationWithParticipantsInstance
        ru   N)r   r   rp   rv   s                   r!   create_asyncz-ConversationWithParticipantsList.create_asyncJ  sh     N #00%='#%%"7!+'#9 3# 1 
 
A 4DMM7KK
s   "AAAc                    K   | j                  |||||||||	|
|||       d{   \  }}}t        | j                  |      }t        |||      S 7 ,w)a  
        Asynchronously create the ConversationWithParticipantsInstance and return response metadata

        :param x_twilio_webhook_enabled: The X-Twilio-Webhook-Enabled HTTP request header
        :param friendly_name: The human-readable name of this conversation, limited to 256 characters. Optional.
        :param unique_name: An application-defined string that uniquely identifies the resource. It can be used to address the resource in place of the resource's `sid` in the URL.
        :param date_created: The date that this resource was created.
        :param date_updated: The date that this resource was last updated.
        :param messaging_service_sid: The unique ID of the [Messaging Service](https://www.twilio.com/docs/messaging/api/service-resource) this conversation belongs to.
        :param attributes: An optional string metadata field you can use to store any data you wish. The string value must contain structurally valid JSON if specified.  **Note** that if the attributes are not set \"{}\" will be returned.
        :param state:
        :param timers_inactive: ISO8601 duration when conversation will be switched to `inactive` state. Minimum value for this timer is 1 minute.
        :param timers_closed: ISO8601 duration when conversation will be switched to `closed` state. Minimum value for this timer is 10 minutes.
        :param bindings_email_address: The default email address that will be used when sending outbound emails in this conversation.
        :param bindings_email_name: The default name that will be used when sending outbound emails in this conversation.
        :param participant: The participant to be added to the conversation in JSON format. The JSON object attributes are as parameters in [Participant Resource](https://www.twilio.com/docs/conversations/api/conversation-participant-resource). The maximum number of participants that can be added in a single request is 10.

        :returns: ApiResponse with instance, status code, and headers
        ru   Nrz   )r   r   rp   r   r|   s                     r!   create_with_http_info_asyncz<ConversationWithParticipantsList.create_with_http_info_async  sx     N /3.@.@%='#%%"7!+'#9 3# /A /
 )
%g 8wOk7SS!)
s   "AA-Ac                      y)rC   z:<Twilio.Conversations.V1.ConversationWithParticipantsList>r   rD   s    r!   rE   z)ConversationWithParticipantsList.__repr__  s     Lr    )r   r   r   r   r<   r   unsetr   rF   rG   r   r   tuplers   r   rx   r   r~   r   r   r   rE   rH   rI   s   @r!   rK   rK   X   s	   	4 	4 LL,2LL*0,,06064:LL)/ LL.4ll,2LL5;\\28,,06%8
"'EvM#
8

 S&[)8
 3;'8
 Hf,-8
 Hf,-8
  %S&[18
 #v+&8
 8&@
8
 sF{+8
 S&[)8
  !&c6k 2!8
" #3;/#8
$ 49f,-%8
& 
'8
| LL,2LL*0,,06064:LL)/ LL.4ll,2LL5;\\28,,06%6L"'EvM#
6L
 S&[)6L 3;'6L Hf,-6L Hf,-6L  %S&[16L #v+&6L 8&@
6L sF{+6L S&[)6L  !&c6k 2!6L" #3;/#6L$ 49f,-%6L& 
.'6Lx LL,2LL*0,,06064:LL)/ LL.4ll,2LL5;\\28,,06%7T"'EvM#
7T
 S&[)7T 3;'7T Hf,-7T Hf,-7T  %S&[17T #v+&7T 8&@
7T sF{+7T S&[)7T  !&c6k 2!7T" #3;/#7T$ 49f,-%7T& 
'7Tz LL,2LL*0,,06064:LL)/ LL.4ll,2LL5;\\28,,06%8
"'EvM#
8

 S&[)8
 3;'8
 Hf,-8
 Hf,-8
  %S&[18
 #v+&8
 8&@
8
 sF{+8
 S&[)8
  !&c6k 2!8
" #3;/#8
$ 49f,-%8
& 
'8
| LL,2LL*0,,06064:LL)/ LL.4ll,2LL5;\\28,,06%6L"'EvM#
6L
 S&[)6L 3;'6L Hf,-6L Hf,-6L  %S&[16L #v+&6L 8&@
6L sF{+6L S&[)6L  !&c6k 2!6L" #3;/#6L$ 49f,-%6L& 
.'6Lx LL,2LL*0,,06064:LL)/ LL.4ll,2LL5;\\28,,06%7T"'EvM#
7T
 S&[)7T 3;'7T Hf,-7T Hf,-7T  %S&[17T #v+&7T 8&@
7T sF{+7T S&[)7T  !&c6k 2!7T" #3;/#7T$ 49f,-%7T& 
'7TrL# Lr    rK   N)__doc__r   typingr   r   r   r   r   twilio.baser	   r
   r   twilio.base.api_responser   twilio.base.instance_resourcer   twilio.base.list_resourcer   twilio.base.versionr   r   rK   r   r    r!   <module>r      sG     3 3 6 6 0 : 2 '<P+; <P~iL| iLr    