
    i?1iV                         d Z ddlmZ ddlmZmZmZmZmZmZm	Z	 ddl
mZmZmZ ddl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 G d de      Zy)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                   J    e Zd Z G d de      Z	 	 ddedeeef   de	e   f fdZ
edd       Zdefd	Zdefd
ZddZddZej&                  ej&                  fdeeef   deeef   dd fdZej&                  ej&                  fdeeef   deeef   dd fdZdefdZ xZS )SupportingDocumentInstancec                   $    e Zd ZdZdZdZdZdZdZy)!SupportingDocumentInstance.Statusdraftzpending-reviewrejectedapprovedexpiredzprovisionally-approvedN)	__name__
__module____qualname__DRAFTPENDING_REVIEWREJECTEDAPPROVEDEXPIREDPROVISIONALLY_APPROVED     u/home/www/therecruiter.miabetepe.com/venv/lib/python3.12/site-packages/twilio/rest/trusthub/v1/supporting_document.pyStatusr      s!    )!9r%   r'   versionpayloadsidc                 d   t         |   |       |j                  d      | _        |j                  d      | _        |j                  d      | _        |j                  d      | _        |j                  d      | _        |j                  d      | _        |j                  d      | _	        t        j                  |j                  d            | _        t        j                  |j                  d	            | _        |j                  d
      | _        d|xs | j                  i| _        d | _        y )Nr*   account_sidfriendly_name	mime_typestatustype
attributesdate_createddate_updatedurl)super__init__getr*   r,   r-   r.   r/   r0   r1   r   iso8601_datetimer2   r3   r4   	_solution_context)selfr(   r)   r*   	__class__s       r&   r6   z#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                     | j                   )t        | j                  | 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: SupportingDocumentContext for this SupportingDocumentInstance
        r*   r*   )r:   SupportingDocumentContext_versionr9   r;   s    r&   _proxyz!SupportingDocumentInstance._proxyK   s9     == 5NN5)DM }}r%   c                 6    | j                   j                         S )u
        Deletes the SupportingDocumentInstance


        :returns: True if delete succeeds, False otherwise
        )rC   deleterB   s    r&   rF   z!SupportingDocumentInstance.deleteZ   s     {{!!##r%   c                 R   K   | j                   j                          d{   S 7 w)
        Asynchronous coroutine that deletes the SupportingDocumentInstance


        :returns: True if delete succeeds, False otherwise
        N)rC   delete_asyncrB   s    r&   rI   z'SupportingDocumentInstance.delete_asyncc   s!      [[--////   '%'c                 6    | j                   j                         S )q
        Fetch the SupportingDocumentInstance


        :returns: The fetched SupportingDocumentInstance
        )rC   fetchrB   s    r&   rM   z SupportingDocumentInstance.fetchl   s     {{  ""r%   c                 R   K   | j                   j                          d{   S 7 w)
        Asynchronous coroutine to fetch the SupportingDocumentInstance


        :returns: The fetched SupportingDocumentInstance
        N)rC   fetch_asyncrB   s    r&   rP   z&SupportingDocumentInstance.fetch_asyncu   s!      [[,,....rJ   r-   r1   c                 <    | j                   j                  ||      S )a  
        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-   r1   )rC   updater;   r-   r1   s      r&   rT   z!SupportingDocumentInstance.update~   s&     {{!!'! " 
 	
r%   c                 X   K   | j                   j                  ||       d{   S 7 w){  
        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
        rS   N)rC   update_asyncrU   s      r&   rX   z'SupportingDocumentInstance.update_async   s4      [[--'! . 
 
 	
 
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>z6SupportingDocumentInstance.__repr__.<locals>.<genexpr>        SDAq7>>!Q/S   !z2<Twilio.Trusthub.V1.SupportingDocumentInstance {}>joinr9   itemsr_   r;   contexts     r&   __repr__z#SupportingDocumentInstance.__repr__   s6     ((SDNN<P<P<RSSCJJ7SSr%   )N)r=   r@   )r=   r   )r   r   r   objectr'   r   r   strr   r   r6   propertyrC   boolrF   rI   rM   rP   r   unsetr   rT   rX   rl   __classcell__r<   s   @r&   r   r      s   : : OSBB)-c3hB>FsmB6  $ $0D 0#/ -3LL,2LL
S&[)
 &&.)
 
&	
( -3LL,2LL
S&[)
 &&.)
 
&	
$T# Tr%   r   c                       e Zd Zdedef fdZdefdZdefdZde	fdZ
de	fdZej                  ej                  fd	eeef   d
eeef   de	fdZej                  ej                  fd	eeef   d
eeef   de	fdZdefdZ xZS )r@   r(   r*   c                 x    t         |   |       d|i| _         dj                  di | j                  | _        y)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$   )r5   r6   r9   r_   _uri)r;   r(   r*   r<   s      r&   r6   z"SupportingDocumentContext.__init__   s@     	! 3
 8077I$..I	r%   r=   c                 P    | j                   j                  d| j                        S )rE   DELETEmethoduri)rA   rF   rv   rB   s    r&   rF   z SupportingDocumentContext.delete   s*     }}##		 $ 
 	
