
    pi?                         d Z ddlmZmZmZmZ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y)a  
    This code was generated by
   ___ _ _ _ _ _    _ ____    ____ ____ _    ____ ____ _  _ ____ ____ ____ ___ __   __
    |  | | | | |    | |  | __ |  | |__| | __ | __ |___ |\ | |___ |__/ |__|  | |  | |__/
    |  |_|_| | |___ | |__|    |__| |  | |    |__] |___ | \| |___ |  \ |  |  | |__| |  \

    Twilio - Numbers
    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.
    )AnyDictListOptionalUnionIteratorAsyncIterator)values)InstanceResource)ListResource)Version)Pagec                   B     e Zd ZdZdedeeef   f fdZdefdZ	 xZ
S )#SigningRequestConfigurationInstanceu  
    :ivar logo_sid: The SID of the document  that includes the logo that will appear in the LOA. To upload documents follow the following guide: https://www.twilio.com/docs/phone-numbers/regulatory/getting-started/create-new-bundle-public-rest-apis#supporting-document-create
    :ivar friendly_name: This is the string that you assigned as a friendly name for describing the creation of the configuration.
    :ivar product: The product or service for which is requesting the signature.
    :ivar country: The country ISO code to apply the configuration.
    :ivar email_subject: Subject of the email that the end client will receive ex: “Twilio Hosting Request”, maximum length of 255 characters.
    :ivar email_message: Content of the email that the end client will receive ex: “This is a Hosting request from Twilio, please check the document and sign it”, maximum length of 5,000 characters.
    :ivar url_redirection: Url the end client will be redirected after signing a document.
    :ivar url:
    versionpayloadc                    t         |   |       |j                  d      | _        |j                  d      | _        |j                  d      | _        |j                  d      | _        |j                  d      | _        |j                  d      | _        |j                  d      | _	        |j                  d      | _
        y )	Nlogo_sidfriendly_nameproductcountryemail_subjectemail_messageurl_redirectionurl)super__init__getr   r   r   r   r   r   r   r   )selfr   r   	__class__s      v/opt/services/ai/voice_agent/venv/lib/python3.12/site-packages/twilio/rest/numbers/v1/signing_request_configuration.pyr   z,SigningRequestConfigurationInstance.__init__$   s    !'.{{:'>,3KK,H&-kk)&<&-kk)&<,3KK,H,3KK,H.5kk:K.L")++e"4    returnc                      y)f
        Provide a friendly representation

        :returns: Machine friendly representation
        z7<Twilio.Numbers.V1.SigningRequestConfigurationInstance> r   s    r!   __repr__z,SigningRequestConfigurationInstance.__repr__0   s     Ir"   )__name__
