
    gU                         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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 - Trusthub
 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	serializevalues)InstanceContext)InstanceResource)ListResource)Version)Pagec                   X  ^  \ rS rSrS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\\\4   S\\\4   SS 4S jjr\R&                  \R&                  4S\\\4   S\\\4   SS 4S jjrS\4S jrSrU =r$ )EndUserInstance   a\  
:ivar sid: The unique string created by Twilio to identify the End User resource.
:ivar account_sid: The SID of the [Account](https://www.twilio.com/docs/iam/api/account) that created the End User resource.
:ivar friendly_name: The string that you assigned to describe the resource.
:ivar type: The type of end user of the Bundle resource - can be `individual` or `business`.
:ivar attributes: The set of parameters that are the attributes of the End Users resource which are listed in the End User Types.
:ivar date_created: The date and time in GMT when the resource was created specified in [ISO 8601](https://en.wikipedia.org/wiki/ISO_8601) format.
:ivar date_updated: The date and time in GMT when the resource was last updated specified in [ISO 8601](https://en.wikipedia.org/wiki/ISO_8601) format.
:ivar url: The absolute URL of the End User resource.
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        [        R                  " UR                  S5      5      U l
        [        R                  " UR                  S5      5      U l        UR                  S5      U l        SU=(       d    U R                  0U l        S U l        g )	Nr   account_sidfriendly_nametype
attributesdate_createddate_updatedurl)super__init__getr   r   r   r   r   r   iso8601_datetimer   r   r    	_solution_context)selfr   r   r   	__class__s       h/Users/Alptekin/Desktop/izin_takip/venv/lib/python3.13/site-packages/twilio/rest/trusthub/v1/end_user.pyr"   EndUserInstance.__init__%   s     	!")++e"4*1++m*D,3KK,H#*;;v#6	7>{{<7P0;0L0LKK'1
 1<0L0LKK'1
 #*++e"4 3?$((
 37    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: EndUserContext for this EndUserInstance
r   r   )r&   EndUserContext_versionr%   r'   s    r)   _proxyEndUserInstance._proxy<   s9     == *NN5)DM }}r+   c                 6    U R                   R                  5       $ )R
Deletes the EndUserInstance


:returns: True if delete succeeds, False otherwise
)r2   deleter1   s    r)   r6   EndUserInstance.deleteK   s     {{!!##r+   c                 R   #    U R                   R                  5       I Sh  vN $  N7f)n
Asynchronous coroutine that deletes the EndUserInstance


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


:returns: The fetched EndUserInstance
)r2   fetchr1   s    r)   r?   EndUserInstance.fetch]   s     {{  ""r+   c                 R   #    U R                   R                  5       I Sh  vN $  N7f)]
Asynchronous coroutine to fetch the EndUserInstance


:returns: The fetched EndUserInstance
N)r2   fetch_asyncr1   s    r)   rC   EndUserInstance.fetch_asyncf   s       [[,,....r<   r   r   c                 6    U R                   R                  UUS9$ )  
Update the EndUserInstance

:param friendly_name: The string that you assigned to describe the resource.
:param attributes: The set of parameters that are the attributes of the End User resource which are derived End User Types.

:returns: The updated EndUserInstance
r   r   )r2   updater'   r   r   s      r)   rH   EndUserInstance.updateo   s&     {{!!'! " 
 	
r+   c                 R   #    U R                   R                  UUS9I Sh  vN $  N7f)'  
Asynchronous coroutine to update the EndUserInstance

:param friendly_name: The string that you assigned to describe the resource.
:param attributes: The set of parameters that are the attributes of the End User resource which are derived End User Types.

:returns: The updated EndUserInstance
rG   N)r2   update_asyncrI   s      r)   rM   EndUserInstance.update_async   s3      [[--'! . 
 
 	
 
r<   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>+EndUserInstance.__repr__.<locals>.<genexpr>         S<RDA7>>!//<R    "z'<Twilio.Trusthub.V1.EndUserInstance {}>joinr%   itemsrU   r'   contexts     r)   __repr__EndUserInstance.__repr__   s6     ((SDNN<P<P<RSS8??HHr+   )
r&   r%   r   r   r   r   r   r   r   r    )N)r,   r/   )r,   r   )__name__
__module____qualname____firstlineno____doc__r   r   strr   r   r"   propertyr2   boolr6   r:   r?   rC   r   unsetr   objectrH   rM   rc   __static_attributes____classcell__r(   s   @r)   r   r      s   	 OS77)-c3h7>Fsm7 7.  $ $0D 0#/ -3LL,2LL
S&[)
 &&.)
 
	
