
    d{i                         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 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)ApiResponse)InstanceContext)InstanceResource)ListResource)Version)Pagec                   &    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efdZdefdZddZddZdefdZdefdZej0                  ej0                  fdeeef   deeef   dd fdZej0                  ej0                  fdeeef   deeef   dd fdZej0                  ej0                  fdeeef   deeef   defdZej0                  ej0                  fdeeef   deeef   de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        i/home/sas/my/fyp/ringai/.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/   r0   r1   	_solution_context)selfr%   r&   r'   	__class__s       r#   r3   z#SupportingDocumentInstance.__init__1   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'   )r7   SupportingDocumentContext_versionr6   r8   s    r#   _proxyz!SupportingDocumentInstance._proxyL   s9     == 5NN5)DM }}r"   c                 6    | j                   j                         S zu
        Deletes the SupportingDocumentInstance


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


        :returns: True if delete succeeds, False otherwise
        N)r@   delete_asyncr?   s    r#   rF   z'SupportingDocumentInstance.delete_asyncd   s!      [[--////   '%'c                 6    | j                   j                         S )z
        Deletes the SupportingDocumentInstance with HTTP info


        :returns: ApiResponse with success boolean, status code, and headers
        )r@   delete_with_http_infor?   s    r#   rI   z0SupportingDocumentInstance.delete_with_http_infom   s     {{0022r"   c                 R   K   | j                   j                          d{   S 7 w)z
        Asynchronous coroutine that deletes the SupportingDocumentInstance with HTTP info


        :returns: ApiResponse with success boolean, status code, and headers
        N)r@   delete_with_http_info_asyncr?   s    r#   rK   z6SupportingDocumentInstance.delete_with_http_info_asyncv   s!      [[<<>>>>rG   c                 6    | j                   j                         S )q
        Fetch the SupportingDocumentInstance


        :returns: The fetched SupportingDocumentInstance
        )r@   fetchr?   s    r#   rN   z SupportingDocumentInstance.fetch   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#   rQ   z&SupportingDocumentInstance.fetch_async   s!      [[,,....rG   c                 6    | j                   j                         S )z
        Fetch the SupportingDocumentInstance with HTTP info


        :returns: ApiResponse with instance, status code, and headers
        )r@   fetch_with_http_infor?   s    r#   rS   z/SupportingDocumentInstance.fetch_with_http_info   s     {{//11r"   c                 R   K   | j                   j                          d{   S 7 w)z
        Asynchronous coroutine to fetch the SupportingDocumentInstance with HTTP info


        :returns: ApiResponse with instance, status code, and headers
        N)r@   fetch_with_http_info_asyncr?   s    r#   rU   z5SupportingDocumentInstance.fetch_with_http_info_async   s!      [[;;====rG   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r8   r*   r.   s      r#   rY   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
        rX   N)r@   update_asyncrZ   s      r#   r]   z'SupportingDocumentInstance.update_async   s4      [[--'! . 
 
 	
 
   !*(*c                 <    | j                   j                  ||      S )a}  
        Update the SupportingDocumentInstance with HTTP info

        :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: ApiResponse with instance, status code, and headers
        rX   )r@   update_with_http_inforZ   s      r#   r`   z0SupportingDocumentInstance.update_with_http_info   s&     {{00'! 1 
 	
r"   c                 X   K   | j                   j                  ||       d{   S 7 w)a  
        Asynchronous coroutine to update the SupportingDocumentInstance with HTTP info

        :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: ApiResponse with instance, status code, and headers
        rX   N)r@   update_with_http_info_asyncrZ   s      r#   rb   z6SupportingDocumentInstance.update_with_http_info_async   s4      [[<<'! = 
 
 	
 