__module____qualname____doc__r   r   strr   r   r(   __classcell__r    s   @r!   r   r      s1    	
5 
5$sCx. 
5I# Ir"   r   c                   2    e Zd Zdeeef   defdZdefdZy)SigningRequestConfigurationPager   r#   c                 .    t        | j                  |      S )z
        Build an instance of SigningRequestConfigurationInstance

        :param payload: Payload response from the API
        )r   _version)r   r   s     r!   get_instancez,SigningRequestConfigurationPage.get_instance<   s     34=='JJr"   c                      y)r%   z3<Twilio.Numbers.V1.SigningRequestConfigurationPage>r&   r'   s    r!   r(   z(SigningRequestConfigurationPage.__repr__F        Er"   N)	r)   r*   r+   r   r-   r   r   r4   r(   r&   r"   r!   r1   r1   :   s0    KCH~K	,KE# Er"   r1   c                       e Zd Zdef fdZej                  fdeeef   de	fdZ
ej                  fdeeef   de	fdZej                  ej                  ddfdeeef   d	eeef   d
ee   dee   dee	   f
dZej                  ej                  ddfdeeef   d	eeef   d
ee   dee   dee	   f
dZej                  ej                  ddfdeeef   d	eeef   d
ee   dee   dee	   f
dZej                  ej                  ddfdeeef   d	eeef   d
ee   dee   dee	   f
dZej                  ej                  ej                  ej                  ej                  fdeeef   d	eee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                  ej                  ej                  fdeeef   d	eee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fdZ xZS )SigningRequestConfigurationListr   c                 2    t         |   |       d| _        y)z}
        Initialize the SigningRequestConfigurationList

        :param version: Version that contains the resource

        z/SigningRequest/ConfigurationN)r   r   _uri)r   r   r    s     r!   r   z(SigningRequestConfigurationList.__init__Q   s     	!3	r"   bodyr#   c                     |j                         }t        j                  ddi      }d|d<   d|d<   | j                  j	                  d| j
                  ||      }t        | j                  |      S )z
        Create the SigningRequestConfigurationInstance

        :param body:

        :returns: The created SigningRequestConfigurationInstance
        Content-Type!application/x-www-form-urlencodedapplication/jsonAcceptPOSTmethoduridataheaders)to_dictr
   ofr3   creater:   r   r   r;   rE   rF   r   s        r!   rI   z&SigningRequestConfigurationList.create\   sp     ||~))^-PQR"4.--&&tyytW ' 
 34=='JJr"   c                    K   |j                         }t        j                  ddi      }d|d<   d|d<   | j                  j	                  d| j
                  ||       d{   }t        | j                  |      S 7 w)z
        Asynchronously create the SigningRequestConfigurationInstance

        :param body:

        :returns: The created SigningRequestConfigurationInstance
        r=   r>   r?   r@   rA   rB   N)rG   r
   rH   r3   create_asyncr:   r   rJ   s        r!   rL   z,SigningRequestConfigurationList.create_asynct   s~      ||~))^-PQR"4.22tyytW 3 
 
 34=='JJ	
s   AA= A;!A=Nr   r   limit	page_sizec                     | j                   j                  ||      }| j                  |||d         }| j                   j                  ||d         S )ay  
        Streams SigningRequestConfigurationInstance 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 str country: The country ISO code to apply this configuration, this is an optional field, Example: US, MX
        :param str product: The product or service for which is requesting the signature, this is an optional field, Example: Porting, Hosting
        :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
        rN   r   r   rN   rM   )r3   read_limitspagestreamr   r   r   rM   rN   limitsrR   s          r!   rS   z&SigningRequestConfigurationList.stream   sV    0 **5)<yyW{8K  
 }}##D&/::r"   c                    K   | j                   j                  ||      }| j                  |||d          d{   }| j                   j                  ||d         S 7 #w)a  
        Asynchronously streams SigningRequestConfigurationInstance 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 str country: The country ISO code to apply this configuration, this is an optional field, Example: US, MX
        :param str product: The product or service for which is requesting the signature, this is an optional field, Example: Porting, Hosting
        :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
        rN   rP   NrM   )r3   rQ   
page_asyncstream_asyncrT   s          r!   rX   z,SigningRequestConfigurationList.stream_async   sd     0 **5)<__W{8K % 
 
 }}))$w@@	
s   7AA$Ac                 >    t        | j                  ||||            S )a  
        Lists SigningRequestConfigurationInstance records from the API as a list.
        Unlike stream(), this operation is eager and will load `limit` records into
        memory before returning.

        :param str country: The country ISO code to apply this configuration, this is an optional field, Example: US, MX
        :param str product: The product or service for which is requesting the signature, this is an optional field, Example: Porting, Hosting
        :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   rM   rN   )listrS   )r   r   r   rM   rN   s        r!   r[   z$SigningRequestConfigurationList.list   s.    . KK#	  
 	
r"   c                 ~   K   | j                  ||||       d{   2 cg c3 d{   }|7 7 	6 c}S c c}w w)a%  
        Asynchronously lists SigningRequestConfigurationInstance records from the API as a list.
        Unlike stream(), this operation is eager and will load `limit` records into
        memory before returning.

        :param str country: The country ISO code to apply this configuration, this is an optional field, Example: US, MX
        :param str product: The product or service for which is requesting the signature, this is an optional field, Example: Porting, Hosting
        :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
        rZ   N)rX   )r   r   r   rM   rN   records         r!   
