
    gb[                         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                   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\\\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$ )SupportingDocumentInstance   c                   ,    \ rS rSrSrSrSrSrSrSr	Sr
g	)
!SupportingDocumentInstance.Status   draftzpending-reviewrejectedapprovedexpiredzprovisionally-approved N)__name__
__module____qualname____firstlineno__DRAFTPENDING_REVIEWREJECTEDAPPROVEDEXPIREDPROVISIONALLY_APPROVED__static_attributes__r       s/Users/Alptekin/Desktop/izin_takip/venv/lib/python3.13/site-packages/twilio/rest/trusthub/v1/supporting_document.pyStatusr      s!    )!9r)   r+   versionpayloadsidc                 r  > [         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	        [        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	mime_typestatustype
attributesdate_createddate_updatedurl)super__init__getr.   r0   r1   r2   r3   r4   r5   r   iso8601_datetimer6   r7   r8   	_solution_context)selfr,   r-   r.   	__class__s       r*   r:   #SupportingDocumentInstance.__init__0   s     	!")++e"4*1++m*D,3KK,H(/K(@EL[[F
 $+;;v#6	7>{{<7P0;0L0LKK'1
 1<0L0LKK'1
 #*++e"4 3?$((
 >B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: SupportingDocumentContext for this SupportingDocumentInstance
r.   r.   )r>   SupportingDocumentContext_versionr=   r?   s    r*   _proxy!SupportingDocumentInstance._proxyK   s9     == 5NN5)DM }}r)   c                 6    U R                   R                  5       $ )]
Deletes the SupportingDocumentInstance


:returns: True if delete succeeds, False otherwise
)rH   deleterG   s    r*   rL   !SupportingDocumentInstance.deleteZ   s     {{!!##r)   c                 R   #    U R                   R                  5       I Sh  vN $  N7f)y
Asynchronous coroutine that deletes the SupportingDocumentInstance


:returns: True if delete succeeds, False otherwise
N)rH   delete_asyncrG   s    r*   rP   'SupportingDocumentInstance.delete_asyncc   s       [[--////   '%'c                 6    U R                   R                  5       $ )Y
Fetch the SupportingDocumentInstance


:returns: The fetched SupportingDocumentInstance
)rH   fetchrG   s    r*   rU    SupportingDocumentInstance.fetchl   s     {{  ""r)   c                 R   #    U R                   R                  5       I Sh  vN $  N7f)s
Asynchronous coroutine to fetch the SupportingDocumentInstance


:returns: The fetched SupportingDocumentInstance
N)rH   fetch_asyncrG   s    r*   rY   &SupportingDocumentInstance.fetch_asyncu   s       [[,,....rR   r1   r5   c                 6    U R                   R                  UUS9$ )9  
Update the SupportingDocumentInstance

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

:returns: The updated SupportingDocumentInstance
r1   r5   )rH   updater?   r1   r5   s      r*   r^   !SupportingDocumentInstance.update~   s&     {{!!'! " 
 	
r)   c                 R   #    U R                   R                  UUS9I Sh  vN $  N7f)S  
Asynchronous coroutine to update the SupportingDocumentInstance

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

:returns: The updated SupportingDocumentInstance
r]   N)rH   update_asyncr_   s      r*   rc   'SupportingDocumentInstance.update_async   s3      [[--'! . 
 
 	
 
rR   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>6SupportingDocumentInstance.__repr__.<locals>.<genexpr>         S<RDA7>>!//<R    "z2<Twilio.Trusthub.V1.SupportingDocumentInstance {}>joinr=   itemsrk   r?   contexts     r*   __repr__#SupportingDocumentInstance.__repr__   s6     ((SDNN<P<P<RSSCJJ7SSr)   )r>   r=   r0   r5   r6   r7   r1   r2   r.   r3   r4   r8   )N)rB   rE   )rB   r   )r   r   r    r!   objectr+   r   r   strr   r   r:   propertyrH   boolrL   rP   rU   rY   r   unsetr   r^   rc   ry   r(   __classcell__r@   s   @r*   r   r      s   : : OSBB)-c3hB>FsmB B6  $ $0D 0#/ -3LL,2LL
S&[)
 &&.)
 
&	
( -3LL,2LL
S&[)
 &&.)
 