( -3LL,2LL
S&[)
 &&.)
 
	
$I# I I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
\\\4   S\\\4   S\
4S jjr\R                  \R                  4S
\\\4   S\\\4   S\
4S jjrS\4S jrSrU =r$ )r/      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 EndUserContext

:param version: Version that contains the resource
:param sid: The unique string created by Twilio to identify the End User resource.
r   z/EndUsers/{sid}N )r!   r"   r%   rU   _uri)r'   r   r   r(   s      r)   r"   EndUserContext.__init__   s=     	! 3
 &,,>t~~>	r+   r,   c                 x    [         R                  " 0 5      nU R                  R                  SU R                  US9$ )r5   DELETEmethoduriheaders)r   ofr0   r6   rv   r'   r}   s     r)   r6   EndUserContext.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)r9   ry   rz   N)r   r~   r0   r:   rv   r   s     r)   r:   EndUserContext.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$ )r>   application/jsonAcceptGETrz   r   r.   )r   r~   r0   r?   rv   r   r%   r'   r}   r   s      r)   r?   EndUserContext.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)rB   r   r   r   rz   Nr   r.   )r   r~   r0   rC   rv   r   r%   r   s      r)   rC   EndUserContext.fetch_async   sq      ))B-.11dii 2 
 
 MMu%
 	
	
s   AA/A-'A/r   r   c                 (   [         R                  " U[        R                  " U5      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$ )
rF   FriendlyName
Attributes!application/x-www-form-urlencodedContent-Typer   r   POSTr{   r|   datar}   r   r.   )	r   r~   r   rn   r0   rH   rv   r   r%   r'   r   r   r   r}   r   s         r)   rH   EndUserContext.update   s     yy -'..z:
 ))B-"E.--&&tyyt ' 
 t}}g>>%;PQQr+   c                 D  #    [         R                  " U[        R                  " U5      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)rL   r   r   r   r   r   r   r   Nr   r.   )	r   r~   r   rn   r0   rM   rv   r   r%   r   s         r)   rM   EndUserContext.update_async  s      yy -'..z:
 ))B-"E.22tyyt 3 
 
 t}}g>>%;PQQ	
s   A6B 8B9&B c                     SR                  S U R                  R                  5        5       5      nSR                  U5      $ )rP   rQ   c              3   H   #    U  H  u  pS R                  X5      v   M     g7frS   rT   rV   s      r)   rZ   *EndUserContext.__repr__.<locals>.<genexpr>8  r\   r]   z&<Twilio.Trusthub.V1.EndUserContext {}>r^   ra   s     r)   rc   EndUserContext.__repr__2  s6     ((SDNN<P<P<RSS7>>wGGr+   )r%   rv   )re   rf   rg   rh   r   rj   r"   rl   r6   r:   r   r?   rC   r   rm   r   rn   rH   rM   rc   ro   rp   rq   s   @r)   r/   r/      s    ? ?c ?
U 
U
D 

 
(
? 
0 -3LL,2LLRS&[)R &&.)R 
	RD -3LL,2LLRS&[)R &&.)R 
	R@H# H Hr+   r/   c                   >    \ rS rSrS\\\4   S\4S jrS\4S jr	Sr
g)EndUserPagei<  r   r,   c                 .    [        U R                  U5      $ )zU
Build an instance of EndUserInstance

:param payload: Payload response from the API
)r   r0   )r'   r   s     r)   get_instanceEndUserPage.get_instance>  s     t}}g66r+   c                     g)rP   z <Twilio.Trusthub.V1.EndUserPage>ru   r1   s    r)   rc   EndUserPage.__repr__F       2r+   ru   N)re   rf   rg   rh   r   rj   r   r   r   rc   ro   ru   r+   r)   r   r   <  s)    7DcN 7 72# 2r+   r   c            	         ^  \ rS rSrS\4U 4S jjr\R                  4S\S\S\	\
\
4   S\4S jjr\R                  4S\S\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!$ )EndUserListiO  r   c                 2   > [         TU ]  U5        SU l        g)zQ
Initialize the EndUserList

:param version: Version that contains the resource

