Ë
    [üàgÛ-  ã                   ó²   — 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
 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 G d„ de«      Zy)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            
       ór  ‡ — e Zd ZdZ	 	 ddedeeef   dee   dee   fˆ fd„Z	e
dd„«       Zdd	„Zdd
„Zej                  ej                  ej                  fdeeef   deeef   deeef   dd fd„Zej                  ej                  ej                  fdeeef   deeef   deeef   dd fd„Zdefd„Zˆ xZS )ÚFlexUserInstanceaž  
    :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 username: Username of the User.
    :ivar email: Email 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         ‰| �  |«       |j                  d«      | _        |j                  d«      | _        |j                  d«      | _        |j                  d«      | _        |j                  d«      | _        |j                  d«      | _        |j                  d«      | _	        |j                  d«      | _
        |j                  d	«      | _        |j                  d
«      | _        |j                  d«      | _        t        j                  |j                  d«      «      | _        t        j                  |j                  d«      «      | _        t        j$                  |j                  d«      «      | _        |j                  d«      | _        |xs | j                  |xs | j                  dœ| _        d | _        y )NÚaccount_sidr   Úuser_sidr   Ú
worker_sidÚworkspace_sidÚflex_team_sidÚusernameÚemailÚlocaleÚrolesÚcreated_dateÚupdated_dater   Úurl©r   r   )ÚsuperÚ__init__Úgetr   r   r   r   r   r   r   r   r   r   r   r	   Úiso8601_datetimer   r    Úintegerr   r!   Ú	_solutionÚ_context)Úselfr   r   r   r   Ú	__class__s        €ú_/var/www/skyplay_api_hub/venv/lib/python3.12/site-packages/twilio/rest/flex_api/v2/flex_user.pyr$   zFlexUserInstance.__init__+   sd  ø€ ô 	‰Ñ˜Ô!à*1¯+©+°mÓ*DˆÔØ+2¯;©;°~Ó+FˆÔØ'.§{¡{°:Ó'>ˆŒØ,3¯K©K¸Ó,HˆÔØ)0¯©°\Ó)BˆŒØ,3¯K©K¸Ó,HˆÔØ,3¯K©K¸Ó,HˆÔØ'.§{¡{°:Ó'>ˆŒØ$+§K¡K°Ó$8ˆŒ
Ø%,§[¡[°Ó%:ˆŒØ*1¯+©+°gÓ*>ˆŒ
Ü0;×0LÑ0LØ�K‰K˜Ó'ó1
ˆÔô 1<×0LÑ0LØ�K‰K˜Ó'ó1
ˆÔô '2×&9Ñ&9¸'¿+¹+ÀiÓ:PÓ&QˆŒØ")§+¡+¨eÓ"4ˆŒð )Ò=¨D×,=Ñ,=Ø*Ò@¨d×.@Ñ.@ñ
ˆŒð 48ˆ�ó    Úreturnc                 ó    — | j                   €7t        | j                  | j                  d   | j                  d   ¬«      | _         | j                   S )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    r,   Ú_proxyzFlexUserInstance._proxyN   sE   € ð �=‰=Ð Ü+Ø—‘Ø!Ÿ^™^¨NÑ;Ø"Ÿn™n¨_Ñ=ôˆDŒMð
 �}‰}Ðr-   c                 ó6   — | j                   j                  «       S )ú]
        Fetch the FlexUserInstance


        :returns: The fetched FlexUserInstance
        )r3   Úfetchr2   s    r,   r6   zFlexUserInstance.fetch^   s   € ð �{‰{× Ñ Ó"Ð"r-   c              ƒ   óR   K  — | j                   j                  «       ƒ d{  –—† S 7 Œ­w)úw
        Asynchronous coroutine to fetch the FlexUserInstance


        :returns: The fetched FlexUserInstance
        N)r3   Úfetch_asyncr2   s    r,   r9   zFlexUserInstance.fetch_asyncg   s!   è ø€ ð —[‘[×,Ñ,Ó.×.Ð.Ð.ús   ‚' %¡'r   r   r   c                 ó>   — | j                   j                  |||¬«      S )á  
        Update the FlexUserInstance

        :param email: Email 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   )r3   Úupdate©r*   r   r   r   s       r,   r=   zFlexUserInstance.updatep   s)   € ð �{‰{×!Ñ!ØØØð "ó 
ð 	
r-   c              ƒ   óZ   K  — | j                   j                  |||¬«      ƒ d{  –—† S 7 Œ­w)á*  
        Asynchronous coroutine to update the FlexUserInstance

        :param email: Email 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<   N)r3   Úupdate_asyncr>   s       r,   rA   zFlexUserInstance.update_async…   s7   è ø€ ð —[‘[×-Ñ-ØØØð .ó 
÷ 
ð 	
ð 
ús   ‚"+¤)¥+c                 ó„   — dj                  d„ | j                  j                  «       D «       «      }dj                  |«      S )úf
        Provide a friendly representation

        :returns: Machine friendly representation
        ú c              3   óF   K  — | ]  \  }}d j                  ||«      –— Œ y­w©z{}={}N©Úformat©Ú.0ÚkÚvs      r,   ú	<genexpr>z,FlexUserInstance.__repr__.<locals>.<genexpr>    ó   è ø€ ÒS±D°A°q˜7Ÿ>™>¨!¨Q×/ÑSùó   ‚!z'<Twilio.FlexApi.V2.FlexUserInstance {}>©Újoinr(   ÚitemsrH   ©r*   Úcontexts     r,   Ú__repr__zFlexUserInstance.__repr__š   s6   € ð —(‘(ÑS¸D¿N¹N×<PÑ<PÓ<RÔSÓSˆØ8×?Ñ?ÀÓHÐHr-   )NN)r.   r0   )r.   r   )Ú__name__Ú