&	
$T# T T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$ )rE      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 SupportingDocumentContext

:param version: Version that contains the resource
:param sid: The unique string created by Twilio to identify the Supporting Document resource.
r.   z/SupportingDocuments/{sid}Nr   )r9   r:   r=   rk   _uri)r?   r,   r.   r@   s      r*   r:   "SupportingDocumentContext.__init__   s=     	! 3
 177I$..I	r)   rB   c                 x    [         R                  " 0 5      nU R                  R                  SU R                  US9$ )rK   DELETEmethoduriheaders)r   ofrF   rL   r   r?   r   s     r*   rL    SupportingDocumentContext.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)rO   r   r   N)r   r   rF   rP   r   r   s     r*   rP   &SupportingDocumentContext.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$ )rT   application/jsonAcceptGETr   r.   rD   )r   r   rF   rU   r   r   r=   r?   r   r-   s      r*   rU   SupportingDocumentContext.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)rX   r   r   r   r   Nr.   rD   )r   r   rF   rY   r   r   r=   r   s      r*   rY   %SupportingDocumentContext.fetch_async   sq      ))B-.11dii 2 
 
 *MMu%
 	
	
s   AA/A-'A/r1   r5   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$ )
r\   FriendlyName
Attributes!application/x-www-form-urlencodedContent-Typer   r   POSTr   r   datar   r.   rD   )	r   r   r   r{   rF   r^   r   r   r=   r?   r1   r5   r   r   r-   s         r*   r^    SupportingDocumentContext.update  s     yy -'..z:
 ))B-"E.--&&tyyt ' 
 *MM7u(=
 	
r)   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)rb   r   r   r   r   r   r   r   Nr.   rD   )	r   r   r   r{   rF   rc   r   r   r=   r   s         r*   rc   &SupportingDocumentContext.update_async#  s      yy -'..z:
 ))B-"E.22tyyt 3 
 
 *MM7u(=
 	
	
s   A6B 8B9&B c                     SR                  S U R                  R                  5        5       5      nSR                  U5      $ )rf   rg   c              3   H   #    U  H  u  pS R                  X5      v   M     g7fri   rj   rl   s      r*   rp   5SupportingDocumentContext.__repr__.<locals>.<genexpr>K  rr   rs   z1<Twilio.Trusthub.V1.SupportingDocumentContext {}>rt   rw   s     r*   ry   "SupportingDocumentContext.__repr__E  s6     ((SDNN<P<P<RSSBII'RRr)   )r=   r   )r   r   r    r!   r   r|   r:   r~   rL   rP   r   rU   rY   r   r   r   r{   r^   rc   ry   r(   r   r   s   @r*   rE   rE      s    J Jc J
U 
U
D 

1 
(
#= 
0 -3LL,2LL 
S&[) 
 &&.) 
 
$	 
H -3LL,2LL 
S&[) 
 &&.) 
 
