
    g6                         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
  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 - 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)deserializevalues)InstanceContext)InstanceResource)ListResource)Versionc                   h  ^  \ rS rSrSr  SS\S\\\4   S\	\   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                   \R                   \R                   4S\\\4   S\\\4   S\\\4   S\\\4   S\\\4   S\\\4   SS 4S jjr\R                   \R                   \R                   \R                   \R                   \R                   4S\\\4   S\\\4   S\\\4   S\\\4   S\\\4   S\\\4   SS 4S jjrS\4S jrSrU =r$ )FlexUserInstance   a  
:ivar account_sid: The unique SID of the account that created the resource.
:ivar instance_sid: The unique ID created by Twilio to identify a Flex instance.
:ivar user_sid: The unique SID identifier of the Twilio Unified User.
:ivar flex_user_sid: The unique SID identifier of the Flex User.
:ivar worker_sid: The unique SID identifier of the worker.
:ivar workspace_sid: The unique SID identifier of the workspace.
:ivar flex_team_sid: The unique SID identifier of the Flex Team.
:ivar first_name: First name of the User.
:ivar last_name: Last name of the User.
:ivar username: Username of the User.
:ivar email: Email of the User.
:ivar friendly_name: Friendly name of the User.
:ivar locale: The locale preference of the user.
:ivar roles: The roles of the user.
:ivar created_date: The date that this user was created, given in ISO 8601 format.
:ivar updated_date: The date that this user was updated, given in ISO 8601 format.
:ivar version: The current version of the user.
:ivar url:
versionpayloadinstance_sidflex_user_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	        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        ["        R*                  " UR                  S5      5      U l        UR                  S5      U l        U=(       d    U R                  U=(       d    U R                  S.U l        S U l        g )Naccount_sidr   user_sidr   
worker_sidworkspace_sidflex_team_sid
first_name	last_nameusernameemailfriendly_namelocalerolescreated_dateupdated_dater   urlr   r   )super__init__getr   r   r   r   r   r   r   r   r   r   r   r    r!   r"   r	   iso8601_datetimer#   r$   integerr   r%   	_solution_context)selfr   r   r   r   	__class__s        i/Users/Alptekin/Desktop/izin_takip/venv/lib/python3.13/site-packages/twilio/rest/flex_api/v2/flex_user.pyr(   FlexUserInstance.__init__.   s    	!*1++m*D+2;;~+F'.{{:'>,3KK,H)0\)B,3KK,H,3KK,H)0\)B(/K(@'.{{:'>$+KK$8
,3KK,H%,[[%:*1++g*>
0;0L0LKK'1
 1<0L0LKK'1
 '2&9&9'++i:P&Q")++e"4 )=D,=,=*@d.@.@
 48    returnc                     U R                   c4  [        U R                  U R                  S   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: FlexUserContext for this FlexUserInstance
r   r   r&   )r-   FlexUserContext_versionr,   r.   s    r0   _proxyFlexUserInstance._proxyT   sE     == +!^^N;"nn_=DM
 }}r2   c                 6    U R                   R                  5       $ )E
Fetch the FlexUserInstance


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