r^   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 {}>joinr6   itemsri   r8   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   r3   propertyr@   boolrC   rF   r   rI   rK   rN   rQ   rS   rU   r   unsetr   rY   r]   r`   rb   rv   __classcell__r9   s   @r#   r   r      s   : : OSBB)-c3hB>FsmB6  $ $0D 03{ 3?; ?#/2k 2>+ > -3LL,2LL
S&[)
 &&.)
 
&	
( -3LL,2LL
S&[)
 &&.)
 
&	
( -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defd	Zde
fd
ZdefdZde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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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!   )r2   r3   r6   ri   _uri)r8   r%   r'   r9   s      r#   r3   z"SupportingDocumentContext.__init__   s@     	! 3
 8077I$..I	r"   r:   c                 |    t        j                  i       }| j                  j                  d| j                  |      S )z
        Internal helper for delete operation

        Returns:
            tuple: (success_boolean, status_code, headers)
        DELETEmethoduriheaders)r   ofr>   delete_with_response_infor   r8   r   s     r#   _deletez!SupportingDocumentContext._delete  s8     ))B-}}66G 7 
 	
r"   c                 .    | j                         \  }}}|S rB   )r   r8   success_s      r#   rC   z SupportingDocumentContext.delete  s     Ar"   c                 F    | j                         \  }}}t        |||      S )z
        Deletes the SupportingDocumentInstance and return response metadata


        :returns: ApiResponse with success boolean, status code, and headers
        datastatus_coder   )r   r   r8   r   r   r   s       r#   rI   z/SupportingDocumentContext.delete_with_http_info  s%     )-%g['RRr"   c                    K   t        j                  i       }| j                  j                  d| j                  |       d{   S 7 w)z
        Internal async helper for delete operation

        Returns:
            tuple: (success_boolean, status_code, headers)
        r   r   N)r   r   r>   delete_with_response_info_asyncr   r   s     r#   _delete_asyncz'SupportingDocumentContext._delete_async(  sG      ))B-]]BBG C 
 
 	
 
s   AA
AA
c                 J   K   | j                          d{   \  }}}|S 7 
wrE   )r   r   s      r#   rF   z&SupportingDocumentContext.delete_async6  s)      #0022A 3s   #!#c                 b   K   | j                          d{   \  }}}t        |||      S 7 w)z
        Asynchronous coroutine that deletes the SupportingDocumentInstance and return response metadata


        :returns: ApiResponse with success boolean, status code, and headers
        Nr   )r   r   r   s       r#   rK   z5SupportingDocumentContext.delete_with_http_info_async@  s5      /3.@.@.B(B%g['RR )Cs   /-/c                     t        j                  i       }d|d<   | j                  j                  d| j                  |      S )zz
        Internal helper for fetch operation

        Returns:
            tuple: (payload, status_code, headers)
        application/jsonAcceptGETr   )r   r   r>   fetch_with_response_infor   r   s     r#   _fetchz SupportingDocumentContext._fetchJ  sB     ))B-.}}55dii 6 
 	
r"   c                 t    | j                         \  }}}t        | j                  || j                  d         S )rM   r'   r<   )r   r   r>   r6   r8   r&   r   s      r#   rN   zSupportingDocumentContext.fetchZ  s8     A)MMu%
 	
r"   c                     | j                         \  }}}t        | j                  || j                  d         }t	        |||      S )z
        Fetch the SupportingDocumentInstance and return response metadata


        :returns: ApiResponse with instance, status code, and headers
        r'   r<   r   )r   r   r>   r6   r   r8   r&   r   r   instances        r#   rS   z.SupportingDocumentContext.fetch_with_http_infoh  sG     )-%g-MMu%

 k7SSr"   c                    K   t        j                  i       }d|d<   | j                  j                  d| j                  |       d{   S 7 w)z
        Internal async helper for fetch operation

        Returns:
            tuple: (payload, status_code, headers)
        r   r   r   r   N)r   r   r>   fetch_with_response_info_asyncr   r   s     r#   _fetch_asyncz&SupportingDocumentContext._fetch_asyncw  sQ      ))B-.]]AAdii B 
 
 	
 
s   AAA	Ac                    K   | j                          d{   \  }}}t        | j                  || j                  d         S 7 -w)rP   Nr'   r<   )r   r   r>   r6   r   s      r#   rQ   z%SupportingDocumentContext.fetch_async  sG      #//11A)MMu%
 	
 2s   AA.Ac                    K   | j                          d{   \  }}}t        | j                  || j                  d         }t	        |||      S 7 ;w)z
        Asynchronous coroutine to fetch the SupportingDocumentInstance and return response metadata


        :returns: ApiResponse with instance, status code, and headers
        Nr'   r<   r   )r   r   r>   r6   r   r   s        r#   rU   z4SupportingDocumentContext.fetch_with_http_info_async  sW      /3.?.?.A(A%g-MMu%

 k7SS )Bs   AA<Ar*   r.   c                     t        j                  |t        j                  |      d      }t        j                  i       }d|d<   d|d<   | j                  j                  d| j                  ||      S )z{
        Internal helper for update operation

        Returns:
            tuple: (payload, status_code, headers)
        FriendlyName
Attributes!application/x-www-form-urlencodedContent-Typer   r   POSTr   r   r   r   )r   r   r   rw   r>   update_with_response_infor   r8   r*   r.   r   r   s        r#   _updatez!SupportingDocumentContext._update  st     yy -'..z:
 ))B-"E.}}66tyytW 7 
 	
r"   c                 z    | j                  ||      \  }}}t        | j                  || j                  d         S )rW   rX   r'   r<   )r   r   r>   r6   r8   r*   r.   r&   r   s        r#   rY   z SupportingDocumentContext.update  s=     =ZXA)MM7u(=
 	
r"   c                     | j                  ||      \  }}}t        | j                  || j                  d         }t	        |||      S )a  
        Update the SupportingDocumentInstance and return response metadata

        :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: ApiResponse with instance, status code, and headers
        rX   r'   r<   r   )r   r   r>   r6   r   r8   r*   r.   r&   r   r   r   s          r#   r`   z/SupportingDocumentContext.update_with_http_info  sT     )-'J )5 )