z	/EndUsersN)r!   r"   rv   )r'   r   r(   s     r)   r"   EndUserList.__init__Q  s     	!	r+   r   r   r   r,   c                    [         R                  " UU[        R                  " U5      S.5      n[         R                  " SS05      nSUS'   SUS'   U R                  R                  SU R                  XES9n[        U R                  U5      $ )ak  
Create the EndUserInstance

:param friendly_name: The string that you assigned to describe the resource.
:param type: The type of end user of the Bundle resource - can be `individual` or `business`.
:param attributes: The set of parameters that are the attributes of the End User resource which are derived End User Types.

:returns: The created EndUserInstance
r   Typer   r   r   r   r   r   r   )r   r~   r   rn   r0   createrv   r   r'   r   r   r   r   r}   r   s          r)   r   EndUserList.create\  s      yy -'..z:
 ))^-PQR"E.--&&tyyt ' 
 t}}g66r+   c                 4  #    [         R                  " UU[        R                  " U5      S.5      n[         R                  " SS05      nSUS'   SUS'   U R                  R                  SU R                  XES9I Sh  vN n[        U R                  U5      $  N7f)	az  
Asynchronously create the EndUserInstance

:param friendly_name: The string that you assigned to describe the resource.
:param type: The type of end user of the Bundle resource - can be `individual` or `business`.
:param attributes: The set of parameters that are the attributes of the End User resource which are derived End User Types.

:returns: The created EndUserInstance
r   r   r   r   r   r   r   N)r   r~   r   rn   r0   create_asyncrv   r   r   s          r)   r   EndUserList.create_async  s       yy -'..z:
 ))^-PQR"E.22tyyt 3 
 
 t}}g66	
s   A9B;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 EndUserInstance 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   )r0   read_limitspagestreamr'   r   r   limitsr   s        r)   r   EndUserList.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 EndUserInstance 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   )r0   r   
page_asyncstream_asyncr   s        r)   r   EndUserList.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 EndUserInstance 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   )r'   r   r   s      r)   r   EndUserList.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 EndUserInstance 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   )r'   r   r   records       r)   
list_asyncEndUserList.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      $ )a;  
Retrieve a single page of EndUserInstance 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 EndUserInstance
	PageTokenr   PageSizer   r   r   r   r   r{   r|   paramsr}   )r   r~   r0   r   rv   r   r'   r   r   r   r   r}   responses          r)   r   EndUserList.page	  sw      yy'#%
 ))^-PQR.==%%dii & 
 4==(33r+   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)	aJ  
Asynchronously retrieve a single page of EndUserInstance 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 EndUserInstance
r   r   r   r   r   r   r   N)r   r~   r0   r   rv   r   r   s          r)   r   EndUserList.page_async*  s       yy'#%
 ))^-PQR.11dii 2 
 
 4==(33
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 EndUserInstance records from the API.
Request is executed immediately

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

:returns: Page of EndUserInstance
r   )r0   domaintwiliorequestr   r'   r   r   s      r)   get_pageEndUserList.get_pageK  s7     ==''..66ujI4==(33r+   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 EndUserInstance records from the API.
Request is executed immediately

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

:returns: Page of EndUserInstance
r   N)r0   r   r   request_asyncr   r   s      r)   get_page_asyncEndUserList.get_page_asyncW  sC      --44BB5*UU4==(33 Vs   4AAAr   c                 *    [        U R                  US9$ zq
Constructs a EndUserContext

:param sid: The unique string created by Twilio to identify the End User resource.
r.   r/   r0   r'   r   s     r)   r#   EndUserList.getc       dmm55r+   c                 *    [        U R                  US9$ r   r   r   s     r)   __call__EndUserList.__call__k  r   r+   c                     g)rP   z <Twilio.Trusthub.V1.EndUserList>ru   r1   s    r)   rc   EndUserList.__repr__s  r   r+   )rv   )NN)"re   rf   rg   rh   r   r"   r   rm   rj   r   rn   r   r   r   r   intr	   r   r
   r   r   r   r   r   r   r   r   r   r/   r#   r   rc   ro   rp   rq   s   @r)   r   r   O  s   	  	  -3LL	!7!7 !7 &&.)	!7
 
!7N -3LL	!7!7 !7 &&.)	!7
 
!7J  $#';}; C=; 
/	"	;6  $#'A}A C=A 
	'	A6  $#'
}
 C=
 
o		
8  $#'
}
 C=
 
o		
: *0*0,,(.	4#v+&4 3;'4 f%	4
 
4F *0*0,,(.	4#v+&4 3;'4 f%	4
 
4B
43 
4; 
4
4s 
4{ 
46s 6~ 66C 6N 62# 2 2r+   r   N)ri   r   typingr   r   r   r   r   r	   r
   twilio.baser   r   r   twilio.base.instance_contextr   twilio.base.instance_resourcer   twilio.base.list_resourcer   twilio.base.versionr   twilio.base.pager   r   r/   r   r   ru   r+   r)   <module>r      sj     L L L 6 6 8 : 2 ' !AI& AIH\H_ \H~2$ 2&j2, j2r+   