
    gA,                         S r SSK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	\5      r " S
 S\
5      r " S S\5      rg)a  
 This code was generated by
___ _ _ _ _ _    _ ____    ____ ____ _    ____ ____ _  _ ____ ____ ____ ___ __   __
 |  | | | | |    | |  | __ |  | |__| | __ | __ |___ |\ | |___ |__/ |__|  | |  | |__/
 |  |_|_| | |___ | |__|    |__| |  | |    |__] |___ | \| |___ |  \ |  |  | |__| |  \

 Twilio - Frontline
 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)	serializevalues)InstanceContext)InstanceResource)ListResource)Versionc                     ^  \ 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S
 jrSS jr\R"                  \R"                  \R"                  \R"                  4S\\\4   S\\\4   S\S\4   S\\\4   SS 4
S jjr\R"                  \R"                  \R"                  \R"                  4S\\\4   S\\\4   S\S\4   S\\\4   SS 4
S jjrS\4S jrSrU =r$ )UserInstance   c                       \ rS rSrSrSrSrg)UserInstance.StateType   activedeactivated N)__name__
__module____qualname____firstlineno__ACTIVEDEACTIVATED__static_attributes__r       i/Users/Alptekin/Desktop/izin_takip/venv/lib/python3.13/site-packages/twilio/rest/frontline_api/v1/user.py	StateTyper      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        UR                  S5      U l        UR                  S5      U l        UR                  S5      U l	        SU=(       d    U R                  0U l
        S U l        g )Nr"   identityfriendly_nameavatarstateis_availableurl)super__init__getr"   r$   r%   r&   r'   r(   r)   	_solution_context)selfr    r!   r"   	__class__s       r   r+   UserInstance.__init__'   s     	!")++e"4'.{{:'>,3KK,H%,[[%:9@W9M
,3KK,G")++e"4 3?$((
 04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: UserContext for this UserInstance
r"   r"   )r.   UserContext_versionr-   r/   s    r   _proxyUserInstance._proxy9   s9     == 'NN5)DM }}r   c                 6    U R                   R                  5       $ )=
Fetch the UserInstance


:returns: The fetched UserInstance
)r8   fetchr7   s    r   r<   UserInstance.fetchH   s     {{  ""r   c                 R   #    U R                   R                  5       I Sh  vN $  N7f)W
Asynchronous coroutine to fetch the UserInstance


:returns: The fetched UserInstance
N)r8   fetch_asyncr7   s    r   r@   UserInstance.fetch_asyncQ   s       [[,,....s   '%'r%   r&   r'   r   r(   c                 :    U R                   R                  UUUUS9$ )  
Update the UserInstance

:param friendly_name: The string that you assigned to describe the User.
:param avatar: The avatar URL which will be shown in Frontline application.
:param state:
:param is_available: Whether the User is available for new conversations. Set to `false` to prevent User from receiving new inbound conversations if you are using [Pool Routing](https://www.twilio.com/docs/frontline/handle-incoming-conversations#3-pool-routing).

:returns: The updated UserInstance
r%   r&   r'   r(   )r8   updater/   r%   r&   r'   r(   s        r   rE   UserInstance.updateZ   s,    " {{!!'%	 " 
 	
r   c                 V   #    U R                   R                  UUUUS9I Sh  vN $  N7f)  
Asynchronous coroutine to update the UserInstance

:param friendly_name: The string that you assigned to describe the User.
:param avatar: The avatar URL which will be shown in Frontline application.
:param state:
:param is_available: Whether the User is available for new conversations. Set to `false` to prevent User from receiving new inbound conversations if you are using [Pool Routing](https://www.twilio.com/docs/frontline/handle-incoming-conversations#3-pool-routing).

:returns: The updated UserInstance
rD   N)r8   update_asyncrF   s        r   rJ   UserInstance.update_asyncr   s9     " [[--'%	 . 
 
 	
 
s    )')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>(UserInstance.__repr__.<locals>.<genexpr>         S<RDA7>>!//<R    "z(<Twilio.FrontlineApi.V1.UserInstance {}>joinr-   itemsrR   r/   contexts     r   __repr__UserInstance.__repr__   s6     ((SDNN<P<P<RSS9@@IIr   )	r.   r-   r&   r%   r$   r(   r"   r'   r)   )N)r2   r5   )r2   r   )r   r   r   r   objectr   r   r   strr   r   r+   propertyr8   r<   r@   r   unsetr   boolrE   rJ   r`   r   __classcell__r0   s   @r   r   r      sm   $F $ OS44)-c3h4>Fsm4 4$  #/ -3LL%+\\9?,2LL
S&[)
 c6k"
 -v56	

 D&L)
 

4 -3LL%+\\9?,2LL
S&[)
 c6k"
 -v56	

 D&L)
 

0J# J J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	\
R                  \
R                  \
R                  \
R                  4S\\\4   S	\\\4   S
\S\4   S\\\4   S\4
S jjr\
R                  \
R                  \
R                  \
R                  4S\\\4   S	\\\4   S
\S\4   S\\\4   S\4
S jjrS\4S jrSrU =r$ )r5      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 UserContext

:param version: Version that contains the resource
:param sid: The SID of the User resource to update. This value can be either the `sid` or the `identity` of the User resource to update.
r"   z/Users/{sid}Nr   )r*   r+   r-   rR   _uri)r/   r    r"   r0   s      r   r+   UserContext.__init__   s=     	! 3
 #));DNN;	r   r2   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$ )r;   application/jsonAcceptGETmethoduriheadersr"   r4   )r   ofr6   r<   rl   r   r-   r/   ru   r!   s      r   r<   UserContext.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)r?   ro   rp   rq   rr   Nr"   r4   )r   rv   r6   r@   rl   r   r-   rw   s      r   r@   UserContext.fetch_async   sq      ))B-.11dii 2 
 
 MMu%
 	
	
s   AA/A-'A/r%   r&   r'   r   r(   c                 ,   [         R                  " UUU[        R                  " U5      S.5      n[         R                  " 0 5      nSUS'   SUS'   U R                  R                  SU R                  XVS9n[        U R                  XpR                  S   S	9$ )
rC   FriendlyNameAvatarStateIsAvailable!application/x-www-form-urlencodedContent-Typero   rp   POSTrs   rt   dataru   r"   r4   )	r   rv   r   boolean_to_stringr6   rE   rl   r   r-   r/   r%   r&   r'   r(   r   ru   r!   s           r   rE   UserContext.update   s    $ yy - (::<H	
 ))B-"E.--&&tyyt ' 
 DMM7u8MNNr   c                 H  #    [         R                  " UUU[        R                  " U5      S.5      n[         R                  " 0 5      nSUS'   SUS'   U R                  R                  SU R                  XVS9I Sh  vN n[        U R                  XpR                  S	   S
9$  N%7f)rI   r|   r   r   ro   rp   r   r   Nr"   r4   )	r   rv   r   r   r6   rJ   rl   r   r-   r   s           r   rJ   UserContext.update_async   s     $ yy - (::<H	
 ))B-"E.22tyyt 3 
 
 DMM7u8MNN	
s   A8B":B ;&B"c                     SR                  S U R                  R                  5        5       5      nSR                  U5      $ )rM   rN   c              3   H   #    U  H  u  pS R                  X5      v   M     g7frP   rQ   rS   s      r   rW   'UserContext.__repr__.<locals>.<genexpr>!  rY   rZ   z'<Twilio.FrontlineApi.V1.UserContext {}>r[   r^   s     r   r`   UserContext.__repr__  s6     ((SDNN<P<P<RSS8??HHr   )r-   rl   )r   r   r   r   r   rc   r+   r   r<   r@   r   re   r   rb   rf   rE   rJ   r`   r   rg   rh   s   @r   r5   r5      sB   < <c <
| 
(
< 
0 -3LL%+\\9?,2LL$OS&[)$O c6k"$O -v56	$O
 D&L)$O 
$OP -3LL%+\\9?,2LL$OS&[)$O c6k"$O -v56	$O
 D&L)$O 
$OLI# I Ir   r5   c                   b   ^  \ rS rSrS\4U 4S jjrS\S\4S jrS\S\4S jr	S\4S jr
S	rU =r$ )
UserListi%  r    c                 $   > [         TU ]  U5        g)zN
Initialize the UserList

:param version: Version that contains the resource

N)r*   r+   )r/   r    r0   s     r   r+   UserList.__init__'  s     	!r   r"   r2   c                 *    [        U R                  US9$ z
Constructs a UserContext

:param sid: The SID of the User resource to update. This value can be either the `sid` or the `identity` of the User resource to update.
r4   r5   r6   r/   r"   s     r   r,   UserList.get0       4==c22r   c                 *    [        U R                  US9$ r   r   r   s     r   __call__UserList.__call__8  r   r   c                     g)rM   z!<Twilio.FrontlineApi.V1.UserList>r   r7   s    r   r`   UserList.__repr__@  s     3r   r   )r   r   r   r   r   r+   rc   r5   r,   r   r`   r   rg   rh   s   @r   r   r   %  sF    " "3s 3{ 33C 3K 33# 3 3r   r   N)__doc__typingr   r   r   r   twilio.baser   r   twilio.base.instance_contextr	   twilio.base.instance_resourcer
   twilio.base.list_resourcer   twilio.base.versionr   r   r5   r   r   r   r   <module>r      sP    . - ) 8 : 2 'zJ# zJzNI/ NIb!3| !3r   