%g .MM7u(=
 k7SSr"   c                   K   t        j                  |t        j                  |      d      }t        j                  i       }d|d<   d|d<   | j                  j                  d| j                  ||       d{   S 7 w)	z
        Internal async helper for update operation

        Returns:
            tuple: (payload, status_code, headers)
        r   r   r   r   r   r   r   N)r   r   r   rw   r>   update_with_response_info_asyncr   r   s        r#   _update_asyncz'SupportingDocumentContext._update_async  s      yy -'..z:
 ))B-"E.]]BBtyytW C 
 
 	
 
s   A7B 9A>:B c                    K   | j                  ||       d{   \  }}}t        | j                  || j                  d         S 7 -w)r\   rX   Nr'   r<   )r   r   r>   r6   r   s        r#   r]   z&SupportingDocumentContext.update_async  sU      #00'J 1 
 
A *MM7u(=
 	

s   A	A.A	c                    K   | j                  ||       d{   \  }}}t        | j                  || j                  d         }t	        |||      S 7 ;w)a  
        Asynchronous coroutine to update the SupportingDocumentInstance and return response metadata

        :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: ApiResponse with instance, status code, and headers
        rX   Nr'   r<   r   )r   r   r>   r6   r   r   s          r#   rb   z5SupportingDocumentContext.update_with_http_info_async  se      /3.@.@'J /A /
 )
%g .MM7u(=
 k7SS)
s   AA<Ac                     dj                  d | j                  j                         D              }dj                  |      S )rd   re   c              3   F   K   | ]  \  }}d j                  ||        ywrg   rh   rj   s      r#   rn   z5SupportingDocumentContext.__repr__.<locals>.<genexpr>2  ro   rp   z1<Twilio.Trusthub.V1.SupportingDocumentContext {}>rq   rt   s     r#   rv   z"SupportingDocumentContext.__repr__,  s6     ((SDNN<P<P<RSSBII'RRr"   )"r   r   r    r   rx   r3   tupler   rz   rC   r   rI   r   rF   rK   r   r   rN   rS   r   rQ   rU   r   r{   r   rw   r   rY   r`   r   r]   rb   rv   r|   r}   s   @r#   r=   r=      s[   J Jc J
 
 S{ S
U 
D S; S
 
 
1 
Tk T
E 
 
#= 
T+ T" -3LL,2LL
S&[)
 &&.)
 
	
< -3LL,2LL
S&[)
 &&.)
 
$	
( -3LL,2LLTS&[)T &&.)T 
	T. -3LL,2LL
S&[)
 &&.)
 
	
< -3LL,2LL
S&[)
 &&.)
 
$	
, -3LL,2LLTS&[)T &&.)T 
	T*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   r>   )r8   r&   s     r#   get_instancez#SupportingDocumentPage.get_instance8  s     *$--AAr"   c                      y)rd   z+<Twilio.Trusthub.V1.SupportingDocumentPage>r!   r?   s    r#   rv   zSupportingDocumentPage.__repr__@       =r"   N)	r   r   r    r   rx   r   r   r   rv   r!   r"   r#   r   r   6  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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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