r%   c                 l   K   | j                   j                  d| j                         d{   S 7 w)rH   rx   ry   N)rA   rI   rv   rB   s    r&   rI   z&SupportingDocumentContext.delete_async   s8      ]]//		 0 
 
 	
 
s   +424c                     | j                   j                  d| j                        }t        | j                   || j                  d         S )rL   GETry   r*   r?   )rA   rM   rv   r   r9   r;   r)   s     r&   rM   zSupportingDocumentContext.fetch   sL     --%%		 & 

 *MMu%
 	
r%   c                    K   | j                   j                  d| j                         d{   }t        | j                   || j                  d         S 7 )w)rO   r~   ry   Nr*   r?   )rA   rP   rv   r   r9   r   s     r&   rP   z%SupportingDocumentContext.fetch_async   sZ      11		 2 
 

 *MMu%
 	

s   +AA*Ar-   r1   c                     t        j                  |t        j                  |      d      }| j                  j                  d| j                  |      }t        | j                  || j                  d         S )rR   FriendlyName
AttributesPOSTrz   r{   datar*   r?   )	r   ofr   rm   rA   rT   rv   r   r9   r;   r-   r1   r   r)   s        r&   rT   z SupportingDocumentContext.update   ss     yy -'..z:
 --&&		 ' 
 *MM7u(=
 	
r%   c                   K   t        j                  |t        j                  |      d      }| j                  j                  d| j                  |       d{   }t        | j                  || j                  d         S 7 )w)rW   r   r   r   Nr*   r?   )	r   r   r   rm   rA   rX   rv   r   r9   r   s        r&   rX   z&SupportingDocumentContext.update_async  s      yy -'..z:
 22		 3 
 
 *MM7u(=
 	

s   ABB*Bc                     dj                  d | j                  j                         D              }dj                  |      S )rZ   r[   c              3   F   K   | ]  \  }}d j                  ||        ywr]   r^   r`   s      r&   rd   z5SupportingDocumentContext.__repr__.<locals>.<genexpr><  re   rf   z1<Twilio.Trusthub.V1.SupportingDocumentContext {}>rg   rj   s     r&   rl   z"SupportingDocumentContext.__repr__6  s6     ((SDNN<P<P<RSSBII'RRr%   )r   r   r   r   rn   r6   rp   rF   rI   r   rM   rP   r   rq   r   rm   rT   rX   rl   rr   rs   s   @r&   r@   r@      s    J Jc J

 



D 


1 
&
#= 
* -3LL,2LL
S&[)
 &&.)
 
$	
@ -3LL,2LL
S&[)
 &&.)
 
$	
<S# Sr%   r@   c                   2    e Zd Zdeeef   defdZdefdZy)SupportingDocumentPager)   r=   c                 .    t        | j                  |      S )zx
        Build an instance of SupportingDocumentInstance

        :param payload: Payload response from the API
        )r   rA   r   s     r&   get_instancez#SupportingDocumentPage.get_instanceA  s     *$--AAr%   c                      y)rZ   z+<Twilio.Trusthub.V1.SupportingDocumentPage>r$   rB   s    r&   rl   zSupportingDocumentPage.__repr__I       =r%   N)	r   r   r   r   rn   r   r   r   rl   r$   r%   r&   r   r   @  s-    BDcN B7Q B=# =r%   r   c            	           e Zd Zdef fdZej                  fdededee	e	f   de
fdZej                  fdededee	e	f   de
fdZ	 	 dd	ee   d
ee   dee
   fdZ	 	 dd	ee   d
ee   dee
   fdZ	 	 dd	ee   d
ee   dee
   fdZ	 	 dd	ee   d
ee   de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defdZdedefdZdedefdZdedefdZdefdZ xZS )SupportingDocumentListr(   c                 2    t         |   |       d| _        y)zt
        Initialize the SupportingDocumentList

        :param version: Version that contains the resource

        z/SupportingDocumentsN)r5   r6   rv   )r;   r(   r<   s     r&   r6   zSupportingDocumentList.__init__S  s     	!*	r%   r-   r0   r1   r=   c                     t        j                  ||t        j                  |      d      }| j                  j                  d| j                  |      }t        | j                  |      S )a  
        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   rm   rA   createrv   r   r;   r-   r0   r1   r   r)   s         r&   r   zSupportingDocumentList.create^  sf     yy -'..z:
 --&&		 ' 
 *$--AAr%   c                    K   t        j                  ||t        j                  |      d      }| j                  j                  d| j                  |       d{   }t        | j                  |      S 7 w)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   N)r   r   r   rm   rA   create_asyncrv   r   r   s         r&   r   z#SupportingDocumentList.create_async}  st      yy -'..z:
 22		 3 
 
 *$--AA
s   AA7A5A7limit	page_sizec                     | j                   j                  ||      }| j                  |d         }| j                   j                  ||d         S )ah  
        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   )rA   read_limitspagestreamr;   r   r   limitsr   s        r&   r   zSupportingDocumentList.stream  sJ    ( **5)<yy6+#6y7}}##D&/::r%   c                    K   | j                   j                  ||      }| j                  |d          d{   }| j                   j                  ||d         S 7 #w)aw  
        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   )rA   r   
page_asyncstream_asyncr   s        r&   r   z#SupportingDocumentList.stream_async  sW     ( **5)<__vk/B_CC}}))$w@@ Ds   5AA$Ac                 :    t        | j                  ||            S )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   zSupportingDocumentList.list  s(    & KK#  
 	
r%   c                 z   K   | j                  ||       d{   2 cg c3 d{   }|7 7 	6 c}S c c}w w)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_asyncz!SupportingDocumentList.list_async  sT     * '+&7&7# '8 ' !
 
 !
 
 	
 
s0   ;.;620
26;26;
page_tokenpage_numberc                     t        j                  |||d      }| j                  j                  d| j                  |      }t        | j                  |      S )a  
        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~   rz   r{   params)r   r   rA   r   rv   r   r;   r   r   r   r   responses         r&   r   zSupportingDocumentList.page  sR      yy'#%
 ==%%U		$%O%dmmX>>r%   c                    K   t        j                  |||d      }| j                  j                  d| j                  |       d{   }t        | j                  |      S 7 w)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   N)r   r   rA   r   rv   r   r   s         r&   r   z!SupportingDocumentList.page_async  sg       yy'#%
 11dii 2 
 
 &dmmX>>
s   AA$A"A$
target_urlc                     | j                   j                  j                  j                  d|      }t	        | j                   |      S )a	  
        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~   )rA   domaintwiliorequestr   r;   r   r   s      r&   get_pagezSupportingDocumentList.get_page;  s7     ==''..66ujI%dmmX>>r%   c                    K   | j                   j                  j                  j                  d|       d{   }t	        | j                   |      S 7 w)a  
        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)rA   r   r   request_asyncr   r   s      r&   get_page_asyncz%SupportingDocumentList.get_page_asyncG  sD      --44BB5*UU%dmmX>> Vs   4AAAr*   c                 0    t        | j                  |      S z
        Constructs a SupportingDocumentContext

        :param sid: The unique string created by Twilio to identify the Supporting Document resource.
        r?   r@   rA   r;   r*   s     r&   r7   zSupportingDocumentList.getS       )C@@r%   c                 0    t        | j                  |      S r   r   r   s     r&   __call__zSupportingDocumentList.__call__[  r   r%   c                      y)rZ   z+<Twilio.Trusthub.V1.SupportingDocumentList>r$   rB   s    r&   rl   zSupportingDocumentList.__repr__c  r   r%   )NN) r   r   r   r   r6   r   rq   rn   r   rm   r   r   r   r   intr	   r   r
   r   r   r   r   r   r   r   r   r   r@   r7   r   rl   rr   rs   s   @r&   r   r   R  s   	+ 	+ -3LL	BB B &&.)	B
 
$BF -3LL	BB B &&.)	B
 
$BB  $#';}; C=; 
,	-	;6  $#'A}A C=A 
1	2	A6  $#'
}
 C=
 
(	)	
8  $#'
}
 C=
 
(	)	
: *0*0,,(.	?#v+&? 3;'? f%	?
 
 ?: *0*0,,(.	?#v+&? 3;'? f%	?
 
 ?:
?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   r@   r   r   r$   r%   r&   <module>r      sj     L L L 6 6 8 : 2 ' !OT!1 OTdQS QSh=T =$W=\ W=r%   