
    pib[                         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DRAFTPENDING_REVIEWREJECTEDAPPROVEDEXPIREDPROVISIONALLY_APPROVEDN)	__name__
__module____qualname__r   r   r   r   r   r        m/opt/services/ai/voice_agent/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+   r,   r-   r   iso8601_datetimer.   r/   r0   	_solution_context)selfr$   r%   r&   	__class__s       r"   r2   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&   )r6   SupportingDocumentContext_versionr5   r7   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
        )r?   deleter>   s    r"   rB   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)r?   delete_asyncr>   s    r"   rE   z'SupportingDocumentInstance.delete_asyncc   s!      [[--////   '%'c                 6    | j                   j                         S )q
        Fetch the SupportingDocumentInstance


        :returns: The fetched SupportingDocumentInstance
        )r?   fetchr>   s    r"   rI   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)r?   fetch_asyncr>   s    r"   rL   z&SupportingDocumentInstance.fetch_asyncu   s!      [[,,....rF   r)   r-   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)   r-   )r?   updater7   r)   r-   s      r"   rP   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
        rO   N)r?   update_asyncrQ   s      r"   rT   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 {}>joinr5   itemsr[   r7   contexts     r"   __repr__z#SupportingDocumentInstance.__repr__   s6     ((SDNN<P<P<RSSCJJ7SSr!   )N)r9   r<   )r9   r   )r   r   r   objectr#   r   r   strr   r   r2   propertyr?   boolrB   rE   rI   rL   r   unsetr   rP   rT   rh   __classcell__r8   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    )r1   r2   r5   r[   _uri)r7   r$   r&   r8   s      r"   r2   z"SupportingDocumentContext.__init__   s@     	! 3
 8077I$..I	r!   r9   c                 |    t        j                  i       }| j                  j                  d| j                  |      S )rA   DELETEmethoduriheaders)r   ofr=   rB   rr   r7   rx   s     r"   rB   z SupportingDocumentContext.delete   s1     ))B-}}##8G#TTr!   c                    K   t        j                  i       }| j                  j                  d| j                  |       d{   S 7 w)rD   rt   ru   N)r   ry   r=   rE   rr   rz   s     r"   rE   z&SupportingDocumentContext.delete_async   sF      ))B-]]//G 0 
 
 	
 
s   AA
AA
c                     t        j                  i       }d|d<   | j                  j                  d| j                  |      }t        | j                  || j                  d         S )rH   application/jsonAcceptGETru   r&   r;   )r   ry   r=   rI   rr   r   r5   r7   rx   r%   s      r"   rI   zSupportingDocumentContext.fetch   s]     ))B-.--%%U		7%S)MMu%
 	
r!   c                    K   t        j                  i       }d|d<   | j                  j                  d| j                  |       d{   }t        | j                  || j                  d         S 7 )w)rK   r}   r~   r   ru   Nr&   r;   )r   ry   r=   rL   rr   r   r5   r   s      r"   rL   z%SupportingDocumentContext.fetch_async   sr      ))B-.11dii 2 
 
 *MMu%
 	
	