$	 
DS# S Sr)   rE   c                   >    \ rS rSrS\\\4   S\4S jrS\4S jr	Sr
g)SupportingDocumentPageiO  r-   rB   c                 .    [        U R                  U5      $ )z`
Build an instance of SupportingDocumentInstance

:param payload: Payload response from the API
)r   rF   )r?   r-   s     r*   get_instance#SupportingDocumentPage.get_instanceQ  s     *$--AAr)   c                     g)rf   z+<Twilio.Trusthub.V1.SupportingDocumentPage>r   rG   s    r*   ry   SupportingDocumentPage.__repr__Y       =r)   r   N)r   r   r    r!   r   r|   r   r   r   ry   r(   r   r)   r*   r   r   O  s-    BDcN B7Q B=# =r)   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!$ )SupportingDocumentListib  r,   c                 2   > [         TU ]  U5        SU l        g)z\
Initialize the SupportingDocumentList

:param version: Version that contains the resource

z/SupportingDocumentsN)r9   r:   r   )r?   r,   r@   s     r*   r:   SupportingDocumentList.__init__d  s     	!*	r)   r1   r4   r5   rB   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      $ )al  
Create the SupportingDocumentInstance

:param friendly_name: The string that you assigned to describe the resource.
:param type: The type of the Supporting Document.
:param attributes: The set of parameters that are the attributes of the Supporting Documents resource which are derived Supporting Document Types.

:returns: The created SupportingDocumentInstance
r   Typer   r   r   r   r   r   r   )r   r   r   r{   rF   creater   r   r?   r1   r4   r5   r   r   r-   s          r*   r   SupportingDocumentList.createo  s      yy -'..z:
 ))^-PQR"E.--&&tyyt ' 
 *$--AAr)   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)	a{  
Asynchronously create the SupportingDocumentInstance

:param friendly_name: The string that you assigned to describe the resource.
:param type: The type of the Supporting Document.
:param attributes: The set of parameters that are the attributes of the Supporting Documents resource which are derived Supporting Document Types.

:returns: The created SupportingDocumentInstance
r   r   r   r   r   r   r   N)r   r   r   r{   rF   create_asyncr   r   r   s          r*   r   #SupportingDocumentList.create_async  s       yy -'..z:
 ))^-PQR"E.22tyyt 3 
 
 *$--AA	
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 SupportingDocumentInstance 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   )rF   read_limitspagestreamr?   r   r   limitsr   s        r*   r   SupportingDocumentList.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 SupportingDocumentInstance 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   )rF   r   
page_asyncstream_asyncr   s        r*   r   #SupportingDocumentList.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 SupportingDocumentInstance 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   SupportingDocumentList.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 SupportingDocumentInstance 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!SupportingDocumentList.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      $ )aQ  
Retrieve a single page of SupportingDocumentInstance 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 SupportingDocumentInstance
	PageTokenr   PageSizer   r   r   r   r   r   r   paramsr   )r   r   rF   r   r   r   r?   r   r   r   r   r   responses          r*   r   SupportingDocumentList.page  sw      yy'#%
 ))^-PQR.==%%dii & 
 &dmmX>>r)   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)	a`  
Asynchronously retrieve a single page of SupportingDocumentInstance 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 SupportingDocumentInstance
r   r   r   r   r   r   r   N)r   r   rF   r   r   r   r   s          r*   r   !SupportingDocumentList.page_async=  s       yy'#%
 ))^-PQR.11dii 2 
 
 &dmmX>>
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 SupportingDocumentInstance records from the API.
Request is executed immediately

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

:returns: Page of SupportingDocumentInstance
r   )rF   domaintwiliorequestr   r?   r   r   s      r*   get_pageSupportingDocumentList.get_page^  s7     ==''..66ujI%dmmX>>r)   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 SupportingDocumentInstance records from the API.
Request is executed immediately

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

:returns: Page of SupportingDocumentInstance
r   N)rF   r   r   request_asyncr   r   s      r*   get_page_async%SupportingDocumentList.get_page_asyncj  sC      --44BB5*UU%dmmX>> Vs   4AAAr.   c                 *    [        U R                  US9$ z
Constructs a SupportingDocumentContext

:param sid: The unique string created by Twilio to identify the Supporting Document resource.
rD   rE   rF   r?   r.   s     r*   r;   SupportingDocumentList.getv       )C@@r)   c                 *    [        U R                  US9$ r   r   r   s     r*   __call__SupportingDocumentList.__call__~  r   r)   c                     g)rf   z+<Twilio.Trusthub.V1.SupportingDocumentList>r   rG   s    r*   ry   SupportingDocumentList.__repr__  r   r)   )r   )NN)"r   r   r    r!   r   r:   r   r   r|   r   r{   r   r   r   r   intr	   r   r
   r   r   r   r   r   r   r   r   r   rE   r;   r   ry   r(   r   r   s   @r*   r   r   b  s   	+ 	+ -3LL	!B!B !B &&.)	!B
 
$!BN -3LL	!B!B !B &&.)	!B
 
$!BJ  $#';}; C=; 
,	-	;6  $#'A}A C=A 
1	2	A6  $#'
}
 C=
 
(	)	
8  $#'
}
 C=
 
(	)	
: *0*0,,(.	?#v+&? 3;'? f%	?
 
 ?F *0*0,,(.	?#v+&? 3;'? f%	?
 
 ?B
?3 
?+A 
?
?s 
?7M 
?As A8 AAC A$= A=# = =r)   r   N)__doc__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   rE   r   r   r   r)   r*   <module>r     sj     L L L 6 6 8 : 2 ' !PT!1 PTf`S `SF=T =&j=\ j=r)   