:returns: The fetched FlexUserInstance
N)r8   fetch_asyncr7   s    r0   r@   FlexUserInstance.fetch_asyncm   s       [[,,....s   '%'r   r   r   r    r   r!   c           	      >    U R                   R                  UUUUUUS9$ )e  
Update the FlexUserInstance

:param first_name: First name of the User.
:param last_name: Last name of the User.
:param email: Email of the User.
:param friendly_name: Friendly name of the User.
:param user_sid: The unique SID identifier of the Twilio Unified User.
:param locale: The locale preference of the user.

:returns: The updated FlexUserInstance
r   r   r   r    r   r!   )r8   updater.   r   r   r   r    r   r!   s          r0   rE   FlexUserInstance.updatev   s2    * {{!!!' " 
 	
r2   c           	      Z   #    U R                   R                  UUUUUUS9I Sh  vN $  N7f)  
Asynchronous coroutine to update the FlexUserInstance

:param first_name: First name of the User.
:param last_name: Last name of the User.
:param email: Email of the User.
:param friendly_name: Friendly name of the User.
:param user_sid: The unique SID identifier of the Twilio Unified User.
:param locale: The locale preference of the user.

:returns: The updated FlexUserInstance
rD   N)r8   update_asyncrF   s          r0   rJ   FlexUserInstance.update_async   s?     * [[--!' . 
 
 	
 
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      r0   	<genexpr>,FlexUserInstance.__repr__.<locals>.<genexpr>         S<RDA7>>!//<R    "z'<Twilio.FlexApi.V2.FlexUserInstance {}>joinr,   itemsrR   r.   contexts     r0   __repr__FlexUserInstance.__repr__   s6     ((SDNN<P<P<RSS8??HHr2   )r-   r,   r   r#   r   r   r   r   r    r   r   r!   r"   r$   r%   r   r   r   r   r   )NN)r3   r5   )r3   r   )__name__
__module____qualname____firstlineno____doc__r   r   strr   r   r(   propertyr8   r<   r@   r
   unsetr   objectrE   rJ   r`   __static_attributes____classcell__r/   s   @r0   r   r      s   2 '+'+$8$8 c3h$8 sm	$8
  }$8 $8L  #/ *0(.$*LL,2LL'-||%+\\
#v+&
 f%
 S&[!	

 S&[)
 V$
 c6k"
 

@ *0(.$*LL,2LL'-||%+\\
#v+&
 f%
 S&[!	

 S&[)
 V$
 c6k"
 

<I# I Ir2   r   c                   6  ^  \ rS rSrS\S\S\4U 4S jjrS\4S jrS\4S jr	\
R                  \
R                  \
R                  \
R                  \
R                  \
R                  4S	\\\4   S
\\\4   S\\\4   S\\\4   S\\\4   S\\\4   S\4S jjr\
R                  \
R                  \
R                  \
R                  \
R                  \
R                  4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$ )r5      r   r   r   c                 z   > [         TU ]  U5        UUS.U l        SR                  " S0 U R                  D6U l        g)z
Initialize the FlexUserContext

:param version: Version that contains the resource
:param instance_sid: The unique ID created by Twilio to identify a Flex instance.
:param flex_user_sid: The unique id for the flex user.
r&   z//Instances/{instance_sid}/Users/{flex_user_sid}N )r'   r(   r,   rR   _uri)r.   r   r   r   r/   s       r0   r(   FlexUserContext.__init__   sD     	! )*
 FLL 
nn
	r2   r3   c                     [         R                  " 0 5      nSUS'   U R                  R                  SU R                  US9n[        U R                  UU R                  S   U R                  S   S9$ )r;   application/jsonAcceptGETmethoduriheadersr   r   r&   )r
   ofr6   r<   rr   r   r,   r.   r{   r   s      r0   r<   FlexUserContext.fetch   si     ))B-.--%%U		7%SMM7..9	
 	
r2   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   U R                  S   S9$  N47f)	r?   ru   rv   rw   rx   Nr   r   r&   )r
   r|   r6   r@   rr   r   r,   r}   s      r0   r@   FlexUserContext.fetch_async   s}      ))B-.11dii 2 
 
  MM7..9	
 	
	
s   AA=A;5A=r   r   r   r    r   r!   c           	      &   [         R                  " UUUUUUS.5      n[         R                  " 0 5      nSUS'   SUS'   U R                  R                  SU R                  XxS9n	[        U R                  U	U R                  S   U R                  S	   S
9$ )rC   	FirstNameLastNameEmailFriendlyNameUserSidLocale!application/x-www-form-urlencodedContent-Typeru   rv   POSTry   rz   datar{   r   r   r&   )r
   r|   r6   rE   rr   r   r,   
r.   r   r   r   r    r   r!   r   r{   r   s
             r0   rE   FlexUserContext.update   s    , yy'% -# 	
 ))B-"E.--&&tyyt ' 
  MM7..9	
 	
r2   c           	      B  #    [         R                  " UUUUUUS.5      n[         R                  " 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	U R                  S	   U R                  S
   S9$  N47f)rI   r   r   r   ru   rv   r   r   Nr   r   r&   )r
   r|   r6   rJ   rr   r   r,   r   s
             r0   rJ   FlexUserContext.update_async.  s     , yy'% -# 	
 ))B-"E.22tyyt 3 
 
  MM7..9	
 	
	
s   A&B(B)5B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      r0   rW   +FlexUserContext.__repr__.<locals>.<genexpr>e  rY   rZ   z&<Twilio.FlexApi.V2.FlexUserContext {}>r[   r^   s     r0   r`   FlexUserContext.__repr___  s6     ((SDNN<P<P<RSS7>>wGGr2   )r,   rr   )rb   rc   rd   re   r   rg   r(   r   r<   r@   r
   ri   r   rj   rE   rJ   r`   rk   rl   rm   s   @r0   r5   r5      s   
 
s 
3 
&
' 
*
#3 
2 *0(.$*LL,2LL'-||%+\\/
#v+&/
 f%/
 S&[!	/

 S&[)/
 V$/
 c6k"/
 
/
f *0(.$*LL,2LL'-||%+\\/
#v+&/
 f%/
 S&[!	/

 S&[)/
 V$/
 c6k"/
 
/
bH# H Hr2   r5   c                   j   ^  \ rS rSrS\4U 4S jjrS\S\S\4S jrS\S\S\4S jr	S\4S	 jr
S
rU =r$ )FlexUserListii  r   c                 $   > [         TU ]  U5        g)zR
Initialize the FlexUserList

:param version: Version that contains the resource

N)r'   r(   )r.   r   r/   s     r0   r(   FlexUserList.__init__k  s     	!r2   r   r   r3   c                 *    [        U R                  XS9$ z
Constructs a FlexUserContext

:param instance_sid: The unique ID created by Twilio to identify a Flex instance.
:param flex_user_sid: The unique id for the flex user.
r&   r5   r6   r.   r   r   s      r0   r)   FlexUserList.gett       MM
 	
r2   c                 *    [        U R                  XS9$ r   r   r   s      r0   __call__FlexUserList.__call__  r   r2   c                     g)rM   z <Twilio.FlexApi.V2.FlexUserList>rq   r7   s    r0   r`   FlexUserList.__repr__  s     2r2   rq   )rb   rc   rd   re   r   r(   rg   r5   r)   r   r`   rk   rl   rm   s   @r0   r   r   i  sT    " "	
 	
C 	
O 	
	
S 	
 	
 	
2# 2 2r2   r   N)rf   r   typingr   r   r   r   r   twilio.baser	   r
   twilio.base.instance_contextr   twilio.base.instance_resourcer   twilio.base.list_resourcer   twilio.base.versionr   r   r5   r   rq   r2   r0   <module>r      sS     3 3 + 8 : 2 'aI' aIHjHo jHZ'2< '2r2   