s   AA4A2	*A4r)   r-   c                 2   t        j                  |t        j                  |      d      }t        j                  i       }d|d<   d|d<   | j                  j                  d| j                  ||      }t        | j                  || j                  d   	      S )
rN   FriendlyName
Attributes!application/x-www-form-urlencodedContent-Typer}   r~   POSTrv   rw   datarx   r&   r;   )	r   ry   r   ri   r=   rP   rr   r   r5   r7   r)   r-   r   rx   r%   s         r"   rP   z SupportingDocumentContext.update  s     yy -'..z:
 ))B-"E.--&&tyytW ' 
 *MM7u(=
 	
r!   c                 N  K   t        j                  |t        j                  |      d      }t        j                  i       }d|d<   d|d<   | j                  j                  d| j                  ||       d{   }t        | j                  || j                  d	   
      S 7 )w)rS   r   r   r   r}   r~   r   r   Nr&   r;   )	r   ry   r   ri   r=   rT   rr   r   r5   r   s         r"   rT   z&SupportingDocumentContext.update_async#  s      yy -'..z:
 ))B-"E.22tyytW 3 
 
 *MM7u(=
 	
	
s   A7B%9B#:*B%c                     dj                  d | j                  j                         D              }dj                  |      S )rV   rW   c              3   F   K   | ]  \  }}d j                  ||        ywrY   rZ   r\   s      r"   r`   z5SupportingDocumentContext.__repr__.<locals>.<genexpr>K  ra   rb   z1<Twilio.Trusthub.V1.SupportingDocumentContext {}>rc   rf   s     r"   rh   z"SupportingDocumentContext.__repr__E  s6     ((SDNN<P<P<RSSBII'RRr!   )r   r   r   r   rj   r2   rl   rB   rE   r   rI   rL   r   rm   r   ri   rP   rT   rh   rn   ro   s   @r"   r<   r<      s    J Jc J
U 
U
D 

1 
(
#= 
0 -3LL,2LL 
S&[) 
 &&.) 
 
$	 
H -3LL,2LL 
S&[) 
 &&.) 
 
$	 
D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%   r9   c                 .    t        | j                  |      S )zx
        Build an instance of SupportingDocumentInstance

        :param payload: Payload response from the API
        )r   r=   )r7   r%   s     r"   get_instancez#SupportingDocumentPage.get_instanceQ  s     *$--AAr!   c                      y)rV   z+<Twilio.Trusthub.V1.SupportingDocumentPage>r    r>   s    r"   rh   zSupportingDocumentPage.__repr__Y       =r!   N)	r   r   r   r   rj   r   r   r   rh   r    r!   r"   r   r   O  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)r1   r2   rr   )r7   r$   r8   s     r"   r2   zSupportingDocumentList.__init__d  s     	!*	r!   r)   r,   r-   r9   c                    t        j                  ||t        j                  |      d      }t        j                  ddi      }d|d<   d|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   r   )r   ry   r   ri   r=   createrr   r   r7   r)   r,   r-   r   rx   r%   s          r"   r   zSupportingDocumentList.createo  s      yy -'..z:
 ))^-PQR"E.--&&tyytW ' 
 *$--AAr!   c                 6  K   t        j                  ||t        j                  |      d      }t        j                  ddi      }d|d<   d|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   r}   r~   r   r   N)r   ry   r   ri   r=   create_asyncrr   r   r   s          r"   r   z#SupportingDocumentList.create_async  s       yy -'..z:
 ))^-PQR"E.22tyytW 3 
 
 *$--AA	
s   A:B<B=B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   )r=   read_limitspagestreamr7   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   )r=   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   )r7   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   )r7   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      }t        j                  ddi      }d|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   r   r}   r~   r   rv   rw   paramsrx   )r   ry   r=   r   rr   r   r7   r   r   r   r   rx   responses          r"   r   zSupportingDocumentList.page  sy      yy'#%
 ))^-PQR.==%%diig & 
 &dmmX>>r!   c                   K   t        j                  |||d      }t        j                  ddi      }d|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   r}   r~   r   r   N)r   ry   r=   r   rr   r   r   s          r"   r   z!SupportingDocumentList.page_async=  s       yy'#%
 ))^-PQR.11diig 2 
 
 &dmmX>>
s   A"B$A?%B
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   )r=   domaintwiliorequestr   r7   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)r=   r   r   request_asyncr   r   s      r"   get_page_asyncz%SupportingDocumentList.get_page_asyncj  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<   r=   r7   r&   s     r"   r3   zSupportingDocumentList.getv       )C@@r!   c                 0    t        | j                  |      S r   r   r   s     r"   __call__zSupportingDocumentList.__call__~  r   r!   c                      y)rV   z+<Twilio.Trusthub.V1.SupportingDocumentList>r    r>   s    r"   rh   zSupportingDocumentList.__repr__  r   r!   )NN) r   r   r   r   r2   r   rm   rj   r   ri   r   r   r   r   intr	   r   r
   r   r   r   r   r   r   r   r   r   r<   r3   r   rh   rn   ro   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   r<   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!   