
    gV                         S r SSKJr  SSKJrJrJrJrJrJrJ	r	  SSK
JrJr  SSKJr  SSK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 " S S\5      r " S S\5      rg)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.
    )datetime)AnyDictListOptionalUnionIteratorAsyncIterator)deserializevalues)InstanceContext)InstanceResource)ListResource)Version)Pagec                   l  ^  \ rS rSr " S S\5      r  SS\S\\\	4   S\
\   4U 4S jjjr\SS	 j5       rS\4S
 jrS\4S jrSS jrSS jr\R(                  \R(                  4S\S\4   S\\\4   SS 4S jjr\R(                  \R(                  4S\S\4   S\\\4   SS 4S jjrS\4S jrSrU =r$ )WebChannelInstance   c                       \ rS rSrSrSrg)WebChannelInstance.ChatStatus   inactive N)__name__
__module____qualname____firstlineno__INACTIVE__static_attributes__r       k/Users/Alptekin/Desktop/izin_takip/venv/lib/python3.13/site-packages/twilio/rest/flex_api/v1/web_channel.py
ChatStatusr      s    r    r"   versionpayloadsidc                   > [         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        [        R                  " UR                  S5      5      U l	        [        R                  " UR                  S5      5      U l
        SU=(       d    U R
                  0U l        S U l        g )Naccount_sidflex_flow_sidr%   urldate_createddate_updated)super__init__getr'   r(   r%   r)   r   iso8601_datetimer*   r+   	_solution_context)selfr#   r$   r%   	__class__s       r!   r-   WebChannelInstance.__init__'   s     	!*1++m*D,3KK,H")++e"4")++e"40;0L0LKK'1
 1<0L0LKK'1

 3?$((
 6:r    returnc                     U R                   c&  [        U R                  U R                  S   S9U l         U R                   $ )z
Generate an instance context for the instance, the context is capable of
performing various actions. All instance actions are proxied to the context

:returns: WebChannelContext for this WebChannelInstance
r%   r%   )r1   WebChannelContext_versionr0   r2   s    r!   _proxyWebChannelInstance._proxy<   s9     == -NN5)DM }}r    c                 6    U R                   R                  5       $ )U
Deletes the WebChannelInstance