fdZ	 	 d$dee   dee   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fdZ	 	 d$dee   dee   defdZej                  ej                  ej                  fdeee	f   deee	f   deee	f   de fdZ!ej                  ej                  ej                  fdeee	f   deee	f   deee	f   de fdZ"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)r2   r3   r   )r8   r%   r9   s     r#   r3   zSupportingDocumentList.__init__K  s     	!*	r"   r*   r-   r.   r:   c                     t        j                  ||t        j                  |      d      }t        j                  ddi      }d|d<   d|d<   | j                  j                  d| j                  ||      S )z{
        Internal helper for create operation

        Returns:
            tuple: (payload, status_code, headers)
        r   Typer   r   r   r   r   r   r   )r   r   r   rw   r>   create_with_response_infor   r8   r*   r-   r.   r   r   s         r#   _createzSupportingDocumentList._createV  s~     yy -'..z:
 ))^-PQR"E.}}66tyytW 7 
 	
r"   c                 ^    | 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*   r-   r.   )r   r   r>   r8   r*   r-   r.   r&   r   s         r#   createzSupportingDocumentList.createt  s7     'dz % 
A *$--AAr"   c                 z    | j                  |||      \  }}}t        | j                  |      }t        |||      S )a  
        Create the SupportingDocumentInstance and return response metadata

        :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: ApiResponse with instance, status code, and headers
        r   r   )r   r   r>   r   r8   r*   r-   r.   r&   r   r   r   s           r#   create_with_http_infoz,SupportingDocumentList.create_with_http_info  sF     )-'dz )5 )
%g .dmmWEk7SSr"   c                 
  K   t        j                  ||t        j                  |      d      }t        j                  ddi      }d|d<   d|d<   | j                  j                  d| j                  ||       d{   S 7 w)	z
        Internal async helper for create operation

        Returns:
            tuple: (payload, status_code, headers)
        r   r   r   r   r   r   r   N)r   r   r   rw   r>   create_with_response_info_asyncr   r   s         r#   _create_asyncz$SupportingDocumentList._create_async  s      yy -'..z:
 ))^-PQR"E.]]BBtyytW C 
 
 	
 
s   A:B<B=Bc                 z   K   | 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   N)r   r   r>   r   s         r#   create_asyncz#SupportingDocumentList.create_async  sG      #00'dz 1 
 
A *$--AA
s   ;9;c                    K   | j                  |||       d{   \  }}}t        | j                  |      }t        |||      S 7 ,w)a  
        Asynchronously create the SupportingDocumentInstance and return response metadata

        :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: ApiResponse with instance, status code, and headers
        r   Nr   )r   r   r>   r   r   s           r#   create_with_http_info_asyncz2SupportingDocumentList.create_with_http_info_async  sW      /3.@.@'dz /A /
 )
%g .dmmWEk7SS	)
s   A	A-A	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r8   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                     | j                   j                  ||      }| j                  |d         }| j                   j                  |j                  |d         }||j
                  |j                  fS )a  
        Streams SupportingDocumentInstance and returns headers from first page


        :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: tuple of (generator, status_code, headers) where generator yields instances
        r   r   r   )r>   r   page_with_http_infor   r   r   r   r8   r   r   r   page_response	generators         r#   stream_with_http_infoz,SupportingDocumentList.stream_with_http_info  sk    $ **5)<006+;N0OMM((););VG_M	=44m6K6KLLr"   c                   K   | j                   j                  ||      }| j                  |d          d{   }| j                   j                  |j                  |d         }||j
                  |j                  fS 7 Fw)a  
        Asynchronously streams SupportingDocumentInstance and returns headers from first page


        :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: tuple of (generator, status_code, headers) where generator yields instances
        r   r   Nr   )r>   r   page_with_http_info_asyncr   r   r   r   r   s         r#   stream_with_http_info_asyncz2SupportingDocumentList.stream_with_http_info_async.  s     $ **5)<"<<[) = 
 
 MM..}/A/A6'?S	=44m6K6KLL
s   5B A>AB 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   )r8   r   r   s      r#   r   zSupportingDocumentList.listH  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   )r8   r   r   records       r#   
list_asyncz!SupportingDocumentList.list_asyncb  sT     * '+&7&7# '8 ' !
 
 !
 
 	
 