__module__Ú__qualname__Ú__doc__r   r   Ústrr   r   r$   Úpropertyr3   r6   r9   r
   Úunsetr   Úobjectr=   rA   rU   Ú__classcell__©r+   s   @r,   r   r      s2  ø„ ñð, '+Ø'+ñ!8àð!8ð �c˜3�h‘ð!8ð ˜s‘mð	!8ð
   ‘}õ!8ðF òó ðó#ó/ð %+§L¡LØ'-§|¡|Ø%+§\¡\ñ	
à�S˜&�[Ñ!ð
ð ˜˜V˜Ñ$ð
ð �c˜6�kÑ"ð	
ð
 
ó
ð. %+§L¡LØ'-§|¡|Ø%+§\¡\ñ	
à�S˜&�[Ñ!ð
ð ˜˜V˜Ñ$ð
ð �c˜6�kÑ"ð	
ð
 
ó
ð*I˜#÷ Ir-   r   c            	       óD  ‡ — e Zd Zdededefˆ fd„Zdefd„Zdefd„Ze	j                  e	j                  e	j                  fdeeef   d	eeef   d
eeef   defd„Ze	j                  e	j                  e	j                  fdeeef   d	eeef   d
eeef   defd„Zdefd„Zˆ xZS )r0   r   r   r   c                 óz   •— t         ‰| �  |«       ||dœ| _         dj                  di | j                  ¤Ž| _        y)a  
        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(   rH   Ú_uri)r*   r   r   r   r+   s       €r,   r$   zFlexUserContext.__init__¦   sG   ø€ ô 	‰Ñ˜Ô!ð )Ø*ñ
ˆŒð MÐE×LÑLñ 
Ø�n‰nñ
ˆ�	r-   r.   c                 óì   — t        j                  i «      }d|d<   | j                  j                  d| j                  |¬«      }t        | j                  || j                  d   | j                  d   ¬«      S )r5   úapplication/jsonÚAcceptÚGET©ÚmethodÚuriÚheadersr   r   r"   )r
   Úofr1   r6   rc   r   r(   ©r*   rk   r   s      r,   r6   zFlexUserContext.fetch¹   si   € ô —)‘)˜B“-ˆà.ˆ�Ñà—-‘-×%Ñ%¨U¸¿	¹	È7Ð%ÓSˆäØ�M‰MØØŸ™¨Ñ7ØŸ.™.¨Ñ9ô	
ð 	
r-   c              ƒ   ó  K  — t        j                  i «      }d|d<   | j                  j                  d| j                  |¬«      ƒ d{  –—† }t        | j                  || j                  d   | j                  d   ¬«      S 7 Œ7­w)	r8   re   rf   rg   rh   Nr   r   r"   )r
   rl   r1   r9   rc   r   r(   rm   s      r,   r9   zFlexUserContext.fetch_asyncÎ   s~   è ø€ ô —)‘)˜B“-ˆà.ˆ�ÑàŸ™×1Ñ1Ø˜dŸi™i°ð 2ó 
