
    gG4                         S r SSKJr  SSKJrJrJrJrJr  SSKJ	r	J
r
Jr  SSKJr  SSKJr  SSKJr   " S S	\5      r " S
 S\5      rg)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)InstanceResource)ListResource)Versionc                   z   ^  \ rS rSr " S S\5      r " S S\5      r S\S\\	\
4   4U 4S jjrS	\	4S
 jrSrU =r$ )$ConversationWithParticipantsInstance   c                        \ rS rSrSrSrSrSrg)*ConversationWithParticipantsInstance.State   inactiveactiveclosed N)__name__
__module____qualname____firstlineno__INACTIVEACTIVECLOSED__static_attributes__r       ڃ/Users/Alptekin/Desktop/izin_takip/venv/lib/python3.13/site-packages/twilio/rest/conversations/v1/conversation_with_participants.pyStater      s    r!   r#   c                       \ rS rSrSrSrSrg)7ConversationWithParticipantsInstance.WebhookEnabledType   truefalser   N)r   r   r   r   TRUEFALSEr    r   r!   r"   WebhookEnabledTyper%      s    r!   r+   versionpayloadc                   > [         TU ]  U5        UR                  S5      U l        UR                  S5      U l        UR                  S5      U l        UR                  S5      U l        UR                  S5      U l        UR                  S5      U l        UR                  S5      U l	        UR                  S5      U l
        [        R                  " UR                  S	5      5      U l        [        R                  " UR                  S
5      5      U l        UR                  S5      U l        UR                  S5      U l        UR                  S5      U l        UR                  S5      U l        g )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/   r0   r1   r2   r3   r4   r5   r6   r	   iso8601_datetimer7   r8   r9   r:   r;   r<   )selfr,   r-   	__class__s      r"   r>   -ConversationWithParticipantsInstance.__init__4   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                     g)N
Provide a friendly representation

:returns: Machine friendly representation
z><Twilio.Conversations.V1.ConversationWithParticipantsInstance>r   rA   s    r"   __repr__-ConversationWithParticipantsInstance.__repr__L   s     Pr!   )r/   r5   r;   r0   r7   r8   r3   r:   r1   r2   r6   r9   r4   r<   )r   r   r   r   objectr#   r+   r   r   strr   r>   rH   r    __classcell__rB   s   @r"   r   r      sO     
V "5 5$sCx. 50P# P Pr!   r   c                     ^  \ rS rSrS\4U 4S jjr\R                  \R                  \R                  \R                  \R                  \R                  \R                  \R                  \R                  \R                  \R                  \R                  \R                  4S\S\	4   S\\
\	4   S\\
\	4   S\\\	4   S	\\\	4   S
\\
\	4   S\\
\	4   S\S\	4   S\\
\	4   S\\
\	4   S\\
\	4   S\\
\	4   S\\\
   \	4   S\4S jjr\R                  \R                  \R                  \R                  \R                  \R                  \R                  \R                  \R                  \R                  \R                  \R                  \R                  4S\S\	4   S\\
\	4   S\\
\	4   S\\\	4   S	\\\	4   S
\\
\	4   S\\
\	4   S\S\	4   S\\
\	4   S\\
\	4   S\\
\	4   S\\
\	4   S\\\
   \	4   S\4S jjrS\
4S jrSrU =r$ ) ConversationWithParticipantsListV   r,   c                 2   > [         TU ]  U5        SU l        g)zf
Initialize the ConversationWithParticipantsList

:param version: Version that contains the resource

z/ConversationWithParticipantsN)r=   r>   _uri)rA   r,   rB   s     r"   r>   )ConversationWithParticipantsList.__init__X   s     	!3	r!   x_twilio_webhook_enabledr%   r3   r4   r7   r8   r1   r5   r6   r   timers_inactivetimers_closedbindings_email_addressbindings_email_nameparticipantrD   c                    [         R                  " UU[        R                  " U5      [        R                  " U5      UUUU	U
UU[        R                  " US 5      S.5      n[         R                  " USS.5      nSUS'   SUS'   U R
                  R                  SU R                  XS	9n[        U R
                  U5      $ )
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
c                     U $ Nr   es    r"   <lambda>9ConversationWithParticipantsList.create.<locals>.<lambda>       Ar!   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-Typerl   application/jsonAcceptPOSTmethoduridataheaders)	r   ofr
   r@   map_versioncreaterR   r   rA   rT   r3   r4   r7   r8   r1   r5   r6   rU   rV   rW   rX   rY   rs   rt   r-   s                    r"   rx   'ConversationWithParticipantsList.createc   s    P yy -)(99,G(99,G'<(#2!.*@':(}}[+F
  )),D C
 #F.--&&tyyt ' 
 4DMM7KKr!   c                   #    [         R                  " UU[        R                  " U5      [        R                  " U5      UUUU	U
UU[        R                  " US 5      S.5      n[         R                  " USS.5      nSUS'   SUS'   U R
                  R                  SU R                  XS	9I S
h  vN n[        U R
                  U5      $  N7f)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
c                     U $ r\   r   r]   s    r"   r_   ?ConversationWithParticipantsList.create_async.<locals>.<lambda>   ra   r!   rb   rj   rk   rl   rm   rn   ro   rp   N)	r   ru   r
   r@   rv   rw   create_asyncrR   r   ry   s                    r"   r~   -ConversationWithParticipantsList.create_async   s     P yy -)(99,G(99,G'<(#2!.*@':(}}[+F
  )),D C
 #F.22tyyt 3 
 
 4DMM7KK	
s   B-C/C
0Cc                     g)rF   z:<Twilio.Conversations.V1.ConversationWithParticipantsList>r   rG   s    r"   rH   )ConversationWithParticipantsList.__repr__   s     Lr!   )rR   )r   r   r   r   r   r>   r   unsetr   rJ   rK   r   r   r   rx   r~   rH   r    rL   rM   s   @r"   rO   rO   V   sE   	4 	4 LL,2LL*0,,06064:LL)/ LL.4ll,2LL5;\\28,,06%GL"'EvM#
GL
 S&[)GL 3;'GL Hf,-GL Hf,-GL  %S&[1GL #v+&GL 8&@
GL sF{+GL S&[)GL  !&c6k 2!GL" #3;/#GL$ 49f,-%GL& 
.'GLZ LL,2LL*0,,06064:LL)/ LL.4ll,2LL5;\\28,,06%GL"'EvM#
GL
 S&[)GL 3;'GL Hf,-GL Hf,-GL  %S&[1GL #v+&GL 8&@
GL sF{+GL S&[)GL  !&c6k 2!GL" #3;/#GL$ 49f,-%GL& 
.'GLRL# L Lr!   rO   N)__doc__r   typingr   r   r   r   r   twilio.baser	   r
   r   twilio.base.instance_resourcer   twilio.base.list_resourcer   twilio.base.versionr   r   rO   r   r!   r"   <module>r      sD     3 3 6 6 : 2 ';P+; ;P|eL| eLr!   