:returns: True if delete succeeds, False otherwise
)r;   deleter:   s    r!   r?   WebChannelInstance.deleteK   s     {{!!##r    c                 R   #    U R                   R                  5       I Sh  vN $  N7f)q
Asynchronous coroutine that deletes the WebChannelInstance


:returns: True if delete succeeds, False otherwise
N)r;   delete_asyncr:   s    r!   rC   WebChannelInstance.delete_asyncT   s       [[--////   '%'c                 6    U R                   R                  5       $ )I
Fetch the WebChannelInstance


:returns: The fetched WebChannelInstance
)r;   fetchr:   s    r!   rH   WebChannelInstance.fetch]   s     {{  ""r    c                 R   #    U R                   R                  5       I Sh  vN $  N7f)c
Asynchronous coroutine to fetch the WebChannelInstance


:returns: The fetched WebChannelInstance
N)r;   fetch_asyncr:   s    r!   rL   WebChannelInstance.fetch_asyncf   s       [[,,....rE   chat_statusr   post_engagement_datac                 6    U R                   R                  UUS9$ )
Update the WebChannelInstance

:param chat_status:
:param post_engagement_data: The post-engagement data.

:returns: The updated WebChannelInstance
rN   rO   )r;   updater2   rN   rO   s      r!   rS   WebChannelInstance.updateo   s&     {{!!#!5 " 
 	
r    c                 R   #    U R                   R                  UUS9I Sh  vN $  N7f)
Asynchronous coroutine to update the WebChannelInstance

:param chat_status:
:param post_engagement_data: The post-engagement data.

:returns: The updated WebChannelInstance
rR   N)r;   update_asyncrT   s      r!   rX   WebChannelInstance.update_async   s3      [[--#!5 . 
 
 	
 
rE   c                     SR                  S U R                  R                  5        5       5      nSR                  U5      $ )N
Provide a friendly representation

:returns: Machine friendly representation
 c              3   H   #    U  H  u  pS R                  X5      v   M     g7fz{}={}Nformat.0kvs      r!   	<genexpr>.WebChannelInstance.__repr__.<locals>.<genexpr>         S<RDA7>>!//<R    "z)<Twilio.FlexApi.V1.WebChannelInstance {}>joinr0   itemsr`   r2   contexts     r!   __repr__WebChannelInstance.__repr__   s6     ((SDNN<P<P<RSS:AA'JJr    )r1   r0   r'   r*   r+   r(   r%   r)   )N)r5   r8   )r5   r   )r   r   r   r   objectr"   r   r   strr   r   r-   propertyr;   boolr?   rC   rH   rL   r   unsetr   rS   rX   rn   r   __classcell__r3   s   @r!   r   r      s!   V  OS::)-c3h:>Fsm: :*  $ $0D 0#/ GMll39<<
:FBC
 $CK0
 
	
( GMll39<<
:FBC
 $CK0
 
	
$K# K Kr    r   c                   .  ^  \ rS rSrS\S\4U 4S jjrS\4S jrS\4S jr	S\
4S jrS\
4S	 jr\R                  \R                  4S
\S\4   S\\\4   S\
4S jjr\R                  \R                  4S
\S\4   S\\\4   S\
4S jjrS\4S jrSrU =r$ )r8      r#   r%   c                 x   > [         TU ]  U5        SU0U l        SR                  " S0 U R                  D6U l        g)z
Initialize the WebChannelContext

:param version: Version that contains the resource
:param sid: The SID of the WebChannel resource to update.
r%   z/WebChannels/{sid}Nr   )r,   r-   r0   r`   _uri)r2   r#   r%   r3   s      r!   r-   WebChannelContext.__init__   s=     	! 3
 )//A$..A	r    r5   c                 x    [         R                  " 0 5      nU R                  R                  SU R                  US9$ )r>   DELETEmethoduriheaders)r   ofr9   r?   rz   r2   r   s     r!   r?   WebChannelContext.delete   s1     ))B-}}##8G#TTr    c                    #    [         R                  " 0 5      nU R                  R                  SU R                  US9I Sh  vN $  N7f)rB   r}   r~   N)r   r   r9   rC   rz   r   s     r!   rC   WebChannelContext.delete_async   sE      ))B-]]//G 0 
 
 	
 
s   ?AAAc                     [         R                  " 0 5      nSUS'   U R                  R                  SU R                  US9n[        U R                  UU R                  S   S9$ )rG   application/jsonAcceptGETr~   r%   r7   )r   r   r9   rH   rz   r   r0   r2   r   r$   s      r!   rH   WebChannelContext.fetch   s]     ))B-.--%%U		7%S!MMu%
 	
r    c                    #    [         R                  " 0 5      nSUS'   U R                  R                  SU R                  US9I Sh  vN n[        U R                  UU R                  S   S9$  N&7f)rK   r   r   r   r~   Nr%   r7   )r   r   r9   rL   rz   r   r0   r   s      r!   rL   WebChannelContext.fetch_async   sq      ))B-.11dii 2 
 
 "MMu%
 	
	
s   AA/A-'A/rN   r   rO   c                     [         R                  " UUS.5      n[         R                  " 0 5      nSUS'   SUS'   U R                  R                  SU R                  X4S9n[        U R                  XPR                  S   S	9$ )
rQ   r"   PostEngagementData!application/x-www-form-urlencodedContent-Typer   r   POSTr   r   datar   r%   r7   )r   r   r9   rS   rz   r   r0   r2   rN   rO   r   r   r$   s         r!   rS   WebChannelContext.update   s     yy)&:
 ))B-"E.--&&tyyt ' 
 "$--nnU>STTr    c                   #    [         R                  " UUS.5      n[         R                  " 0 5      nSUS'   SUS'   U R                  R                  SU R                  X4S9I Sh  vN n[        U R                  XPR                  S	   S
9$  N%7f)rW   r   r   r   r   r   r   r   Nr%   r7   )r   r   r9   rX   rz   r   r0   r   s         r!   rX   WebChannelContext.update_async  s      yy)&:
 ))B-"E.22tyyt 3 
 
 "$--nnU>STT	
s   A"B$B
%&Bc                     SR                  S U R                  R                  5        5       5      nSR                  U5      $ )r[   r\   c              3   H   #    U  H  u  pS R                  X5      v   M     g7fr^   r_   ra   s      r!   re   -WebChannelContext.__repr__.<locals>.<genexpr>8  rg   rh   z(<Twilio.FlexApi.V1.WebChannelContext {}>ri   rl   s     r!   rn   WebChannelContext.__repr__2  s6     ((SDNN<P<P<RSS9@@IIr    )r0   rz   )r   r   r   r   r   rq   r-   rs   r?   rC   r   rH   rL   r   rt   r   rp   rS   rX   rn   r   ru   rv   s   @r!   r8   r8      s    B Bc B
U 
U
D 

) 
(
#5 
0 GMll39<<U:FBCU $CK0U 
	UD GMll39<<U:FBCU $CK0U 
	U@J# J Jr    r8   c                   >    \ rS rSrS\\\4   S\4S jrS\4S jr	Sr
g)WebChannelPagei<  r$   r5   c                 .    [        U R                  U5      $ )zX
Build an instance of WebChannelInstance

:param payload: Payload response from the API
)r   r9   )r2   r$   s     r!   get_instanceWebChannelPage.get_instance>  s     "$--99r    c                     g)r[   z"<Twilio.FlexApi.V1.WebChannelPage>r   r:   s    r!   rn   WebChannelPage.__repr__F       4r    r   N)r   r   r   r   r   rq   r   r   r   rn   r   r   r    r!   r   r   <  s*    :DcN :7I :4# 4r    r   c                     ^  \ rS rSrS\4U 4S jjr\R                  \R                  4S\S\S\S\S\	\\
4   S	\	\\
4   S
\4S jjr\R                  \R                  4S\S\S\S\S\	\\
4   S	\	\\
4   S
\4S jjr  SS\\   S\\   S
\\   4S jjr  SS\\   S\\   S
\\   4S jjr  SS\\   S\\   S
\\   4S jjr  SS\\   S\\   S
\\   4S jjr\R                  \R                  \R                  4S\	\\
4   S\	\\
4   S\	\\
4   S
\4S jjr\R                  \R                  \R                  4S\	\\
4   S\	\\
4   S\	\\
4   S
\4S jjrS\S
\4S jrS\S
\4S jrS\S
\4S jrS\S
\4S jrS
\4S jrSr U =r!$ ) WebChannelListiO  r#   c                 2   > [         TU ]  U5        SU l        g)zT
Initialize the WebChannelList

:param version: Version that contains the resource

z/WebChannelsN)r,   r-   rz   )r2   r#   r3   s     r!   r-   WebChannelList.__init__Q  s     	!"	r    r(   identitycustomer_friendly_namechat_friendly_namechat_unique_namepre_engagement_datar5   c           	          [         R                  " UUUUUUS.5      n[         R                  " SS05      nSUS'   SUS'   U R                  R                  SU R                  XxS9n	[        U R                  U	5      $ )a  
Create the WebChannelInstance

:param flex_flow_sid: The SID of the Flex Flow.
:param identity: The chat identity.
:param customer_friendly_name: The chat participant's friendly name.
:param chat_friendly_name: The chat channel's friendly name.
:param chat_unique_name: The chat channel's unique name.
:param pre_engagement_data: The pre-engagement data.

:returns: The created WebChannelInstance
FlexFlowSidIdentityCustomerFriendlyNameChatFriendlyNameChatUniqueNamePreEngagementDatar   r   r   r   r   r   )r   r   r9   createrz   r   
r2   r(   r   r   r   r   r   r   r   r$   s
             r!   r   WebChannelList.create\  s    , yy,$(>$6"2%8	
 ))^-PQR"E.--&&tyyt ' 
 "$--99r    c           	        #    [         R                  " UUUUUUS.5      n[         R                  " SS05      nSUS'   SUS'   U R                  R                  SU R                  XxS9I Sh  vN n	[        U R                  U	5      $  N7f)	a  
Asynchronously create the WebChannelInstance

:param flex_flow_sid: The SID of the Flex Flow.
:param identity: The chat identity.
:param customer_friendly_name: The chat participant's friendly name.
:param chat_friendly_name: The chat channel's friendly name.
:param chat_unique_name: The chat channel's unique name.
:param pre_engagement_data: The pre-engagement data.

:returns: The created WebChannelInstance
r   r   r   r   r   r   r   N)r   r   r9   create_asyncrz   r   r   s
             r!   r   WebChannelList.create_async  s     , yy,$(>$6"2%8	
 ))^-PQR"E.22tyyt 3 
 
 "$--99	
s   A(B*B+Blimit	page_sizec                     U R                   R                  X5      nU R                  US   S9nU R                   R                  XCS   5      $ )a   
Streams WebChannelInstance records from the API as a generator stream.
This operation lazily loads records as efficiently as possible until the limit
is reached.
The results are returned as a generator, so this operation is memory efficient.

:param limit: Upper limit for the number of records to return. stream()
              guarantees to never return more than limit.  Default is no limit
:param page_size: Number of records to fetch per request, when not set will use
                  the default value of 50 records.  If no page_size is defined
                  but a limit is defined, stream() will attempt to read the
                  limit with the most efficient page size, i.e. min(limit, 1000)

:returns: Generator that will yield up to limit results
r   r   r   )r9   read_limitspagestreamr2   r   r   limitsr   s        r!   r   WebChannelList.stream  sF    ( **5<yy6+#6y7}}##D/::r    c                    #    U R                   R                  X5      nU R                  US   S9I Sh  vN nU R                   R                  XCS   5      $  N"7f)a  
Asynchronously streams WebChannelInstance records from the API as a generator stream.
This operation lazily loads records as efficiently as possible until the limit
is reached.
The results are returned as a generator, so this operation is memory efficient.

:param limit: Upper limit for the number of records to return. stream()
              guarantees to never return more than limit.  Default is no limit
:param page_size: Number of records to fetch per request, when not set will use
                  the default value of 50 records.  If no page_size is defined
                  but a limit is defined, stream() will attempt to read the
                  limit with the most efficient page size, i.e. min(limit, 1000)

:returns: Generator that will yield up to limit results
r   r   Nr   )r9   r   
page_asyncstream_asyncr   s        r!   r   WebChannelList.stream_async  sR     ( **5<__vk/B_CC}}))$w@@ Ds   1AA#Ac                 4    [        U R                  UUS95      $ )a  
Lists WebChannelInstance records from the API as a list.
Unlike stream(), this operation is eager and will load `limit` records into
memory before returning.

:param limit: Upper limit for the number of records to return. list() guarantees
              never to return more than limit.  Default is no limit
:param page_size: Number of records to fetch per request, when not set will use
                  the default value of 50 records.  If no page_size is defined
                  but a limit is defined, list() will attempt to read the limit
                  with the most efficient page size, i.e. min(limit, 1000)

:returns: list that will contain up to limit results
r   r   )listr   )r2   r   r   s      r!   r   WebChannelList.list  s(    & KK#  
 	
r    c                 v   #    U R                  UUS9I Sh  vN  Vs/ s Sh  vN nUPM   N N

 sn$ s  snf 7f)a  
Asynchronously lists WebChannelInstance records from the API as a list.
Unlike stream(), this operation is eager and will load `limit` records into
memory before returning.

:param limit: Upper limit for the number of records to return. list() guarantees
              never to return more than limit.  Default is no limit
:param page_size: Number of records to fetch per request, when not set will use
                  the default value of 50 records.  If no page_size is defined
                  but a limit is defined, list() will attempt to read the limit
                  with the most efficient page size, i.e. min(limit, 1000)

:returns: list that will contain up to limit results
r   N)r   )r2   r   r   records       r!   
list_asyncWebChannelList.list_async   sQ     * '+&7&7# '8 ' ! !
 
 !
 	
 
s0   9,940.
049049
page_tokenpage_numberc                     [         R                  " UUUS.5      n[         R                  " SS05      nSUS'   U R                  R                  SU R                  XES9n[        U R                  U5      $ )aA  
Retrieve a single page of WebChannelInstance records from the API.
Request is executed immediately

:param page_token: PageToken provided by the API
:param page_number: Page Number, this value is simply for client state
:param page_size: Number of records to return, defaults to 50

:returns: Page of WebChannelInstance
	PageTokenr   PageSizer   r   r   r   r   r   r   paramsr   )r   r   r9   r   rz   r   r2   r   r   r   r   r   responses          r!   r   WebChannelList.page  sw      yy'#%
 ))^-PQR.==%%dii & 
 dmmX66r    c                   #    [         R                  " UUUS.5      n[         R                  " SS05      nSUS'   U R                  R                  SU R                  XES9I Sh  vN n[        U R                  U5      $  N7f)	aP  
Asynchronously retrieve a single page of WebChannelInstance records from the API.
Request is executed immediately

:param page_token: PageToken provided by the API
:param page_number: Page Number, this value is simply for client state
:param page_size: Number of records to return, defaults to 50

:returns: Page of WebChannelInstance
r   r   r   r   r   r   r   N)r   r   r9   r   rz   r   r   s          r!   r   WebChannelList.page_async<  s       yy'#%
 ))^-PQR.11dii 2 
 
 dmmX66
s   A A?"A=#A?
target_urlc                     U R                   R                  R                  R                  SU5      n[	        U R                   U5      $ )z
Retrieve a specific page of WebChannelInstance records from the API.
Request is executed immediately

:param target_url: API-generated URL for the requested results page

:returns: Page of WebChannelInstance
r   )r9   domaintwiliorequestr   r2   r   r   s      r!   get_pageWebChannelList.get_page]  s7     ==''..66ujIdmmX66r    c                    #    U R                   R                  R                  R                  SU5      I Sh  vN n[	        U R                   U5      $  N7f)z
Asynchronously retrieve a specific page of WebChannelInstance records from the API.
Request is executed immediately

:param target_url: API-generated URL for the requested results page

:returns: Page of WebChannelInstance
r   N)r9   r   r   request_asyncr   r   s      r!   get_page_asyncWebChannelList.get_page_asynci  sC      --44BB5*UUdmmX66 Vs   4AAAr%   c                 *    [        U R                  US9$ z[
Constructs a WebChannelContext

:param sid: The SID of the WebChannel resource to update.
r7   r8   r9   r2   r%   s     r!   r.   WebChannelList.getu       !C88r    c                 *    [        U R                  US9$ r   r   r   s     r!   __call__WebChannelList.__call__}  r   r    c                     g)r[   z"<Twilio.FlexApi.V1.WebChannelList>r   r:   s    r!   rn   WebChannelList.__repr__  r   r    )rz   )NN)"r   r   r   r   r   r-   r   rt   rq   r   rp   r   r   r   r   intr	   r   r
   r   r   r   r   r   r   r   r   r   r8   r.   r   rn   r   ru   rv   s   @r!   r   r   O  s   	# 	#" 06||28,,*:*: *: !$	*:
  *:  V,*: #3;/*: 
*:d 06||28,,*:*: *: !$	*:
  *:  V,*: #3;/*: 
*:\  $#';}; C=; 
$	%	;6  $#'A}A C=A 
)	*	A6  $#'
}
 C=
 
 	!	
8  $#'
}
 C=
 
 	!	
: *0*0,,(.	7#v+&7 3;'7 f%	7
 
7F *0*0,,(.	7#v+&7 3;'7 f%	7
 
7B
73 
7> 
7
7s 
7~ 
79s 90 99C 9$5 94# 4 4r    r   N)__doc__r   typingr   r   r   r   r   r	   r
   twilio.baser   r   twilio.base.instance_contextr   twilio.base.instance_resourcer   twilio.base.list_resourcer   twilio.base.versionr   twilio.base.pager   r   r8   r   r   r   r    r!   <module>r     sg     L L L + 8 : 2 ' !AK) AKH\J \J~4T 4&|4\ |4r    