÷ 
ˆô  Ø�M‰MØØŸ™¨Ñ7ØŸ.™.¨Ñ9ô	
ð 	
ð	
ús   ‚ABÁB Á	8Br   r   r   c                 ó*  — t        j                  |||dœ«      }t        j                  i «      }d|d<   d|d<   | j                  j                  d| j                  ||¬«      }t        | j                  || j                  d   | j                  d	   ¬
«      S )r;   ©ÚEmailÚUserSidÚLocaleú!application/x-www-form-urlencodedúContent-Typere   rf   ÚPOST©ri   rj   Údatark   r   r   r"   )r
   rl   r1   r=   rc   r   r(   ©r*   r   r   r   rx   rk   r   s          r,   r=   zFlexUserContext.updateå   sš   € ô  �y‰yàØ#Ø ñó
ˆô —)‘)˜B“-ˆà"Eˆ�Ñà.ˆ�Ñà—-‘-×&Ñ&Ø˜tŸy™y¨t¸Wð 'ó 
ˆô  Ø�M‰MØØŸ™¨Ñ7ØŸ.™.¨Ñ9ô	
ð 	
r-   c              ƒ   óF  K  — t        j                  |||dœ«      }t        j                  i «      }d|d<   d|d<   | j                  j                  d| j                  ||¬«      ƒ d{  –—† }t        | j                  || j                  d	   | j                  d
   ¬«      S 7 Œ7­w)r@   rp   rt   ru   re   rf   rv   rw   Nr   r   r"   )r
   rl   r1   rA   rc   r   r(   ry   s          r,   rA   zFlexUserContext.update_async  s¨   è ø€ ô  �y‰yàØ#Ø ñó
ˆô —)‘)˜B“-ˆà"Eˆ�Ñà.ˆ�ÑàŸ™×2Ñ2Ø˜tŸy™y¨t¸Wð 3ó 
÷ 
ˆô  Ø�M‰MØØŸ™¨Ñ7ØŸ.™.¨Ñ9ô	
ð 	
ð	
ús   ‚A%B!Á'BÁ(8B!c                 ó„   — dj                  d„ | j                  j                  «       D «       «      }dj                  |«      S )rC   rD   c              3   óF   K  — | ]  \  }}d j                  ||«      –— Œ y­wrF   rG   rI   s      r,   rM   z+FlexUserContext.__repr__.<locals>.<genexpr>;  rN   rO   z&<Twilio.FlexApi.V2.FlexUserContext {}>rP   rS   s     r,   rU   zFlexUserContext.__repr__5  s6   € ð —(‘(ÑS¸D¿N¹N×<PÑ<PÓ<RÔSÓSˆØ7×>Ñ>¸wÓGÐGr-   )rV   rW   rX   r   rZ   r$   r   r6   r9   r
   r\   r   r]   r=   rA   rU   r^   r_   s   @r,   r0   r0   ¤   s  ø„ ð
 ð 
°sð 
È3õ 
ð&
Ð'ó 
ð*
Ð#3ó 
ð2 %+§L¡LØ'-§|¡|Ø%+§\¡\ñ	&
à�S˜&�[Ñ!ð&
ð ˜˜V˜Ñ$ð&
ð �c˜6�kÑ"ð	&
ð
 
ó&
ðT %+§L¡LØ'-§|¡|Ø%+§\¡\ñ	&
à�S˜&�[Ñ!ð&
ð ˜˜V˜Ñ$ð&
ð �c˜6�kÑ"ð	&
ð
 
ó&
ðPH˜#÷ Hr-   r0   c                   óX   ‡ — e Zd Zdefˆ fd„Zdededefd„Zdededefd„Zdefd„Z	ˆ xZ
S )	ÚFlexUserListr   c                 ó$   •— t         ‰| �  |«       y)zj
        Initialize the FlexUserList

        :param version: Version that contains the resource

        N)r#   r$   )r*   r   r+   s     €r,   r$   zFlexUserList.__init__A  s   ø€ ô 	‰Ñ˜Õ!r-   r   r   r.   c                 ó2   — t        | j                  ||¬«      S ©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"   ©r0   r1   ©r*   r   r   s      r,   r%   zFlexUserList.getJ  ó   € ô Ø�M‰M¨ÀMô
ð 	
r-   c                 ó2   — t        | j                  ||¬«      S r�   r‚   rƒ   s      r,   Ú__call__zFlexUserList.__call__U  r„   r-   c                  ó   — y)rC   z <Twilio.FlexApi.V2.FlexUserList>rb   r2   s    r,   rU   zFlexUserList.__repr__`  s   € ð 2r-   )rV   rW   rX   r   r$   rZ   r0   r%   r†   rU   r^   r_   s   @r,   r~   r~   ?  sO   ø„ ð" õ "ð	
 ð 	
°Cð 	
¸Oó 	
ð	
 Sð 	
¸ð 	
Àó 	
ð2˜#÷ 2r-   r~   N)rY   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   r0   r~   rb   r-   r,   ú<module>rŽ      sS   ðñõ ß 3Õ 3ß +Ý 8Ý :Ý 2Ý 'ôIIÐ'ô IIôXXH�oô XHôv'2�<õ '2r-   