list_asyncz*SigningRequestConfigurationList.list_async   sZ     2 '+&7&7#	 '8 ' !
 
 !
 
 	
 
s0   =0=842
48=48=
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 SigningRequestConfigurationInstance records from the API.
        Request is executed immediately

        :param country: The country ISO code to apply this configuration, this is an optional field, Example: US, MX
        :param product: The product or service for which is requesting the signature, this is an optional field, Example: Porting, Hosting
        :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 SigningRequestConfigurationInstance
        CountryProduct	PageTokenr   PageSizer=   r>   r?   r@   GETrC   rD   paramsrF   )r
   rH   r3   rR   r:   r1   	r   r   r   r_   r`   rN   rE   rF   responses	            r!   rR   z$SigningRequestConfigurationList.page  s    ( yy""'#%
 ))^-PQR.==%%diig & 
 /t}}hGGr"   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 SigningRequestConfigurationInstance records from the API.
        Request is executed immediately

        :param country: The country ISO code to apply this configuration, this is an optional field, Example: US, MX
        :param product: The product or service for which is requesting the signature, this is an optional field, Example: Porting, Hosting
        :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 SigningRequestConfigurationInstance
        rb   r=   r>   r?   r@   rg   rh   N)r
   rH   r3   rW   r:   r1   rj   s	            r!   rW   z*SigningRequestConfigurationList.page_async2  s     ( yy""'#%
 ))^-PQR.11diig 2 
 
 /t}}hGG
s   A$B&B'B
target_urlc                     | j                   j                  j                  j                  d|      }t	        | j                   |      S )a  
        Retrieve a specific page of SigningRequestConfigurationInstance records from the API.
        Request is executed immediately

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

        :returns: Page of SigningRequestConfigurationInstance
        rg   )r3   domaintwiliorequestr1   r   rm   rk   s      r!   get_pagez(SigningRequestConfigurationList.get_pageY  s7     ==''..66ujI.t}}hGGr"   c                    K   | j                   j                  j                  j                  d|       d{   }t	        | j                   |      S 7 w)a*  
        Asynchronously retrieve a specific page of SigningRequestConfigurationInstance records from the API.
        Request is executed immediately

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

        :returns: Page of SigningRequestConfigurationInstance
        rg   N)r3   ro   rp   request_asyncr1   rr   s      r!   get_page_asyncz.SigningRequestConfigurationList.get_page_asynce  sD      --44BB5*UU.t}}hGG Vs   4AAAc                      y)r%   z3<Twilio.Numbers.V1.SigningRequestConfigurationList>r&   r'   s    r!   r(   z(SigningRequestConfigurationList.__repr__q  r6   r"   )r)   r*   r+   r   r   r
   unsetr   objectr   rI   rL   r-   r   intr   rS   r	   rX   r   r[   r^   r1   rR   rW   rs   rv   r(   r.   r/   s   @r!   r8   r8   O   s   	4 	4 -3LLK&&.)K	,K2 -3LLK&&.)K	,K4 '-ll&,ll##';sF{#; sF{#; }	;
 C=; 
5	6;B '-ll&,ll##'AsF{#A sF{#A }	A
 C=A 
:	;AB '-ll&,ll##'
sF{#
 sF{#
 }	

 C=
 
1	2
D '-ll&,ll##'
sF{#
 sF{#
 }	

 C=
 
1	2
F '-ll&,ll)/*0,,(.%HsF{#%H sF{#%H #v+&	%H
 3;'%H f%%H 
)%HR '-ll&,ll)/*0,,(.%HsF{#%H sF{#%H #v+&	%H
 3;'%H f%%H 
)%HN
H3 
H+J 
H
Hs 
H7V 
HE# Er"   r8   N)r,   typingr   r   r   r   r   r   r	   twilio.baser
   twilio.base.instance_resourcer   twilio.base.list_resourcer   twilio.base.versionr   twilio.base.pager   r   r1   r8   r&   r"   r!   <module>r      sS    M L L  : 2 ' !I*: IDEd E*hEl hEr"   