s0   ;.;620
26;26;c                 b    | j                  ||      \  }}}t        |      }t        |||      S )a  
        Lists SupportingDocumentInstance and returns headers from first page


        :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: ApiResponse with list of instances, status code, and headers
        r   r   )r   r   r   )r8   r   r   r   r   r   rs   s          r#   list_with_http_infoz*SupportingDocumentList.list_with_http_info}  sA    $ +/*D*D +E +
'	; Y;PPr"   c                    K   | j                  ||       d{   \  }}}|2 cg c3 d{   }|7 7 	6 nc c}w }}t        |||      S w)a  
        Asynchronously lists SupportingDocumentInstance and returns headers from first page


        :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: ApiResponse with list of instances, status code, and headers
        r   Nr   )r   r   )r8   r   r   r   r   r   r   rs   s           r#   list_with_http_info_asyncz0SupportingDocumentList.list_with_http_info_async  sf     $ 150P0P 1Q 1
 +
'	; -666&	+
 7666;PPs4   A4A:86
8:A8:A
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   r   r   paramsr   )r   r   r>   r   r   r   r8   r   r   r   r   r   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   r   r>   r   r   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c                    t        j                  |||d      }t        j                  ddi      }d|d<   | j                  j                  d| j                  ||      \  }}}t        | j                  |      }	t        |	||      S )	ad  
        Retrieve a single page with response metadata


        :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: ApiResponse with SupportingDocumentPage, status code, and headers
        r   r   r   r   r   r   r  r   )r   r   r>   page_with_response_infor   r   r   
r8   r   r   r   r   r   r  r   response_headersr   s
             r#   r   z*SupportingDocumentList.page_with_http_info  s      yy'#%
 ))^-PQR.26--2W2Wdiig 3X 3
/+/ &dmmX>+GWXXr"   c                 *  K   t        j                  |||d      }t        j                  ddi      }d|d<   | j                  j                  d| j                  ||       d{   \  }}}t        | j                  |      }	t        |	||	      S 7 ,w)
as  
        Asynchronously retrieve a single page with response metadata


        :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: ApiResponse with SupportingDocumentPage, status code, and headers
        r   r   r   r   r   r   r  Nr   )r   r   r>   page_with_response_info_asyncr   r   r   r	  s
             r#   r   z0SupportingDocumentList.page_with_http_info_async  s       yy'#%
 ))^-PQR. --==$))D' >   	0+/
 &dmmX>+GWXXs   A"B$B%-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   r8   r  r  s      r#   get_pagezSupportingDocumentList.get_page7  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_asyncC  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>   r8   r'   s     r#   r4   zSupportingDocumentList.getO       )C@@r"   c                 0    t        | j                  |      S r  r  r  s     r#   __call__zSupportingDocumentList.__call__W  r  r"   c                      y)rd   z+<Twilio.Trusthub.V1.SupportingDocumentList>r!   r?   s    r#   rv   zSupportingDocumentList.__repr___  r   r"   )NN),r   r   r    r   r3   r   r{   rx   r   rw   r   r   r   r   r   r   r   r   r   r   intr	   r   r
   r   r   r   r   r   r   r   r   r   r   r   r   r   r  r  r=   r4   r  rv   r|   r}   s   @r#   r   r   I  s+   	+ 	+ -3LL	

 
 &&.)	

 

D -3LL	BB B &&.)	B
 
$B0 -3LL	TT T &&.)	T
 
T2 -3LL	

 
 &&.)	

 

D -3LL	BB B &&.)	B
 
$B0 -3LL	TT T &&.)	T
 
T.  $#';}; C=; 
,	-	;6  $#'A}A C=A 
1	2	A6  $#'M}M C=M 
	M4  $#'M}M C=M 
	M8  $#'
}
 C=
 
(	)	
8  $#'
}
 C=
 
(	)	
:  $#'Q}Q C=Q 
	Q6  $#'Q}Q C=Q 
	Q6 *0*0,,(.	?#v+&? 3;'? f%	?
 
 ?F *0*0,,(.	?#v+&? 3;'? f%	?
 
 ?F *0*0,,(.	 Y#v+& Y 3;' Y f%	 Y
 
 YH *0*0,,(.	"Y#v+&"Y 3;'"Y f%	"Y
 
"YH
?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.api_responser   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)     sm     L L L 6 6 0 8 : 2 ' !XT!1 XTv~S ~SB
=T =&\=\ \=r"   